A message processing method, apparatus, storage medium, and electronic device.

CN116527425BActive Publication Date: 2025-12-02HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310340663.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2025-12-02
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

[0005]本申请提供一种消息处理方法、装置、存储介质及电子装置,用以解决现有技术中的在需要推送消息的情况下,对消息进行处理的流程不能满足不同智能家电的处理需求的缺陷,实现针对不同业务场景的智能家电,完成不同智能家电对应的消息处理,从而提高用户的使用体验

Benefits of technology

[0042]本申请提供的一种消息处理方法、装置、存储介质及电子装置,通过生成第一待处理消息,根据预先设置的处理逻辑,判断是否发送第一待处理消息,在确定发送第一待处理消息的情况下,基于预先存储的待确定信息确定当前设备,并将第一待处理消息发送至当前设备,以使当前设备在确定第一待处理消息满足预设处理条件的情况下,播报和/或显示第一待处理消息。在确定不发送第一待处理消息的情况下,播报和/或显示第一待处理消息。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116527425B_ABST
    Figure CN116527425B_ABST
Patent Text Reader

Abstract

This application discloses a message processing method, apparatus, storage medium, and electronic device, relating to the field of smart home / intelligent home technology. The method includes generating a first message to be processed; determining, according to pre-set processing logic, whether to send the first message to be processed; if it is determined that the first message to be processed should be sent, identifying the current device based on pre-stored information to be determined, and sending the first message to the current device, so that the current device, if it determines that the first message to be processed meets preset processing conditions, broadcasts and / or displays the first message to be processed. If it is determined that the first message to be processed should not be sent, the first message to be processed is broadcast and / or displayed. In this way, for different smart home appliances, it can ensure that users can receive messages in a timely manner, improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home / intelligent home technology, and in particular to a message processing method, apparatus, storage medium and electronic device. Background Technology

[0002] With the development of technology, smart home appliances are playing an increasingly important role in people's daily lives, greatly facilitating their lives.

[0003] Currently, smart home appliances can proactively push messages to users, enabling them to receive relevant information in a timely manner. The current message processing flow is as follows: the smart home appliance determines whether the corresponding message triggering conditions are met based on its reported status information. If the conditions are met, the message is processed and then pushed to the user.

[0004] However, in users' current life scenarios, there are various smart home appliances that can process messages. The message processing capabilities of each smart home appliance are different. The current message processing process cannot meet the push needs of different smart home appliances, which will cause users to not receive messages in a timely manner and reduce the user experience. Summary of the Invention

[0005] This application provides a message processing method, apparatus, storage medium, and electronic device to address the shortcomings of existing technologies where message processing procedures cannot meet the processing needs of different smart home appliances when push messages are required. This enables smart home appliances to perform message processing for different business scenarios, thereby improving the user experience.

[0006] This application provides a message processing method, the method comprising:

[0007] Generate the first message to be processed;

[0008] Based on the pre-set processing logic, determine whether to send the first message to be processed;

[0009] If it is determined that the first message to be processed is to be sent, the current device is determined based on the pre-stored information to be determined, and the first message to be processed is sent to the current device, so that the current device broadcasts and / or displays the first message to be processed when it is determined that the first message to be processed meets the preset processing conditions;

[0010] If it is determined that the first pending message will not be sent, the first pending message is broadcast and / or displayed.

[0011] According to a message processing method provided in this application, the information to be determined includes area indication information and / or device indication information;

[0012] The step of determining the current device based on pre-stored information to be determined includes at least one of the following:

[0013] When the information to be determined includes the area indication information, the device with processing capability in the area corresponding to the area indication information is selected as the current device according to the area indication information, wherein the area indication information is preset area information or preset designated area information;

[0014] If the information to be determined includes the device indication information, the device corresponding to the device indication information shall be taken as the current device according to the device indication information.

[0015] If the information to be determined includes the area indication information and the device indication information, then, based on the area indication information and the device indication information, the device located in the area corresponding to the area indication information and corresponding to the device indication information is taken as the current device.

[0016] According to a message processing method provided in this application, the step of determining the current device based on pre-stored information to be determined further includes:

[0017] If the device indicated by the area indication information and / or the device indication information is empty, the device with processing capabilities corresponding to the pre-bound user information shall be used as the current device.

[0018] According to a message processing method provided in this application, the step of determining whether to send the first message to be processed based on pre-set processing logic includes:

[0019] If the processing logic is a priority processing logic, determine the control function to be used;

[0020] If the control function to be used includes a broadcast function and / or a display function, the first message to be processed will not be sent;

