Equipment information access method and device, electronic equipment and storage medium
By introducing lists and structures to represent device-related information in a preset protocol, the problem of the inability to represent complex functional device information in existing technologies is solved, enabling user terminals to accurately display information and update the status of smart home devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2024-10-25
- Publication Date
- 2026-04-28
AI Technical Summary
In existing technologies, control protocols cannot effectively characterize and transmit device-related information of smart home devices with complex functions, thus limiting their applicability.
Device-related information is represented by lists and structures in a preset protocol, supporting complex data types. This allows the first device to retrieve and display device-related information of the second device from the cloud, including the third device associated with the second device and its interaction status.
It enables access to information from devices with complex functions, ensuring that user terminals can accurately display the actual status of the devices and supporting the transmission and display of complex data types.
Smart Images

Figure CN121940394A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of Internet of Things (IoT) technology and smart home, and in particular to methods, devices, electronic devices, and storage media for accessing device information. Background Technology
[0002] For smart home devices that are in the same ecosystem and have related relationships, different devices in the device set can be managed and controlled through preset control protocols.
[0003] In related technologies, control protocols specify corresponding control logic for different devices in a device set, and the control protocols represent and transmit device information based on standardized data types. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this disclosure provides a device information access method, apparatus, electronic device, and storage medium.
[0005] According to a first aspect of the present disclosure, a device information access method is provided, comprising: a first device receiving a data access instruction issued by a user, determining a second device corresponding to the data access instruction, the data access instruction being used to request access to device-related information of the second device, wherein the device-related information represents a third device associated with the second device and associated information corresponding to each third device, the associated information representing the interaction state between the corresponding third device and the second device; the first device obtaining the device-related information of the second device from the cloud and displaying the device-related information, wherein the first device, the second device, and the cloud are associated, and the first device, the second device, and the cloud interact based on a preset protocol, the device-related information being transmitted by the second device to the cloud based on the preset protocol, the preset protocol representing the device-related information through lists and structures.
[0006] In one embodiment, the list represents a third device associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; the structure represents the association relationship between each third device and the corresponding association information.
[0007] In one embodiment, when the associated third device changes, the second device updates its device-related information to obtain the updated device-related information, and sends the updated device-related information to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device; during the process of the first device displaying the device-related information, the first device obtains the device-related information of the second device from the cloud and displays the device-related information, including: the first device obtains the latest updated device-related information issued by the cloud and displays the updated device-related information.
[0008] In one embodiment, the change in the third device associated with the second device includes: the second device newly associating with a third device; the updated device-related information includes a device identifier and association information corresponding to the newly associating third device, the device identifier representing the newly associating third device; the device identifier and the association information corresponding to the newly associating third device are constructed into a target structure by the second device, the target structure is added to a history list by the third device to obtain the updated device-related information, the history list including the device-related information before the update.
[0009] According to a second aspect of the present disclosure, a device information access method is provided, comprising: a second device obtaining device-related information based on a third device associated with the second device and association information corresponding to each third device, wherein the association information characterizes the interaction state between the corresponding third device and the second device, and the device-related information characterizes the third device associated with the second device and association information corresponding to each third device; the second device uploading the device-related information to a cloud, so that the cloud sends the device-related information to the second device when the first device sends a request to the cloud to obtain the device-related information, the first device requesting to obtain the device-related information from the cloud when receiving a data access instruction from a user, wherein the first device, the second device, and the cloud are associated, and the first device, the second device, and the cloud interact based on a preset protocol, wherein the preset protocol represents the device-related information through lists and structures.
[0010] In one embodiment, the list represents a third device associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; the structure represents the association relationship between each third device and the corresponding association information.
[0011] In one embodiment, the method further includes: in response to a change in a third device associated with the second device, the second device updates its device-related information to obtain the updated device-related information, and sends the updated device-related information to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device, and the first device obtains and displays the updated device-related information.
[0012] In one embodiment, the response to a change in the third device associated with the second device includes: in response to the second device newly associating with a third device, determining that the third device associated with the second device has changed; the second device updating device-related information to obtain updated device-related information includes: the second device determining a device identifier representing the newly associated third device and determining association information of the newly associated third device; constructing a target structure from the association information of the newly associated third device and the device identifier, and adding the target structure to a history list to obtain the updated device-related information, wherein the history list includes device-related information before the update.
[0013] According to a third aspect of the present disclosure, a device information access apparatus is provided, comprising: a determining unit, configured to: a first device receive a data access instruction issued by a user; determine a second device corresponding to the data access instruction; the data access instruction is used to request access to device-related information of the second device; wherein the device-related information represents a third device associated with the second device and associated information corresponding to each third device, and the associated information represents the interaction state between the corresponding third device and the second device; and a processing unit, configured to: the first device obtain the device-related information of the second device from a cloud and display the device-related information; wherein the first device, the second device, and the cloud are associated, and the first device, the second device, and the cloud interact based on a preset protocol; the device-related information is transmitted by the second device to the cloud based on the preset protocol; and the preset protocol represents the device-related information through lists and structures.
[0014] In one embodiment, the list represents a third device associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; the structure represents the association relationship between each third device and the corresponding association information.
[0015] In one embodiment, when the associated third device changes, the second device updates its device-related information to obtain the updated device-related information and sends the updated device-related information to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device. During the process of the first device displaying the device-related information, the processing unit uses the following method to enable the first device to obtain the device-related information of the second device from the cloud and display the device-related information: the first device obtains the latest updated device-related information issued by the cloud and displays the updated device-related information.
[0016] In one embodiment, the change in the third device associated with the second device includes: the second device newly associating with a third device; the updated device-related information includes a device identifier and association information corresponding to the newly associating third device, the device identifier representing the newly associating third device; the device identifier and the association information corresponding to the newly associating third device are constructed into a target structure by the second device, the target structure is added to a history list by the third device to obtain the updated device-related information, the history list including the device-related information before the update.
[0017] According to a fourth aspect of the present disclosure, a device information access apparatus is provided, comprising: an acquisition unit, configured to allow a second device to obtain device-related information based on a third device associated with the second device and associated information corresponding to each third device, wherein the associated information characterizes the interaction state between the corresponding third device and the second device, and the device-related information characterizes the third device associated with the second device and associated information corresponding to each third device; and a transmission unit, configured to allow the second device to upload the device-related information to a cloud, such that the cloud sends the device-related information to the second device when a first device requests the cloud to obtain the device-related information, and the first device requests the cloud to obtain the device-related information when receiving a data access instruction from a user, wherein the first device, the second device, and the cloud are associated, and the first device, the second device, and the cloud interact based on a preset protocol, wherein the preset protocol represents the device-related information through lists and structures.
[0018] In one embodiment, the list represents a third device associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; the structure represents the association relationship between each third device and the corresponding association information.
[0019] In one embodiment, the acquisition unit is further configured to: in response to a change in the third device associated with the second device, update the device-related information of the second device to obtain the updated device-related information, and send the updated device-related information to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device, and enables the first device to obtain the updated device-related information and display the updated device-related information.
[0020] In one embodiment, the acquisition unit responds to a change in the third device associated with the second device in the following manner: in response to the second device newly associating with a third device, it determines that the third device associated with the second device has changed; the acquisition unit causes the second device to update its device-related information in the following manner to obtain the updated device-related information: the second device determines a device identifier representing the newly associated third device and determines the association information of the newly associated third device; the association information of the newly associated third device and the device identifier are constructed into a target structure, and the target structure is added to a history list to obtain the updated device-related information, wherein the history list includes the device-related information before the update.
[0021] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: execute the device information access method described in the first aspect or any embodiment of the first aspect.
[0022] According to a sixth aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: execute the device information access method described in the second aspect or any embodiment of the second aspect.
[0023] According to a seventh aspect of the present disclosure, a storage medium is provided, the storage medium storing instructions that, when executed by a processor, enable the processor to perform the device information access method described in the first aspect or any embodiment of the first aspect.
[0024] According to an eighth aspect of the present disclosure, a storage medium is provided, the storage medium storing instructions that, when executed by a processor, enable the processor to perform the device information access method described in the second aspect or any embodiment of the second aspect.
[0025] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: After receiving a data access instruction from a user, the first device determines the second device corresponding to the data access instruction. The first device obtains device-related information of the second device from the cloud and displays the device-related information. The device-related information stored in the cloud is device information automatically uploaded by the second device. The first device, the second device, and the cloud are associated, and the first device, the second device, and the cloud interact based on a preset protocol. The device-related information is transmitted to the cloud by the second device based on the preset protocol. The preset protocol represents the device-related information through lists and structures. The device-related information represents third devices associated with the second device and the associated information corresponding to each third device. The associated information represents the interaction state between the corresponding third device and the second device. Through this disclosure, a complex data type capable of representing complex information is specified for the preset protocol, enabling the preset protocol to support devices with complex functions.
[0026] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0027] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0028] Figure 1 This is a schematic diagram illustrating a specification describing a device data model in a control protocol according to an exemplary embodiment of the present disclosure.
[0029] Figure 2 This is a schematic diagram illustrating an application scenario of a device information access method according to an exemplary embodiment of the present disclosure.
[0030] Figure 3 This is a flowchart illustrating a device information access method applied to a first device according to an exemplary embodiment.
[0031] Figure 4 This is a schematic diagram illustrating a specification describing a device data model in a control protocol according to an exemplary embodiment of the present disclosure.
[0032] Figure 5 This is a flowchart illustrating a method for obtaining and displaying device-related information according to an exemplary embodiment.
[0033] Figure 6 This is a schematic diagram illustrating a device information access method according to an exemplary embodiment of the present disclosure.
[0034] Figure 7This is a flowchart illustrating a device information access method applied to a second device according to an exemplary embodiment.
[0035] Figure 8 This is a flowchart illustrating a method for sending device-related information according to an exemplary embodiment.
[0036] Figure 9 This is a flowchart illustrating a method for obtaining updated device-related information according to an exemplary embodiment.
[0037] Figure 10 This is a block diagram illustrating a device information access apparatus according to an exemplary embodiment.
[0038] Figure 11 This is a block diagram illustrating a device information access apparatus according to an exemplary embodiment.
[0039] Figure 12 This is a block diagram illustrating an apparatus for accessing device information according to an exemplary embodiment.
[0040] Figure 13 This is a block diagram illustrating an apparatus for accessing device information according to an exemplary embodiment. Detailed Implementation
[0041] 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.
[0042] The device information access method provided in this disclosure is applied to scenarios where device-related information of a target device is obtained and displayed based on a preset protocol.
[0043] For smart home devices that are part of the same ecosystem and have interconnected relationships, different devices within the device set can be managed and controlled through a pre-defined control protocol. In related technologies, the control protocol specifies corresponding control logic for each different device in the device set, and the control protocol uses standardized data types to represent and transmit device information.
[0044] In related technologies, when controlling devices through device control protocols, the data types and functions of the control protocol attributes are all simple, only representing basic information and unable to represent more complex information. This limits the applicability of the control protocol, mainly targeting simple target devices. When dealing with complex target devices, the simple data types and functions of the control protocol attributes cannot accurately express and transmit device-related information of target devices with complex functions.
[0045] In an exemplary embodiment of this disclosure, Figure 1 This is a schematic diagram illustrating a specification describing a device data model in a control protocol according to an exemplary embodiment of the present disclosure, such as... Figure 1 As shown in the diagram, the concepts represented in the ellipsis boxes are listed alongside their corresponding concepts in the adjacent boxes. For example, the ellipsis box adjacent to "module" represents other modules listed alongside "module". Figure 1 As shown, device control protocols in related technologies have a fixed device data model for device specifications. This model includes the device itself, along with its corresponding modules, services, properties, actions, and events. The properties in the device data model are dynamically changing information. Control protocols primarily use properties to represent and transmit device-related information. However, given that the data types and functions of attributes in related technologies are simple, they cannot accurately express and transmit device-related information for target devices with complex functions.
[0046] In view of this, this disclosure proposes a method for accessing device information. After receiving a data access instruction from a user, a first device determines the second device corresponding to the instruction. The first device retrieves and displays the device-related information of the second device from the cloud. The device-related information stored in the cloud is automatically uploaded by the second device. The first device, the second device, and the cloud are associated, and they interact based on a preset protocol. The device-related information is transmitted from the second device to the cloud based on the preset protocol. The preset protocol represents the device-related information through lists and structures. The device-related information represents third devices associated with the second device and the associated information for each third device. The associated information represents the interaction state between the corresponding third device and the second device. This disclosure standardizes a complex data type capable of representing complex information for the preset protocol, enabling the preset protocol to support devices with complex functions.
[0047] In an exemplary embodiment of this disclosure, Figure 2This is a schematic diagram illustrating an application scenario of a device information access method according to an exemplary embodiment of this disclosure, such as... Figure 2 As shown, the device information access method proposed in this disclosure can be applied to the following scenarios: Users use an application (APP) on their terminal to remotely interact with the device based on a preset protocol through the cloud as an information transmission channel, enabling users to view device-related information through the application on their terminal. Given that this disclosure defines complex data types that can represent complex information for the attributes in the preset protocol, the data type transmitted in the cloud channel needs to include complex data types so that users can view relatively complex device-related information through the application on their terminal.
[0048] Figure 3 This is a flowchart illustrating a device information access method applied to a first device according to an exemplary embodiment. Figure 3 As shown, the method includes the following steps.
[0049] In step S101, the first device receives a data access instruction from the user and determines the second device corresponding to the data access instruction. The data access instruction is used to request access to the device-related information of the second device. The device-related information represents the third device associated with the second device and the association information corresponding to each third device. The association information represents the interaction state between the corresponding third device and the second device.
[0050] In step S102, the first device obtains the device-related information of the second device from the cloud and displays the device-related information. The first device, the second device and the cloud are associated, and the first device, the second device and the cloud interact based on a preset protocol. The device-related information is transmitted from the second device to the cloud based on the preset protocol. The preset protocol represents the device-related information through lists and structures.
[0051] In this embodiment, after receiving a data access command from a user, the first device determines the second device corresponding to the data access command. The first device retrieves and displays the device-related information of the second device from the cloud. The device-related information stored in the cloud is the device information automatically uploaded by the second device. The first device, the second device, and the cloud are associated, and they interact based on a preset protocol. The device-related information is transmitted from the second device to the cloud based on the preset protocol. The preset protocol represents the device-related information through lists and structures. The device-related information represents the third devices associated with the second device and the associated information for each third device. The associated information represents the interaction state between the corresponding third device and the second device.
[0052] This disclosure provides a complex data type that can represent complex information for a preset protocol, enabling the preset protocol to support devices with complex functions.
[0053] In this disclosure, complex data types are added to the preset protocol from two perspectives: a list for expressing a variable amount of data, and a structure for expressing composite information. The following embodiments further illustrate the preset protocol in this disclosure.
[0054] In one embodiment of this disclosure, a list represents third devices that are associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; the structure represents the association relationship between each third device and the corresponding association information.
[0055] In this embodiment of the disclosure, complex data types are added to the attributes in the preset protocol from two perspectives. The first is a data type used to represent composite information, named a structure (or struct). The second is a data type used to represent a variable quantity of data, named a list (or array). Structures and lists can be nested; that is, a structure can contain a list, and a list can contain a structure.
[0056] In this embodiment of the disclosure, when representing and transmitting device-related information using a complex data type containing structures and lists, a list representing a variable number represents a series of third devices associated with the second device, such as 0, 1, ..., n. A list also represents a series of associated information corresponding to the third devices, such as [information 1, information 2, ..., information n]. A structure representing the complex data type constructs the correspondence between the third devices and the associated information; that is, a structure represents a series of mutually corresponding third devices and associated information, such as [(device 1, information 1), (device 2, information 2), ..., (device n, information n)].
[0057] Understandably, in order to facilitate unified management of the complex information represented by complex data types, the definition of complex data types is stored in the outermost preset field (such as data-type-defs) of the device data model, and the complex information represented by complex data types is referenced in the attributes through preset methods (such as $ref).
[0058] In an exemplary embodiment of this disclosure, Figure 4 This is a schematic diagram illustrating a specification describing a device data model in a control protocol according to an exemplary embodiment of the present disclosure, such as... Figure 4As shown, the data model of the preset protocol in this disclosure includes a basic module and corresponding service information. The basic module is a fixed module in the control protocol, used to represent basic device information, such as manufacturer, data identifier (did), firmware version, etc. The service information corresponding to the basic module is used to represent device functions. The data model of the preset protocol includes a second module, including services representing the functions of the second module, and a series of properties representing device-related information of the second device. These properties may include a list of access devices, a list of device real-time download speeds, or an access device-device real-time download speed structure. The access device column represents a series of access devices that have established connections with the second module, the device real-time download speed list represents the real-time download speed of each access device, and the access device-device real-time download speed structure establishes the correspondence between each access device and its corresponding real-time download speed. The access device list, device real-time download speed list, and access device-device real-time download speed structure constitute complex data types. Preset fields (data-type-defs) can be added to uniformly manage these complex data types. Specifically, the preset fields manage the data types required for the "access device" and "device real-time download speed" attributes. Within these attributes, complex data types can be used directly in the same way as simple data types. Simple data types in attributes are represented by specific fields (format), such as "format":"bool". Complex data types are used in a similar way, but instead of simple data types, they are referenced based on preset fields. In one example, a complex data type is referenced as follows: "format":"$ref / data-type-defs / device-list".
[0059] In this embodiment of the disclosure, when the associated third device changes, the second device obtains updated device-related information and sends the updated device-related information to the cloud based on a preset protocol, so that the cloud sends the updated device-related information to the first device. The following embodiments of this disclosure describe the method for obtaining and displaying device-related information.
[0060] Figure 5 This is a flowchart illustrating a method for obtaining and displaying device-related information according to an exemplary embodiment. Figure 5 As shown, the method includes the following steps.
[0061] In step S201, the first device obtains the device-related information of the second device from the cloud and displays the device-related information.
[0062] In step S202, the first device obtains the latest updated device-related information from the cloud and displays the updated device-related information.
[0063] In this embodiment, if the second device associates with a new third device or some third devices are no longer associated with the second device, it is considered that the associated third devices have changed. In this case, the second device obtains the updated device-related information and sends the updated device-related information to the cloud based on a preset protocol, so that the cloud sends the updated device-related information to the first device. If the device-related information of the third device is updated, but the first device is still displaying the old device-related information to the user, the first device obtains the updated device-related information from the cloud and displays the updated device-related information. Through this disclosure, the second device monitors its own status in real time, obtains updated device-related information when its own status changes, and sends the updated device-related information to the first device through the cloud, so that the device-related information viewed by the target device through the first device matches the actual situation of the second device.
[0064] In this embodiment of the disclosure, the second device is associated with one or more third devices. A change in the number of third devices associated with the second device is considered a change in the number of third devices associated with the second device. The following embodiments of this disclosure further illustrate the situation where the third devices associated with the second device change and the method for obtaining updated device-related information.
[0065] In one embodiment of this disclosure, a change in the third device associated with the second device includes: the second device newly associating with a third device. The updated device-related information includes a device identifier and the association information corresponding to the newly associated third device, where the device identifier represents the newly associated third device. The device identifier and the association information corresponding to the newly associated third device are constructed into a target structure by the second device, and the target structure is added to a history list by the third device to obtain the updated device-related information. The history list includes the device-related information before the update.
[0066] In this embodiment, when a second device is associated with a new third device, it is considered that the associated third device has changed. In this case, the second device determines the device identifier and association information of the newly associated third device, constructs a target structure from these identifiers and association information, adds the target structure to the history list, updates the device association information, obtains the updated device association information, and uploads the updated device association information to the cloud. The cloud then sends the updated device-related information to the first device, allowing the user to view the updated device-related information through the first device. The history list includes the device-related information before the update; that is, the history list includes the device identifiers of the third devices already associated with the second device and their association information, and includes a structure consisting of the device identifiers of the associated third devices and their corresponding association information. Through this disclosure, the second device monitors its associated third devices in real time, obtains updated device-related information when the associated third devices change, and sends the updated device-related information to the first device via the cloud, ensuring that the device-related information viewed by the target device through the first device matches the actual situation on the second device.
[0067] It is understandable that changes to the third device associated with the second device also include situations where the second device disconnects from the associated third device. In this case, the structure corresponding to the disconnected third device can be deleted from the history list to update the device association information.
[0068] Furthermore, it can be understood that when a second device is associated with a third device, the interaction state between the third device and the second device will continuously change. In this case, the association information corresponding to the third device will change accordingly. Based on this, this disclosure can update the device association information in response to changes in the association information corresponding to the third device. That is, the second device monitors the association information of the third device it is associated with. If the association information of the third device changes, it obtains the latest association information and updates the corresponding structure based on the device identifier of the third device, thereby completing the update of the device-related information and obtaining the updated device association information. The updated device association information is uploaded to the cloud, so that the cloud sends the updated device-related information to the first device, allowing the user to view the updated device-related information through the first device.
[0069] In an exemplary embodiment of this disclosure, when the first device is a user terminal, the second device is a router, and the third device is an access device that accesses the router's wireless network,... Figure 6 This is a schematic diagram illustrating a device information access method according to an exemplary embodiment of the present disclosure, such as...Figure 6 As shown, the updating of device association information is illustrated as follows: After the access device connects to the network provided by the router, the router determines the device identifier of the access device, denoted as:
[0070] The value is set to "device_mac": "xx:xx:xx:xx", and the network download speed of the access device (related information) is determined and recorded as:
[0071] "download_speed": "xxxkb / s". Then, based on the device identifier of the access device and the network download speed, a target structure (denoted as device-download) corresponding to the access device is constructed. The construction method is as follows:
[0072] {“device_mac”:”xx:xx:xx:xx”,”download_speed”:”xxxkb / s”}. The constructed target structure corresponding to the access device is added to the history list (device-download-list), where the history list is a list of associated devices and network download speeds conforming to a preset protocol specification. The router uploads the history list with the added target structure as updated device-related information to the cloud based on the preset protocol, and the cloud transmits the updated device-related information to the user terminal. The user terminal displays the device-related information to the user through a preset terminal application. For this exemplary embodiment, it can be understood that if there are no access devices for the router, the list used by the router to store device-related information is an empty list, which can be denoted as: [].
[0073] In this embodiment of the disclosure, the process of obtaining device-related information and uploading it to the cloud is performed by the second device. The following embodiments of this disclosure describe the device information access method applied to the second device.
[0074] Figure 7 This is a flowchart illustrating a device information access method applied to a second device according to an exemplary embodiment. Figure 7 As shown, the method includes the following steps.
[0075] In step S301, the second device obtains device-related information based on the third devices associated with the second device and the association information corresponding to each third device. The association information represents the interaction state between the corresponding third device and the second device, and the device-related information represents the third devices associated with the second device and the association information corresponding to each third device.
[0076] In step S302, the second device uploads device-related information to the cloud so that the cloud sends device-related information to the second device when the first device sends a request to the cloud to obtain device-related information. The first device requests device-related information from the cloud when it receives a data access instruction from the user. The first device, the second device, and the cloud are associated with each other and interact based on a preset protocol. The preset protocol represents device-related information through lists and structures.
[0077] In this embodiment, after receiving a data access command from a user, the first device determines the second device corresponding to the data access command. The first device retrieves and displays the device-related information of the second device from the cloud. The device-related information stored in the cloud is the device information automatically uploaded by the second device. The first device, the second device, and the cloud are associated, and they interact based on a preset protocol. The device-related information is transmitted from the second device to the cloud based on the preset protocol. The preset protocol represents the device-related information through lists and structures. The device-related information represents the third devices associated with the second device and the associated information for each third device. The associated information represents the interaction state between the corresponding third device and the second device.
[0078] This disclosure provides a complex data type that can represent complex information for a preset protocol, enabling the preset protocol to support devices with complex functions.
[0079] In this embodiment of the disclosure, when the associated third device changes, the second device obtains updated device-related information and sends the updated device-related information to the cloud based on a preset protocol, so that the cloud sends the updated device-related information to the first device. The following embodiments of this disclosure describe the process of updating device-related information and uploading the updated device-related information to the cloud.
[0080] Figure 8 This is a flowchart illustrating a method for sending device-related information according to an exemplary embodiment. Figure 8 As shown, the method includes the following steps.
[0081] In step S401, in response to a change in the third device associated with the second device, the second device updates its device-related information to obtain the updated device-related information.
[0082] In step S402, the updated device-related information is sent to the cloud based on a preset protocol, so that the cloud sends the updated device-related information to the first device, and the first device obtains and displays the updated device-related information.
[0083] In this embodiment, if the second device associates with a new third device or some third devices are no longer associated with the second device, it is considered that the associated third devices have changed. In this case, the second device obtains the updated device-related information and sends the updated device-related information to the cloud based on a preset protocol, so that the cloud sends the updated device-related information to the first device. If the device-related information of the third device is updated, but the first device is still displaying the old device-related information to the user, the first device obtains the updated device-related information from the cloud and displays the updated device-related information. Through this disclosure, the second device monitors its own status and obtains updated device-related information when its own status changes, and sends the updated device-related information to the first device through the cloud, so that the device-related information viewed by the target device through the first device matches the actual situation of the second device.
[0084] In this embodiment of the disclosure, the second device is associated with one or more third devices. A change in the number of third devices associated with the second device is considered a change in the number of third devices associated with the second device. The following embodiments of this disclosure further illustrate the method for the second device to obtain updated device-related information.
[0085] Figure 9 This is a flowchart illustrating a method for obtaining updated device-related information according to an exemplary embodiment. The method includes the following steps.
[0086] In step S501, in response to the second device being newly associated with a third device, it is determined that the third device associated with the second device has changed.
[0087] In step S502, the second device determines the device identifier representing the newly associated third device and determines the association information of the newly associated third device.
[0088] In step S503, the association information and device identifier of the newly associated third device are constructed into a target structure, and the target structure is added to the history list to obtain the updated device-related information. The history list includes the device-related information before the update.
[0089] In this embodiment, when the second device is associated with a new third device, it is considered that the associated third device has changed. In this case, the second device determines the device identifier and association information of the newly associated third device, constructs a target structure from the device identifier and association information, adds the target structure to the history list, updates the device association information, obtains the updated device association information, and uploads the updated device association information to the cloud. The cloud then sends the updated device-related information to the first device, allowing the user to view the updated device-related information through the first device. The history list includes the device-related information before the update; that is, the history list includes the device identifier of the third device already associated with the second device and the association information of the associated device, and includes a structure consisting of the device identifier of the associated third device and the corresponding association information of the associated device.
[0090] Through this disclosure, the second device monitors its associated third device in real time, obtains updated device-related information when the associated third device changes, and sends the updated device-related information to the first device via the cloud, so that the device-related information viewed by the target device through the first device matches the actual situation of the second device.
[0091] In this embodiment, after receiving a data access command from a user, the first device determines the second device corresponding to the data access command. The first device retrieves and displays the device-related information of the second device from the cloud. The device-related information stored in the cloud is the device information automatically uploaded by the second device. The first device, the second device, and the cloud are associated, and they interact based on a preset protocol. The device-related information is transmitted from the second device to the cloud based on the preset protocol. The preset protocol represents the device-related information through lists and structures. The device-related information represents third devices associated with the second device and the associated information for each third device. The associated information represents the interaction state between the corresponding third device and the second device. Specifically, the list represents the third devices associated with the second device in the device-related information, and the list also represents the associated information for each third device; the structure represents the association relationship between each third device and its corresponding associated information. Furthermore, if the associated third device changes, the second device retrieves the updated device-related information and sends it to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device, and the first device displays the updated device-related information to the user. This disclosure specifies a complex data type capable of representing complex information for a pre-defined protocol, enabling the pre-defined protocol to support devices with complex functions. The second device monitors its own status and, upon changes in its status, obtains updated device-related information. This updated information is then sent to the first device via the cloud, ensuring that the device-related information viewed by the target device through the first device matches the actual situation on the second device.
[0092] Based on the same concept, this disclosure also provides a device information access device 100.
[0093] It is understood that the device information access device 100 provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by 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, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.
[0094] Figure 10 This is a block diagram illustrating a device information access apparatus 100 according to an exemplary embodiment. (Refer to...) Figure 10 The device includes a determining unit 101 and a processing unit 102.
[0095] The determining unit 101 is used to receive a data access instruction issued by a user and determine the second device corresponding to the data access instruction. The data access instruction is used to request access to the device-related information of the second device. The device-related information represents the third device associated with the second device and the association information corresponding to each third device. The association information represents the interaction state between the corresponding third device and the second device.
[0096] The processing unit 102 is used for the first device to obtain device-related information of the second device from the cloud and display the device-related information. The first device, the second device and the cloud are associated, and the first device, the second device and the cloud interact based on a preset protocol. The device-related information is transmitted to the cloud by the second device based on the preset protocol. The preset protocol represents the device-related information through lists and structures.
[0097] In one implementation, a list represents third devices associated with the second device from the device-related information, and the list also represents the associated information for each third device. A structure represents the association relationship between each third device and its corresponding associated information.
[0098] In one embodiment, when a change occurs to the associated third device, the second device updates its device-related information, obtains the updated device-related information, and sends the updated device-related information to the cloud based on a preset protocol, so that the cloud sends the updated device-related information to the first device. During the process of the first device displaying the device-related information, the processing unit 102 uses the following method to enable the first device to obtain and display the device-related information of the second device from the cloud: the first device obtains the latest updated device-related information issued by the cloud and displays the updated device-related information.
[0099] In one implementation, a change in the third device associated with the second device includes: the second device newly associating with a third device. The updated device-related information includes a device identifier and the association information corresponding to the newly associated third device, where the device identifier represents the newly associated third device. The second device constructs a target structure from the device identifier and the association information corresponding to the newly associated third device, and the target structure is added to a history list by the third device to obtain the updated device-related information. The history list includes the device-related information before the update.
[0100] Figure 11 This is a block diagram illustrating a device information access apparatus 200 according to an exemplary embodiment. (Refer to...) Figure 11 The device includes an acquisition unit 201 and a transmission unit 202.
[0101] The acquisition unit 201 is used for the second device to obtain device-related information based on the third devices associated with the second device and the association information corresponding to each third device. The association information represents the interaction state between the corresponding third device and the second device, and the device-related information represents the third devices associated with the second device and the association information corresponding to each third device.
[0102] The transmission unit 202 is used for the second device to upload device-related information to the cloud, so that the cloud sends device-related information to the second device when the first device sends a request to the cloud to obtain device-related information. The first device requests to obtain device-related information from the cloud when it receives a data access instruction from the user. The first device, the second device and the cloud are associated, and the first device, the second device and the cloud interact based on a preset protocol. The preset protocol represents device-related information through lists and structures.
[0103] In one implementation, a list represents third devices associated with the second device from the device-related information, and the list also represents the associated information for each third device. A structure represents the association relationship between each third device and its corresponding associated information.
[0104] In one embodiment, the acquisition unit 201 is further configured to: in response to a change in the third device associated with the second device, update the device-related information of the second device, obtain the updated device-related information, and send the updated device-related information to the cloud based on a preset protocol, so that the cloud sends the updated device-related information to the first device, and enables the first device to obtain the updated device-related information and display the updated device-related information.
[0105] In one embodiment, the acquisition unit 201 responds to a change in the third device associated with the second device in the following manner: In response to the second device newly associating with a third device, it determines that the third device associated with the second device has changed. The acquisition unit updates the device-related information of the second device in the following manner to obtain the updated device-related information: The second device determines the device identifier representing the newly associated third device and determines the association information of the newly associated third device. The association information of the newly associated third device and the device identifier are constructed into a target structure, and the target structure is added to a history list to obtain the updated device-related information. The history list includes the device-related information before the update.
[0106] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0107] Figure 12This is a block diagram illustrating an apparatus 300 for accessing device information according to an exemplary embodiment. The apparatus 300 can be provided as a terminal. For example, the apparatus 300 can be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0108] Reference Figure 12 The device 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input / output (I / O) interface 312, sensor component 314, and communication component 316.
[0109] Processing component 302 typically controls the overall operation of device 300, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 302 may include one or more processors 320 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 302 may include one or more modules to facilitate interaction between processing component 302 and other components. For example, processing component 302 may include a multimedia module to facilitate interaction between multimedia component 308 and processing component 302.
[0110] Memory 304 is configured to store various types of data to support the operation of device 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, etc. Memory 304 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.
[0111] The power supply component 306 provides power to the various components of the device 300. The power supply component 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 300.
[0112] Multimedia component 308 includes a screen that provides an output interface between the device 300 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 308 includes a front-facing camera and / or a rear-facing camera. When the device 300 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.
[0113] Audio component 310 is configured to output and / or input audio signals. For example, audio component 310 includes a microphone (MIC) configured to receive external audio signals when device 300 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 304 or transmitted via communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
[0114] I / O interface 312 provides an interface between processing component 302 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.
[0115] Sensor assembly 314 includes one or more sensors for providing status assessments of various aspects of device 300. For example, sensor assembly 314 may detect the on / off state of device 300, the relative positioning of components such as the display and keypad of device 300, changes in the position of device 300 or a component of device 300, the presence or absence of user contact with device 300, the orientation or acceleration / deceleration of device 300, and temperature changes of device 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 314 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0116] Communication component 316 is configured to facilitate wired or wireless communication between device 300 and other devices. Device 300 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 316 receives broadcast signals or broadcast information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 316 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.
[0117] In an exemplary embodiment, the apparatus 300 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 above.
[0118] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, which can be executed by a processor 320 of the device 300 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.
[0119] Figure 13 This is a block diagram illustrating an apparatus 400 for accessing device information according to an exemplary embodiment. For example, apparatus 400 may be provided as a server. (Refer to...) Figure 13 The apparatus 400 includes a processing component 422, which further includes one or more processors, and memory resources represented by memory 432 for storing instructions, such as application programs, that can be executed by the processing component 422. The application programs stored in memory 432 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 422 is configured to execute instructions to perform the aforementioned XX method.
[0120] Device 400 may also include a power supply component 426 configured to perform power management of device 400, a wired or wireless network interface 450 configured to connect device 400 to a network, and an input / output (I / O) interface 458. Device 400 may operate on an operating system stored in memory 432, such as Windows Server™, MacOSX™, Unix™, Linux™, FreeBSD™, or similar.
[0121] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.
[0122] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.
[0123] It is further understood that the terms “center,” “longitudinal,” “lateral,” “front,” “rear,” “up,” “down,” “left,” “right,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” and “outer,” etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation.
[0124] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.
[0125] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.
[0126] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed 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.
[0127] 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.
Claims
1. A method for accessing device information, characterized in that, include: The first device receives a data access instruction from the user and determines the second device corresponding to the data access instruction. The data access instruction is used to request access to the device-related information of the second device. The device-related information represents a third device associated with the second device and the association information corresponding to each third device. The association information represents the interaction state between the corresponding third device and the second device. The first device obtains device-related information of the second device from the cloud and displays the device-related information. The first device, the second device and the cloud are associated, and the first device, the second device and the cloud interact based on a preset protocol. The device-related information is transmitted from the second device to the cloud based on the preset protocol. The preset protocol represents the device-related information through lists and structures.
2. The method according to claim 1, characterized in that, The list represents the third devices associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; The structure represents the association between each third device and its corresponding associated information.
3. The method according to claim 1, characterized in that, When the associated third device changes, the second device updates its device-related information to obtain the updated device-related information, and sends the updated device-related information to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device; During the process of the first device displaying the device-related information, the first device obtains the device-related information of the second device from the cloud and displays the device-related information, including: The first device obtains the latest updated device-related information issued by the cloud and displays the updated device-related information.
4. The method according to claim 3, characterized in that, The situation where the third device associated with the second device changes includes: the second device being newly associated with a third device; The updated device-related information includes a device identifier and association information corresponding to a newly associated third device, wherein the device identifier represents the newly associated third device; The device identifier and the association information corresponding to the newly associated third device are constructed into a target structure by the second device. The target structure is added to the history list by the third device to obtain the updated device-related information. The history list includes the device-related information before the update.
5. A method for accessing device information, characterized in that, include: The second device obtains device-related information based on the third devices associated with the second device and the association information corresponding to each third device. The association information represents the interaction state between the corresponding third device and the second device, and the device-related information represents the third devices associated with the second device and the association information corresponding to each third device. The second device uploads the device-related information to the cloud, so that the cloud sends the device-related information to the second device when the first device sends a request to the cloud to obtain the device-related information. The first device requests the device-related information from the cloud when it receives a data access instruction from the user. The first device, the second device, and the cloud are associated with each other, and the first device, the second device, and the cloud interact based on a preset protocol. The preset protocol represents the device-related information through lists and structures.
6. The method according to claim 5, characterized in that, The list represents the third devices associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; The structure represents the association between each third device and its corresponding associated information.
7. The method according to claim 5, characterized in that, The method further includes: In response to a change in the third device associated with the second device, the second device updates its device-related information, obtains the updated device-related information, and sends the updated device-related information to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device, and the first device obtains and displays the updated device-related information.
8. The method according to claim 7, characterized in that, The response to a change in the third device associated with the second device includes: In response to the second device newly associating with a third device, it is determined that the third device associated with the second device has changed; The second device updates its device-related information to obtain the updated device-related information, including: The second device determines the device identifier representing the newly associated third device, and determines the association information of the newly associated third device; The association information of the newly associated third device and the device identifier are used to construct a target structure, and the target structure is added to the history list to obtain the updated device-related information. The history list includes the device-related information before the update.
9. A device information access apparatus, characterized in that, include: The determining unit is used for receiving a data access instruction from a user by a first device, determining a second device corresponding to the data access instruction, wherein the data access instruction is used to request access to device-related information of the second device, wherein the device-related information represents a third device associated with the second device and association information corresponding to each third device, and the association information represents the interaction state between the corresponding third device and the second device; The processing unit is configured to have the first device obtain device-related information of the second device from the cloud and display the device-related information. The first device, the second device and the cloud are associated, and the first device, the second device and the cloud interact based on a preset protocol. The device-related information is transmitted from the second device to the cloud based on the preset protocol. The preset protocol represents the device-related information through lists and structures.
10. The apparatus according to claim 9, characterized in that, The list represents the third devices associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; The structure represents the association between each third device and its corresponding associated information.
11. The apparatus according to claim 9, characterized in that, When the associated third device changes, the second device updates its device-related information to obtain the updated device-related information, and sends the updated device-related information to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device; During the process of the first device displaying the device-related information, the processing unit uses the following method to enable the first device to obtain the device-related information of the second device from the cloud and display the device-related information: The first device obtains the latest updated device-related information issued by the cloud and displays the updated device-related information.
12. The apparatus according to claim 11, characterized in that, The situation where the third device associated with the second device changes includes: the second device being newly associated with a third device; The updated device-related information includes a device identifier and association information corresponding to a newly associated third device, wherein the device identifier represents the newly associated third device; The device identifier and the association information corresponding to the newly associated third device are constructed into a target structure by the second device. The target structure is added to the history list by the third device to obtain the updated device-related information. The history list includes the device-related information before the update.
13. A device information access apparatus, characterized in that, include: The acquisition unit is used for the second device to obtain device-related information based on the third devices associated with the second device and the association information corresponding to each third device. The association information represents the interaction state between the corresponding third device and the second device, and the device-related information represents the third devices associated with the second device and the association information corresponding to each third device. A transmission unit is used for the second device to upload the device-related information to the cloud, so that the cloud sends the device-related information to the second device when the first device sends a request to the cloud to obtain the device-related information. The first device requests the cloud to obtain the device-related information when it receives a data access instruction from the user. The first device, the second device, and the cloud are associated with each other, and the first device, the second device, and the cloud interact based on a preset protocol. The preset protocol represents the device-related information through lists and structures.
14. The apparatus according to claim 13, characterized in that, The list represents the third devices associated with the second device in the device-related information, and the list represents the association information corresponding to each third device; The structure represents the association between each third device and its corresponding associated information.
15. The apparatus according to claim 13, characterized in that, The acquisition unit is also used for: In response to a change in the third device associated with the second device, the second device updates its device-related information, obtains the updated device-related information, and sends the updated device-related information to the cloud based on the preset protocol, so that the cloud sends the updated device-related information to the first device, and the first device obtains and displays the updated device-related information.
16. The apparatus according to claim 15, characterized in that, The acquisition unit responds to changes in the third device associated with the second device in the following manner: In response to the second device newly associating with a third device, it is determined that the third device associated with the second device has changed; The acquisition unit updates the device-related information of the second device in the following manner to obtain the updated device-related information: The second device determines the device identifier representing the newly associated third device, and determines the association information of the newly associated third device; The association information of the newly associated third device and the device identifier are used to construct a target structure, and the target structure is added to the history list to obtain the updated device-related information. The history list includes the device-related information before the update.
17. An electronic device, characterized in that, include: processor: Memory used to store processor-executable instructions; The processor is configured to execute the device information access method according to any one of claims 1 to 4 or the device information access method according to any one of claims 5 to 8.
18. A storage medium, characterized in that, The storage medium stores instructions that, when executed by a processor, enable the processor to perform the device information access method according to any one of claims 1 to 4 or the device information access method according to any one of claims 5 to 8.