Communication method, communication system and electronic equipment
Through the communication method of pushing notification messages between smart home appliances, the problem of users in multi-room homes being unable to view and process notification messages in a timely manner is solved, saving device memory and improving user experience, and avoiding service interruptions caused by cloud dependence.
Patent Information
- Application Number
- CN202310190500.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
In a multi-room home, users cannot view and process notification messages from smart home appliances in all rooms in a timely manner, which affects the user experience. Moreover, the existing technology requires the central control screen device in each room to install the same application, resulting in device memory loss. High occupancy and complicated user operations.
Through a communication method that allows devices in one space to push notification messages to devices in other spaces, users can view and process the messages in other spaces even if they are not in the space where the device that generated the notification message is located, and do not require all devices They all install the same application, and data flow does not rely on cloud devices or the Internet.
It enables users to view and process notification messages in any room in a timely manner, saves device memory space, simplifies user operations, and avoids service interruptions caused by offline cloud devices.
Smart Images

Figure CN118540298A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication method, a communication system and an electronic device. Background Art
[0002] At present, in order to allow users to experience smart life more conveniently through smart home appliances, usually, a smart home appliance has a corresponding application. Users install the application corresponding to the smart home appliance on the central control screen device at home, and then control the corresponding smart home appliance on the application of the central control screen device.
[0003] For a home with multiple rooms, users can install central control screen devices in different rooms. If you want users to see notification messages corresponding to a smart home appliance in every room in the home, you can install the corresponding application for the smart home appliance on the central control screen devices in each room. When the application generates a notification message, the user can see the notification message in each room and process it. If the central control screen device in a room does not have the corresponding application installed, the user will not be able to see the notification message in time in the room, nor will he be able to process the notification message in time, which affects the user experience. Summary of the invention
[0004] The embodiments of the present application provide a communication method, a communication system, and an electronic device, which can push notification messages generated on a device in one space to devices in other spaces. In this way, even if the user is not in the space where the device generating the notification message is located, the notification message can be viewed in other spaces in a timely manner, thereby ensuring the user's usage experience.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a communication method is provided, which is applied to a first device in a communication system, wherein the communication system includes the first device and a second device in a different space from the first device. In the communication method, the first device obtains data and business rules for generating a notification message, wherein the data for generating the notification message is generated by the first device or by a third device other than the first device, thereby indicating that the notification message can be generated by both the first device and the third device. The first device then sends data to the second device based on the business rules so that the second device presents the notification message according to the data.
[0007] In some possible application scenarios, business rules can be configured based on at least one of space, device, user, application, time, and message type. Alternatively, business rules can also be rules generated based on intelligent training rules. In some other possible application scenarios, preset business rules can also be used to realize the flow of notification messages between electronic devices.
[0008] The above-mentioned different spaces can be, for example, separate spaces with different functional attributes (such as kitchen, master bedroom, living room, etc.), or can be, for example, spaces with certain spatial divisions but unclear functional distinctions, for example, the living room and open kitchen belong to different spaces, and the living room and open balcony belong to different spaces.
[0009] Furthermore, the device itself that generates data or generates a notification message will also present a notification message. The second device may be a device that does not generate data or a notification message.
[0010] In the above communication method, the notification message generated on a device in one space can be pushed to devices in other spaces. Even if the user is not in the space where the device generating the notification message is located, the notification message can be viewed in time in other spaces. The notification message can also be filtered on the first device side so that the notification message presented by the second device is more in line with business rules or user needs, thereby ensuring the user experience.
[0011] In an implementable manner of the first aspect, when the business rule indicates that the second device can present a notification message generated by a device in the target space, if the data acquired by the first device is generated by the first device in the target space or by the third device in the target space, the first device sends the data to the second device. When the business rule indicates that the second device can present a notification message generated by the target device, if the first device generating the data or the third device generating the data is the target device, the first device sends the data to the second device. When the business rule indicates that the second device can present a notification message of a target type, if the message type corresponding to the data acquired by the first device is the target type, the first device sends the data to the second device. When the business rule indicates that the second device can present a notification message within a target time range, if the time when the first device acquires the data is within the target time range, the first device sends the data to the second device.
[0012] In the above implementation, the business rules can be configured based on at least one of the device, time, and message type. Thus, personalized message push services based on space, device, time, message type, etc. can be provided to users. For example, the notification messages presented by devices in different spaces are different or not completely the same, and the notification messages presented by devices in different spaces at different time periods are different, so that the presentation of notification messages is more in line with the usage needs of users in different spaces.
[0013] In one possible implementation of the first aspect, the first device can also send data to a fourth device other than the second device in the space where the second device is located based on business rules, wherein the space where the second device is located also includes at least one fourth device, thereby indicating that other devices other than the second device may exist in the same space, and the first device can send data not only to the second device, but also to other devices.
[0014] In the above implementation, the first device can send data to the designated second device according to business rules, or send different notification messages to multiple devices including the second device and the fourth device according to business rules, thereby providing users with personalized message push services to meet their usage needs.
[0015] In an implementation manner of the first aspect, when the first device and the second device are not connected through a cloud device, the first device can send data to the second device based on a business rule; wherein the cloud device is a public device or a private device.
[0016] In the above implementation, the first device and the second device are not connected to the cloud device on the Internet, that is, the data flow between the first device and the second device does not depend on the cloud device or the Internet, and is not affected by the cloud device being offline, which also ensures the user experience.
[0017] In one possible implementation of the first aspect, the first device and the second device may be smart home devices, and the first device and the second device may send data to a smart phone by forwarding through a non-cloud device, so that the smart phone may also present a notification message; or, the first device and the second device may send data to the smart phone through a cloud device, so that the smart phone may also present a notification message.
[0018] In this implementation, the first device and the second device can be used together as a "super terminal", and the smartphone can access the "super terminal" through any one or more of Bluetooth connection, wireless LAN connection and power line carrier communication connection. After the smartphone is connected to the "super terminal", the first device can not only send data to the second device, but also send data to the smartphone, so that the user can also view notification messages on the smartphone. However, the smartphone will not send the data corresponding to the notification message generated by itself to the first device or the second device. This ensures the security of information on the smartphone.
[0019] Furthermore, in this implementation, the business rules can also be configured through a smart phone, and then the smart phone sends the business rules to the above-mentioned "super terminal".
[0020] In an implementation manner of the first aspect, the first device may receive a first control instruction sent by the second device, wherein the first control instruction represents an instruction generated by the second device in response to a user's operation on a notification message. And the first device, in response to the first control instruction, performs the control operation indicated by the first control instruction.
[0021] Alternatively, after receiving the first control instruction, the first device sends the first control instruction to the third device, where the first control instruction is used to instruct the third device to execute the control operation indicated by the first control instruction.
[0022] In this implementation, when the first device generates a notification message, the first device can respond to the first control instruction and perform a corresponding control operation; when the first device does not generate a notification message, the first device can send the first control instruction to the third device that generates the notification message, so that the third device responds to the first control instruction and performs a corresponding control operation. In this way, the operation performed by the user on the notification message on one device can also be synchronized to other devices that generate the notification message, avoiding the user being able to operate the notification message only on the device that generates the notification message, providing a better user experience for the user.
[0023] In an implementation of the first aspect, when the first device has performed a control operation, the first device sends a second control instruction to the second device, wherein the second control instruction is used to instruct to delete the notification message. Alternatively, when the third device has performed a control operation, the first device sends the second control instruction to the second device.
[0024] In this implementation, the second control instruction indicates that the control operation has been completed. When the control operation is completed, the first device can send the second control instruction to the second device that presents the notification message, thereby controlling the second device to delete the notification message or revoke the notification message. This prevents the user from operating the notification message on one device while the notification message continues to be presented on other devices, giving the user the illusion that the notification message has not been processed. It also prevents the user from repeatedly operating the notification message on different devices, providing a better user experience.
[0025] In an implementation manner of the first aspect, data for generating the notification message is generated by an application on the first device or by an application on a third device, wherein the second device is a device on which no application is installed.
[0026] In this implementation, if the data obtained by the first device is generated by an application, the above-mentioned communication method is used, and there is no need for multiple devices in different spaces to install the same application. When an application on a device in a space generates data corresponding to a notification message, the first device can obtain the data and send the data to the second device, thereby achieving the purpose of pushing a notification message on one device to other devices. The device that generates the data has the application corresponding to the notification message installed, while the second device that receives the data may not have the corresponding application installed. In this way, it is possible to avoid installing a large number of applications on each device, which not only saves the device's memory space and ensures the device's performance, but also avoids the user's complicated operation of repeatedly downloading applications, thereby ensuring the user's experience.
[0027] In a second aspect, a communication method is provided, which is applied to a second device in a communication system, wherein the communication system includes a first device and a second device in a different space from the first device. The communication method includes the second device receiving data sent by the first device for generating a notification message, and obtaining a business rule. Thereafter, the second device presents the notification message based on the business rule and the data.
[0028] In some possible application scenarios, business rules can be configured based on at least one of space, device, user, application, time, and message type. Alternatively, business rules can also be rules generated based on intelligent training rules. In some other possible application scenarios, preset business rules can also be used to realize the flow of notification messages between electronic devices.
[0029] The above-mentioned different spaces can be, for example, separate spaces with different functional attributes (such as kitchen, master bedroom, living room, etc.), or can be, for example, spaces with certain spatial divisions but unclear functional distinctions, for example, the living room and open kitchen belong to different spaces, and the living room and open balcony belong to different spaces.
[0030] In the above communication method, the notification message generated on the device in one space can be pushed to the device in other spaces where the notification message is not generated. Even if the user is not in the space where the device that generates the notification message is located, the notification message can be viewed in other spaces in a timely manner; the notification message can also be filtered on the second device side so that the notification message presented by the second device is more in line with business rules or user needs, thereby ensuring the user experience.
[0031] In an implementable manner of the second aspect, when the business rule indicates that the second device can present a notification message generated from a device in the target space, if the data received by the second device is generated by the first device in the target space or by the third device in the target space, the second device presents the notification message according to the data. When the business rule indicates that the second device can present a notification message generated from the target device, if the first device that generates the data or the third device that generates the data is the target device, the second device presents the notification message according to the data. When the business rule indicates that the second device can present a notification message of a target type, if the message type corresponding to the data is the target type, the second device presents the notification message according to the data. When the business rule indicates that the second device can present a notification message within a target time range, if the time when the second device receives the data is within the target time range, the second device presents the notification message according to the data. When the business rule indicates that the second device can present a notification message to a target user, if the user currently operating the second device is the target user, the second device presents the notification message according to the data.
[0032] In the above implementation, the business rules can be configured based on at least one of the device, time, message type, and user. Thus, personalized message push services based on space, device, time, message type, and user can be provided to users. For example, the notification messages presented by devices in different spaces are different or not completely the same, the notification messages presented by devices in different spaces are different in different time periods, and the devices in different spaces present different notification messages to different users, so that the presentation of notification messages is more in line with the usage needs of users in different spaces.
[0033] In an implementation of the second aspect, the second device identifies the voiceprint information of the user currently operating the second device, and if the user currently operating the second device is determined to be the target user based on the identified voiceprint information of the user, the second device presents a notification message based on the data. Alternatively, the second device identifies the face information of the user currently operating the second device, and if the user currently operating the second device is determined to be the target user based on the identified face information of the user, the second device presents a notification message based on the data. Alternatively, the second device identifies the fingerprint information of the user currently operating the second device, and if the user currently operating the second device is determined to be the target user based on the identified fingerprint information of the user, the second device presents a notification message based on the data.
[0034] In this implementation, the second device identifies the identity information of the user operating the device, thereby determining whether to present a notification message, and implementing configuration of different user permissions and user differentiated services, etc. The identity information includes one or more of voiceprint information, face information, and fingerprint information of different users.
[0035] In an implementation manner of the second aspect, when the priority of the notification message generated according to the data is greater than or equal to the preset priority, the second device displays the content of the notification message on the message display page according to the preset duration. Alternatively, when the priority of the notification message generated according to the data is greater than or equal to the preset priority, the second device displays the content of the notification message at the top of the message display page.
[0036] In this implementation, for some notification messages with higher priority and more important, the second device can specially display them, thereby more obviously prompting the user to process them and preventing the user from missing important notification messages.
[0037] In an implementation of the second aspect, when a user is detected nearby, the second device lights up the screen and displays the content of the notification message generated according to the data. When no user is detected nearby, the second device turns off the screen and prompts the notification message currently to be processed through a prompt light.
[0038] In this implementation, the second device can detect whether there is someone or a user nearby through a millimeter wave radar sensor, an infrared sensor, a proximity sensor, etc. And when there is no user nearby, the screen is turned off and only the prompt light is left, so as to avoid the problem of wasting energy when the second device presents a notification message when no one is in the space.
[0039] In an implementation manner of the second aspect, the second device sends a first control instruction to the first device in response to a user's operation on a notification message, wherein the first control instruction is used to instruct the first device that generates data or the third device that generates data to perform a corresponding control operation.
[0040] In this implementation, the user does not need to operate the notification message on the device that generates the notification message, but can operate the notification message on any device that presents the notification message, thereby providing a more convenient operation method for the user.
[0041] In an implementation of the second aspect, the second device receives a second control instruction sent by the first device, and deletes the notification message in response to the second control instruction, wherein the second control instruction indicates that the first device generating the data or the third device generating the data has executed the control operation.
[0042] In this implementation, the second control instruction indicates that the control operation has been completed. When the control operation is completed, the second device deletes the notification message or cancels the notification message. This prevents the user from operating the notification message on one device while the notification message continues to be displayed on other devices, giving the user the illusion that the notification message has not been processed. It also prevents the user from repeatedly operating the notification message on different devices, providing a better user experience.
[0043] In a third aspect, a communication method is provided, which is applied to a communication system, wherein the communication system includes a first device and a second device in a different space from the first device. In the communication method, the first device obtains data and business rules for generating a notification message, and the first device sends the data to the second device based on the business rules. The second device receives the data and presents a notification message according to the data.
[0044] The data is generated by the first device or by a third device other than the first device.
[0045] In an implementable manner of the third aspect, when the business rule indicates that the second device can present a notification message generated by a device in the target space, if the data acquired by the first device is generated by the first device in the target space or by the third device in the target space, the first device sends the data to the second device. When the business rule indicates that the second device can present a notification message generated by the target device, if the first device generating the data or the third device generating the data is the target device, the first device sends the data to the second device. When the business rule indicates that the second device can present a notification message of a target type, if the message type corresponding to the data acquired by the first device is the target type, the first device sends the data to the second device. When the business rule indicates that the second device can present a notification message within a target time range, if the time when the first device acquires the data is within the target time range, the first device sends the data to the second device.
[0046] In an implementation method of the third aspect, the first device can also send data to a fourth device other than the second device in the space where the second device is located based on business rules, wherein the space where the second device is located also includes at least one fourth device, thereby indicating that other devices other than the second device may exist in the same space, and the first device can send data not only to the second device, but also to other devices.
[0047] In an implementation manner of the third aspect, when the first device and the second device are not connected through a cloud device, the first device can send data to the second device based on business rules; wherein the cloud device is a public device or a private device.
[0048] In an implementation manner of the third aspect, data for generating the notification message is generated by an application on the first device or by an application on the third device, wherein the second device is a device on which the application is not installed.
[0049] In an implementation manner of the third aspect, when the priority of the notification message generated according to the data is greater than or equal to the preset priority, the second device displays the content of the notification message on the message display page according to the preset duration. Alternatively, when the priority of the notification message generated according to the data is greater than or equal to the preset priority, the second device displays the content of the notification message at the top of the message display page.
[0050] In one implementation of the third aspect, when a user is detected nearby, the second device lights up the screen and displays the content of the notification message generated according to the data. When no user is detected nearby, the second device turns off the screen and prompts the notification message currently to be processed through a prompt light.
[0051] In an implementation of the third aspect, the second device sends a first control instruction to the first device in response to a user's operation on the notification message. The first device receives the first control instruction, and in response to the first control instruction, performs the control operation indicated by the first control instruction. Alternatively, the first device receives the first control instruction, and sends the first control instruction to a third device that generates the notification message, so that the third device responds to the first control instruction and performs the control operation indicated by the first control instruction.
[0052] In an implementation of the third aspect, when the first device has executed the control operation, the first device sends a second control instruction to the second device, the second device receives the second control instruction, and deletes the notification message in response to the second control instruction. Alternatively, when the third device that generates the notification message has executed the control operation, the first device sends the second control instruction to the second device, the second device receives the second control instruction, and deletes the notification message in response to the second control instruction.
[0053] In a fourth aspect, a communication method is provided, which is applied to a communication system, wherein the communication system includes a first device and a second device in a different space from the first device. In the communication method, the first device obtains data for generating a notification message and sends the data to the second device. The second device receives the data, obtains a business rule, and presents the notification message based on the business rule and the data.
[0054] In an implementable manner of the fourth aspect, when the business rule indicates that the second device can present a notification message generated from a device in the target space, if the data received by the second device is generated by the first device in the target space or by the third device in the target space, the second device presents the notification message according to the data. When the business rule indicates that the second device can present a notification message generated from the target device, if the first device that generates the data or the third device that generates the data is the target device, the second device presents the notification message according to the data. When the business rule indicates that the second device can present a notification message of a target type, if the message type corresponding to the data is the target type, the second device presents the notification message according to the data. When the business rule indicates that the second device can present a notification message within a target time range, if the time when the second device receives the data is within the target time range, the second device presents the notification message according to the data. When the business rule indicates that the second device can present a notification message to a target user, if the user currently operating the second device is the target user, the second device presents the notification message according to the data.
[0055] In an implementation of the fourth aspect, the second device identifies the voiceprint information of the user currently operating the second device, and if the user currently operating the second device is determined to be the target user based on the identified voiceprint information of the user, the second device presents a notification message based on the data. Alternatively, the second device identifies the face information of the user currently operating the second device, and if the user currently operating the second device is determined to be the target user based on the identified face information of the user, the second device presents a notification message based on the data. Alternatively, the second device identifies the fingerprint information of the user currently operating the second device, and if the user currently operating the second device is determined to be the target user based on the identified fingerprint information of the user, the second device presents a notification message based on the data.
[0056] In an implementation manner of the fourth aspect, when the priority of the notification message generated according to the data is greater than or equal to the preset priority, the second device displays the content of the notification message on the message display page according to the preset duration. Alternatively, when the priority of the notification message generated according to the data is greater than or equal to the preset priority, the second device displays the content of the notification message at the top of the message display page.
[0057] In an implementable manner of the fourth aspect, when a user is detected nearby, the second device lights up the screen and displays the content of the notification message generated according to the data. When no user is detected nearby, the second device turns off the screen and prompts the notification message currently to be processed through a prompt light.
[0058] In an implementation of the fourth aspect, the second device sends a first control instruction to the first device in response to a user's operation on the notification message. The first device receives the first control instruction, and in response to the first control instruction, performs the control operation indicated by the first control instruction. Alternatively, the first device receives the first control instruction, and sends the first control instruction to a third device that generates the notification message, so that the third device responds to the first control instruction and performs the control operation indicated by the first control instruction.
[0059] In an implementable manner of the fourth aspect, when the first device has executed the control operation, the first device sends a second control instruction to the second device, the second device receives the second control instruction, and deletes the notification message in response to the second control instruction. Alternatively, when the third device that generates the notification message has executed the control operation, the first device sends the second control instruction to the second device, the second device receives the second control instruction, and deletes the notification message in response to the second control instruction.
[0060] In a fifth aspect, a communication method is provided, which is applied to a communication system, wherein the communication system includes a first device and a second device in a different space from the first device. In the communication method, the first device obtains data and business rules for generating a notification message, and the first device sends data to the second device based on the business rules. The second device receives the data and obtains the business rules, and presents the notification message based on the business rules and the data.
[0061] In the above communication method, after receiving the data sent by the first device, the second device can also present the notification message based on the business rules and data, so as to filter the notification message on both the first device and the second device, and the second device can present the notification message that is more in line with the business rules or user needs. In addition, the notification message generated on the device in one space can also be pushed to the devices in other spaces, so that even if the user is not in the space where the device generating the notification message is located, the notification message can be viewed in time in other spaces.
[0062] In a sixth aspect, a communication system is provided, comprising a first device and a second device in a different space from the first device. The first device is used to obtain data and business rules for generating a notification message, where the data is generated by the first device or by a third device other than the first device. The first device is also used to send data to the second device based on the business rules. The second device is used to receive the data and present the notification message according to the data.
[0063] In a seventh aspect, a communication system is provided, comprising a first device and a second device in a different space from the first device. The first device is configured to obtain data for generating a notification message and send data to the second device, where the data is generated by the first device or by a third device other than the first device. The second device is configured to receive the data and obtain the business rules. The second device is further configured to present the notification message based on the business rules and the data.
[0064] In an eighth aspect, a communication system is provided, comprising a first device and a second device in a different space from the first device. The first device is used to obtain data and business rules for generating a notification message. The first device is also used to send data to the second device based on the business rules. The second device is used to receive the data and obtain the business rules. The second device is also used to present the notification message based on the business rules and data.
[0065] In a ninth aspect, an electronic device is provided, comprising a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes a communication method as in any implementation of the first aspect or the second aspect.
[0066] In a tenth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a communication method as in any implementation of the first aspect or the second aspect.
[0067] In an eleventh aspect, a computer program product is provided. When the computer program product is run on a computer, the computer executes the communication method in any implementation of the first aspect or the second aspect.
[0068] It can be understood that the beneficial effects that can be achieved by the electronic device described in the ninth aspect, the computer-readable storage medium described in the tenth aspect, and the computer program product described in the eleventh aspect can be referred to the beneficial effects in the first aspect, the second device and any possible implementation method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 Schematic diagram of the notification message sending method shown in the embodiment of the present application Figure 1 ;
[0070] Figure 2 A schematic diagram of a communication system shown in an embodiment of the present application;
[0071] Figure 3 Schematic diagram of the settings page shown in the embodiment of this application Figure 1 ;
[0072] Figure 4 Schematic diagram of the settings page shown in the embodiment of this application Figure 2 ;
[0073] Figure 5 Schematic diagram of the notification message sending method shown in the embodiment of the present application Figure 2 ;
[0074] Figure 6 Schematic diagram of the notification message presentation shown in the embodiment of the present application Figure 1 ;
[0075] Figure 7 The communication method shown in the embodiment of the present application is shown in FIG. Figure 1 ;
[0076] Figure 8 Schematic diagram of business rule configuration shown in the embodiment of this application Figure 1 ;
[0077] Fig. 9 Schematic diagram of business rule configuration shown in the embodiment of this application Figure 2 ;
[0078] Fig.10 Schematic diagram of the notification message presentation shown in the embodiment of the present application Figure 2 ;
[0079] Fig.11 Schematic diagram of the notification message presentation shown in the embodiment of the present application Figure 3 ;
[0080] Fig.12 The communication method shown in the embodiment of the present application is shown in FIG. Figure 2 ;
[0081] Fig.13 Schematic diagram of the notification message presentation shown in the embodiment of the present application Figure 4 ;
[0082] Fig.14 Schematic diagram of the notification message presentation shown in the embodiment of the present application Figure 5 ;
[0083] Fig.15 The communication method shown in the embodiment of the present application is shown in FIG. Figure 3 ;
[0084] Fig.16 The communication method shown in the embodiment of the present application is shown in FIG. Figure 4 ;
[0085] Fig.17 Schematic diagram of communication between electronic devices shown in the embodiment of the present application Figure 1 ;
[0086] Fig.18 Schematic diagram of the settings page shown in the embodiment of this application Figure 3 ;
[0087] Fig.19 Schematic diagram of the settings page shown in the embodiment of this application Figure 4 ;
[0088] Fig. 20 Schematic diagram of the settings page shown in the embodiment of this application Figure 5 ;
[0089] Fig.21 Schematic diagram of communication between electronic devices shown in the embodiment of the present application Figure 2 ;
[0090] Fig. 22 A schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0091] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0092] In addition, the business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0093] At present, more and more families are equipped with smart home appliances that can realize various functions, such as smart sweeping robots, smart air purifiers, smart TVs, smart door locks, smart rice cookers, etc. In order to allow users to experience smart life more conveniently through these smart home appliances, usually, a smart home appliance will have a corresponding application (application, APP) (hereinafter referred to as application). Users download the APP corresponding to these smart home appliances on the terminal devices in the home (such as central control screen devices, etc.), so as to control the corresponding smart home appliances on the APP of the central control screen device. For example, the user controls the charging of the smart sweeping robot on APP1, and the user sets the timing time for the smart rice cooker on APP2. In addition to controlling the corresponding smart home appliances, the APP on the central control screen device can also display notification messages about smart home appliances, such as the notification message provided by APP2 showing that the smart rice cooker has completed its work and is in a warm state; or the notification message provided by APP3 shows that the smart door lock is not closed, etc.
[0094] For a home with multiple rooms, users can install central control screen devices in different rooms. In order to allow users to receive notification messages about various smart home appliances in different rooms, some current solutions require the installation of corresponding APPs on central control screen devices in different rooms for the same smart home appliance. Therefore, when the status of a smart home appliance changes and triggers the APP to generate a notification message, the corresponding notification message will be displayed on the central control screen devices in different rooms.
[0095] For example, see Figure 1 As shown in (a), the living room, kitchen and bedroom of the home are equipped with central control screen devices. In order to control the sweeping robot and receive notification messages corresponding to the sweeping robot in time, it is necessary to install the APP1 corresponding to the sweeping robot on the central control screen device in the living room, the central control screen device in the kitchen and the central control screen device in the bedroom. And, log in the same account on the APP1 of each central control screen device. Figure 1 As shown in (b) in FIG. 1 , when the battery of the sweeping robot is low, APP1 on each central control screen device will generate a notification message and display it on each central control screen device. However, the central control screen device without the APP1 installed cannot display the corresponding notification message.
[0096] Moreover, in this solution, usually one of the multiple central control screen devices sends the notification message generated by the APP to the cloud device, and then the cloud device forwards the notification message to other central control screen devices in the home.
[0097] In the above solution, if you want users to view notification messages corresponding to a smart home appliance in every room in the home, you need to install the APP corresponding to the smart home appliance on the central control screen device in each room. When the APP generates a notification message, the user can view the notification message in each room and process the notification message.
[0098] If the central control screen device in a room does not have the corresponding APP installed, the user in the room will not be able to view the notification message in time, nor will it be able to process the notification message in time, thus affecting the user experience.
[0099] If there are many types of smart home appliances at home, multiple apps need to be installed on each central control screen device, which will occupy a large amount of memory space of the central control screen device and affect the performance of the central control screen device. In addition, multiple apps are installed on each central control screen device, requiring users to repeatedly download and install them on different central control screen devices, thus affecting the user experience.
[0100] In addition, when a notification message on a central control screen device is forwarded to other central control screen devices, each central control screen device needs to communicate with the cloud device, that is, each central control screen device needs to be connected to the Internet. It can be seen that this method of forwarding notification messages depends on the cloud device or the Internet. Once the cloud device is offline, the notification message cannot be forwarded, which will also affect the user experience.
[0101] Based on the above content, an embodiment of the present application provides a communication method. In the communication method, the first device first obtains data and business rules for generating a notification message, and then sends data to a second device in a different space from the first device based on the business rules, and the second device presents the notification message based on the data. Alternatively, the first device may also first send the obtained data for generating a notification message to a second device in a different space from the first device, and the second device obtains the business rules and presents the notification message based on the business rules and the received data. Among them, the notification message obtained by the first device may be generated by the first device, or may be generated by a third device other than the first device.
[0102] The communication method provided in the embodiment of the present application can push notification messages generated on a device in one space to devices in other spaces. Even if the user is not in the space where the device generating the notification message is located, the user can promptly view the notification message in other spaces and process the notification message in a timely manner. The notification message can also be filtered on the first device side or the second device side, so that the notification message presented by the second device is more in line with business rules or user needs, thereby ensuring the user experience.
[0103] It can be understood that if the above notification message is generated by an APP on a device in a space, then by adopting the above communication method, there is no need to install the same APP on devices in different spaces, thereby avoiding the installation of a large number of APPs on each device. It not only saves the memory space of the device and ensures the performance of the device, but also avoids the complex operation of users repeatedly downloading APPs, thereby ensuring the user's usage experience.
[0104] The communication method provided in the embodiment of the present application can be applied to a communication system. The communication system may include multiple electronic devices 100. The multiple electronic devices 100 can communicate with each other through networking based on Bluetooth, wireless local area network, etc. For example, the networking between multiple electronic devices 100 based on wireless local area network is described in detail. Figure 2 As shown in (a), the communication system includes a router 200. Among them, multiple electronic devices 100 are respectively connected to the router 200, and use the wireless fidelity (wireless-fidelity, Wi-Fi) local area network provided by the router 200. Multiple electronic devices 100 can belong to different spaces respectively. Among them, the electronic device 100 belongs to a certain space, which means that the electronic device 100 is in the current space for a long time (such as several months, a year, several years, etc.) and will not be moved to other spaces. In this case, the electronic device 100 can be associated with the space in which it is located, and the electronic devices 100 can identify each other through device identification, etc., or determine the electronic devices 100 belonging to different spaces through device identification, etc.
[0105] In some embodiments, see Figure 2 As shown in (b), when multiple electronic devices 100 are networked based on a wireless local area network, they can further form a trusted communication network based on a distributed soft bus. In addition, multiple electronic devices 100 can transfer and share data using the distributed soft bus.
[0106] Among them, the distributed soft bus can refer to the software connection method between different electronic devices realized through near-field communication, such as Hongmeng system ( Near field communication between different electronic devices can be the same type of communication or different types of communication. The distributed soft bus can serve as a unified base for multiple electronic devices in the above communication network, providing a unified distributed communication capability for the interconnection between electronic devices, enabling rapid discovery and connection of electronic devices, and efficient distribution of tasks and data transmission.
[0107] For example, a home may include multiple spaces such as a living room, a master bedroom, a second bedroom, a kitchen, a porch, and a bathroom. Each of the multiple electronic devices 100 may belong to the living room, the master bedroom, the second bedroom, the kitchen, the porch, and the bathroom. Each device is connected to a wireless local area network in the home, and is connected to each other through a distributed soft bus to form a communication network.
[0108] In the communication network formed by the distributed soft bus, the data flow between multiple electronic devices 100 is realized by the distributed soft bus, and the multiple electronic devices 100 do not need to connect to the cloud device in the Internet, that is, they are not dependent on the cloud device or the Internet, and are not affected by the cloud device being offline, thereby ensuring the user experience. Among them, the cloud device can be a private device or a public device.
[0109] In some embodiments, multiple electronic devices 100 can communicate based on a distributed database when a communication network is formed based on a wireless local area network and a distributed soft bus. The distributed database can share data with multiple electronic devices 100, and the distributed soft bus can provide a channel for data flow or data sharing.
[0110] For example, the plurality of electronic devices 100 may be respectively equipped with the same operating system (such as Hongmeng system ( OS)). When the multiple electronic devices 100 based on the same operating system form a communication network and communicate based on a distributed database, each electronic device 100 can display relevant information of other electronic devices 100 in addition to the relevant information of the device itself. Optionally, the multiple electronic devices 100 can also be electronic devices equipped with other operating systems. The types of operating systems installed on the multiple electronic devices 100 can be the same or different, but data can be transferred or shared within the formed local area network. In addition, the electronic device can send data to the distributed database through a content provider (ContentProvider).
[0111] Based on this, in some possible application scenarios, in order to enhance the user experience, the user can configure the business rules for notification message push or presentation on any electronic device 100 in the above communication system, wherein the business rules can be configured based on different spaces, can be configured based on different users, can be configured based on message types, or can be configured based on individual applications or application groups. It is understandable that in some other possible application scenarios, the notification message flow between electronic devices can be directly performed without using business rules, or the business rule configuration interface is not opened to the user, and the notification message flow between electronic devices is realized by using preset business rules.
[0112] For example, the user can enter the notification message setting page on the device 101 in the living room. Figure 3 As shown, in addition to displaying the notification message configuration options of device 101 (such as the living room device) on the setting page, the notification message configuration options of other electronic devices 100 (such as device 102 in the master bedroom, device 103 in the second bedroom, device 104 in the kitchen, etc.) belonging to the same space or different spaces as device 101 can also be displayed. Different spaces can be, for example, separated spaces with different functional attributes (such as kitchen, master bedroom, living room, etc.), or can be, for example, spaces with certain spatial divisions but insignificant functional distinctions, such as a living room and an open kitchen belonging to different spaces, and a living room and an open balcony belonging to different spaces.
[0113] Among them, the user can check options of different message types in the notification message configuration options. For example, the user checks the alarm and security options in the notification message configuration options corresponding to device 102, which means that the business rules configured by the user for the device in the master bedroom are: sending notification messages of at least one of the alarm and security categories to the device in the master bedroom; or, the user checks the alarm, security, general, prompt, and recommendation options in the notification message configuration options corresponding to device 101, which means that the business rules configured by the user for the device in the living room are: sending notification messages of at least one of the alarm, security, general, prompt, and recommendation categories to the device in the living room.
[0114] For further example, see Figure 4 As shown, the user can also check the notification message configuration options corresponding to device 102, device 103, device 104, etc. for a family member or user (such as dad) on the above setting page. For example, on the page corresponding to family member-dad, the user checks the alarm, security, and prompt options in the notification message configuration options corresponding to device 102, and checks the alarm, security, general, prompt, and recommendation options in the notification message configuration options corresponding to device 101, which means that the user configures the business rule for family member-dad as follows: family member-dad can view at least one notification message of the alarm, security, and prompt categories on the device in the master bedroom, and can view at least one notification message of the alarm, security, general, prompt, and recommendation categories on the device in the living room.
[0115] In some possible application scenarios, after the user configures the business rules such as the above on any electronic device 100 in the above communication system, the electronic device 100 configured with the business rules will send the business rules to the distributed database, so that other electronic devices 100 in the communication system can also obtain the business rules from the distributed database. In addition, in some other possible application scenarios, if different business rules need to be configured for different family members or users, the user can also enter the information of different family members or different users on any electronic device 100 in the communication system, such as facial images, fingerprint information, voiceprint information, etc. The electronic device 100 that enters the user information will then send the user information to the distributed database, so that other electronic devices 100 in the communication system can obtain the user information from the distributed database, identify the user currently using the device based on the user, and present the notification message according to the business rules corresponding to the user, etc.
[0116] It can be understood that the business rules can be selective rules such as those determined in some of the aforementioned examples, or can be rules generated based on intelligent training rules. For example, the intelligent rules indicate that notification messages related to a certain type of home smart device are displayed on an electronic device 100 that is closer to the smart device, or displayed on an electronic device 100 in the space where the user is currently located, etc.
[0117] In some embodiments, the above-mentioned communication system may include a device with a control role or a management role. For example, an electronic device with higher performance and larger memory space may be equipped with a distributed database as a central device for sending notification messages. When other electronic devices generate notification messages, they can send data corresponding to the notification message to the distributed database of the central device, and the central device will forward the data corresponding to the notification message in the distributed database to other electronic devices that need to present the notification message. The central device can be one of the multiple electronic devices 100 that can be used to present the notification message, or it can be another device different from the multiple electronic devices 100. When the central device is also one of the multiple electronic devices 100, the multiple electronic devices 100 may include a control device and multiple controlled devices. Optionally, there may be multiple central devices in the communication system. In some possible application scenarios, business rules can also be configured on the central device, and the central device sends business rules to other devices.
[0118] For example, see Figure 5As shown, the device 101 in the living room is a central device. After the APP2 corresponding to the smart rice cooker on the device 104 in the kitchen generates a notification message, the device 104 sends the data corresponding to the notification message to the distributed database on the device 101. The device 101 then obtains the data corresponding to the notification message from the distributed database, and sends the data corresponding to the notification message to the device 102 in the master bedroom, the device 103 in the second bedroom, etc. based on the business rules, so that the devices 102, 103, etc. can also present the notification message according to the data. Alternatively, the device 101 obtains the data corresponding to the notification message from the distributed database, and sends the data corresponding to the notification message to the devices 102, 103, etc., so that the devices 102, 103, etc. can present the notification message according to the data based on the business rules.
[0119] In other embodiments, if multiple electronic devices 100 in multiple different spaces have higher performance and larger memory space, then each of the multiple electronic devices 100 can be equipped with a distributed database, and the distributed databases on each electronic device 100 are interconnected to achieve purposes such as data sharing.
[0120] In some embodiments, system applications are pre-installed in multiple electronic devices 100, such as a notification center, a setting center, etc. The push and presentation of notification messages between electronic devices 100 can be implemented based on the notification center of each electronic device 100, and the setting of business rules can be implemented based on the setting center of each electronic device 100.
[0121] For example, the user can configure the business rules for notification message push in the setting center on the device 104, and in some possible application scenarios, the device 104 can also save the business rules in a distributed database. Figure 6As shown, when APP2 on device 104 generates a notification message, device 101 will obtain the data corresponding to the notification message and present the notification message according to the data in the notification center, and send the data corresponding to the notification message to devices 102 and 103, and devices 102 and 103 will also present the notification message according to the data in the notification center. Alternatively, in some possible application scenarios, after APP2 on device 104 generates a notification message, device 104 can send the data corresponding to the notification message to a distributed database, and device 101 can obtain the data corresponding to the notification message from the distributed database, and present the notification message according to the data in the notification center, and send the data corresponding to the notification message to devices 102 and 103, and devices 102 and 103 will also present the notification message according to the data in the notification center. Among them, the notification center can process the data corresponding to the notification message (i.e., distributed data) obtained by the device, and draw a notification page (i.e., user interface (UI)), so as to present the content of the notification message on the notification page.
[0122] In some embodiments, the functions of the notification center described above can be implemented in multiple electronic devices 100 by setting a UI operation layer and a notification management layer, wherein the notification management layer can specifically implement the function of processing the data corresponding to the notification message, and the UI operation layer can specifically implement the function of drawing the notification page.
[0123] It is understandable that the data corresponding to the notification message described above may be generated by the electronic device 100 itself or by the APP of the electronic device 100, and the APP may be a system application on each device or other application on each device other than the system application, for example, a third-party application such as a device application for controlling smart home appliances, an entertainment application, or a social application. Furthermore, the notification message may be a system message of the electronic device 100 or an application message.
[0124] In some embodiments, after acquiring the data corresponding to the notification message, the electronic device responsible for forwarding the notification message can also determine whether it can present the notification message according to business rules, or determine how to present the notification message according to business rules.
[0125] The communication network in the above embodiment can be configured by a technician or a user after multiple electronic devices 100 are installed in their respective spaces. The technician or the user associates the multiple electronic devices 100 with their respective spaces and connects the multiple electronic devices 100 to a local area network covering multiple spaces. For example, the technician configures the device 101 as a living room device, that is, associates the device 101 with the living room.
[0126] In other embodiments, the above-mentioned communication network may also be composed in the form of a "super terminal", where one of the multiple electronic devices 100 scans or adds other devices. Among them, "super terminal" can be used to represent a collection of multiple electronic devices 100 using the same wireless local area network in the above-mentioned communication network. In some possible application scenarios, after the "super terminal" is formed, multiple electronic devices 100 in the "super terminal" can also be connected through a distributed soft bus. It can be understood that the "super terminal" can also be expressed as other words, and does not constitute the only way to limit the above-mentioned communication network or communication system in the embodiments of the present application.
[0127] In the above communication system, multiple electronic devices may belong to multiple different spaces respectively, or some of the multiple electronic devices belong to one space, while the other electronic devices belong to other different spaces. That is, one electronic device may be set in each of the multiple spaces, or multiple electronic devices may be set respectively. Business rules may represent rules for message push based on at least one configuration of space, device, user, application, time, and message type. In some embodiments, when a first device among multiple electronic devices generates a notification message, the first device may forward the data corresponding to the notification message to a second device in a different space from the first device based on business rules, or, when a third device other than the first device among multiple electronic devices generates a notification message, the first device may forward the data corresponding to the notification message to a second device in a different space from the first device based on business rules, wherein the first device and the third device may be in the same space or in different spaces. The second device that receives the data presents the notification message. In some other embodiments, when a first device among multiple electronic devices generates a notification message, the first device may forward the data corresponding to the notification message to a second device in a different space from the first device, and the second device that receives the data may present the notification message based on business rules. Alternatively, when a third device other than the first device among multiple electronic devices generates a notification message, the first device may forward the data corresponding to the notification message to a second device in a different space from the first device, and the second device that receives the data may present the notification message based on business rules.
[0128] When the communication method in the embodiment of the present application is implemented based on the above communication system, the notification message generated on the device in one space can be pushed to the devices in other spaces. In this way, even if the user is not in the space where the device generating the notification message is located, the notification message can be viewed in time in other spaces and processed in time, thereby ensuring the user experience.
[0129] It can be understood that if the above notification message is generated by an APP on a device in a space, then by adopting the above communication method, there is no need to install the same APP on devices in different spaces, thereby avoiding the installation of a large number of APPs on each device. It not only saves the memory space of the device and ensures the performance of the device, but also avoids the complex operation of users repeatedly downloading APPs, thereby ensuring the user's usage experience.
[0130] In addition, if the devices in multiple spaces form a communication network through a wireless LAN and a distributed soft bus, then the notification message can be forwarded and pushed without connecting to the cloud device in the Internet, that is, the forwarding and pushing of notification messages does not depend on the cloud device or the Internet, and is not affected by the cloud device being offline, which also guarantees the user experience. It can be understood that the use of a distributed soft bus to implement the above-mentioned non-Internet-dependent communication system can be used as a specific example, but in addition to this implementation architecture, other technologies can also be used to solve similar scenario problems.
[0131] The electronic device 100 in the above communication system has a message prompt function. For example, the electronic device 100 may have a display screen and can display notification messages, etc. Based on this, the electronic device 100 may be a central control screen device, a smart display screen, a smart screen, a smart touch screen, a tablet computer, a laptop computer, etc. For another example, the electronic device 100 may also have a voice prompt function and can give voice prompts for notification messages, etc. Based on this, the electronic device 100 may be a device such as a smart speaker.
[0132] The following takes the multiple electronic devices 100 including the first device and the second device as an example to illustrate the communication method in the embodiment of the present application, wherein the second device and the first device belong to different spaces. Figure 7 As shown, the communication method may include the following steps S701-S703.
[0133] S701. The first device obtains a business rule and data for generating a notification message.
[0134] The notification message may be generated by the first device or by a third device other than the first device. When the third device generates a notification message, the first device may obtain the data for generating the notification message from the third device, or in some possible application scenarios, after the third device generates a notification message, the data for generating the notification message may be sent to a distributed database, and the first device may then obtain the data for generating the notification message from the distributed database.
[0135] In the following embodiments, data used to generate a notification message may be referred to as data corresponding to the notification message. A device that generates a notification message may also generate data corresponding to the notification message. Pushing or sending a notification message may mean pushing or sending data corresponding to the notification message.
[0136] In some embodiments, the notification message may be an application message generated by an APP on the first device or the second device, wherein the APP may include at least a third-party application or a system application, or the notification message may be a system message on the first device or the second device, etc.
[0137] Business rules may represent rules for message push or message presentation based on at least one of application, device, space, time, user, and message type. Also, in some embodiments, since the first device and the second device may be equipped with the same operating system, respectively, and communicate based on a distributed database, the first device and the second device may display not only relevant information of the device itself, but also relevant information of other devices. Furthermore, the above-mentioned business rules may be configured on any device in multiple spaces, for example, on the first device, or on any second device. In addition, on any device, not only business rules related to the device itself but also business rules related to other devices may be configured.
[0138] For example, when the business rules are configured based on space or equipment, corresponding business rules can be configured for equipment in different spaces, or corresponding business rules can be configured for different equipment. Figure 8 As shown in (a), device A in the living room can be configured to push notification messages; device B in the kitchen can be configured not to push notification messages or not to present notification messages; device C in the master bedroom and device D in the children's room can be configured to push notification messages or present notification messages, respectively. Or, see Figure 8 As shown in (b), for device A in the living room, it can also be configured not to push or present notification messages generated by device B in the kitchen, but to push or present notification messages generated by other devices; for device B in the kitchen, it can also be configured not to push or present notification messages generated by device C in the master bedroom, but to push or present notification messages generated by other devices. In this configuration, users can configure corresponding business rules for devices in different spaces according to their needs, so as to provide users with space-differentiated services.
[0139] In addition, when the business rules are based on device configuration, the business rules of the device can also be configured according to the device capabilities, performance, etc. of the device to be configured. For example, for the device B in the kitchen with weak performance that does not support the installation of APP1, it can be configured to push or present the notification message generated by APP1; or for the device A in the living room with notification display capability, it can be configured to push or present the notification message.
[0140] For example, when the business rules are configured based on time, the do not disturb time or do not disturb mode can be configured for different devices or devices in different spaces. Figure 8 As shown in (c), since device A is set in the living room, recommending or presenting notification messages usually does not affect the rest of family members, etc. Therefore, for device A in the living room, the do not disturb time can be configured; and since device D is set in the children's room, recommending or presenting notification messages when children are resting may affect children's rest. Therefore, for device D in the children's room, the do not disturb time that can be configured is the time when children usually rest, etc. If the time when the notification message is obtained is within the target time range (i.e., non-do not disturb time), device D can receive or present the notification message, otherwise, device D will not present the notification message. Alternatively, for storage rooms or vacant rooms that are unmanned for a long time, the do not disturb mode can be directly configured, so that the devices in such rooms will not recommend notification messages. In such a configuration method, users can configure the notification messages pushed by devices in different spaces to be different or not completely the same according to their own needs, which is more in line with the user's usage needs in different spaces. For example, a family member works from home in the study. Since the device in the study is set with a do not disturb time period, during the office, the notification message generated by other devices when another family member is doing housework will not be received.
[0141] Exemplarily, when the business rules are configured based on the message type, the message types for receiving or presenting notification messages can be configured for different devices. For example, device A in the living room can be configured to push or present notification messages of the alarm, security, prompt and recommendation types; device B in the kitchen can be configured to push or present notification messages of the alarm and security types; device C in the master bedroom can be configured to push or present notification messages of the alarm and security types; device D in the children's room can be configured to push or present notification messages of the prompt type. In such a configuration method, users can also configure the types of notification messages pushed by devices in different spaces to be different or not completely the same according to their own needs, which is more in line with the user's usage needs in different spaces.
[0142] Exemplarily, when the business rules are based on user configuration, the rules for receiving the presentation notification message can be configured for different users. Fig. 9 As shown in (a), for the "grandfather" among the family members, the device A in the living room, the device B in the kitchen, the device C in the master bedroom, and the device D in the children's room can all be configured to push or present notification messages of the prompt and recommendation types; see Fig. 9 As shown in (b), for the "mom" among the family members, the device A in the living room, the device B in the kitchen, the device C in the master bedroom, and the device D in the children's room can all be configured to push or present notification messages of the alarm, security, prompt, and recommendation types. In such a configuration, corresponding business rules can be configured for devices in different spaces for different users. For example, notification messages of the alarm and security types will not be pushed or presented to the elderly and children at home, so as to avoid the elderly and children from operating them incorrectly, so that other people in the family cannot be informed of such notification messages in a timely manner. In this way, differentiated services can be provided to users, and the operation permissions of different users can be configured to better meet the usage needs of different users in different spaces.
[0143] Exemplarily, when the business rules are based on application configuration, the rules for device reception and presentation of notification messages can be configured for notification messages generated by different applications or notification messages generated by applications in different groups. For example, for APP1, the device A in the living room, the device B in the kitchen, the device C in the master bedroom, and the device D in the children's room can all be configured to push or present the notification message generated by the APP1; for APP2, the device A in the living room and the device B in the kitchen can all be configured to push or present the notification message generated by the APP1, while the device C in the master bedroom and the device D in the children's room can all be configured not to push or present the notification message generated by the APP1. For another example, for application group 1, the device A in the living room, the device B in the kitchen, the device C in the master bedroom, and the device D in the children's room can all be configured to push or present the notification message generated by the APP in the application group 1; for application group 2, the device A in the living room, the device B in the kitchen, the device C in the master bedroom, and the device D in the children's room can all be configured not to push or present the notification message generated by the APP in the application group 2. In this configuration method, corresponding business rules can be configured for the device for different applications or different groups of applications, which can provide users with differentiated application services and better meet the user's usage needs in different spaces.
[0144] In some embodiments, referring to the various configuration methods of the above-mentioned business rules, the business rules can also be configured based on any two, three, four, five or all of the application, device, space, time, user and message type.
[0145] The above-mentioned alarm notification messages can be used to send alarms, warnings and other prompts to users when special situations occur in different spaces. For example, if there is a gas leak in the kitchen and the gas alarm detects a high gas concentration, the APP corresponding to the gas alarm installed on device B in the kitchen will generate a gas alarm notification message, which is an alarm notification message.
[0146] The above security notification messages can be used to send alarms, warnings and other prompts to users when security problems occur in different spaces. For example, when a smart door lock detects that someone has tried to enter and exit the key or fingerprint multiple times but all failed, the APP corresponding to the smart door lock installed on device A in the living room will generate a door lock abnormality notification message, which is a security notification message.
[0147] The above-mentioned prompt notification messages can be used to send prompt information about smart home appliances, smart devices, etc. in different spaces to users, or send prompt information generated by the APP on the first device or the APP on the second device to users. For example, when the battery of the sweeping robot in the living room is low, the sweeping robot will automatically go to charge, and the APP corresponding to the sweeping robot installed on device A in the living room will generate a low battery notification message to prompt the user. At this time, the notification message is a prompt notification message. Or, when the smart rice cooker in the kitchen completes the cooking task and is keeping warm, the APP corresponding to the smart rice cooker installed on device B in the kitchen will generate a cooking completion notification message, and the cooking completion notification message is a prompt notification message.
[0148] The above-mentioned recommendation notification messages can be used to send recommendation information about smart home appliances, smart devices, etc. in different spaces to users, or send recommendation information generated by the APP on the first device or the APP on the second device to users. For example, the user selects the corresponding control program on the APP corresponding to the sweeping robot installed on device A to control the sweeping robot. After that, during the operation of the sweeping robot, the APP will automatically recommend a more suitable control program to the user according to the operation status of the sweeping robot, thereby generating a recommendation notification message.
[0149] The types of notification messages in the embodiments of the present application are not limited to the above-mentioned alarm, security, and prompt notification messages. In some other embodiments, the types of the above notification messages may also include advertisements, general types, and the like. Moreover, the notification messages of various types are not limited to the contents described in the above embodiments, but may also be other contents, such as notification messages generated by the APP corresponding to the porch doorbell, notification messages generated by the APP corresponding to the monitoring of the children's room, etc., which are not specifically limited in the embodiments of the present application.
[0150] In some embodiments, the types of notification messages can be pre-configured for different APPs, different notification messages, etc., or the user can classify different notification messages and configure corresponding types. This is not specifically limited in the embodiments of the present application.
[0151] In some possible application scenarios, after the business rules are configured on other devices except the first device, the device responsible for configuring the business rules will send the configured business rules to the distributed database, and the first device will then obtain the corresponding business rules from the distributed database. If the business rules are configured on the first device, the first device will also send the configured business rules to the distributed database so that other devices can also obtain the business rules from the distributed database.
[0152] S702: The first device sends data for generating a notification message to the second device based on a business rule.
[0153] Exemplarily, when the business rule indicates that the second device can present a notification message generated by a device in the target space, if the data corresponding to the notification message obtained by the first device (i.e., the data used to generate the notification message) is generated by the first device in the target space or by a third device other than the first device in the target space, the first device sends the data corresponding to the notification message to the second device. For example, the notification message is generated by device B in the kitchen, and if the notification message that can be presented by device C in the master bedroom includes the notification message from the kitchen device, then device A in the living room can send the data corresponding to the notification message to device C in the master bedroom.
[0154] Exemplarily, when the business rule indicates that the second device can present a notification message generated by the target device, if the first device that generates the data corresponding to the notification message or the third device that generates the data corresponding to the notification message is the target device, the first device sends the data corresponding to the notification message to the second device. For example, if the notification message is generated by device C, and if the notification message that device B can present includes the notification message from device C, then device A can send the data corresponding to the notification message to device B.
[0155] Exemplarily, when the business rule indicates that the second device can present a notification message of the target type, if the message type of the data corresponding to the notification message obtained by the first device is the target type, the first device sends the data corresponding to the notification message to the second device. For example, the type of the notification message generated by device C is an alarm type, and if the message types that device B can present include the alarm type, then device A can send the data corresponding to the notification message to device B.
[0156] Exemplarily, when the business rule indicates that the second device can present the notification message within the target time range, if the time when the data corresponding to the notification message is obtained is within the target time range, the first device sends the data corresponding to the notification message to the second device. For example, device A obtains the data corresponding to the notification message generated by device C at 20:00 in the evening. If the target time range for device B to present the notification message is 6:00-22:00, it is obvious that the time when device A obtains the data corresponding to the notification message is within the target time range of device B, then device A can send the data corresponding to the notification message to device B.
[0157] Exemplarily, when the business rule indicates that the second device can present a notification message from the target APP, if the data corresponding to the notification message obtained by the first device comes from the target APP, the first device sends the notification message to the second device. For example, the notification message is generated by APP1 on device C, and if the notification message that device B can present includes the notification message from APP1, then device A can send the data corresponding to the notification message to device B.
[0158] Based on the above content, when the same space includes a second device and at least one fourth device, the first device can send the data corresponding to the notification message only to the second device based on business rules, or send the data corresponding to the notification message to the second device and at least one fourth device respectively. This way of filtering devices based on business rules can also make the second device that presents the notification message more in line with user needs, thereby ensuring the user experience.
[0159] In some embodiments, the data corresponding to the notification message carries identification information. The identification information indicates the source of the notification message and the message type of the notification message, and the identification information may include the device information that generates the notification message, the application information of the APP that generates the notification message, the type information of the notification message, the space information to which the device belongs, etc. Exemplarily, for notification message 1 generated by APP1 on device A to remind the user that the door is not closed, the identification information corresponding to notification message 1 includes the device information of device A, the application information of APP1, and the type information of the prompt class, etc. The first device can send a notification message to the second device based on the identification information and business rules in the notification message.
[0160] Exemplarily, the business rules acquired by device A indicate that device B receives or presents notification messages of the alarm and security categories, device C receives or presents notification messages of the alarm and security categories, and device D receives or presents notification messages of the prompt category. Also, the identification information of the notification message acquired by device A includes device information of device A, application information of APP1, and type information of the alarm category, and the identification information of the notification message indicates that the notification message comes from APP1 of device A and is a notification message of the alarm category. At this time, device A will send the data corresponding to the notification message to device B and device C, but will not send the data corresponding to the notification message to device D.
[0161] Exemplarily, the business rules acquired by device A indicate that device B receives or presents notification messages of the alarm and security categories from device A, device C, and device D, device C receives or presents notification messages of the alarm and security categories from device A, device B, and device D, and device D receives or presents notification messages of the prompt category from device A, device B, and device C. In addition, the identification information of the notification message acquired by device A includes the device information of device B, the application information of APP2, and the type information of the alarm category, and the identification information of the notification message indicates that the notification message comes from APP2 of device B and is a notification message of the alarm category. At this time, device A will send the data corresponding to the notification message to device C, but will not send the data corresponding to the notification message to devices B and D.
[0162] It is understandable that the second device receiving the notification message data does not mean that it does not have the function of generating the notification message. The second device may have the function of generating the notification message, or it may not have the function of generating the notification message. When it does not have the function of generating the notification message, the second device cannot generate the notification message. When it has the function of generating the notification message, the second device may generate the notification message, or it may not generate the notification message.
[0163] In addition, when the notification message is generated by an APP, the second device may or may not have installed the APP corresponding to the notification message. When the APP corresponding to the notification message is not installed, the second device cannot generate the notification message. When the APP corresponding to the notification message is installed, the second device may or may not generate the notification message.
[0164] S703: The second device receives data for generating a notification message sent by the first device, and presents the notification message according to the data.
[0165] The manner in which the second device presents the notification message may include one or more of displaying the specific content of the notification message, issuing a voice prompt, and issuing an alarm sound.
[0166] In some embodiments, the notification message is also configured with corresponding priority information, and the second device can also present the corresponding notification message according to the priority of the notification message. In some possible application scenarios, the priority information of the notification message can be configured on the second device, or it can be carried in the identification information of the notification message. In some other possible application scenarios, the priority information of the notification message can also match the type of the notification message. For example, for an alarm notification message, the priority is higher (for example, greater than or equal to a preset priority); and for a recommendation notification message, the priority is lower (for example, the priority is less than a preset priority), etc.
[0167] For notification messages with higher priority, the second device can present them for a longer time, or present them in a more prominent position on the message display page, such as displaying them at the top of the message display page or the notification display list; while for notification messages with lower priority, the second device can present them for a shorter time, or display them normally on the message display page or the notification display list. Thus, for some notification messages with higher priority and more important, the second device can display them specially, so as to more clearly prompt the user to process them and avoid the user missing important notification messages.
[0168] For example, when device B presents a notification message, if the priority of the notification message generated based on the data is higher, the specific content of the notification message can be displayed at the top of the message display page. For example, notification message 1 reminds the user that the door is not closed, which is a security notification message; notification message 2 reminds the user that an APP program is to be updated, which is a recommendation notification message. The priority of security notification messages is higher than that of recommendation notification messages, so see Fig.10 As shown, device B displays the specific content of notification message 1 at the top of the message display page, or displays the content of notification message 1 at the top and for a longer time (preset duration), such as 10 minutes, 20 minutes, etc.; and displays the specific content of notification message 2 at other locations on the message display page for a shorter time, such as 3 minutes, 5 minutes, etc.
[0169] In some embodiments, when presenting a notification message, the second device will also present an operation control or shortcut key related to the notification message. The user's operation on the notification message may include the user triggering the notification message, triggering the operation control, or selecting the operation control on the second device. After the user operates the notification message, the second device will also send the user's trigger instruction or the corresponding first control instruction to the first device, and the first device will send the trigger instruction or the corresponding first control instruction to the device that generates the notification message, so that the device that generates the notification message performs the corresponding control operation according to the trigger instruction or the corresponding first control instruction, or controls the APP that generates the notification message to implement the corresponding function. When the device that generates the notification message is the first device itself, the first device can respond to the first control instruction to perform the corresponding control operation, or control the APP that generates the notification message to implement the corresponding function. In this way, the user does not need to operate the notification message on the device that generates the notification message, and can operate the notification message on any device that presents the notification message, thereby providing a more convenient operation method for the user.
[0170] For example, see Fig.11 As shown, the specific content of the notification message 3 presented by device C is "The smart rice cooker has cooked successfully, do you want to continue keeping warm?". While presenting the notification message 3, device C can also display the corresponding "yes" control and "no" control. If the user wants to continue keeping warm, the "yes" control can be triggered, so that device C will send a control instruction to device A, and device A will send the control instruction to device B that generates the notification message 3. After receiving the control instruction, device B controls the smart rice cooker in the kitchen to continue keeping warm, or controls the smart rice cooker to continue keeping warm through the APP corresponding to the smart rice cooker. On the contrary, if the user does not want to continue keeping warm, the "no" control can be triggered, so that device C will send a control instruction to device A, and device A will send the control instruction to device B that generates the notification message 3. After receiving the control instruction, device B controls the smart rice cooker in the kitchen to continue keeping warm, or controls the smart rice cooker to power off or shut down through the APP corresponding to the smart rice cooker, so as to control the smart rice cooker not to continue working.
[0171] It is understandable that after device B receives the control instruction and controls the smart rice cooker to continue to keep warm or stop working, device B can also send a message to device A indicating that the control operation has been executed. After device A obtains the message, it sends a second control instruction to the corresponding device C, so that device C cancels the display of notification message 3 or deletes notification message 3. This avoids the situation where after a user operates a notification message on one device, the notification message will continue to be displayed on other devices, giving the user the illusion that the notification message has not been processed, and also avoids the user from repeatedly operating the notification message on different devices, providing a better user experience for the user.
[0172] Alternatively, if device A generates notification message 3, and device C presents notification message 3, when the user triggers the "yes" control, device C will send a first control instruction to device A. After receiving the control instruction, device A controls the smart rice cooker to continue to keep warm, or controls the smart rice cooker to continue to keep warm through the APP corresponding to the smart rice cooker. On the contrary, when the user triggers the "no" control, device C will also send a first control instruction to device A. After receiving the control instruction, device A controls the smart rice cooker to continue to keep warm, or controls the smart rice cooker to power off or shut down through the APP corresponding to the smart rice cooker, thereby controlling the smart rice cooker not to continue working. And, after the smart rice cooker continues to keep warm or does not continue to work, device A sends a second control instruction to device C, so that device C cancels the display of notification message 3 or deletes notification message 3. It is avoided that after the user operates the notification message on one device, the notification message will continue to be presented on other devices, giving the user an illusion that the notification message has not been processed, and it is also avoided that the user repeatedly operates the notification message on different devices, providing a better user experience for the user.
[0173] In addition, in some embodiments, see Fig.12 As shown, in combination with the above content, when a user operates a notification message on a device presenting a notification message, the device determines whether the user's current operation on the notification message supports remote triggering. If remote triggering is not supported, the device will not send the first control instruction to the first device, making the user's operation unresponsive; if remote triggering is supported, the device can determine whether the APP corresponding to the notification message is local. If it is local, the device can directly control the APP to implement the corresponding function according to the first control instruction; if the APP is not local, the device can send the first control instruction to the first device, so that the first device sends the first control instruction to the device where the APP is located, so that the device where the APP is located controls the APP to implement the corresponding function according to the first control instruction; or when the APP is installed on the first device, the first device can directly control the APP to implement the corresponding function according to the first control instruction. And, after the user operates the notification message, the first device can also control the device presenting the notification message to cancel the presentation of the notification message.
[0174] Taking the case where both the first device and the second device are central control screen devices as an example, the above method can realize that a notification message sent from a central control screen device can be displayed, viewed, cleared, and quick operations can be performed on other central control screen devices in different spaces. In addition, the operation performed by the user on the notification message on a central control screen device can also be synchronized to the central control screen device that generates the notification message, so that the user can only operate the notification message on the central control screen device that generates the notification message, providing a better user experience for the user.
[0175] In some embodiments, the second device may present the notification message in the form of a pop-up notification message. Fig.13 As shown in (a) in FIG. 1 , after receiving the data corresponding to the notification message, device B can pop up a message display page, such as a banner, from the top of the current display interface, so as to display the notification message or a brief content of the notification message on the message display page. At the same time, the message display page will also display when the current notification message was received, such as 2 minutes ago, 5 minutes ago, etc.
[0176] In order to prevent the display of the notification message from affecting the user's viewing of the current display interface, device B can wait for a preset time after popping up the message display page. When the display time of the message display page reaches the preset time, or when the user does not perform any operation after the preset time, device B can hide the message display page and display a prompt control with the notification message in a small area at the top of the display interface, for example Fig.13 As shown in (b) in the figure, the user is prompted that there are notification messages that have not been viewed.
[0177] In other embodiments, the second device may also present the notification message using a "Notification Center", which is a system application in the second device, and which may implement UI drawing of a message display page and display different notification messages in the form of multiple "cards" on the message display page.
[0178] Exemplarily, after receiving the data corresponding to the notification message, device B may use the above Fig.13 When the user wants to know the specific content of the notification message, the user can click or trigger the above banner or prompt control, so that device B displays the message display page corresponding to the above "Notification Center". Fig.14 As shown in (a), the message display page corresponding to the "Notification Center" can display multiple message "cards" (also called notification message lists), or message controls, etc. The message "cards" or message controls usually display the specific content of the user's unprocessed notification messages, the source of the message, and the time when the notification message was received.
[0179] If the user wants to process a notification message, the user can click or trigger the corresponding "card" or control, or slide the corresponding "card" or control.
[0180] If the user wants to perform a specific operation on the notification message on the third "card" or control, the user can click the third "card" or control, so that device B further displays the relevant content of the third notification message on the "notification center", for example, Fig.11 The operation controls corresponding to the third notification message shown, etc.
[0181] See also Fig.14 As shown in (b), if the user wants to delete the first notification message after viewing the notification message on the first "card" or control, the user can slide the first "card" or control to the left, so that device B deletes the first notification message on the "Notification Center".
[0182] It can be understood that the above operations on notification messages are only exemplary descriptions and examples. In some other embodiments, users can also use other methods to operate notification messages, and no specific limitations are made in the embodiments of the present application.
[0183] In some embodiments, the device that generates the notification message itself will also present the notification message. Exemplarily, when the notification message is generated by device A, device A will display the notification message on the display interface or in the "Notification Center" while sending the corresponding data of the notification message to device B, device C, and device D. Exemplarily, when the notification message is generated by device B, device B will display the notification message on the display interface or in the "Notification Center" while sending the corresponding data of the notification message to device A. In addition, the notification message can be hidden or canceled after a preset period of time or after a user operation.
[0184] As can be seen from the above content, the communication method in the embodiment of the present application can push notification messages generated on a device in one space to devices in other spaces. Even if the user is not in the space where the device generating the notification message is located, the user can view the notification message in other spaces in a timely manner and process the notification message in a timely manner, thereby ensuring the user experience. In addition, after the first device obtains the notification message to be pushed, the first device can send the notification message to the second device based on the business rules, so that the first device can filter the notification message, send the notification message that meets the business rules or user needs to the corresponding second device, and the notification message presented by the second device will also meet the business rules or user needs.
[0185] Also, in some possible application scenarios, if the notification message obtained by the first device is generated by an APP, the above-mentioned communication method of the embodiment of the present application does not require multiple devices in different spaces to install the same APP. When an APP on a device in a space generates a notification message, the first device can obtain the notification message and send the notification message to the second device, thereby achieving the purpose of pushing a notification message on a device to other devices. The device that generates the notification message has the APP corresponding to the notification message installed, while the second device that receives the notification message may not have the corresponding APP installed. In this way, it is possible to avoid installing a large number of APPs on each device, which not only saves the memory space of the device and ensures the performance of the device, but also avoids the complex operation of users repeatedly downloading APPs, thereby ensuring the user's usage experience.
[0186] Also, in some other possible application scenarios, the first device and the second device form a communication network through a wireless local area network and a distributed soft bus, and there is no need to connect to a cloud device on the Internet. That is, the data flow between the first device and the second device does not depend on the cloud device or the Internet, and is not affected by the cloud device being offline, which also ensures the user experience.
[0187] In addition, in some embodiments, see Fig.15 As shown, after the APP generates a notification message, the first device or the second device can determine whether the APP corresponding to the notification message is pre-configured to be pushed remotely. If it cannot be pushed remotely, the notification message can only be presented on the current device; if it can be pushed remotely, the first device then obtains the data corresponding to the notification message, and determines which second devices the data can be pushed to based on business rules, and then sends the data corresponding to the notification message to the corresponding second device. After the second device receives the data corresponding to the notification message, it presents the notification message based on the data. When the user operates the notification message on a second device, the first device can also control the device presenting the notification message to cancel the presentation of the notification message.
[0188] In the above embodiment, the first device may send the data corresponding to the notification message to the second device based on the business rules. In some other embodiments, after obtaining the data corresponding to the notification message, the first device may directly send the data corresponding to the notification message to the second device, and the second device may present the notification message based on the business rules and the data corresponding to the notification message. Fig.16 As shown, the above communication method may further include the following steps S1601-S1603.
[0189] S1601. The first device obtains data for generating a notification message, and sends the data to the second device.
[0190] The notification message may be generated by the first device or by a third device other than the first device. When the third device generates a notification message, the first device may obtain the data corresponding to the notification message from the third device, or in some possible application scenarios, after the third device generates a notification message, the data corresponding to the notification message may be sent to a distributed database, and the first device may then obtain the data corresponding to the notification message from the distributed database.
[0191] In some embodiments, the notification message may be an application message generated by an APP on the first device or the second device, wherein the APP may include at least a third-party application or a system application, or the notification message may be a system message on the first device or the second device, etc.
[0192] S1602. The second device receives data for generating a notification message sent by the first device, and obtains business rules.
[0193] The above business rules may represent rules for message push or message presentation configured based on at least one of application, device, space, time, user, and message type.
[0194] Furthermore, in some embodiments, since the first device and the second device can be equipped with the same operating system and communicate based on a distributed database, the first device and the second device can display not only the relevant information of the device itself, but also the relevant information of other devices. Furthermore, the above-mentioned business rules can be configured on any device in multiple spaces, for example, on the first device, or on any second device or third device. In addition, on any device, not only the business rules related to the device itself can be configured, but also the business rules related to other devices can be configured.
[0195] After the business rules are configured, the corresponding device will send the configured business rules to the distributed database. Afterwards, other devices can actively obtain the corresponding business rules from the distributed database, or the first device can send the business rules to other devices. Among them, the second device can actively obtain the business rules by monitoring the distributed database. When it is monitored that there are new business rules saved in the distributed database, the second device can obtain the business rules from the distributed database.
[0196] It is understandable that in order to ensure that the acquired business rules are relatively new or to ensure the timeliness of the business rules, the time interval for the second device to monitor the distributed database can be set to be shorter. Alternatively, in some other embodiments, the first device and the second device can also register data change monitoring onChange callbacks respectively, so as to obtain the data corresponding to the business rules or notification messages from the distributed database in a timely manner.
[0197] Exemplarily, after the user configures the business rules on device B, device B sends the business rules to the distributed database. Afterwards, device A obtains the business rules from the distributed database and sends the business rules to device C, device D, etc. In addition, device A will also save the business rules so that notification messages can be presented according to the business rules later. Alternatively, after the user configures the business rules on device B, device B sends the business rules to the distributed database. Afterwards, device A, device C, device D, etc. obtain the business rules from the distributed database so that notification messages can be presented according to the business rules later.
[0198] S1603: The second device presents a notification message based on the business rules and the data used to generate the notification message.
[0199] Exemplarily, when the business rule indicates that the second device can present a notification message generated by a device in the target space, if the data received by the second device is generated by the first device in the target space or by the third device in the target space, the second device presents the notification message according to the data. For example, the notification message is generated by device B in the kitchen, and if the notification message that can be presented by device C in the master bedroom includes the notification message from the kitchen device, then when device C in the master bedroom receives the data corresponding to the notification message, it can present the notification message according to the data.
[0200] Exemplarily, when the business rule indicates that the second device can present a notification message generated by the target device, if the first device that generates the notification message data or the third device that generates the notification message data is the target device, the second device presents the notification message according to the data. For example, the notification message is generated by device C, and if the notification message that device B can present includes the notification message from device C, then after device B receives the data corresponding to the notification message, it can present the notification message according to the data.
[0201] Exemplarily, when the business rule indicates that the second device can present a notification message of a target type, if the message type of the data corresponding to the notification message received by the second device is the target type, the second device presents the notification message according to the data. For example, the type of the notification message generated by device C is an alarm type, and if the message types that device B can present include alarm types, then after device B receives the data corresponding to the notification message, it can present the notification message according to the data.
[0202] Exemplarily, when the business rule indicates that the second device can present the notification message within the target time range, if the time when the second device receives the data corresponding to the notification message is within the target time range, the second device presents the notification message according to the data. For example, device B obtains the data corresponding to the notification message at 20:00 in the evening, and if the target time range in which device B can present the notification message is 6:00-22:00, then after device B receives the data corresponding to the notification message, it can present the notification message according to the data.
[0203] Exemplarily, when the business rule indicates that the second device can present a notification message to the target user, if the user currently operating the second device is the target user, the second device presents the notification message according to the data corresponding to the notification message. For example, device B can present a notification message for the "mom" in the family. If device B detects that the user currently operating device B or near device B is the "mom" in the family after receiving the data corresponding to the notification message, device B can present the notification message according to the data.
[0204] Exemplarily, when the business rule indicates that the second device can present a notification message from the target APP, if the data corresponding to the notification message received by the second device comes from the target APP, the second device presents the notification message according to the data. For example, the notification message is generated by APP1 on device C, and if the notification message that device B can present includes the notification message from APP1, then after device B receives the data corresponding to the notification message, it can present the notification message according to the data.
[0205] In some embodiments, the data corresponding to the notification message carries corresponding identification information. The identification information may include device information that generates the notification message, application information of the APP that generates the notification message, type information of the notification message, etc. Exemplarily, for notification message 1 generated by APP1 on device A to remind the user that the door is not closed, the identification information corresponding to notification message 1 includes device information of device A, application information of APP1, and type information of the prompt class, etc. The second device may present the notification message based on the identification information and business rules in the notification message.
[0206] Exemplarily, the rules related to device B in the business rules obtained by device B are: device B receives notification messages of alarm and security types. Then, when the identification information of the notification message received by device B includes the device information of device A, the application information of APP1, and the type information of the alarm type, since the notification message belongs to the alarm type, device B can present the notification message.
[0207] Exemplarily, the rules related to device C in the business rules obtained by device C are: device C receives notification messages of alarm and security types from device A, device B, and device D. Then, when the identification information of the notification message received by device C includes the device information of device B, the application information of APP2, and the type information of the alarm type, since the notification message comes from device B and the notification message belongs to the alarm type, device C can present the notification message.
[0208] For example, the rules related to device B in the business rules obtained by device B are: push notification messages of alarm, security, reminder and recommendation to family member "Mom". Then, when the identification information of the notification message received by device B includes the device information of device A, the application information of APP1 and the type information of the alarm, if the user currently operating device B is "Mom", since the notification message belongs to the alarm category, device B can present the notification message to "Mom".
[0209] In this case, it is understandable that some smart home appliances or smart devices in the home are only suitable for use by individual family members, and can block related notification messages from other family members. For example, the notification messages generated by the APP corresponding to the smart doorbell can be viewed and operated by family members such as "Dad", "Mom", and "Grandpa", but cannot be viewed and operated by family members such as "Baby" and "Children", thereby preventing children from opening the door on their own and ensuring safety.
[0210] Based on the above, in some embodiments, the second device also needs to determine the identity of the user currently operating the device or the identity of the user near the device, so as to determine whether to push the notification message to the current user. Among them, the way in which the second device determines the user's identity may include one or more of voiceprint recognition, face recognition, fingerprint recognition, and account login. And, before confirming the identity, the user can enter his own identity information or the identity information of other users (such as other family members) on the second device, the third device or the first device, and the device responsible for entering the identity information can send the identity information to other devices. Alternatively, in some possible application scenarios, the device responsible for entering the identity information will send the identity information entered by the user to a distributed database, so that other devices can obtain the identity information of different users from the distributed database, or the first device can also send the identity information of different users in the distributed database to the second device to achieve sharing of user identity information, etc. Exemplarily, the first device or the second device can enter the identity information into the distributed database through ContentProvider.
[0211] The user's identity information includes one or more of the user's voiceprint information, face information, fingerprint information, and account information. In addition, when entering the identity information, the user can also associate the identity information with the identity name, so that when configuring business rules, the user can configure corresponding business rules for different users according to the identity name, realize the configuration of different user permissions and user differentiated services, etc.
[0212] For example, the user can enter the facial information of different family members on device A, and device A sends the facial information of different family members to the second device. Afterwards, the second device that receives the corresponding data of the notification message can recognize the user's face when there is a user operation or a user exists in front of the device, and match it with the acquired facial information, thereby determining the identity of the user currently operating the device.
[0213] For example, a user can enter the voiceprint information of different family members on device B, and device B sends the voiceprint information of different family members to device A, and device A then sends the voiceprint information of different family members to other devices except device B. Afterwards, the second device that receives the corresponding data of the notification message can identify the user's voiceprint based on the user's voice and match it with the acquired voiceprint information when there is a user operation or a user exists in front of the device, thereby determining the identity of the user currently operating the device.
[0214] For example, the user can enter the fingerprint information of different family members on device C, and device C sends the fingerprint information of different family members to device A, and device A then sends the fingerprint information of different family members to other devices except device C. Afterwards, the second device that receives the corresponding data of the notification message can identify the user's fingerprint and match it with the acquired voiceprint information when there is a user operation or a user exists in front of the device, so as to determine the identity of the user currently operating the device.
[0215] For example, the user can enter the account information of different family members on device D, and device D sends the account information of different family members to device A, and device A then sends the account information of different family members to other devices except device D. Afterwards, the second device that receives the corresponding data of the notification message can match the user's currently logged-in account with the acquired voiceprint information, thereby determining the identity of the user currently operating the device.
[0216] In some embodiments, the manner in which the second device presents the notification message may include one or more of displaying the specific content of the notification message, issuing a voice prompt, and issuing an alarm sound. When presenting the notification message, the second device will also present operation controls or shortcut keys related to the notification message. The second device can also present the notification message in the form of a pop-up notification message. The second device can also use the "Notification Center" to present the notification message. And, in other embodiments, the notification message is also configured with corresponding priority information, and the second device can also present the corresponding notification message according to the priority of the notification message. The specific manner in which the second device presents the notification message can refer to the content in the aforementioned embodiment, which will not be repeated here.
[0217] For other contents of the above steps S1601-S1603 in the embodiment of the present application, reference can be made to the contents of steps S701-S703 in the aforementioned embodiment, which will not be repeated here.
[0218] As can be seen from the above content, the communication method in the embodiment of the present application can push notification messages generated on a device in one space to devices in other spaces. Even if the user is not in the space where the device generating the notification message is located, the user can view the notification message in other spaces in a timely manner and process the notification message in a timely manner, thereby ensuring the user experience. In addition, after the second device receives the notification message, the second device presents the notification message based on the business rules, so that the second device can filter the notification message and present the notification message that meets the business rules or user needs.
[0219] Also, in some possible application scenarios, if the notification message obtained by the first device is generated by an APP, the above-mentioned communication method of the embodiment of the present application does not require multiple devices in different spaces to install the same APP. When an APP on a device in a space generates a notification message, the first device can obtain the notification message and send the notification message to the second device, thereby achieving the purpose of pushing a notification message on a device to other devices. The device that generates the notification message has the APP corresponding to the notification message installed, while the second device that receives the notification message may not have the corresponding APP installed. In this way, it is possible to avoid installing a large number of APPs on each device, which not only saves the memory space of the device and ensures the performance of the device, but also avoids the complex operation of users repeatedly downloading APPs, thereby ensuring the user's usage experience.
[0220] Also, in some other possible application scenarios, the first device and the second device form a communication network through a wireless local area network and a distributed soft bus, and there is no need to connect to a cloud device on the Internet. That is, the data flow between the first device and the second device does not depend on the cloud device or the Internet, and is not affected by the cloud device being offline, which also ensures the user experience.
[0221] In some embodiments, after the first device sends a notification message to the second device based on business rules, the second device may also present the notification message based on the business rules again, wherein the business rules adopted by the first device side may be the same as or different from the business rules adopted by the second device side. For example, the first device may determine to which second devices the data corresponding to the notification message is sent based on business rules, and the second device that receives the data corresponding to the notification message may determine to which users the notification message is presented based on business rules. The specific operations of the first device sending the data corresponding to the notification message based on business rules and the specific operations of the second device presenting the notification message based on business rules can refer to the contents in the aforementioned embodiments. In this way, filtering of notification messages can be implemented on both the first device and the second device, so that the second device can present notification messages that are more in line with business rules or user needs.
[0222] Taking the example that both the first device and the second device are central control screen devices, when the communication method in the embodiment of the present application is applied to the user's home, if the house where the family is located is a large apartment or a duplex structure, the physical distances between the central control screen devices in different rooms are relatively far. If the central control screen device that is far away from the user's current location generates some notification messages, the notification message can be sent by a central control screen device in the home to the central control screen device that is closer to the user's current location, so that the user can be notified in a timely manner and it is convenient for the user to operate conveniently.
[0223] Alternatively, in some possible application scenarios, you can choose a central control screen device equipped with a distributed database in the home or a central control screen device as a hub to send the notification message to a central control screen device that is closer to the user's current location, so that the user can be notified in time and it is convenient for the user to operate conveniently.
[0224] For example, when the sweeping robot in the living room is entangled with foreign objects, the central control screen device in the living room with the corresponding APP of the sweeping robot installed will send a notification message that the sweeping robot is entangled. Even if the central control screen device in the bedroom does not have the corresponding APP of the sweeping robot installed, the central control screen device in the bedroom will promptly receive the notification message sent by the central control screen device in the living room. In this way, the user in the bedroom can be informed of the notification message in time and deal with the sweeping robot in time.
[0225] In some cases, if there is no one or no user in the space to which the second device receiving the notification message belongs, even if the second device presents the notification message, no one will watch it or process it. In this case, in order to avoid the problem of wasting energy when the second device presents the notification message when no one is in the space, in some embodiments, the second device can also control the presentation of the notification message by detecting whether there is a person or user near the device after receiving the notification message. If the second device detects that there is a person or user nearby after receiving the notification message, the screen can be turned on and the notification message generated according to the data can be presented on the screen, or a voice prompt corresponding to the notification message can be issued. If the second device detects that there is no one or no user nearby after receiving the notification message, the screen can be turned off (turned off), and only the prompt light (such as a breathing light, etc.) can be retained, wherein the prompt light can indicate that there is currently an unprocessed communication message; when the second device detects that there is a person or user nearby again, the second device can turn on the screen and present the unprocessed notification message on the screen.
[0226] In some embodiments, the second device may detect whether there is someone or a user nearby using a millimeter wave radar sensor, an infrared sensor, a proximity sensor, etc. This is not specifically limited in the embodiments of the present application.
[0227] In some embodiments, see Fig.17 As shown, the setting application (or setting center) in the first device and the second device can be used to support the configuration of business rules, or be associated with the notification center on each device to support configuration related to the notification center. Among them, the setting application is a system application in the first device and the second device, and can provide a configuration entry for business rules for the first device and the second device.
[0228] For example, see Fig.18As shown in FIG. 1 , on the setting page corresponding to the setting application of the first device or the second device, a subpage for configuring notification messages may be displayed. On this subpage, options or controls such as "member notification settings", "space notification settings", and "more notification settings" for configuring business rules are displayed. When the user triggers the option or control of "member notification settings", the first device or the second device may display the following information: Fig. 9 The contents shown in (a) or (b) in Fig. 9 In (a) or (b), the user can configure the corresponding business rules for a certain member, or modify the business rules corresponding to a certain member, thereby configuring and modifying member permissions; when the user triggers the option or control of "Space Notification Settings", the first device or the second device can display the following Figure 8 When the user triggers the option or control of "More Notification Settings", the first device or the second device may display the following: Figure 8 The content shown in (c) in the above example, or the content shown in Fig.19 The content shown, etc.
[0229] For example, when the user triggers the option or control of "More Notification Settings", the first device or the second device may also display notification setting options or controls for the application, such as "Application Settings", "Application Notification Settings", etc. When the user triggers the option or control of "Application Settings", the first device or the second device may display a local application list. After the user selects an option or control of an application on the application list, see Fig. 20 As shown, the first device or the second device can continue to display the setting items corresponding to the application, such as the remote push option, etc. After the user chooses to turn on the remote push option, the first device or the second device will continue to display the device options that can be pushed, so that the user can complete the configuration of the notification message for the application.
[0230] In some embodiments, a "member management" option or control may also be displayed on the sub-page for notification message configuration corresponding to the above-mentioned setting application. When the user triggers the "member management" option or control, the first device or the second device may display a member management page, and the user may add members, delete members, and enter identity information of added members on the member management page.
[0231] In addition, in the above embodiment, the configuration of the business rules for the user can also be referred to as configuring the user's permission for notification messages. The user's permission for notification messages includes one or more of visibility and operability. The user can set permissions for each member one by one on the first device or the second device. For the specific content of the settings, please refer to the above embodiment. Fig. 9The contents shown in (a) and (b) in .
[0232] In addition, users can also set visibility, operability and other permissions for different applications in the above-mentioned settings application, and can also set permissions for different family members for a certain application.
[0233] In some embodiments, the second device can also actively obtain the data corresponding to the latest notification message from the distributed database, wherein the second device can actively obtain the notification message data by monitoring the distributed database, and when it is monitored that there is new notification message data stored in the distributed database, the second device can obtain the data corresponding to the notification message from the distributed database. It can be understood that in order to ensure that the obtained notification message is relatively new, or to ensure the timeliness of the notification message, the time interval for the second device to monitor the distributed database can be set to be shorter.
[0234] In some possible application scenarios, the notification message flow between the first device and the second device may not be based on business rules, but may be based on other strategies, or other strategies may be superimposed on the business rules. For example, when a space includes a second device and at least one fourth device, the first device may also indiscriminately flow or send the data corresponding to the notification message generated by the first device to the second device and at least one fourth device respectively.
[0235] Or in some other possible application scenarios, the first device may also determine the second device to push or present the notification message according to the user's affiliation. For example, if the user is currently in the kitchen, after the device B in the kitchen detects the user through sensors, cameras and other devices, it will send relevant information to the device A in the living room, indicating that the user can receive notification messages in the kitchen. In this case, after device A obtains the data corresponding to the notification message, it will directly send the data to device B, so that the user in the kitchen can view the notification message in time and process the notification message in time.
[0236] In some possible application scenarios, the aforementioned first device and second device can be used as a super terminal. Some near-field devices (fifth devices) can be scanned in the super terminal, such as mobile phones, watches, tablets, TVs, smart screens and other terminal devices. These near-field devices are all devices within the range of the near-field trusted network (Bluetooth low energy (BLE)\Wi-Fi\power line communication (PLC)) of the first device or the second device, and can be used as the receiving end of the aforementioned notification message data.
[0237] Optionally, the push of notification messages to near-field devices is one-way, that is, the first device can not only send the data corresponding to the notification message to the second device, but also send the data corresponding to the notification message to the near-field device, so that the user can view the notification message on the near-field device. However, considering the security of information on near-field devices in some scenarios, it can be defined that the near-field device will not send the data corresponding to the notification message to the first device or to the distributed database. In this way, the first device will not send the notification message generated on the near-field device to the second device.
[0238] For example, see Fig.21 As shown, smart home devices such as central control screen device 1, central control screen device 2, and central control screen device 3 are used as super terminals. And the central control screen device 1 connects the smart phone 4 to the super terminal by scanning the user's smart phone 4. When a notification message is generated on the central control screen device 2, the central control screen device 1 can send the data corresponding to the notification message to the central control screen device 3 and the smart phone 4. In this way, even if the user is far away from these central control screen devices, he can also timely know the current notification message through the smart phone and process it in time. When a notification message is generated on the smart phone 4, the smart phone 4 will not send the data corresponding to the notification message to the central control screen device 1. Therefore, the central control screen device 1 cannot send the data corresponding to the notification message to the central control screen device 2 and the central control screen device 3. In this way, when the privacy of the notification message generated on the smart phone 4 is relatively high, the security of the notification message can also be guaranteed.
[0239] In some possible application scenarios, after a smartphone is connected to a "super terminal", business rules can also be configured on the smartphone, and the smartphone then sends the business rules to the "super terminal" so that multiple electronic devices or multiple smart home devices that make up the "super terminal" can obtain the business rules.
[0240] At present, for smart home appliances (such as sweeping robots, humidifiers, air conditioners, etc.) that are connected to the same ecological chain (such as hilink, etc.), the same APP can be used to control these smart home appliances, or the same APP can be used to generate notification messages corresponding to these smart home appliances. For smart home appliances that are not connected to the same ecological chain, each time a smart home appliance is controlled, the corresponding APP must be installed on each electronic device in the home (such as a central control screen device). This not only wastes a lot of device memory resources, but also repeatedly downloads multiple APPs, which will affect the user experience. However, using the above-mentioned communication method in the embodiment of the present application, if the notification message obtained by the first device comes from the APP, regardless of whether the smart home appliances in the home are not connected to the same ecological chain, among the multiple electronic devices in the home that can control the smart home appliances, the APP that controls the smart home appliances can be installed on only one electronic device, or the same APP that controls the smart home appliances can be installed on multiple electronic devices.
[0241] When the same APP is not installed on all electronic devices, when the APP of an electronic device in one space generates a notification message, the electronic devices in other spaces can also obtain the notification message, thereby achieving the purpose of pushing notification messages on devices in one space to devices in other spaces. This can avoid installing the same APP on each device, which not only saves the device's memory space and ensures the device's performance, but also avoids the complex operation of users repeatedly downloading APPs, ensuring the user experience.
[0242] In addition, based on the current product form, all electronic devices may be separate devices based on a single account and a single user, with poor integrity. In the embodiment of the present application, due to the adoption of the above scheme, the first device and the second device can be integrated, that is, a notification message generated on one device can be pushed to other devices. In terms of whole-house intelligence, such a scheme can also integrate the central control screens in different spaces of the whole house, coordinate and unify, and enhance the overall distributed operation experience of the whole house.
[0243] In some possible application scenarios, electronic devices with higher performance among multiple electronic devices can also be determined as control devices or central devices, and other electronic devices can be used as controlled devices, and the control device sends the data corresponding to the acquired notification message to the controlled device. In addition, the notification message can be generated by the control device or by a device other than the control device. Among them, the specific operations that can be performed by the control device can refer to the relevant content of the first device in the aforementioned embodiment, and the specific operations that can be performed by the controlled device can refer to the relevant content of the second device in the aforementioned embodiment. In addition, business rules can also be configured on any device among the control device and the controlled device. It can be understood that the control device can be determined by the technician based on the performance, memory, etc. of each device, and the control device can also be equipped with a distributed database.
[0244] In some schemes, multiple embodiments of the present application can be combined, and the combined scheme can be implemented. Optionally, some operations in the process of each method embodiment are optionally combined, and / or the order of some operations is optionally changed. In addition, the execution order between the steps of each process is only exemplary and does not constitute a restriction on the execution order between the steps. There can also be other execution orders between the steps. It is not intended to show that the execution order is the only order in which these operations can be performed. A person of ordinary skill in the art will think of a variety of ways to reorder the operations described in the embodiments of the present application. In addition, it should be noted that the process details involved in a certain embodiment of the present application are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.
[0245] In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiment.
[0246] Furthermore, the various method embodiments may be implemented separately or in combination.
[0247] It is understandable that in order to implement the above functions, the aforementioned electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
[0248] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0249] The present application also provides an electronic device, such as Fig. 22 As shown, the electronic device may include one or more processors 1001 , a memory 1002 and a communication interface 1003 .
[0250] The memory 1002 and the communication interface 1003 are coupled to the processor 1001. For example, the memory 1002, the communication interface 1003 and the processor 1001 may be coupled together via a bus 1004.
[0251] The communication interface 1003 is used to transmit data with other devices. The memory 1002 stores computer program code. The computer program code includes computer instructions. When the computer instructions are executed by the processor 1001, the electronic device executes the communication method in the embodiment of the present application.
[0252] Among them, the processor 1001 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0253] The bus 1004 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 1004 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 22Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0254] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes the relevant method steps in the method embodiment.
[0255] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.
[0256] Among them, the electronic device, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0257] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0258] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0259] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0260] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0261] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0262] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A communication method, characterized in that: A method for applying a first device in a communication system, wherein the communication system includes the first device and a second device in a different space from the first device. The method includes: Acquire data and business rules for generating a notification message; the data is generated by the first device or by a third device other than the first device; Based on the business rule, the data is sent to the second device; the data is used to present the notification message on the second device.
2. The method according to claim 1, characterized in that: The sending the data to the second device based on the business rule includes: When the business rule indicates that the second device can present a notification message generated by a device in the target space, if the data is generated by the first device in the target space or by a third device in the target space, sending the data to the second device; When the business rule indicates that the second device can present the notification message generated by the target device, if the first device that generates the data or the third device that generates the data is the target device, sending the data to the second device; When the business rule indicates that the second device can present a notification message of a target type, if the message type corresponding to the data is the target type, sending the data to the second device; When the business rule indicates that the second device can present a notification message within the target time range, if the time when the data is acquired is within the target time range, the data is sent to the second device.
3. The method according to claim 2, characterized in that The sending the data to the second device based on the business rule further includes: Based on the business rule, the data is sent to a fourth device other than the second device in the space where the second device is located; the space where the second device is located also includes at least one fourth device.
4. The method according to any one of claims 1 to 3, characterized in that: The sending the data to the second device based on the business rule includes: When the first device and the second device are not connected through a cloud device, the data is sent to the second device based on the business rule; the cloud device is a public device or a private device.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: receiving a first control instruction sent by the second device; the first control instruction represents an instruction generated by the second device in response to a user's operation on the notification message; In response to the first control instruction, executing a control operation indicated by the first control instruction; or, The first control instruction is sent to the third device; the first control instruction is used to instruct the third device to perform the control operation indicated by the first control instruction.
6. The method according to claim 5, characterized in that The method further comprises: When the first device has executed the control operation, sending a second control instruction to the second device; the second control instruction is used to instruct to delete the notification message; Alternatively, when the third device has executed the control operation, a second control instruction is sent to the second device.
7. The method according to any one of claims 1 to 6, characterized in that: The data used to generate the notification message is generated by an application on the first device or by an application on the third device; the second device is a device on which the application is not installed.
8. A communication method, characterized in that: A second device applied to a communication system, the communication system comprising a first device and the second device located in a different space from the first device; the method comprising: receiving data sent by the first device for generating a notification message, and acquiring a business rule; the data is generated by the first device or by a third device other than the first device; Based on the business rules and the data, the notification message is presented.
9. The method according to claim 8, characterized in that The presenting the notification message based on the business rule and the data includes: When the business rule indicates that the second device can present a notification message generated by a device in the target space, if the data is generated by the first device in the target space or by a third device in the target space, present the notification message according to the data; When the business rule indicates that the second device can present a notification message generated by a target device, if the first device that generates the data or the third device that generates the data is the target device, present the notification message according to the data; When the business rule indicates that the second device can present a notification message of a target type, if the message type corresponding to the data is the target type, present the notification message according to the data; When the business rule indicates that the second device can present a notification message within a target time range, if the time when the data is received is within the target time range, present the notification message according to the data; When the business rule indicates that the second device can present a notification message to a target user, if the user currently operating the second device is the target user, the notification message is presented according to the data.
10. The method according to claim 9, characterized in that If the user currently operating the second device is the target user, presenting the notification message according to the data includes: Identifying voiceprint information of a user currently operating the second device; If it is determined that the user currently operating the second device is the target user based on the identified voiceprint information of the user, presenting the notification message based on the data; or, Identifying facial information of a user currently operating the second device; If it is determined that the user currently operating the second device is the target user based on the recognized face information of the user, presenting the notification message based on the data; or, Identifying fingerprint information of a user currently operating the second device; If it is determined that the user currently operating the second device is the target user based on the identified fingerprint information of the user, the notification message is presented based on the data.
11. The method according to claim 9 or 10, characterized in that: The presenting the notification message according to the data includes: When the priority of the notification message generated according to the data is greater than or equal to the preset priority, displaying the content of the notification message on the message display page according to the preset duration; Alternatively, when the priority of the notification message generated according to the data is greater than or equal to a preset priority, the content of the notification message is displayed at the top of the message display page.
12. The method according to any one of claims 8 to 11, characterized in that: The presenting the notification message according to the data further includes: When a user is detected nearby, lighting up the screen and displaying the notification message generated according to the data; When it is detected that there is no user nearby, the screen is turned off and a prompt light is used to indicate the notification message currently to be processed.
13. The method according to claim 11 or 12, characterized in that: The method further comprises: In response to the user's operation on the notification message, a first control instruction is sent to the first device; the first control instruction is used to instruct the first device that generates the data or the third device that generates the data to perform a corresponding control operation.
14. The method according to claim 13, characterized in that The method further comprises: receiving a second control instruction sent by the first device; the second control instruction indicates that the first device generating the data or the third device generating the data has executed the control operation; In response to the second control instruction, the notification message is deleted.
15. A communication method, characterized in that: Applied to a communication system, the communication system includes a first device and a second device in a different space from the first device; the method includes: The first device acquires data and business rules for generating a notification message; the data is generated by the first device or by a third device other than the first device; The first device sends the data to the second device based on the business rule; The second device receives the data and presents the notification message according to the data.
16. A communication method, characterized in that: Applied to a communication system, the communication system includes a first device and a second device in a different space from the first device; the method includes: The first device acquires data used to generate a notification message, and sends the data to the second device; the data is generated by the first device or by a third device other than the first device; The second device receives the data and obtains the business rules; The second device presents the notification message based on the business rule and the data.
17. A communication system, characterized in that: comprising a first device and a second device located in a different space from the first device; The first device is used to obtain data and business rules for generating a notification message; the data is generated by the first device or by a third device other than the first device; The first device is further configured to send the data to the second device based on the business rule; The second device is used to receive the data and present the notification message according to the data.
18. A communication system, characterized in that: comprising a first device and a second device located in a different space from the first device; The first device is used to obtain data used to generate a notification message, and send the data to the second device; the data is generated by the first device or by a third device other than the first device; The second device is used to receive the data and obtain the business rules; The second device is further configured to present the notification message based on the business rule and the data.
19. An electronic device, characterized in that: It comprises a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the communication method as described in any one of claims 1 to 7 or the communication method as described in any one of claims 8 to 14.
20. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the communication method according to any one of claims 1 to 7 or the communication method according to any one of claims 8 to 14.