[0021] If the control functions to be used do not include the broadcast function and the display function, the first message to be processed is sent.

[0022] According to a message processing method provided in this application, the step of determining whether to send the first message to be processed based on pre-set processing logic includes:

[0023] If the processing logic is a specified processing logic or a random processing logic, then the first message to be processed is sent.

[0024] According to a message processing method provided in this application, the method further includes:

[0025] Receive the second pending message;

[0026] Based on the processing information carried by the second message to be processed, determine whether the ability to process the second message to be processed is available;

[0027] If it is determined that the capability to process the second message to be processed is available, the second message to be processed is processed according to the processing information.

[0028] If it is determined that the device is not capable of processing the second message to be processed, a processing failure message is sent to the device that generated the second message to be processed.

[0029] According to a message processing method provided in this application, the processing information includes a processing method and a device identifier;

[0030] The step of determining whether the system has the capability to process the second message to be processed includes:

[0031] Based on the processing method, determine whether the capability corresponding to the processing method is possessed;

[0032] Based on the device identifier, determine whether the device identifier meets the preset corresponding conditions;

[0033] If the device has the capability corresponding to the processing method and the device identifier meets the preset corresponding conditions, it is determined that the device has the capability to process the second message to be processed.

[0034] If the device does not have the capability corresponding to the processing method and / or the device identifier does not meet the preset corresponding conditions, it is determined that the device does not have the capability to process the second message to be processed.

[0035] This application also provides a message processing apparatus, the apparatus comprising:

[0036] The generation module is used to generate the first message to be processed;

[0037] The judgment module is used to determine whether to send the first message to be processed based on the pre-set processing logic;

[0038] The sending module is configured to, when it is determined that the first message to be processed is to be sent, determine the current device based on pre-stored information to be determined, and send the first message to be processed to the current device, so that the current device, when it is determined that the first message to be processed meets the preset processing conditions, broadcasts and / or displays the first message to be processed;

[0039] The processing module is configured to broadcast and / or display the first message to be processed if it is determined that the first message to be processed will not be sent.

[0040] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the message processing method described above through the computer program.

[0041] This application also provides a computer-readable storage medium comprising a stored program, wherein the program, when executed, implements any of the message processing methods described above.

[0042] This application provides a message processing method, apparatus, storage medium, and electronic device. By generating a first message to be processed, and according to pre-set processing logic, determining whether to send the first message to be processed, if it is determined that the first message to be processed should be sent, the current device is determined based on pre-stored information to be determined, and the first message to be processed is sent to the current device. This allows the current device to broadcast and / or display the first message to be processed if it determines that the first message to be processed meets preset processing conditions. If it is determined that the first message to be processed should not be sent, the first message to be processed is broadcast and / or displayed.

[0043] In this way, the processing logic pre-set by the smart home appliance can determine whether to send the first pending message, thereby enabling the broadcasting and / or display of the first pending message, which means pushing the first pending message to the user. In this way, for different smart home appliances, it can ensure that users can receive messages in a timely manner, thus improving the user experience. Attached Figure Description

[0044] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0045] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0046] Figure 1 This is a schematic diagram of the hardware environment for a message processing method according to an embodiment of this application;

[0047] Figure 2 This is one of the flowcharts of the message processing method provided in this application;

[0048] Figure 3 This is the second flowchart of the message processing method provided in this application;

[0049] Figure 4 This is the third flowchart of the message processing method provided in this application;

[0050] Figure 5 This is the fourth flowchart of the message processing method provided in this application;

[0051] Figure 6 This is the fifth flowchart of the message processing method provided in this application;

[0052] Figure 7 This is a schematic diagram of the message processing device provided in this application;

[0053] Figure 8 This is a schematic diagram of the electronic device provided in this application. Detailed Implementation

[0054] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0055] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0056] According to one aspect of the embodiments of this application, a message processing method is provided. This message processing method is widely used in whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligencehouse ecosystems. Optionally, in this embodiment, the above-mentioned message processing method can be applied to, for example... Figure 1The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0057] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0058] To enable smart home appliances to handle different business scenarios and process messages for each appliance, thereby improving the user experience, this application provides a message processing method, apparatus, computer-readable storage medium, electronic device, and computer program product. The following is a detailed description of the process. Figure 2 This application provides a message processing method based on an embodiment.

[0059] like Figure 2 As shown in the figure, this application provides a message processing method, the method including:

[0060] S201, Generate the first message to be processed.

[0061] Smart home appliances (electronic devices) can monitor their own operating status in real time. When their own operating status meets the preset message triggering conditions, they can generate their own first message to be processed.

