Intelligent equipment linkage method and device, electronic equipment and readable storage medium
By querying and sending service data from smart devices through the cloud, the problem of devices from different manufacturers being unable to work together was solved, enabling complex linkage of smart devices and the provision of local service functions.
Patent Information
- Application Number
- CN202411147217.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2026-03-03
AI Technical Summary
Because smart devices from different manufacturers cannot deploy diverse service functions in the cloud, complex interconnections cannot be achieved.
The cloud receives service data reported by smart devices, queries and maintains subscription relationships, identifies the second smart device that has subscribed to the service data, and sends the service data directly to the second smart device, enabling it to provide local service functions based on the service data.
It enables complex linkage between smart devices from different manufacturers, eliminating the need to deploy corresponding service functions for the second smart device in the cloud, thus improving the flexibility of device linkage and user experience.
Smart Images

Figure CN121603546A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Internet of Things (IoT) technology, and in particular to a method, apparatus, electronic device, and readable storage medium for linking smart devices. Background Technology
[0002] The cloud can typically connect with multiple smart devices, execute preset rules based on service data reported by the smart devices, and issue execution instructions to other smart devices based on the execution results, so that the multiple smart devices can work together.
[0003] With the increasing variety of smart devices and the growing functional requirements of each device, the cloud provider is often unable to deploy diverse services for each smart device. As the providers of these smart devices and the cloud provider are usually not from the same manufacturer, the cloud provider can typically only deploy some common and simple rules for these smart devices in the cloud (for example, the cloud can send an on command to the smart air conditioner when it receives a temperature data of 30 degrees Celsius reported by the smart device). Therefore, it is impossible to deploy diverse service functions for each smart device in the cloud, and thus it is impossible to enable more complex linkages between smart devices provided by different manufacturers. Summary of the Invention
[0004] This disclosure provides a method for linking smart devices, the method comprising:
[0005] Receive service data reported by the first intelligent device;
[0006] The subscription relationships corresponding to the service data are queried and maintained to determine the second smart device that has subscribed to the service data; wherein, the second smart device provides the user with the service functions corresponding to the service data;
[0007] The service data is sent to the second smart device so that the second smart device can provide the service function to the user based on the service data.
[0008] Optionally, the subscription relationship is the correspondence between the service identifier of the service data and the device identifier of the smart device that has subscribed to the service data;
[0009] Querying and maintaining the subscription relationships corresponding to the service data, and determining the second smart device that has subscribed to the service data, includes:
[0010] Query the subscription relationship corresponding to the service data, obtain the device identifier of the smart device that has subscribed to the service data, and determine the second smart device that has subscribed to the service data based on the device identifier.
[0011] Optionally, the method further includes:
[0012] Receive a subscription request sent by the second smart device; wherein the subscription request includes a service identifier of the service data to be subscribed;
[0013] In response to the subscription request, determine whether to grant the second smart device access rights to the service data;
[0014] If the second smart device is granted access to the service data, a subscription relationship is established between the service identifier and the second smart device.
[0015] Optionally, the subscription relationship is maintained using a trie or a trie-like data structure.
[0016] Optionally, the service data is the service data collected by the sensing hardware mounted on the first smart device.
[0017] Optionally, the sensing hardware is sensing hardware that is not installed in the second smart device.
[0018] Optionally, the smart device is a smart home device; the service function is the service function corresponding to the smart scene created by the user on the smart device.
[0019] This disclosure also provides a method for linking smart devices, the method comprising:
[0020] Receive service data sent from the cloud; wherein the service data is reported to the cloud by a first smart device and then sent after the cloud determines, based on the subscription relationship between the service data and a second smart device that has subscribed to the service data;
[0021] Based on the service data, provide users with service functions corresponding to the service data.
[0022] This disclosure provides a linkage device for a smart device, the device comprising:
[0023] The receiving unit is used to receive service data reported by the first intelligent device;
[0024] The query unit is used to query the subscription relationships maintained corresponding to the service data, and to determine the second smart device that has subscribed to the service data; wherein the second smart device provides the user with the service functions corresponding to the service data;
[0025] A sending unit is configured to send the service data to the second smart device, so that the second smart device can provide the service function to the user based on the service data.
[0026] This disclosure also provides a linkage device for a smart device, the device comprising:
[0027] A receiving unit is configured to receive service data sent from the cloud; wherein the service data is reported to the cloud by a first smart device and then sent after the cloud determines, based on the subscription relationship between the service data and a second smart device that has subscribed to the service data;
[0028] A providing unit is used to provide users with service functions corresponding to the service data based on the service data.
[0029] This disclosure provides a smart device linkage system, the system comprising:
[0030] The cloud platform is used to receive service data reported by a first smart device; query and maintain subscription relationships corresponding to the service data to determine a second smart device that has subscribed to the service data; wherein the second smart device provides service functions corresponding to the service data to the user; and send the service data to the second smart device so that the second smart device provides the service functions to the user based on the service data.
[0031] The first intelligent device is used to report the service data to the cloud.
[0032] The second smart device is used to receive service data sent from the cloud and, based on the service data, provide the user with service functions corresponding to the service data.
[0033] This disclosure also provides an electronic device, including a communication interface, a processor, a memory, and a bus, wherein the communication interface, the processor, and the memory are interconnected via the bus;
[0034] The memory stores machine-readable instructions, and the processor executes the linkage method of the smart device by calling the machine-readable instructions.
[0035] This disclosure also provides a machine-readable storage medium storing machine-readable instructions, which, when called and executed by a processor, implement the linkage method of the smart device.
[0036] The technical solution provided in this disclosure can include at least the following beneficial effects:
[0037] Through the above embodiments, the cloud can receive service data reported by the first smart device; query and maintain the subscription relationship corresponding to the service data to determine the second smart device that has subscribed to the service data; wherein, the second smart device provides the user with the service function corresponding to the service data; and send the service data to the second smart device so that the second smart device provides the service function to the user based on the service data. Since the cloud can directly send the service data uploaded by the first smart device to the second smart device that has subscribed to the service data according to the subscription relationship, the second smart device can directly provide the user with the service function deployed locally corresponding to the service data; therefore, there is no need to deploy the service function corresponding to the second smart device in the cloud. Second smart devices provided by different manufacturers can directly provide the service function deployed locally to the user, thereby realizing complex linkage between smart devices provided by different manufacturers. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0039] Figure 1 This is a system architecture diagram illustrating a method for linking smart devices according to an exemplary embodiment.
[0040] Figure 2 This is a flowchart illustrating a method for linking a smart device according to an exemplary embodiment.
[0041] Figure 3 This is a schematic diagram illustrating a subscription relationship according to an exemplary embodiment.
[0042] Figure 4 This is a flowchart illustrating another method for linking smart devices according to an exemplary embodiment.
[0043] Figure 5 This is a block diagram illustrating a linkage device for a smart device according to an exemplary embodiment.
[0044] Figure 6 This is a block diagram illustrating another linkage device for a smart device according to an exemplary embodiment.
[0045] Figure 7 This is a hardware structure diagram of an electronic device containing a linkage device for a smart device, according to an exemplary embodiment. Detailed Implementation
[0046] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure.
[0047] It should be noted that in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this disclosure. In some other embodiments, the methods may include more or fewer steps than those described in this disclosure.
[0048] The following specific embodiments, combined with specific application scenarios, illustrate the intelligent device linkage method provided in this disclosure. This method achieves complex linkage between intelligent devices from different manufacturers by directly sending service data uploaded by a first intelligent device to a second intelligent device that has subscribed to that service data.
[0049] When implemented, it can receive service data reported by the first smart device;
[0050] The subscription relationships corresponding to the service data are queried and maintained to determine the second smart device that has subscribed to the service data; wherein, the second smart device provides the user with the service functions corresponding to the service data;
[0051] The service data is sent to the second smart device so that the second smart device can provide the service function to the user based on the service data.
[0052] Through the above embodiments, the cloud can receive service data reported by the first smart device; query and maintain the subscription relationship corresponding to the service data to determine the second smart device that has subscribed to the service data; wherein, the second smart device provides the user with the service function corresponding to the service data; and send the service data to the second smart device so that the second smart device provides the service function to the user based on the service data. Since the cloud can directly send the service data uploaded by the first smart device to the second smart device that has subscribed to the service data according to the subscription relationship, the second smart device can directly provide the user with the service function deployed locally corresponding to the service data; therefore, there is no need to deploy the service function corresponding to the second smart device in the cloud. Second smart devices provided by different manufacturers can directly provide the service function deployed locally to the user, thereby realizing complex linkage between smart devices provided by different manufacturers.
[0053] The present disclosure will now be described through specific embodiments and in conjunction with specific application scenarios.
[0054] Please see Figure 1 , Figure 1 This is a system architecture diagram illustrating a method for linking smart devices according to an exemplary embodiment. Figure 1 As shown, the linkage system of the smart device may include a cloud, a first smart device, and a second smart device. In this linkage system, the number of both the first smart device and the second smart device is not limited to one. At the same time, there may be multiple first smart devices reporting service data to the cloud, and multiple second smart devices receiving service data sent by the cloud. For example, the first smart device may be first smart device_1 and first smart device_2, and the second smart device may be second smart device_1, second smart device_2, and second smart device_3. This disclosure does not impose any limitations on this.
[0055] The first intelligent device can collect service data through its built-in intelligent hardware and report the collected service data to the cloud.
[0056] The cloud can receive the service data reported by the first smart device, and can query the subscription relationship corresponding to the service data to identify the second smart device that has subscribed to the service data; the cloud can then send the service data to the second smart device.
[0057] The second smart device can receive the service data and provide the user with the corresponding service functions based on the service data.
[0058] The subscription relationship is the correspondence between the service identifier of the service data and the device identifier of the smart device that has subscribed to the service data. The cloud can query and maintain the subscription relationship corresponding to the service data, obtain the device identifier of the smart device that has subscribed to the service data, and determine the second smart device that has subscribed to the service data based on the device identifier.
[0059] The cloud can receive subscription requests sent by the second smart device; the subscription request may contain the service identifier of the service data to be subscribed; in response to the subscription request, it can determine whether to authorize the second smart device to access the service data; if the second smart device is authorized to access the service data, a subscription relationship between the service identifier and the second smart device can be established.
[0060] The subscription relationship is maintained using a trie or trie-like data structure.
[0061] The service data refers to the service data collected by the sensing hardware mounted on the first intelligent device.
[0062] The sensing hardware in question is not included in the second smart device.
[0063] The smart device is a smart home device; the service function is the service function corresponding to the smart scene created by the user on the smart device.
[0064] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for linking a smart device according to an exemplary embodiment.
[0065] like Figure 2 As shown, the above cloud platform can perform the following steps:
[0066] Step 202: Receive service data reported by the first smart device.
[0067] The first smart device and the second smart device are not limited to a single smart device. When a smart device connects to the cloud and reports service data to the cloud, it can be the first smart device. When a smart device receives service data sent by the cloud, it can be the second smart device.
[0068] For example, the cloud can receive service data reported by multiple first-level intelligent devices.
[0069] This service data can be the data that triggers smart devices to provide services to users. The specific content of this service data can be set according to actual needs, and this disclosure does not limit it.
[0070] For example, the service data can be attribute data of the first smart device or event data corresponding to the first smart device.
[0071] For example, the attribute data could be environmental data of the environment in which the first smart device is located, and the event data could be the smart device activation event.
[0072] In one embodiment shown, the service data may be service data collected by the sensing hardware mounted on the first smart device.
[0073] Sensing hardware refers to a class of physical devices specifically designed to sense and collect environmental information, typically including various sensors and related interface circuits. These hardware devices can capture and measure various parameters and signals in the physical world, such as temperature, humidity, light intensity, pressure, sound, and motion.
[0074] For example, the first smart device could be an air purifier that can collect humidity data of the surrounding environment based on an onboard humidity sensor.
[0075] In one embodiment shown, the sensing hardware may be sensing hardware not integrated into the second smart device.
[0076] When the second smart device is not equipped with this sensing hardware, it can obtain service data reported by other smart devices through the cloud and provide service functions to users based on this service data, thereby enabling the linkage between multiple smart devices.
[0077] It should be noted that when the second smart device is equipped with sensing hardware, the second smart device can obtain service data reported by the first smart device through the cloud, or it can collect service data based on the sensing hardware it is equipped with. This disclosure does not limit this.
[0078] For example, if the sensing hardware on the first smart device malfunctions, the second smart device can collect service data based on its own sensing hardware and provide service functions to the user based on that data.
[0079] In this way, the second smart device can obtain service data collected by different smart devices according to actual needs, thereby improving the flexibility of device linkage.
[0080] Step 204: Query the subscription relationships maintained with respect to the service data to determine the second smart device that has subscribed to the service data; wherein, the second smart device provides the user with the service functions corresponding to the service data.
[0081] The cloud can maintain subscription relationships corresponding to service data, so that when it receives service data reported by the first smart device, it can determine the second smart device that has subscribed to the service data based on the subscription relationship.
[0082] The form in which this subscription relationship is presented can be set according to actual needs, and this disclosure does not impose any restrictions on it.
[0083] In one embodiment shown, the subscription relationship can be a correspondence between the service identifier of the service data and the device identifier of the smart device that has subscribed to the service data; the cloud can query and maintain the subscription relationship corresponding to the service data, obtain the device identifier of the smart device that has subscribed to the service data, and determine the second smart device that has subscribed to the service data based on the device identifier.
[0084] The cloud can maintain the correspondence between the service identifier of the service data and the device identifier of the smart device that has subscribed to the service data. When it receives the service data reported by the first smart device, it queries the correspondence to obtain the device identifier of the smart device that has subscribed to the service data, and determines the second smart device based on the device identifier.
[0085] For example, when the service data is attribute data, its service identifier can be 1; when the service data is event data, its service identifier can be 2; the device identifier of the smart device can be 'a', and the subscription relationship can include the correspondence between 'a' and '1'. The cloud can query and maintain the subscription relationships corresponding to the service data, obtain the device identifier 'a' of the smart device that has subscribed to the service identifier 1, and determine the second smart device that has subscribed to the service data based on this device identifier.
[0086] The presentation of the service identifier can be set according to actual needs, and this disclosure does not impose any restrictions on it.
[0087] For example, the structure of the service identifier can be hierarchical.
[0088] For example, the service identifier can be represented as A / B / C, where A can be the device identifier of the first smart device providing the service data, B can be used to indicate that the service data is attribute data or event data, and C can be used to indicate the specific attribute of the attribute data or the specific event of the event data.
[0089] It should be noted that this hierarchical structure is only an example and does not limit the actual hierarchical structure. Developers can set it according to actual needs, and this disclosure does not limit it.
[0090] This method clearly indicates the category of service data, making it easier to quickly query the specific content contained in the service data and improving query efficiency.
[0091] The method of maintaining this subscription relationship can be set according to actual needs, and this disclosure does not impose any restrictions on it.
[0092] In one embodiment shown, the subscription relationship is maintained using a trie or trie-like data structure.
[0093] A trie (prefix tree) is a special tree-like data structure used for efficiently storing and retrieving data from a set of strings. It can perform insertion, search, and deletion operations in O(m) time complexity, where m is the length of the string. This data structure is well-suited for efficiently processing large sets of strings.
[0094] In this disclosure, a trie-like data structure can be used to maintain subscription relationships. Based on this trie-like data structure, all subscription relationships of the first smart device can be mounted on a subtree with the device identifier of the first smart device as the node, and then branches can be extended downwards according to the service identifier hierarchy. At the leaf node at the end of the branch, the device identifiers of all second smart devices corresponding to the service identifier can be stored, thereby maintaining the subscription relationship between the service identifier of the service data and the second smart devices that have subscribed to the service data.
[0095] For example, see Figure 3 , Figure 3 This is a schematic diagram illustrating a subscription relationship according to an exemplary embodiment.
[0096] The subscription relationship can be maintained using a trie-like data structure. This trie includes a root node, which is the starting point for all subscription relationships. Each subscription relationship can contain a correspondence between the service identifier of service data_1 and the device identifier of the smart device subscribing to service data_1. The service identifier can be the root node / 1234 / properties_changed / 2, where 1234 indicates the first smart device providing the service data, properties_changed indicates the service data is attribute data, and 2 indicates the attribute data is temperature data. The device identifier of the second smart device subscribing to service data_1 can be 'a'.
[0097] Based on this maintenance method, the cloud can query the subscription relationship in a breadth-first manner and obtain the device identifier of the smart device that matches the service identifier.
[0098] It should be noted that this specific maintenance method is only one exemplary maintenance method. The specific data corresponding to each node in the trie or trie-like data structure can also be set according to actual needs. This disclosure does not limit this.
[0099] This method can improve the efficiency of subscription relationship queries.
[0100] The hierarchical structure of the service identifier can also include a single-layer wildcard structure and a multi-layer wildcard structure.
[0101] For example, a single-level wildcard can be "+". When the service identifier corresponding to smart device 'a' is 1234 / properties_changed / 1 / +, the smart device can match service data whose hierarchical structure of the service identifier includes the level of the "+" level, but cannot match service data whose hierarchical structure of the service identifier includes the next level of the "+" level. That is, the smart device can match service data with service identifier 1234 / properties_changed / 1 / 2, but cannot match service data with service identifier 1234 / properties_changed / 1 / 2 / 3.
[0102] For example, a multi-level wildcard can be "#". When the service identifier corresponding to smart device a is 1234 / properties_changed / 1 / #, the smart device can match service data whose hierarchical structure includes the level where "#" is located and all levels below it. The smart device can match service data with service identifier 1234 / properties_changed / 1 / 2, and it can also match service data with service identifier 1234 / properties_changed / 1 / 2 / 3.
[0103] In this way, smart devices that need to subscribe to all service data at a certain level can make such subscriptions, avoiding sending multiple subscription requests and improving subscription efficiency.
[0104] In one embodiment shown, the cloud can receive a subscription request sent by a second smart device; wherein the subscription request includes a service identifier of the service data to be subscribed; in response to the subscription request, it determines whether to authorize the second smart device to access the service data; if the second smart device is authorized to access the service data, a subscription relationship between the service identifier and the second smart device can be established.
[0105] Since the providers of these multiple smart devices can be from different manufacturers, in order to improve the security of data access, it can be determined whether to authorize the second smart device to access the service data when a subscription request is received. And after it is determined that the second smart device has been authorized to access the service data, the subscription relationship between the service identifier and the second smart device can be established.
[0106] For example, when the cloud receives a subscription request from a second smart device, it can respond to the subscription request by determining whether to authorize the second smart device to access service data_1. If the second smart device is authorized to access service data_1, a subscription relationship can be established between the service identifier_1 of service data_1 contained in the subscription request and the second smart device.
[0107] By performing data authorization verification on the second smart device before establishing a subscription relationship, the security of data access can be improved.
[0108] Step 206: Send the service data to the second smart device so that the second smart device can provide service functions to the user based on the service data.
[0109] After the cloud verifies that a second smart device has subscribed to the service, it can send the service data to the second smart device so that the second smart device can provide service functions to the user based on the service data.
[0110] The category of the smart device can be set according to actual needs, and this disclosure does not limit it.
[0111] In one embodiment shown, the smart device can be a smart home device; the service function can be the service function corresponding to the smart scene created by the user on the smart device.
[0112] In this context, "smart home" refers to a home system that utilizes modern information and communication technologies, through the internet and sensors, to achieve intelligent management and control of home appliances and facilities. In this disclosure, the home system can be equipped with multiple smart home devices.
[0113] For example, the home system can be equipped with a temperature and humidity sensor and a smart air conditioner. The temperature and humidity sensor can report service data to the cloud, such as a temperature of 29°C. The cloud can send this service data to the smart air conditioner based on a subscription relationship. Upon receiving the service data, the smart air conditioner can turn on the air conditioner and adjust the air conditioner temperature parameter to 26°C.
[0114] The service functions provided by smart devices can be the service functions corresponding to the smart scenarios created by users on smart devices.
[0115] For example, users can create home scenarios on smart devices. This home system can include smart door locks, smart air conditioners, smart curtains, air purifiers, and smart speakers. When a smart door lock is opened, it reports this event data to the cloud. The cloud can then query multiple smart devices that have subscribed to this event data, including smart air conditioners, smart curtains, air purifiers, and smart speakers. The cloud can then send the event data to these devices, allowing them to provide the user with their respective services. For instance, the smart air conditioner can turn on and adjust the temperature to 26°C, the smart curtains can move to the sides, the air purifier can activate its purification function, and the smart speaker can play music based on the user's playlist. This achieves complex interaction between multiple smart devices, providing a comfortable user experience.
[0116] This approach can improve the user experience.
[0117] Please see Figure 4 , Figure 4 This is a flowchart illustrating another method for linking smart devices according to an exemplary embodiment.
[0118] like Figure 4 As shown, the second smart device described above can perform the following steps:
[0119] Step 402: Receive service data sent from the cloud; wherein the service data is reported to the cloud by the first smart device and sent after the cloud determines the second smart device that has subscribed to the service data based on the subscription relationship between the service data and the cloud;
[0120] Step 404: Based on the service data, provide the user with the service functions corresponding to the service data.
[0121] The second smart device is not limited to a specific smart device. When a smart device receives service data sent from the cloud, it can be a second smart device. This disclosure does not limit this.
[0122] The second smart device can be multiple second smart devices, which can simultaneously receive service data sent from the cloud. This disclosure does not limit this.
[0123] For example, the second smart device can be a smart air conditioner, smart curtains, an air purifier, and a smart speaker. When the smart door lock reports the event data that the door lock has been opened to the cloud, the cloud can query the multiple second smart devices that have subscribed to this event data and send the event data to the smart air conditioner, smart curtains, air purifier, and smart speaker. The smart air conditioner, smart curtains, air purifier, and smart speaker can respectively receive the event data sent by the cloud.
[0124] The second smart device can provide a service function corresponding to the service data to the user based on the received service data.
[0125] For example, after receiving the above event data, the above smart air conditioner can turn on the air conditioner and adjust the air conditioner temperature parameter to 26°; the above smart curtains can move to both sides after receiving the above event data; the above air purifier can start the purification function after receiving the above event data; the above smart speaker can play music according to the user's playlist after receiving the above event data. Thus, complex linkage between multiple smart devices can be achieved.
[0126] In this way, complex linkage between smart devices provided by different manufacturers can be achieved.
[0127] In an illustrated embodiment, the second smart device can send a subscription request to the cloud; wherein, the subscription request can include a service identifier of the service data to be subscribed; the subscription request can be used to establish a subscription relationship with the service data in the cloud.
[0128] Among them, the second smart device can directly send a subscription request to the cloud, or can send a subscription request to the cloud through a connected client, and the present disclosure does not limit this.
[0129] For example, the cloud can establish a connection with the above client. The client can provide a user interface for the user. The user interface can include at least one subscription option corresponding to the second smart device. The subscription option can correspond to the service data of the first smart device. The client can send a subscription request for the service data of the first smart device corresponding to the target subscription option selected by the user for the at least one subscription to the cloud based on the subscription operation; or, the second smart device can send a subscription request for the service data of the first smart device corresponding to the target subscription option selected by the user for the at least one subscription to the cloud based on the subscription operation.
[0130] For example, the first smart device can be a temperature and humidity detector, and the second smart device can be a smart air conditioner. A client connected to the second smart device can provide a user interface to the user. This user interface can include a subscription option corresponding to the smart air conditioner for subscribing to temperature data from the temperature and humidity detector. When the user initiates a subscription operation for the subscription option, the client can send a subscription request for the temperature data from the temperature and humidity detector corresponding to the subscription option to the cloud based on the subscription operation; or, the smart air conditioner can send a subscription request for the temperature data from the temperature and humidity detector corresponding to the subscription option to the cloud based on the subscription operation.
[0131] This approach allows for multiple subscription options for smart devices, increasing subscription flexibility.
[0132] It should be noted that the subscription relationship in this disclosure may also include the correspondence between the second smart device and user data at the user level. For example, when user _1 logs out, the client can report the event data to the cloud, and the cloud can send the event data to the second smart device that has subscribed to the event data. The second smart device can then perform a shutdown operation based on the event data. When user _2 logs in, the client can report the event data to the cloud, and the cloud can then send the event data to the second smart device that has subscribed to the event data. The second smart device can then start up and adjust its operating parameters to the preset parameters corresponding to user _2 based on the event data.
[0133] In addition to the aforementioned embodiments of the smart device linkage method, this disclosure also provides embodiments of a smart device linkage device. See also... Figure 5 The device includes:
[0134] The receiving unit 502 is used to receive service data reported by the first intelligent device;
[0135] The query unit 504 is used to query the subscription relationships maintained corresponding to the service data, and to determine the second smart device that has subscribed to the service data; wherein, the second smart device provides the user with the service functions corresponding to the service data;
[0136] The sending unit 506 is used to send the service data to the second smart device so that the second smart device can provide the service function to the user based on the service data.
[0137] In this embodiment, the subscription relationship can be the correspondence between the service identifier of the service data and the device identifier of the smart device that has subscribed to the service data;
[0138] The aforementioned query unit 504 can be specifically used for:
[0139] Query the subscription relationships corresponding to the service data, obtain the device identifier of the smart device that has subscribed to the service data, and determine the second smart device that has subscribed to the service data based on the device identifier.
[0140] In this embodiment, the above-described apparatus may further include a determining unit, used for:
[0141] Receive a subscription request sent by a second smart device; wherein the subscription request contains a service identifier of the service data to be subscribed;
[0142] In response to a subscription request, determine whether to grant the second smart device access to service data;
[0143] If the second smart device is granted access to service data, a subscription relationship is established between the service identifier and the second smart device.
[0144] In this embodiment, the subscription relationship can be maintained using a trie or a trie-like data structure.
[0145] In this embodiment, the service data can be service data collected by the sensing hardware mounted on the first smart device.
[0146] In this embodiment, the sensing hardware can be sensing hardware that is not installed on the second smart device.
[0147] In this embodiment, the smart device can be a smart home device; the service function can be the service function corresponding to the smart scene created by the user on the smart device.
[0148] This disclosure also provides another embodiment of a linkage device for smart devices. See [link to other documentation]. Figure 6 The device includes:
[0149] The receiving unit 602 is used to receive service data sent from the cloud; wherein the service data is reported to the cloud by a first smart device and sent after the cloud determines, based on the subscription relationship between the service data and a second smart device that has subscribed to the service data;
[0150] The providing unit 604 is used to provide the user with service functions corresponding to the service data based on the service data.
[0151] The specific implementation process of the functions and roles of each module in the device is detailed in the implementation process of the corresponding steps in the method, and will not be repeated here.
[0152] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0153] The systems, devices, or modules described in the embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.
[0154] Embodiments of this disclosure also provide an electronic device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the method described in any of the above embodiments.
[0155] Figure 7 This is a block diagram illustrating an electronic device according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0156] Reference Figure 7 The electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.
[0157] Processing component 702 typically controls the overall operation of electronic device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.
[0158] Memory 704 is configured to store various types of data to support the operation of electronic device 700. Examples of this data include instructions for any application or method operating on electronic device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0159] Power supply component 706 provides power to various components of electronic device 700. Power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 700.
[0160] Multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0161] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when electronic device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
[0162] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0163] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of electronic device 700. For example, sensor assembly 714 can detect the on / off state of electronic device 700, the relative positioning of components such as the display and keypad of electronic device 700, changes in position of electronic device 700 or a component of electronic device 700, the presence or absence of user contact with electronic device 700, orientation or acceleration / deceleration of electronic device 700, and temperature changes of electronic device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0164] Communication component 716 is configured to facilitate wired or wireless communication between electronic device 700 and other devices. Electronic device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR, or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0165] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described in any of the above embodiments.
[0166] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of an electronic device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0167] Embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in any of the above embodiments.
[0168] Embodiments of this disclosure also provide a computer program product configured to perform the wireless charging foreign object detection method described in any of the above embodiments.
[0169] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0170] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
[0171] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points shall be provided for users to choose to authorize or refuse.
Claims
1. A method for linking intelligent devices, characterized in that, The method includes: Receive service data reported by the first intelligent device; The subscription relationships corresponding to the service data are queried and maintained to determine the second smart device that has subscribed to the service data; wherein, the second smart device provides the user with the service functions corresponding to the service data; The service data is sent to the second smart device so that the second smart device can provide the service function to the user based on the service data.
2. The method according to claim 1, characterized in that, The subscription relationship is the correspondence between the service identifier of the service data and the device identifier of the smart device that has subscribed to the service data; Querying and maintaining the subscription relationships corresponding to the service data, and determining the second smart device that has subscribed to the service data, includes: Query the subscription relationship corresponding to the service data, obtain the device identifier of the smart device that has subscribed to the service data, and determine the second smart device that has subscribed to the service data based on the device identifier.
3. The method according to claim 2, characterized in that, The method further includes: Receive a subscription request sent by the second smart device; wherein the subscription request includes a service identifier of the service data to be subscribed; In response to the subscription request, determine whether to grant the second smart device access rights to the service data; If the second smart device is granted access to the service data, a subscription relationship is established between the service identifier and the second smart device.
4. The method according to claim 1, characterized in that, The subscription relationship is maintained using a trie or trie-like data structure.
5. The method according to claim 1, characterized in that, The service data refers to the service data collected by the sensing hardware mounted on the first smart device.
6. The method according to claim 5, characterized in that, The sensing hardware is the sensing hardware that is not installed in the second smart device.
7. The method according to claim 1, characterized in that, The smart device is a smart home device; the service function is the service function corresponding to the smart scene created by the user on the smart device.
8. A method for linking intelligent devices, characterized in that, The method includes: Receive service data sent from the cloud; wherein the service data is reported to the cloud by a first smart device and then sent after the cloud determines, based on the subscription relationship between the service data and a second smart device that has subscribed to the service data; Based on the service data, provide users with service functions corresponding to the service data.
9. A linkage device for intelligent devices, characterized in that, The device includes: The receiving unit is used to receive service data reported by the first intelligent device; The query unit is used to query the subscription relationships maintained corresponding to the service data, and to determine the second smart device that has subscribed to the service data; wherein the second smart device provides the user with the service functions corresponding to the service data; A sending unit is configured to send the service data to the second smart device, so that the second smart device can provide the service function to the user based on the service data.
10. A linkage device for intelligent devices, characterized in that, The device includes: A receiving unit is configured to receive service data sent from the cloud; wherein the service data is reported to the cloud by a first smart device and then sent after the cloud determines, based on the subscription relationship between the service data and a second smart device that has subscribed to the service data; A providing unit is used to provide users with service functions corresponding to the service data based on the service data.
11. A linkage system for intelligent devices, characterized in that, The system includes: The cloud platform is used to receive service data reported by a first smart device; query and maintain subscription relationships corresponding to the service data to determine a second smart device that has subscribed to the service data; wherein the second smart device provides service functions corresponding to the service data to the user; and send the service data to the second smart device so that the second smart device provides the service functions to the user based on the service data. The first intelligent device is used to report the service data to the cloud. The second smart device is used to receive service data sent from the cloud and, based on the service data, provide the user with service functions corresponding to the service data.
12. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is used to implement the method according to any one of claims 1 to 8.
13. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-readable instructions, which, when invoked and executed by a processor, implement the method described in any one of claims 1 to 8.
Citation Information
Patent Citations
Intelligent equipment linkage control method
CN105159150A
Event notification method, server equipment, event notification device and medium
CN111262893A
Method, device and system for controlling smart home system, and storage medium
CN115524985A