Method and system for setting accessory equipment, storage medium and electronic device
By receiving and processing the relationship list of accessory devices, the associated binding and remote control of accessory devices and target devices are achieved, solving the problem of linkage control of accessory devices in smart homes, improving management and display efficiency, and providing remote access capabilities.
Patent Information
- Application Number
- CN202111595627.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-23
AI Technical Summary
In the field of smart home, it is difficult to realize the linkage control between accessory devices and their attached devices, which results in users needing cumbersome independent configuration, binding and display to interfere with the functions of other devices. Moreover, most accessory devices lack WiFi communication capabilities and cannot be viewed or controlled remotely.
By receiving the relationship list uploaded by the target device, perform device binding of the accessory device, add its device role characteristics to the details page of the target device, and send the binding result to the target application to realize the association binding between the target device and the accessory device. setting and remote control.
It achieves effective linkage and unified management between accessory devices and target devices, avoids the interference of separate configuration and display of multiple accessory devices, improves the display effect of the details page, and gives accessory devices remote access capabilities.
Smart Images

Figure CN114488825B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a method and system for setting an accessory device, a storage medium and an electronic device. Background Art
[0002] In the field of smart home, there are some devices similar to accessories, such as TV air conditioner remote control, heating furnace thermostat, and water heater faucet. There are two main characteristics of this type of device. First, their functions are mainly dependent on other devices, and users will not buy a remote control or thermostat separately. Second, there may be a lot of them, such as 2 to 3 thermostats for heating furnaces. There are several challenges for the intelligence of such devices. First, how to configure and bind. There are many such devices, but most of them do not have independent functions. If they all need to be independently configured and bound, it may be a tedious task for users. The other is how to display these devices. If they are all displayed as independent devices in the APP or screen, it will interfere with the display of other important functional devices. In addition, these devices are strongly associated with the devices they are attached to, and flat display cannot reflect this relationship. Third, most of these devices may not have WiFi communication capabilities, resulting in the inability to view or control them remotely. Fourth, the functions of these devices are basically linked to the attached devices, such as the remote control controls the air conditioner switch and the thermostat adjusts the temperature of the heating furnace. How to associate these devices with the attached devices and generate linkage is a challenge.
[0003] In view of the problem in the related art that linkage control between a target device and its corresponding accessory devices cannot be achieved, no effective solution has been proposed. Summary of the invention
[0004] The embodiments of the present invention provide a method and system for setting an accessory device, a storage medium and an electronic device, so as to at least solve the problem in the related art that linkage control between a target device and an accessory device corresponding to the target device cannot be achieved.
[0005] According to an embodiment of the present invention, there is provided a method for setting up an accessory device, which is applied to a target cloud, and includes: receiving a relationship list uploaded by a target device, wherein the relationship list is used to indicate master-slave information between the target device and one or more accessory devices; binding the accessory device according to the relationship list, wherein the device binding is at least used to indicate adding a device role feature of the accessory device to a device details page of the target device; sending a result of the device binding to a target application of a target account logged in, so as to set up the accessory device through the target application, wherein the target account and the target device are associated and bound, and a functional interface corresponding to the device details page of the target device is allowed to be displayed in the target application of the target account logged in.
[0006] In an exemplary embodiment, after sending the result of the device binding to the target application that logs in to the target account, the above method also includes: receiving sharing information sent by the target application; adjusting the setting permissions of the target device for the accessory device to other devices based on the sharing information, so that the other devices can set the accessory device according to the setting permissions, wherein the other devices and the target device are devices that support data proxy.
[0007] In an exemplary embodiment, before or after receiving the relationship list uploaded by the target device, the method further includes: obtaining a target account that has been associated and bound with the target device, wherein the association and binding is used to indicate that all functions in the target device allow remote control through a target application logged in to the target account; determining authorization information of the target application; and determining, based on the authorization information, the target application's authority to connect to the target cloud to control the target device and / or attached devices.
[0008] In an exemplary embodiment, device binding is performed on the accessory device according to the relationship list, including: obtaining a device type of a preset target device and category information of the accessory device corresponding to the device type; integrating the relationship list according to the device type and the category information to obtain an associated binding list that allows device binding to be performed; and completing device binding between the target device and the accessory device according to the associated binding list.
[0009] In an exemplary embodiment, after the device binding result is sent to the target application that logs into the target account so that the accessory device can be set up through the target application, the method further includes: receiving a remote control instruction of the target application; sending a control command for controlling the accessory device to the target device according to the remote control instruction, and obtaining the forwarding result of the control command by the target device to determine whether there is an accessory device to be executed for the control command.
[0010] According to another embodiment of the embodiments of the present invention, another method for setting up an accessory device is provided, which is applied to a target device, including: generating a relationship list between the target device and the accessory devices, wherein the relationship list is used to indicate master-slave information between the target device and one or more accessory devices; sending the relationship list to a target cloud to instruct the target cloud to perform device binding on the target device and one or more of the accessory devices, and sending the result of the device binding to a target application, wherein the target device is associated and bound with a target account logged in by the target application, and the target application allows the display of a functional interface corresponding to the device details page of the target device after logging in to the target account.
[0011] In an exemplary embodiment, generating a relationship list between a target device and an accessory device includes: opening a local connection interface, wherein the local connection interface is used to receive device characteristic data uploaded by the accessory device and establish a communication connection with the accessory device; obtaining the device characteristic data received by the local connection interface, and generating a relationship list between the target device and the accessory device based on the device characteristic data.
[0012] In an exemplary embodiment, before obtaining the device characteristic data received by the local connection interface and generating a relationship list between the target device and the accessory devices based on the device characteristic data, the method further includes: receiving configuration information sent by the target application; determining the device details page of the target device based on the configuration information, and completing association and binding with the target account logged in by the target application, wherein the association and binding is used to indicate that all functions in the target device allow remote control through the target application logged in to the target account.
[0013] In an exemplary embodiment, after sending the relationship list to the target cloud to instruct the target cloud to perform device binding on the target device and one or more of the accessory devices, and sending the result of the device binding to the target application, the above method also includes: receiving a control command sent by the target cloud, wherein the control command is a device command for controlling the accessory device determined according to the remote control instruction of the target application; when it is determined that there is an accessory device to be executed for the control command, forwarding the control command to the corresponding target accessory device, and determining the forwarding result of the control command.
[0014] According to another embodiment of the embodiments of the present invention, there is also provided a system for setting up an accessory device, comprising: a target device, for generating a relationship list between the target device and the accessory device, wherein the relationship list is used to indicate the master-slave information between the target device and one or more accessory devices; sending the relationship list to a target cloud; a target cloud, for receiving the relationship list uploaded by the target device, binding the accessory device according to the relationship list, and sending the result of the device binding to a target application of a target account logged in, so as to set up the accessory device through the target application; wherein an associated binding exists between the target account and the target device; a functional interface corresponding to the device details page of the target device is allowed to be displayed in the target application of the target account logged in; the device binding is at least used to indicate that the device role characteristics of the accessory device are added to the device details page of the target device.
[0015] In an exemplary embodiment, the above system also includes: a target application, which is used to send configuration information of a device details page to the target device, or to send sharing information to the target cloud, wherein the sharing information is used to indicate that the setting permissions of the target device for the accessory device are adjusted to other devices, and the other devices and the target device are devices that support data proxy.
[0016] In an exemplary embodiment, the system further includes: an accessory device, configured to upload its own device characteristics to the target device, and / or receive a control command forwarded by the target device.
[0017] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for setting up the accessory device when running.
[0018] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for setting up the accessory device through the computer program.
[0019] In an embodiment of the present invention, a relationship list uploaded by a target device is received, wherein the relationship list is used to indicate master-slave information between the target device and one or more accessory devices; device binding is performed on the accessory device according to the relationship list, wherein the device binding is at least used to indicate adding device role characteristics of the accessory device to a device details page of the target device; a result of the device binding is sent to a target application of a target account logged in to set the accessory device through the target application, wherein the target account and the target device are associated and bound, and a functional interface corresponding to the device details page of the target device is allowed to be displayed in the target application of the target account logged in. That is, by associating and binding the accessory device with the target device, a master-slave relationship between the devices is formed, and the device role characteristics of the slave device (i.e., the accessory device) are added to the device details page of the master device (target device) for display, thereby achieving effective linkage between the target device and the accessory device. The above technical solution solves the problem of being unable to achieve linkage control between the target device and the accessory device corresponding to the target device, thereby achieving unified management of the target device and the accessory device in a master-slave relationship, avoiding the need for separate configuration binding and sharing settings for multiple accessory devices, and improving the display effect of the details page of the target device and the accessory device in a master-slave relationship, so that the data path of the accessory device can adopt the path of the target device, thereby having remote access capability. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0021] Figure 1 It is a hardware structure block diagram of the cloud of a method for setting an accessory device according to an embodiment of the present invention;
[0022] Figure 2 is a flow chart of a method for setting an accessory device according to an embodiment of the present invention (I);
[0023] Figure 3 is a flow chart (II) of a method for setting an accessory device according to an embodiment of the present invention;
[0024] Figure 4 is a schematic diagram of the structure of an accessory device model as an overall framework of interactive experience and platform processing logic according to an optional embodiment of the present invention;
[0025] Figure 5 is a flow chart of determining the master-slave relationship, binding, sharing and data proxy of an accessory device according to an optional embodiment of the present invention;
[0026] Figure 6 is a structural block diagram of a system for setting up an accessory device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a cloud or a similar computing device. Taking running on the cloud as an example, Figure 1 1 is a hardware structure diagram of the cloud of a method for setting an accessory device according to an embodiment of the present invention. Figure 1 As shown, the cloud may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the cloud may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the cloud. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.
[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the setting method of the accessory device in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the cloud via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider in the cloud. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0032] In this embodiment, a method for setting an accessory device is provided, which is applied to the above-mentioned cloud. Figure 21 is a flow chart of a method for setting an accessory device according to an embodiment of the present invention (I), the flow chart comprising the following steps:
[0033] Step S202, receiving a relationship list uploaded by a target device, wherein the relationship list is used to indicate master-slave information existing between the target device and one or more accessory devices;
[0034] Step S204, performing device binding on the accessory device according to the relationship list, wherein the device binding is at least used to indicate adding a device role feature of the accessory device to a device details page of the target device;
[0035] Step S206, sending the device binding result to the target application of the logged-in target account, so as to set the accessory device through the target application, wherein the target account is associated and bound with the target device, and the target application of the logged-in target account allows the display of the function interface corresponding to the device details page of the target device.
[0036] Through the above steps, a relationship list uploaded by the target device is received, wherein the relationship list is used to indicate the master-slave information between the target device and one or more accessory devices; the accessory device is bound according to the relationship list, wherein the device binding is at least used to indicate that the device role characteristics of the accessory device are added to the device details page of the target device; the result of the device binding is sent to the target application of the target account logged in, so that the accessory device is set through the target application, wherein the target account and the target device are associated and bound, and the function interface corresponding to the device details page of the target device is allowed to be displayed in the target application of the target account logged in. That is, by associating and binding the accessory device with the target device, a master-slave relationship between the devices is formed, and the device role characteristics of the slave device (i.e., the accessory device) are added to the device details page of the master device (target device) for display, thereby achieving effective linkage between the target device and the accessory device. The above technical solution solves the problem of being unable to achieve linkage control between the target device and the accessory device corresponding to the target device, thereby achieving unified management of the target device and the accessory device in a master-slave relationship, avoiding the need for separate configuration binding and sharing settings for multiple accessory devices, and improving the display effect of the details page of the target device and the accessory device in a master-slave relationship, so that the data path of the accessory device can adopt the path of the target device, thereby having remote access capability.
[0037] It should be noted that the target device is the master device in the master-slave relationship. The target device is usually an ordinary device or a gateway device with a WiFi communication module. Therefore, the accessory device can establish a master-slave relationship with the ordinary device and the gateway device as a slave device, and report the device role characteristics formed by the accessory device according to its own characteristics and configuration in real time. The device role characteristics are used to indicate the device interaction experience and the processing logic of the device on the cloud platform. For example, the device interaction experience can be the APP display corresponding to the accessory device, and the processing logic of the device on the cloud platform can also be a collection of accessory devices bound and shared on the cloud platform. In addition, the connotations of the above master-slave relationship are mainly: there is a master before there is a slave, the existence of the slave device depends on the master device, and generally does not exist independently; the master device generally actively initiates management and control of the slave device, and the slave device does not manage the master device; the slave device has only one master device, but the master device generally may have multiple slave devices.
[0038] In an exemplary embodiment, after sending the result of the device binding to the target application that logs in to the target account, the above method also includes: receiving sharing information sent by the target application; adjusting the setting permissions of the target device for the accessory device to other devices based on the sharing information, so that the other devices can set the accessory device according to the setting permissions, wherein the other devices and the target device are devices that support data proxy.
[0039] It can be understood that after the cloud completes the device binding of the target device and one or more accessory devices based on the master-slave relationship reported by the target device, when the target application corresponding to the target device receives sharing information, the target device's setting permissions for the accessory device can be adjusted to other devices based on the sharing information, so that other devices can control the accessory devices corresponding to the permission when obtaining the corresponding permission.
[0040] In an exemplary embodiment, before or after receiving the relationship list uploaded by the target device, the method further includes: obtaining a target account that has been associated and bound with the target device, wherein the association and binding is used to indicate that all functions in the target device allow remote control by logging into a target application of the target account; obtaining a target application that has been associated and bound with the target device, wherein the association and binding is used to indicate that all functions in the target device allow remote control by the target application; determining authorization information of the target application; and determining, based on the authorization information, the authority of the target application to connect to the target cloud to control the target device and / or its attached devices.
[0041] In short, in order to enable the target device to be remotely controlled, the target device is controlled by binding the corresponding target application to the target device, and the control details page of the target device and the target application are displayed on the target application, as well as the target application's permission to remotely control the target device and / or attached devices granted by the target cloud.
[0042] In an exemplary embodiment, device binding is performed on the accessory device according to the relationship list, including: obtaining a device type of a preset target device and category information of the accessory device corresponding to the device type; integrating the relationship list according to the device type and the category information to obtain an associated binding list that allows device binding to be performed; and completing device binding between the target device and the accessory device according to the associated binding list.
[0043] It can be seen that in order to ensure that the determined master-slave relationship satisfies the accessory device model stored on the target cloud, so that the binding of the target device and the accessory device is more targeted, the master-slave relationship uploaded by the target device is sorted according to the device type of the target device pre-set on the target cloud and the type information of the accessory device corresponding to the device type, thereby avoiding the master-slave relationship that does not meet the requirements to complete the device binding, so that the interactive experience and logical constraints between the target device and the accessory device are greatly enhanced.
[0044] In an exemplary embodiment, after the device binding result is sent to the target application that logs into the target account so that the accessory device can be set up through the target application, the method further includes: receiving a remote control instruction of the target application; sending a control command for controlling the accessory device to the target device according to the remote control instruction, and obtaining the forwarding result of the control command by the target device to determine whether there is an accessory device to be executed for the control command.
[0045] Optionally, the target application can remotely connect to the target cloud to send remote control instructions. The target cloud parses the remote control instructions to determine the control commands sent to the target device to control the accessory device, and then the remote setting of the accessory device is implemented through the target application. It should be noted that the premise for establishing a binding relationship between the target device and the accessory device is that the target device has established a corresponding relationship with the target cloud, and then the accessory device is bound through the main device agent. When the main device is unbound, the corresponding accessory device will also be unbound. The uplink and downlink data such as data reporting and downward control between the accessory device and the target cloud are all represented by the main device.
[0046] In an exemplary embodiment, the method further includes: upon receiving a control command sent by the target cloud, determining whether there is an accessory device to be executed by the control command, so as to forward the control command to the corresponding target accessory device. Receiving all device data reported by the target device, wherein the all device data is used to indicate the device data of the accessory device obtained through the local interface of the target device after the target device receives a device status abnormality sent by the accessory device.
[0047] In this embodiment, another method for setting an accessory device is provided, which is applied to a target device. Figure 3 1 is a flow chart of a method for setting an accessory device according to an embodiment of the present invention (II), the flow chart comprising the following steps:
[0048] Step S302, generating a relationship list between the target device and the accessory devices, wherein the relationship list is used to indicate the master-slave information existing between the target device and one or more accessory devices;
[0049] Step S304, sending the relationship list to the target cloud to instruct the target cloud to perform device binding on the target device and one or more of the accessory devices, and sending the device binding result to the target application, wherein the target device is associated and bound with the target account logged in by the target application, and the target application allows the function interface corresponding to the device details page of the target device to be displayed after logging in to the target account.
[0050] Through the above steps, a relationship list between the target device and the accessory devices is generated, wherein the relationship list is used to indicate the master-slave information between the target device and one or more accessory devices; the relationship list is sent to the target cloud to instruct the target cloud to perform device binding on the target device and one or more of the accessory devices, and the result of the device binding is sent to the target application, wherein the target device is associated and bound with the target account logged in by the target application, and the target application allows the display of the functional interface corresponding to the device details page of the target device after logging in to the target account. That is, by associating and binding the accessory device with the target device, a master-slave relationship between the devices is formed, and the device role characteristics of the slave device (i.e., the accessory device) are added to the device details page of the master device (target device) for display, thereby achieving effective linkage between the target device and the accessory device. The above technical solution solves the problem of being unable to achieve linkage control between the target device and the accessory device corresponding to the target device, thereby achieving unified management of the target device and the accessory device in a master-slave relationship, avoiding the need for separate configuration binding and sharing settings for multiple accessory devices, and improving the display effect of the details page of the target device and the accessory device in a master-slave relationship, so that the data path of the accessory device can adopt the path of the target device, thereby having remote access capability.
[0051] In an exemplary embodiment, generating a relationship list between a target device and an accessory device includes: opening a local connection interface, wherein the local connection interface is used to receive device characteristic data uploaded by the accessory device and establish a communication connection with the accessory device; obtaining the device characteristic data received by the local connection interface, and generating a relationship list between the target device and the accessory device based on the device characteristic data.
[0052] In an exemplary embodiment, before obtaining the device characteristic data received by the local connection interface and generating a relationship list between the target device and the accessory devices based on the device characteristic data, the method further includes: receiving configuration information sent by the target application; determining the device details page of the target device based on the configuration information, and completing association and binding with the target account logged in by the target application, wherein the association and binding is used to indicate that all functions in the target device allow remote control through the target application logged in to the target account.
[0053] In an exemplary embodiment, after sending the relationship list to the target cloud to instruct the target cloud to perform device binding on the target device and one or more of the accessory devices, and sending the result of the device binding to the target application, the above method also includes: receiving a control command sent by the target cloud, wherein the control command is a device command for controlling the accessory device determined according to the remote control instruction of the target application; when it is determined that there is an accessory device to be executed for the control command, forwarding the control command to the corresponding target accessory device, and determining the forwarding result of the control command.
[0054] In an exemplary embodiment, the method further includes: when an abnormal device status is received from the accessory device, obtaining all device data of the accessory device through a local connection interface, and reporting all device data to a target cloud; when a control command is received from the target cloud, determining whether there is an accessory device to be executed for the control command, so as to forward the control command to the corresponding target accessory device.
[0055] In order to better understand the process of the method for setting the above-mentioned accessory device, the implementation method flow of the setting of the above-mentioned accessory device is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present invention.
[0056] In this embodiment, an accessory device model is provided. Figure 4 is a schematic diagram of the structure of the accessory device model as the overall framework of the interactive experience and platform processing logic according to an optional embodiment of the present invention, such as Figure 4 As shown, including:
[0057] Cloud 42 (cloud platform), master device 44 (ordinary device, gateway device), slave device 46 (accessory device, sub-device);
[0058] By constraining the interactive experience of the accessory device, the binding and sharing processing logic of the accessory device, and the data agent of the accessory device in the above accessory device model, more effective and rapid management of the accessory device can be achieved.
[0059] Optionally, the following device role characteristics are set for the slave device 46 to clarify the interactive experience and platform logic constraints of the slave device, as shown in Table 1:
[0060] Table 1
[0061]
[0062]
[0063] It should be noted that the target device in the embodiment of the present invention is the master device in the master-slave relationship. The target device is usually an ordinary device or a gateway device with a WiFi communication module. Therefore, the accessory device can establish a master-slave relationship with the ordinary device and the gateway device as a slave device, and report the device role characteristics formed by the accessory device according to its own characteristics and configuration in real time. The device role characteristics are used to indicate the device interaction experience and the processing logic of the device on the cloud platform. For example, the device interaction experience can be the APP display corresponding to the accessory device, and the processing logic of the device on the cloud platform can also be a collection of accessory devices bound and shared on the cloud platform. In addition, the connotations of the above master-slave relationship are mainly as follows: there is a master before there is a slave, the existence of the slave device depends on the master device and generally does not exist independently; the master device generally actively initiates management and control of the slave device, and the slave device does not manage the master device; the slave device has only one master device, but the master device generally may have multiple slave devices.
[0064] As an optional implementation, the optional embodiment of the present application also provides a flowchart of the master-slave relationship, binding, sharing and data proxy determination of the accessory device, such as Figure 5 As shown:
[0065] Steps S502 to S504 are the process of the accessory device establishing a connection with the main device (equivalent to the target device in the embodiment of the present invention) and interacting with the cloud platform, including:
[0066] Step S502: The accessory device and the main device establish a master-slave relationship through a local connection (wired or wireless).
[0067] Step S504: After the master-slave relationship is established, the master device reports the corresponding master-slave relationship to the cloud platform (equivalent to the target cloud in the embodiment of the present invention).
[0068] Steps S506 to S514 are the process of completing device binding between the target application, the main device and the cloud platform, including:
[0069] Step S506: The target application connects to the main device for configuration;
[0070] Step S508: The cloud platform obtains information about the configuration of the target application on the main device, and binds the target application to the main device;
[0071] Step S510: After the master device reports the master-slave relationship, the cloud platform automatically binds the corresponding accessory device under the master device according to the corresponding relationship between the master device and the accessory device, when the master device is bound by the cloud platform; and then adds the device role characteristics of the accessory device to the device details page of the master device;
[0072] Step S512: After the cloud platform completes the binding according to the master-slave relationship, it pushes a notification message of the completion of the binding of the main device and the accessory device to the target application;
[0073] Step S514: Display the information of the corresponding bound accessory device in the main device details page of the target application.
[0074] Steps S516 to S518 are the target application interacting with the cloud platform to complete the sharing process, including:
[0075] Step S516: The target application receives the sharing demand of the target object and sends information that the master device can be controlled by other objects to the cloud platform;
[0076] Step S518: The cloud platform shares the control authority of the accessory device bound to the main device according to the master-slave relationship, so that the accessory device is bound to other main devices.
[0077] Steps S520 to S522 are uplink interactions performed by the main device on behalf of the accessory device, including:
[0078] Step S520: When the device state of the accessory device changes, the change information is sent to the main device through the established local connection;
[0079] Step S522: The master device reports the change information to the cloud platform;
[0080] Steps S524 to S528 are downstream interactions performed by the main device on behalf of the accessory device, including:
[0081] Step S524, the target application sends information of remotely controlling the accessory device to the cloud platform;
[0082] Step S526: The cloud platform parses the information of the remote control accessory device to determine the corresponding control command, and sends the control command to the main device corresponding to the accessory device;
[0083] Step S528: The master device receives the control command from the accessory device and forwards it to the accessory device (ie, the slave device).
[0084] Through the above optional embodiments, an additional device model is established between the main device and the accessory device in the cloud platform, so that the accessory device does not need separate configuration binding and sharing operations, and the user cost is low; and when using the additional device model, the accessory device does not have an independent card page display, and the details page is integrated in the main device details page, with a clear display and a clear association relationship; in addition, the data path of the accessory device can adopt the path of the main device, so that it has remote access capability, reducing the complexity of accessory device management.
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0086] Figure 6 is a structural block diagram of a system for setting up an accessory device according to an embodiment of the present invention; Figure 6 As shown, including:
[0087] The target device 62 is used to generate a relationship list between the target device and the accessory devices, wherein the relationship list is used to indicate the master-slave information between the target device and one or more accessory devices; and send the relationship list to the target cloud;
[0088] The target cloud 64 is used to receive a relationship list uploaded by a target device, perform device binding on the accessory device according to the relationship list, and send the result of the device binding to a target application logged in to the target account so as to set the accessory device through the target application; wherein, the target account and the target device are associated and bound; the target application logged in to the target account allows display of a functional interface corresponding to the device details page of the target device; the device binding is at least used to indicate that the device role characteristics of the accessory device are added to the device details page of the target device.
[0089] Through the above system, a relationship list uploaded by the target device is received, wherein the relationship list is used to indicate the master-slave information between the target device and one or more accessory devices; the accessory device is bound according to the relationship list, wherein the device binding is at least used to indicate that the device role characteristics of the accessory device are added to the device details page of the target device; the result of the device binding is sent to the target application of the target account logged in, so that the accessory device is set through the target application, wherein the target account and the target device are associated and bound, and the function interface corresponding to the device details page of the target device is allowed to be displayed in the target application of the target account logged in. That is, by associating and binding the accessory device with the target device, a master-slave relationship between the devices is formed, and the device role characteristics of the slave device (i.e., the accessory device) are added to the device details page of the master device (target device) for display, thereby achieving effective linkage between the target device and the accessory device. The above technical solution solves the problem of being unable to achieve linkage control between the target device and the accessory device corresponding to the target device, thereby achieving unified management of the target device and the accessory device in a master-slave relationship, avoiding the need for separate configuration binding and sharing settings for multiple accessory devices, and improving the display effect of the details page of the target device and the accessory device in a master-slave relationship, so that the data path of the accessory device can adopt the path of the target device, thereby having remote access capability.
[0090] It should be noted that the target device is the master device in the master-slave relationship. The target device is usually an ordinary device or a gateway device with a WiFi communication module. Therefore, the accessory device can establish a master-slave relationship with the ordinary device and the gateway device as a slave device, and report the device role characteristics formed by the accessory device according to its own characteristics and configuration in real time. The device role characteristics are used to indicate the device interaction experience and the processing logic of the device on the cloud platform. For example, the device interaction experience can be the APP display corresponding to the accessory device, and the processing logic of the device on the cloud platform can also be a collection of accessory devices bound and shared on the cloud platform. In addition, the connotations of the above master-slave relationship are mainly: there is a master before there is a slave, the existence of the slave device depends on the master device, and generally does not exist independently; the master device generally actively initiates management and control of the slave device, and the slave device does not manage the master device; the slave device has only one master device, but the master device generally may have multiple slave devices.
[0091] In an exemplary embodiment, the above system also includes: a target application, which is used to send configuration information of a device details page to the target device, or to send sharing information to the target cloud, wherein the sharing information is used to indicate that the setting permissions of the target device for the accessory device are adjusted to other devices, and the other devices and the target device are devices that support data proxy.
[0092] In an exemplary embodiment, the system further includes: an accessory device, configured to upload its own device characteristics to the target device, and / or receive a control command forwarded by the target device.
[0093] Optionally, the target cloud 64 is also used to receive sharing information sent by the target application; and adjust the setting permissions of the target device for the accessory device to other devices according to the sharing information, so that the other devices can set the accessory device according to the setting permissions, wherein the other devices and the target device are devices that support data proxy.
[0094] It can be understood that after the cloud completes the device binding of the target device and one or more accessory devices based on the master-slave relationship reported by the target device, when the target application corresponding to the target device receives sharing information, the target device's setting permissions for the accessory device can be adjusted to other devices based on the sharing information, so that other devices can control the accessory devices corresponding to the permission when obtaining the corresponding permission.
[0095] In an exemplary embodiment, the target cloud 64 is also used to obtain a target account that has been associated and bound with the target device, wherein the association and binding is used to indicate that all functions in the target device are allowed to be remotely controlled by a target application that logs in to the target account; determine the authorization information of the target application; and determine the authority of the target application to connect to the target cloud to control the target device and / or its attached devices based on the authorization information. In short, in order to allow the target device to be remotely controlled, the target device is controlled by binding the corresponding target application to the target device, and the control details page of the target device and the authority of the target application to remotely control the target device and / or its attached devices granted by the target cloud are displayed on the target application.
[0096] In an exemplary embodiment, the target cloud 64 is also used to obtain the device type of a preset target device and the type information of the accessory device corresponding to the device type; integrate the relationship list according to the device type and the type information to obtain an associated binding list that allows device binding to be executed; and complete the device binding between the target device and the accessory device according to the associated binding list.
[0097] It can be seen that in order to ensure that the determined master-slave relationship satisfies the accessory device model stored on the target cloud, so that the binding of the target device and the accessory device is more targeted, the master-slave relationship uploaded by the target device is sorted according to the device type of the target device pre-set on the target cloud and the type information of the accessory device corresponding to the device type, thereby avoiding the master-slave relationship that does not meet the requirements to complete the device binding, so that the interactive experience and logical constraints between the target device and the accessory device are greatly enhanced.
[0098] In an exemplary embodiment, the target cloud 64 is also used to receive remote control instructions of the target application; send a control command for controlling an accessory device to the target device according to the remote control instruction, and obtain the forwarding result of the control command by the target device to determine whether there is an accessory device to be executed for the control command.
[0099] Optionally, the target application can remotely connect to the target cloud to send remote control instructions. The target cloud parses the remote control instructions to determine the control commands sent to the target device to control the accessory device, and then the remote setting of the accessory device is implemented through the target application. It should be noted that the premise for establishing a binding relationship between the target device and the accessory device is that the target device has established a corresponding relationship with the target cloud, and then the accessory device is bound through the main device agent. When the main device is unbound, the corresponding accessory device will also be unbound. The uplink and downlink data such as data reporting and downward control between the accessory device and the target cloud are all represented by the main device.
[0100] In an exemplary embodiment, the target device 62 is also used to open a local connection interface, wherein the local connection interface is used to receive device characteristic data uploaded by an accessory device and establish a communication connection with the accessory device; obtain the device characteristic data received by the local connection interface, and generate a relationship list between the target device and the accessory device based on the device characteristic data.
[0101] In an exemplary embodiment, the target device 62 is also used to receive configuration information sent by the target application; determine the device details page of the target device according to the configuration information, and complete the association and binding with the target account logged in by the target application, wherein the association and binding is used to indicate that all functions in the target device allow remote control through the target application logged in to the target account.
[0102] In an exemplary embodiment, the target device 62 is also used to receive a control command sent by the target cloud, wherein the control command is a device command for controlling an accessory device determined based on a remote control instruction of a target application; when it is determined that there is an accessory device to be executed for the control command, the control command is forwarded to the corresponding target accessory device, and a forwarding result for the control command is determined.
[0103] An embodiment of the present invention further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0104] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0105] S1, receiving a relationship list uploaded by a target device, wherein the relationship list is used to indicate master-slave information between the target device and one or more accessory devices;
[0106] S2, performing device binding on the accessory device according to the relationship list, wherein the device binding is at least used to indicate adding a device role feature of the accessory device to a device details page of the target device;
[0107] S3, sending the device binding result to the target application of the logged-in target account, so as to set the accessory device through the target application, wherein the target account is associated and bound with the target device, and the target application of the logged-in target account allows the display of the function interface corresponding to the device details page of the target device.
[0108] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0109] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0110] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0111] S1, receiving a relationship list uploaded by a target device, wherein the relationship list is used to indicate master-slave information between the target device and one or more accessory devices;
[0112] S2, performing device binding on the accessory device according to the relationship list, wherein the device binding is at least used to indicate adding a device role feature of the accessory device to a device details page of the target device;
[0113] S3, sending the device binding result to the target application of the logged-in target account, so as to set the accessory device through the target application, wherein the target account is associated and bound with the target device, and the target application of the logged-in target account allows the display of the function interface corresponding to the device details page of the target device.
[0114] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0115] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0116] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for setting an accessory device, characterized in that: include: Receiving a relationship list uploaded by a target device, wherein the relationship list is used to indicate master-slave information existing between the target device and one or more accessory devices; Performing device binding on the accessory device according to the relationship list, wherein the device binding is at least used to indicate that a device role feature of the accessory device is added to a device details page of the target device; Sending the device binding result to a target application logged into a target account, so as to set the accessory device through the target application, wherein the target account is associated and bound with the target device, and the target application logged into the target account allows displaying a function interface corresponding to the device details page of the target device; Binding the accessory device according to the relationship list includes: Acquire a preset device type of a target device and type information of an auxiliary device corresponding to the device type; Integrate the relationship list according to the device type and the category information to obtain an associated binding list that allows device binding to be performed; The device binding between the target device and the accessory device is completed according to the associated binding list; wherein, after sending the result of the device binding to the target application that logs in the target account, the method further includes: Receive sharing information sent by the target application; adjusting the setting authority of the target device to the accessory device to other devices according to the sharing information, so that the other devices can set the accessory device according to the setting authority, wherein the other devices and the target device are devices supporting data proxy; The method further includes: receiving all device data reported by the target device, wherein the all device data is data of the accessory device acquired through the local connection interface when receiving a device status report sent by the accessory device that is abnormal; A control command is sent to the target device according to the entire device data, and the target device is instructed to determine whether there is an accessory device to be executed by the control command, so as to forward the control command to the corresponding target accessory device.
2. The method for setting up accessory equipment according to claim 1, characterized in that: Before or after receiving the relationship list uploaded by the target device, the method further includes: Acquire a target account associated and bound with the target device, wherein the association and binding is used to indicate that all functions in the target device are allowed to be remotely controlled by a target application logged in to the target account; Determining authorization information of the target application; The authority of the target application to connect to the target cloud to control the target device and / or the attached device is determined according to the authorization information.
3. The method for setting up accessory equipment according to claim 1, characterized in that: After sending the device binding result to the target application logged into the target account so as to set the accessory device through the target application, the method further includes: Receiving a remote control instruction of the target application; A control command for controlling an accessory device is sent to the target device according to the remote control instruction, and a forwarding result of the control command by the target device is obtained to determine whether there is an accessory device to be executed for the control command.
4. A method for setting an accessory device, characterized in that: include: Generate a relationship list between the target device and the accessory devices, wherein the relationship list is used to indicate the master-slave information between the target device and one or more accessory devices; Sending the relationship list to a target cloud to instruct the target cloud to perform device binding on the target device and one or more of the accessory devices, and sending the device binding result to a target application, wherein the target device is associated and bound with a target account logged in by the target application, and the target application is allowed to display a function interface corresponding to the device details page of the target device after logging in to the target account; The target cloud performs device binding on the target device and one or more of the accessory devices in the following manner: obtaining a preset device type of the target device and type information of the accessory devices corresponding to the device type; Integrate the relationship list according to the device type and the category information to obtain an associated binding list that allows device binding to be performed; The device binding between the target device and the accessory device is completed according to the associated binding list; wherein, after sending the result of the device binding to the target application, the method further includes: Sending sharing information to the target cloud, wherein the sharing information is used to indicate that the setting permission of the target device to the accessory device is adjusted to other devices, and the other devices and the target device are devices that support data proxy; When an abnormal device status is received from the accessory device, all device data of the accessory device is obtained through the local connection interface, and all the device data is reported to the target cloud; when a control command is received from the target cloud, it is determined whether there is an accessory device to be executed for the control command, so as to forward the control command to the corresponding target accessory device.
5. The method for setting up accessory equipment according to claim 4, characterized in that: Generates a list of relationships between the target device and the attached devices, including: Opening a local connection interface, wherein the local connection interface is used to receive device characteristic data uploaded by an accessory device and establish a communication connection with the accessory device; The local connection interface receives the device characteristic data, and generates a relationship list between the target device and the accessory device according to the device characteristic data.
6. The method for setting up accessory equipment according to claim 5, characterized in that: Before obtaining the device characteristic data received by the local connection interface and generating a relationship list between the target device and the accessory device according to the device characteristic data, the method further includes: Receive configuration information sent by the target application; The device details page of the target device is determined according to the configuration information, and is associated and bound with the target account logged in by the target application, wherein the association and binding is used to indicate that all functions in the target device are allowed to be remotely controlled by the target application logged in by the target account.
7. The method for setting up accessory equipment according to claim 4, characterized in that: After sending the relationship list to a target cloud to instruct the target cloud to perform device binding on the target device and one or more of the accessory devices, and sending the device binding result to a target application, the method further includes: Receiving a control command sent by the target cloud, wherein the control command is a device command for controlling an accessory device determined according to a remote control instruction of a target application; In the case where it is determined that there is an accessory device to be executed for the control command, the control command is forwarded to the corresponding target accessory device, and a forwarding result of the control command is determined.
8. A system for setting up an accessory device, characterized in that: include: A target device, used to generate a relationship list between the target device and the accessory device, wherein the relationship list is used to indicate the master-slave information between the target device and one or more accessory devices; and send the relationship list to a target cloud; The target cloud is used to receive a relationship list uploaded by a target device, perform device binding on the accessory device according to the relationship list, and send the result of the device binding to a target application logged in to a target account, so as to set the accessory device through the target application; wherein the target account is associated with the target device and is bound; the target application logged in to the target account allows display of a function interface corresponding to the device details page of the target device; the device binding is at least used to indicate that the device role feature of the accessory device is added to the device details page of the target device; The target cloud also includes: obtaining a preset device type of the target device and type information of the accessory device corresponding to the device type; integrating the relationship list according to the device type and the type information to obtain an associated binding list that allows device binding to be performed; completing device binding between the target device and the accessory device according to the associated binding list; wherein the system also includes: a target application, which is used to send configuration information for determining a device details page to the target device, or to send sharing information to the target cloud, wherein the sharing information is used to indicate that the setting authority of the target device for the accessory device is adjusted to other devices, and the other devices and the target device are devices that support data proxy; The target device is also used to obtain all device data of the accessory device through the local connection interface and report all device data to the target cloud when an abnormal device status is received from the accessory device; and to determine whether there is an accessory device to be executed for the control command when a control command is received from the target cloud, so as to forward the control command to the corresponding target accessory device.
9. The system for setting up accessory equipment according to claim 8, characterized in that: The system further comprises: an accessory device, which is used to upload its own device characteristics to the target device and / or receive a control command forwarded by the target device.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 3 when executed.
11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 3 through the computer program.