[0062] The first message to be processed is the message that needs to be pushed to the user, which is the message about the operating status of the smart home appliances that the user needs to know. The preset message trigger conditions for each home appliance can be the same or different.

[0063] Upon generating a first pending message, the message can be broadcast and / or displayed by the home appliance itself. Alternatively, the first pending message can be sent to other home appliances for broadcast and / or display. It can also be sent to a mobile phone or other device linked to the home appliance for broadcast and / or display.

[0064] S202, based on the pre-set processing logic, determine whether to send the first message to be processed.

[0065] To ensure the broadcast and / or display of the first pending message, the decision to send it can be based on pre-set processing logic within the smart home appliance. This pre-set processing logic can be based on the smart home appliance's functions or on user habits.

[0066] The pre-set processing logic can include priority processing logic, specified processing logic, and random processing logic. Priority processing logic prioritizes the smart home appliance that generated the first message to be processed. Specified processing logic can include specified device processing logic, specified area processing logic, or specified area and device processing logic, etc. Each smart home appliance can include at least one type of processing logic, which can be configured according to actual usage.

[0067] For example, if a smart home appliance is equipped with a speaker and / or a display screen, it means that the smart home appliance has broadcasting and / or display functions. Therefore, the pre-set processing logic may include priority processing logic.

[0068] Both the specified processing logic and the random processing logic are processing logics that require sending the first message to be processed. In other words, if the pre-set processing logic prioritizes the specified processing logic and / or the random processing logic, it can be determined that the first message to be processed will be sent.

[0069] If it is determined that a first pending message will be sent, step S203 can be executed, that is, the current device is determined based on the pre-stored pending information, and the first pending message is sent to the current device, so that the current device broadcasts and / or displays the first pending message when it is determined that the first pending message meets the preset processing conditions.

[0070] If it is determined that the first pending message will not be sent, step S204 can be executed, that is, the first pending message can be broadcast and / or displayed. In other words, the first pending message can be broadcast and / or displayed by this smart home appliance.

[0071] As can be seen, in this embodiment, the processing logic pre-set by the smart home appliance can be used to determine whether to send the first pending message, thereby enabling the broadcasting and / or display of the first pending message, that is, pushing the first pending message to the user. In this way, for different smart home appliances, it can be ensured that the user can receive the message in a timely manner, thus improving the user experience.

[0072] As one implementation of this application, the information to be determined includes area indication information and / or device indication information.

[0073] The steps described above for determining the current device based on pre-stored information to be determined may include at least one of the following:

[0074] The first method involves identifying, when the information to be determined includes region indication information, the device with processing capabilities within the region corresponding to the pre-stored region indication information as the current device. The region indication information can be preset region information or preset designated region information.

[0075] The preset area information is the information of the preset area centered on the smart home appliance that generates the first message to be processed. When the area indication information is the preset area information of the smart home appliance that generates the first message to be processed, the device (smart home appliance) with processing capability in the preset area around this smart home appliance can be used as the current device.

[0076] For example, a device with processing capabilities located in the same room as this smart home appliance can be designated as the current device. If there are multiple devices with processing capabilities located in the same room as this smart home appliance, one of them can be randomly selected as the current device, or the current device can be determined according to a preset weight.

[0077] The preset indicator area can be information for a pre-specified area, which can be pre-set by the user or set based on the user's historical usage preferences for different smart home appliances at different times.

[0078] For example, based on the time when the first pending message is generated, the user's frequently used smart home appliances at that time can be determined, and the rooms corresponding to the frequently used smart home appliances can be designated as preset indication areas. The rooms corresponding to the frequently used smart home appliances can include at least one.

[0079] When the area indication information is a preset indication area, a device (smart home appliance) with processing capabilities within the preset indication area can be used as the current device. For example, a device (common smart home appliance) with processing capabilities in the room corresponding to a frequently used smart home appliance can be used as the current device.

[0080] The second approach involves, when the information to be determined includes device indication information, selecting the device corresponding to the pre-stored device indication information as the current device. The device indication information can be information about a device pre-specified by the user for processing the first message to be processed from this smart home appliance.

[0081] The third approach involves identifying the current device based on the area indication information and the device indication information, provided that the information to be determined includes area indication information and device indication information.

[0082] The fourth method can determine the current device based on preset first weight information and any two of the first, second, and third methods mentioned above. Specifically, the current device can be determined based on the method with the higher weight indicated by the first weight information. If the method with the higher weight cannot determine the current device, then the method with the lower weight is used to determine the current device.

[0083] In the fourth scenario, if the third method is used to determine the current device, the weight of the third method is greater than the weight of the other method.

[0084] For example, the first weight information indicates that the weight of the third method is greater than the weight of the first method. Therefore, the preset indicated device in the preset indicated area can be used as the current device. If there is no specified device in the preset indicated area or the specified device in the preset indicated area is unavailable, the first method can be used to determine the current device, that is, the device with processing capability in the preset indicated area can be used as the current device.

[0085] The fifth method can determine the current device based on preset second weight information and the first, second, and third methods mentioned above. Specifically, the current device can be determined according to the method with the highest weight indicated by the second weight information. If the method with the highest weight cannot determine the current device, the method with the second highest weight is used. If the method with the second highest weight cannot determine the current device, the method with the lowest weight is used.

[0086] In the fifth scenario, the weight corresponding to the third scenario is greater than the weight corresponding to the other two scenarios; that is, the weight corresponding to the third scenario is greater than the weight corresponding to the first scenario and the weight corresponding to the second scenario.

[0087] For example, if the first weight information indicates that the weight of the third method is greater than the weight of the first method, and the weight of the first method is greater than the corresponding weight of the second method, then the preset indicated device in the preset indicated area can be used as the current device. If there is no specified device in the preset indicated area or the specified device in the preset indicated area is unavailable, the first method can be used to determine the current device, that is, the device with processing capabilities in the preset indicated area can be used as the current device. If there is no device with processing capabilities in the preset indicated area or the device with processing capabilities in the preset indicated area is unavailable, then the device corresponding to the device indicated information can be used as the current device.

[0088] As can be seen, in this embodiment, the current device can be determined according to different information and corresponding methods. That is, the corresponding current device (other smart home appliances) can be determined according to different situations corresponding to different smart home appliances, so as to realize the broadcasting and / or display of the first pending message, that is, to push the first pending message to the user, thereby improving the user experience.

[0089] As one embodiment of this application, the step of determining the current device based on pre-stored information to be determined may further include:

[0090] If the device indicated by the area indication information and / or the device indication information is empty, the device with processing capabilities corresponding to the pre-bound user information is selected as the current device. The user information is pre-bound to the smart home appliance that generated the first information to be processed.

[0091] Regarding the first method mentioned above, if there is no device with processing capability in the area corresponding to the area indication information, or if the device with processing capability in the area corresponding to the area indication information is unavailable, the device with processing capability corresponding to the user information can be used as the current device based on the pre-bound user information.

[0092] Regarding the second method mentioned above, if there is no device corresponding to the device indication information or the device corresponding to the device indication information is unavailable, the device with processing capabilities corresponding to the pre-bound user information can be used as the current device.

[0093] Regarding the third method mentioned above, if the device corresponding to the device indication information in the area corresponding to the area indication information does not exist or the device corresponding to the device indication information in the area corresponding to the area indication information is unavailable, the device with processing capabilities corresponding to the user information can be used as the current device based on the pre-bound user information.

[0094] Regarding the fourth method mentioned above, if the method with lower weight cannot determine the current device or the method with lower weight determines that the current device is unavailable, the device with processing capabilities corresponding to the pre-bound user information can be used as the current device.

[0095] Regarding the fifth method mentioned above, if the method with the lowest weight cannot determine the current device or the current device determined by the method with the lowest weight is unavailable, the device with processing capabilities corresponding to the user information can be used as the current device based on the pre-bound user information.

[0096] As one implementation method, the device with processing capability corresponding to the user information may include multiple devices. Therefore, one device can be randomly selected from the devices with processing capability corresponding to the user information as the current device.

[0097] As another implementation method, each device has corresponding priority information, and the device with the highest priority can be determined as the current device from the devices with processing capabilities corresponding to the user information based on the priority information.

[0098] As can be seen, in this embodiment, when there is no device corresponding to the area indication information and / or device indication information, the device with processing capability corresponding to the user information can be selected as the current device. This is equivalent to selecting a device with processing capability from the user's corresponding household, thereby further ensuring that the user can receive information in a timely manner and improving the user experience.

[0099] As one implementation of this application, the step of determining whether to send the first message to be processed according to a pre-set processing logic may include:

[0100] When the processing logic is a priority processing logic, the control function to be used is determined. This priority processing logic can be logic that prioritizes processing the first message to be processed by the smart home appliance that generated it.

[0101] If the control function to be used includes a broadcast function and / or a display function, the first pending message will not be sent. That is, if the smart home appliance that generated the first pending message is capable of processing the first pending message, the first pending message can be broadcast and / or displayed by the smart home appliance that generated the first pending message.

[0102] If the smart home appliance that generated the first pending message cannot broadcast and / or display it, the first pending message is sent. In other words, if the smart home appliance that generated the first pending message cannot process it, the first pending message can be sent to other smart home appliances, which can then broadcast and / or display it.

[0103] As one implementation of this application, the step of determining whether to send the first message to be processed according to a pre-set processing logic may include:

[0104] If the processing logic is either specified processing logic or random processing logic, then the first message to be processed is determined to be sent. Specified processing logic and random processing logic refer to logic that processes the first message to be processed through other smart home appliances.

[0105] As can be seen, in this embodiment, it can be determined whether to send the first message to be processed based on different situations corresponding to the processing logic, so that the first message to be processed can be processed subsequently.

[0106] To better understand the message processing method provided in this application embodiment, the following description uses specific examples to illustrate the message processing method provided in this application embodiment:

[0107] like Figure 3 As shown, when the processing logic is prioritized and the processing method is to broadcast the first message to be processed, the following steps can be executed:

[0108] S301, determine whether the smart home appliance can broadcast the first pending message; if it can broadcast the first pending message, proceed to step S302. If it cannot broadcast the first pending message, proceed to step S303.

[0109] That is, it determines whether the smart home appliance terminal that generated the first message to be processed has the ability to broadcast. If it does, step S302 is executed; if it does not, step S303 is executed.

[0110] In addition, if the first pending message cannot be broadcast, step S305 can be executed. Figure 3 Not shown in the image.

[0111] S302, broadcasting the first pending message.

[0112] S303, Determine whether there is a device with broadcasting capability in the room where this smart home appliance is located. If there is a device with broadcasting capability, proceed to step S304. If there is no device with broadcasting capability, proceed to step S305.

[0113] Step S303 corresponds to the first method described above, which is to select the device with processing capability in the region corresponding to the pre-stored region indication information as the current device.

[0114] S304, The first message to be processed is broadcast using a device with broadcasting capability in the room where this smart home appliance is located.

[0115] S305: Based on the pre-bound user information, the device with broadcasting capability corresponding to the user information is selected as the current device, and the first message to be processed is broadcast through the current device.

[0116] In response to the above Figure 3 A specific application scenario could be that if the first message to be processed is generated by a smart home appliance with a broadcast function, then the first message to be processed is broadcast by the smart home appliance itself. For example, a message generated by a voice-activated refrigerator A is broadcast by the voice-activated refrigerator A.

[0117] If the first pending message is triggered by a non-voice device, it will be broadcast by a voice device in the same room. For example, a non-voice air conditioner message will be broadcast by a speaker in the same room. If there is no voice device in the same room, the first pending message will be randomly broadcast by a device in the same household that has broadcasting capabilities (i.e., the device with broadcasting capabilities corresponding to the user information).

[0118] like Figures 4-6 As shown, when the processing logic is a specified processing logic or a random processing logic, and the processing method is to broadcast the first message to be processed, the following steps can be performed:

[0119] like Figure 4 As shown, the following steps can be performed.

[0120] S401, determine if there is a device corresponding to the device indication information; if there is a device corresponding to the device indication information, proceed to step S402. If there is no device corresponding to the device indication information, proceed to step S403.

[0121] Step S401 corresponds to the second method described above, which is to use the device corresponding to the device indication information as the current device according to the pre-stored device indication information.

[0122] S402, the device corresponding to the device indication information broadcasts the first pending message.

[0123] S403: Based on the pre-bound user information, the device with broadcasting capability corresponding to the user information is selected as the current device, and the first message to be processed is broadcast through the current device.

[0124] In response to the above Figure 4 A specific application scenario is that when a first message to be processed is generated, the device corresponding to the device indication information can be used to broadcast the first message to be processed. For example, the first message to be processed generated by a non-voice oven can be broadcast by a voice refrigerator.

[0125] If no specific device is specified, a device with broadcasting capabilities within the same household (i.e., a device with broadcasting capabilities corresponding to the user information) can be used to randomly broadcast the first message to be processed.

[0126] like Figure 5 As shown, the following steps can be performed.

[0127] S501, determine whether the device corresponding to the device indication information exists in the room where this smart home appliance is located. If it exists, proceed to step S502. If it does not exist, proceed to step S503.

[0128] Step S501 corresponds to the third method mentioned above, which is to take the device corresponding to the device indication information in the area corresponding to the area indication information as the current device according to the pre-stored processing indication information.

[0129] S502, the device corresponding to the device indication information in the room where this smart home appliance is located broadcasts the first pending message.

[0130] S503: Based on the pre-bound user information, the device with broadcasting capability corresponding to the user information is selected as the current device, and the first message to be processed is broadcast through the current device.

[0131] like Figure 6 As shown, the following steps can be performed.

[0132] S601, determine whether there is a device corresponding to the device indication information in the preset indication area. If it exists, proceed to step S602. If it does not exist, proceed to step S603.

[0133] S602, the device corresponding to the device indication information in the preset indication area broadcasts the first message to be processed.

[0134] S603, determine whether there is a device with broadcasting capability in the preset indication area. If yes, proceed to step S604. If not, proceed to step S605.

[0135] S604, the first message to be processed is broadcast using a device with broadcasting capability in the preset indication area.

[0136] S605: Based on the pre-bound user information, the device with broadcasting capability corresponding to the user information is selected as the current device, and the first message to be processed is broadcast through the current device.

[0137] As one embodiment of this application, the above method may further include:

[0138] Receive a second pending message, which is a message sent to this smart home appliance by other smart home appliances.

[0139] Based on the processing information carried by the second message to be processed, determine whether the system has the capability to process the second message to be processed.

[0140] If it is determined that the capability to process the second message to be processed is available, the second message to be processed is processed in accordance with the processing information.

[0141] If it is determined that the device is not capable of processing the second message to be processed, a processing failure message is sent to the device that generated the second message to be processed.

[0142] The processing information includes the processing method and the device identifier. The processing method refers to the way the second message to be processed is processed, which can be broadcasting and / or displaying. The device identifier can be the identifier of the device that generated the second message to be processed and / or the identifier of the device that received the second message to be processed.

[0143] The step of determining whether the system has the capability to process the second message to be processed may include:

[0144] Based on the processing method, it is determined whether the smart home appliance receiving the second message to be processed possesses the capability corresponding to the processing method. In one case, if the smart home appliance receiving the second message to be processed does not possess the capability corresponding to the processing method, it indicates that the second message to be processed may have been sent incorrectly. Therefore, a processing failure message indicating a sending error can be generated and sent to the device that generated the second message to be processed.

[0145] In another scenario, the smart home appliance receiving the second pending message has the function corresponding to the processing method, but the function is unavailable. Therefore, the smart home appliance receiving the second pending message does not have the capability corresponding to the processing method. Consequently, it can be determined that a processing failure message indicating that the function is unavailable can be generated and sent to the device that generated the second pending message.

[0146] Based on the device identifier, it is determined whether the device identifier meets a preset corresponding condition. If the device identifier does not match the device identifier of the smart home appliance receiving the second message to be processed, the device identifier does not meet the preset corresponding condition, indicating that the second message to be processed may have been sent incorrectly. Therefore, a processing failure message indicating a sending error can be generated and sent to the device corresponding to the device that generated the second message to be processed.

[0147] If the smart home appliance receiving the second message has the capability corresponding to the processing method, and its device identifier does not match the device identifier of the smart home appliance receiving the second message, it indicates that the smart home appliance receiving the second message has the capability corresponding to the processing method, and the device identifier meets the preset corresponding conditions. Therefore, it is determined that the smart home appliance has the capability to process the second message. Thus, the second message can be processed according to the processing information.

[0148] If the smart home appliance receiving the second pending message lacks the capability corresponding to the processing method, and / or the device identifier does not meet the preset corresponding conditions, it is determined that it does not have the capability to process the second pending message. Therefore, a processing failure message can be sent to the device that generated the second pending message.

[0149] As can be seen, in this embodiment, it is possible to determine whether the system has the capability to process the second message to be processed, thereby executing different steps so that the user can receive the message more promptly and further improve the user experience.

[0150] As one implementation method of this application, the corresponding processing algorithms can be generated for each logic corresponding to the above processing method. In the event of new logic, the calculation method can be extended.

[0151] The processing algorithm corresponding to the processing method provided in this application embodiment can specify the processing of messages to be processed (first message to be processed and second message to be processed) for different scenarios, and can meet the needs of various task scenarios.

[0152] The message processing apparatus provided in this application is described below. The message processing apparatus described below can be referred to in correspondence with the message processing method described above.

[0153] like Figure 7 As shown in the figure, this application embodiment provides a message processing apparatus, the apparatus including:

[0154] The generation module 710 is used to generate the first message to be processed.

[0155] The judgment module 720 is used to determine whether to send the first message to be processed based on pre-set processing logic. If it is determined that the first message to be processed should be sent, the judgment module 720 calls the sending module 730. If it is determined that the first message to be processed should not be sent, the judgment module 720 calls the processing module 740.

[0156] The sending module 730 is configured to, when it is determined that the first message to be processed is to be sent, determine the current device based on pre-stored information to be determined, and send the first message to be processed to the current device, so that the current device, when it is determined that the first message to be processed meets the preset processing conditions, broadcasts and / or displays the first message to be processed.

[0157] The processing module 740 is configured to broadcast and / or display the first message to be processed if it is determined that the first message to be processed will not be sent.

[0158] As one embodiment of this application, the information to be determined includes area indication information and / or device indication information.

[0159] The aforementioned sending module 730 may include at least one of the following:

[0160] The first determining unit is configured to, when the information to be determined includes the area indication information, determine, based on the area indication information, the device with processing capability in the area corresponding to the area indication information as the current device.

[0161] The area indication information is either preset area information or preset designated area information.

[0162] The second determining unit is configured to, when the information to be determined includes the device indication information, determine the device corresponding to the device indication information as the current device based on the device indication information.

[0163] The third determining unit is configured to, when the information to be determined includes the area indication information and the device indication information, determine the device located in the area corresponding to the area indication information and corresponding to the device indication information as the current device, based on the area indication information and the device indication information.

[0164] As one embodiment of this application, the sending module 730 may further include:

[0165] The fourth determining unit is configured to, when the device indicated by the area indication information and / or the device indication information is empty, select the device with processing capabilities corresponding to the pre-bound user information as the current device.

[0166] As one embodiment of this application, the determination module 720 may include:

[0167] The function determination unit is used to determine the control function to be used when the processing logic is the priority processing logic. If the control function to be used includes a broadcast function and / or a display function, the function determination unit calls the processing unit. If the control function to be used does not include the broadcast function and the display function, the function determination unit calls the sending unit.

[0168] The processing unit is configured not to send the first message to be processed if the control function to be used includes a broadcast function and / or a display function;

[0169] The first sending unit is used to send the first message to be processed when the control function to be used does not include the broadcast function and the display function.

[0170] As one embodiment of this application, the determination module 720 may include:

[0171] The second sending unit is used to determine whether to send the first message to be processed when the processing logic is specified processing logic or random processing logic.

[0172] As one embodiment of this application, the above-described apparatus may further include:

[0173] The receiving module is used to receive the second message to be processed.

[0174] The capability assessment module determines whether it has the capability to process the second message based on the processing information carried in the second message to be processed. If it determines that it has the capability to process the second message to be processed, the capability assessment module calls the message processing module. If it determines that it does not have the capability to process the second message to be processed, the capability assessment module calls the information sending module.

[0175] The message processing module is used to process the second message to be processed according to the processing information when it is determined that it has the ability to process the second message to be processed.

[0176] The information sending module is used to send a processing failure message to the device that generated the second message if it is determined that it does not have the ability to process the second message to be processed.

[0177] As one embodiment of this application, the above processing information may include processing method and device identifier.

[0178] The aforementioned capability assessment module includes:

[0179] The first determining unit is used to determine whether the capability corresponding to the processing method is possessed based on the processing method.

[0180] The second determining unit is used to determine whether the device identifier meets the preset corresponding conditions based on the device identifier;

[0181] The third determining unit is used to determine that it has the ability to process the second message to be processed when it has the capability corresponding to the processing method and the device identifier meets the preset corresponding conditions.

[0182] The fourth determining unit is used to determine that it does not have the ability to process the second message to be processed when it does not have the capability corresponding to the processing method and / or the device identifier does not meet the preset corresponding conditions.

[0183] Figure 8 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8 As shown, the electronic device may include a processor 810, a communications interface 820, a memory 830, and a communication bus 840. The processor 810, communications interface 820, and memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a message processing method. This method includes: generating a first message to be processed; determining whether to send the first message to be processed based on pre-set processing logic; if it is determined that the first message to be processed should be sent, determining the current device based on pre-stored information to be determined, and sending the first message to be processed to the current device, so that the current device, if it determines that the first message to be processed meets preset processing conditions, broadcasts and / or displays the first message to be processed; if it is determined that the first message to be processed should not be sent, broadcasts and / or displays the first message to be processed.

[0184] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0185] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the message processing methods provided by the above methods. The method includes: generating a first message to be processed; determining whether to send the first message to be processed according to pre-set processing logic; if it is determined that the first message to be processed should be sent, determining the current device based on pre-stored information to be determined, and sending the first message to be processed to the current device, so that the current device, if it determines that the first message to be processed meets preset processing conditions, broadcasts and / or displays the first message to be processed; if it is determined that the first message to be processed should not be sent, broadcasts and / or displays the first message to be processed.

[0186] Furthermore, this application also provides a computer-readable storage medium comprising a stored program, wherein the program, when executed, performs the message processing method provided by the methods described above. The method includes: generating a first message to be processed; determining, according to pre-set processing logic, whether to send the first message to be processed; if it is determined that the first message to be processed should be sent, determining the current device based on pre-stored information to be determined, and sending the first message to be processed to the current device, so that the current device, if it determines that the first message to be processed meets preset processing conditions, broadcasts and / or displays the first message to be processed; if it is determined that the first message to be processed should not be sent, broadcasts and / or displays the first message to be processed.

[0187] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0188] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0189] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A message processing method, characterized in that, The method includes: Generate the first message to be processed; According to a pre-set processing logic, it is determined whether to send the first pending message; the step of determining whether to send the first pending message according to the pre-set processing logic includes: when the processing logic is a priority processing logic, determining the control function to be used, wherein the priority processing logic is the logic of prioritizing the smart home appliance that generated the first pending message to process the first pending message; when the control function to be used includes a broadcast function and / or a display function, not sending the first pending message; when the control function to be used does not include the broadcast function and the display function, sending the first pending message; If it is determined that the first message to be processed is to be sent, the current device is determined based on the pre-stored information to be determined, and the first message to be processed is sent to the current device, so that the current device broadcasts and / or displays the first message to be processed when it is determined that the first message to be processed meets the preset processing conditions; If it is determined that the first pending message will not be sent, the first pending message is broadcast and / or displayed.

2. The message processing method according to claim 1, characterized in that, The information to be determined includes area indication information and / or device indication information; The step of determining the current device based on pre-stored information to be determined includes at least one of the following: When the information to be determined includes the area indication information, the device with processing capability in the area corresponding to the area indication information is selected as the current device according to the area indication information, wherein the area indication information is preset area information or preset designated area information; If the information to be determined includes the device indication information, the device corresponding to the device indication information shall be taken as the current device according to the device indication information. If the information to be determined includes the area indication information and the device indication information, then, based on the area indication information and the device indication information, the device located in the area corresponding to the area indication information and corresponding to the device indication information is taken as the current device.

3. The message processing method according to claim 2, characterized in that, The step of determining the current device based on pre-stored information to be determined further includes: If the device indicated by the area indication information and / or the device indication information is empty, the device with processing capabilities corresponding to the pre-bound user information shall be used as the current device.

4. The message processing method according to claim 1, characterized in that, The step of determining whether to send the first message to be processed according to the pre-set processing logic includes: If the processing logic is a specified processing logic or a random processing logic, then the first message to be processed is sent.

5. A message processing method according to any one of claims 1-4, characterized in that, The method further includes: Receive the second pending message; Based on the processing information carried by the second message to be processed, determine whether the ability to process the second message to be processed is available; If it is determined that the capability to process the second message to be processed is available, the second message to be processed is processed according to the processing information. If it is determined that the device is not capable of processing the second message to be processed, a processing failure message is sent to the device that generated the second message to be processed.

6. A message processing method according to claim 5, characterized in that, The processing information includes the processing method and device identifier; The step of determining whether the system has the capability to process the second message to be processed includes: Based on the processing method, determine whether the capability corresponding to the processing method is possessed; Based on the device identifier, determine whether the device identifier meets the preset corresponding conditions; If the device has the capability corresponding to the processing method and the device identifier meets the preset corresponding conditions, it is determined that the device has the capability to process the second message to be processed. If the device does not have the capability corresponding to the processing method and / or the device identifier does not meet the preset corresponding conditions, it is determined that the device does not have the capability to process the second message to be processed.

7. A message processing device, characterized in that, The device includes: The generation module is used to generate the first message to be processed; The judgment module is used to determine whether to send the first pending message based on a pre-set processing logic. The step of determining whether to send the first pending message based on the pre-set processing logic includes: if the processing logic is a priority processing logic, determining a control function to be used, wherein the priority processing logic is the logic that prioritizes processing the first pending message using the smart home appliance that generated it; if the control function to be used includes a broadcast function and / or a display function, not sending the first pending message; if the control function to be used does not include the broadcast function and the display function, sending the first pending message. The sending module is configured to, when it is determined that the first message to be processed is to be sent, determine the current device based on pre-stored information to be determined, and send the first message to be processed to the current device, so that the current device, when it is determined that the first message to be processed meets the preset processing conditions, broadcasts and / or displays the first message to be processed; The processing module is configured to broadcast and / or display the first message to be processed if it is determined that the first message to be processed will not be sent.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1-6.

9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Prompt information broadcasting method, device and system, storage medium and electronic device

    CN113296729A