Binding method and device of suit equipment, electronic equipment and storage medium
The method streamlines IoT device binding by using gateway devices to determine and send necessary information to servers for suite devices, addressing inefficiencies and security concerns in current binding processes, enhancing user experience and security through reduced binding time and simplified QR codes.
Patent Information
- Application Number
- CN202311247562.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2043-09-25
AI Technical Summary
Current device binding methods for IoT devices are inefficient, particularly for suite devices with multiple sub-devices, requiring lengthy individual binding processes that negatively impact user experience and security due to the need for extensive information in QR codes, leading to complex formats and low recognition rates.
A method where the gateway device determines if received information includes sub-device information, sending a binding request to the server with only the necessary device ID, allowing for simultaneous binding of multiple devices without requiring extensive QR code information, enhancing security and recognition rates.
This approach significantly reduces device binding time, improves user experience by simplifying QR codes, and ensures data security by minimizing information sent, enabling efficient and secure binding of multiple devices.
Smart Images

Figure CN119697206A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method, device, electronic device and storage medium for binding a set of equipment. Background Art
[0002] With the rapid development of IoT technology, more and more smart devices are bound to cloud platform servers. Device binding refers to establishing a connection between smart devices and user information stored on cloud platform servers through APP (Application) so that smart devices can be managed and controlled through APP. The device binding process is very important for user experience, so it is necessary to shorten the device binding time.
[0003] At present, the device binding methods include Bluetooth binding, wireless AP (Access Point) binding, sound wave binding, code scanning binding, etc. Based on this, the current device binding methods can only bind one device at a time. However, when there are many devices to be bound, such as when multiple sub-devices in a set of devices need to be bound, each sub-device needs to be bound separately, which takes a long time to bind, thus affecting the user experience. Summary of the invention
[0004] The present invention provides a method, device, electronic device and storage medium for binding a set of devices, so as to solve the defect of long binding time of the set of devices in the prior art, realize efficient binding of the set of devices, and thus improve the user experience.
[0005] The present invention provides a method for binding a package device, which is applied to a gateway device, wherein the package device includes at least one sub-device, and the method includes:
[0006] determining whether the first information includes second information, the first information including sub-device identification information of the at least one sub-device received from the server, the server obtaining the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, and the second information being device identification information of the device to be bound obtained by parsing the received broadcast information;
[0007] If so, it is determined that the device to be bound is a sub-device in the set device, and a device binding request is sent to the server, wherein the device binding request carries the device identification information of the device to be bound.
[0008] The present invention also provides a method for binding a package device, which is applied to a server, wherein the package device includes at least one sub-device, and the method includes:
[0009] Receiving package device identification information corresponding to the package device sent by the client;
[0010] Based on the package device identification information, query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device;
[0011] Sending the sub-device identification information of the at least one sub-device to the gateway device;
[0012] Receiving a device binding request sent by the gateway device, and obtaining device identification information of the device to be bound carried in the device binding request;
[0013] A binding relationship is established between the device identification information of the device to be bound and the user information of the client, and a message of successful binding is pushed to the client.
[0014] The present invention also provides a method for binding a package device, which is applied to a client, wherein the package device includes at least one sub-device, and the method includes:
[0015] Collecting package device identification information corresponding to the package device;
[0016] The package device identification information is sent to a server, so that the server can query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
[0017] The present invention also provides a binding device for a package device, which is deployed in a gateway device, wherein the package device includes at least one sub-device, and the device includes:
[0018] an information determination module, configured to determine whether the first information includes second information, wherein the first information includes sub-device identification information of the at least one sub-device received from the server, the server obtaining the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, and the second information is device identification information of the device to be bound obtained by parsing the received broadcast information;
[0019] The request sending module is used to determine that the device to be bound is a sub-device in the set device, and send a device binding request to the server, wherein the device binding request carries the device identification information of the device to be bound.
[0020] The present invention also provides a binding device for a package device, which is deployed on a server, wherein the package device includes at least one sub-device, and the device includes:
[0021] An information receiving module, used for receiving package device identification information corresponding to the package device sent by the client;
[0022] An information query module, configured to query and obtain sub-device identification information of at least one sub-device corresponding to the package device based on the package device identification information;
[0023] A first sending module, configured to send sub-device identification information of the at least one sub-device to a gateway device;
[0024] A request receiving module, used to receive a device binding request sent by the gateway device, and obtain device identification information of the device to be bound carried in the device binding request;
[0025] The device binding module is used to establish a binding relationship between the device identification information of the device to be bound and the user information of the client, and push a message of successful binding to the client.
[0026] The present invention also provides a binding device for a package device, which is deployed on a client, wherein the package device includes at least one sub-device, and the device includes:
[0027] An information collection module, used to collect package device identification information corresponding to the package device;
[0028] The second sending module is used to send the package device identification information to the server, so that the server can query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
[0029] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a binding method for a set of devices as described above is implemented.
[0030] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the binding method of the packaged device as described in any one of the above is implemented.
[0031] The present invention provides a method, device, electronic device and storage medium for binding a set device. The gateway device determines whether the first information includes the second information. If so, the gateway device determines that the device to be bound is a sub-device in the set device, and sends a device binding request carrying the device identification information of the device to be bound to the server, so as to implement a device binding method for different types of devices, thereby shortening the binding time of different types of devices; and the server obtains the sub-device identification information of at least one sub-device corresponding to the set device based on the set device identification information corresponding to the set device, so that in the code scanning binding method, there is no need to put too much information in the QR code, so that the generated QR code format is simpler, thereby improving the code scanning recognition rate of the client, and finally improving the user experience, that is, the sub-device identification information of at least one sub-device is obtained at the server, and there is no limit on the amount of information collected by the client, and there is no need for the client to send the sub-device identification information of at least one sub-device corresponding to the set device, thereby ensuring the security of user data, improving the security of the binding of the set device, and finally improving the user experience; at the same time, the first information includes the sub-device identification information of at least one sub-device received from the server, thereby realizing the simultaneous binding of multiple devices, thereby greatly shortening the binding time of the set device, thereby improving the user experience. In summary, the present invention can greatly shorten the binding time of the package device, improve the binding efficiency of the package device, and thus enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 One of the flow charts of the method for binding a set of equipment provided by the present invention;
[0034] Figure 2 A second flow chart of the method for binding a set of equipment provided by the present invention;
[0035] Figure 3 A third flow chart of the method for binding a set of equipment provided by the present invention;
[0036] Figure 4 A fourth flowchart of the method for binding a set of equipment provided by the present invention;
[0037] Figure 5 A schematic diagram of the structure of the binding system of the package device provided by the present invention;
[0038] Figure 6One of the structural schematic diagrams of the binding device of the set device provided by the present invention;
[0039] Figure 7 A second structural diagram of the binding device of the set device provided by the present invention;
[0040] Figure 8 The third structural diagram of the binding device of the set device provided by the present invention;
[0041] Fig. 9 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0043] With the rapid development of Internet of Things technology, more and more smart devices are bound to cloud platform servers. Device binding refers to establishing a connection between smart devices and user information stored on cloud platform servers through APP, so that smart devices can be managed and controlled through APP. It should be noted that through device binding and device management and control, the ultimate goal of smart device manufacturers is to retain current customers and then develop customers into lifelong customers of the brand. Therefore, the experience process of device binding is very important, and it is even more crucial as the first step for users to use smart products. Therefore, the device binding process is very important for user experience. In order to improve user experience, it is necessary to shorten the time of each device binding.
[0044] At present, the device binding methods include Bluetooth binding, wireless AP binding, sound wave binding, code scanning binding, etc. Based on this, the current device binding method can only bind one device at a time. However, when there are many devices to be bound, such as when multiple sub-devices in a set of devices need to be bound, each sub-device needs to be bound separately, which takes a long time to bind, thus affecting the user experience.
[0045] In addition, even if there is a method for batch binding of devices, that is, using an IC card to first collect the device information of all devices to be bound, and then the APP reads the device information in the IC card, and then realizes batch binding of devices, see CN114495331A-A binding method, binding device, and binding system for a smart lock. However, it can only bind the same type of devices in batches, and cannot bind multiple different types of devices at the same time. Therefore, it still cannot shorten the binding time of different types of devices. For example, for home users, the types of smart home devices used are diverse, and a batch method that can only bind one type is meaningless.
[0046] In addition, in the above binding methods, the code scanning binding method generally generates a QR code based on the device information of the device to be bound, for example, based on at least one of mac, cmei, sn, etc., and then the client device's APP scans the code to identify the corresponding device information, and the APP goes to the server to establish a binding relationship. However, the QR code information includes device information, which has certain security risks and may lead to user information leakage, thereby reducing security and ultimately affecting user experience. For example, if a user discards the packaging box with a printed QR code at will, it will cause certain security risks after being used by someone with ulterior motives.
[0047] In addition, to bind a smart device to a cloud platform, at least one piece of hardware information of the smart device (such as mac or sn) is required. If the cloud platform is expected to associate other information, a complete binding process requires at least two pieces of device information or even more. However, putting too much information in a QR code will make the generated QR code image too complex. Since the capacity of QR code information that can be recognized by the client device is relatively small, the recognition rate is not high, and the complete device information cannot be recognized, which leads to the failure of successful device binding. For example, if the cloud platform pushes advertising information for a certain type of device, it needs to add another device type ID.
[0048] In view of the above problems, the present invention proposes the following embodiments. Figure 1 One of the flow charts of the method for binding a set of equipment provided by the present invention is as follows: Figure 1 As shown, the binding method of the package device applied to the gateway device includes:
[0049] Step 110, determine whether the first information includes second information, the first information includes sub-device identification information of the at least one sub-device received from the server, the server obtains the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, and the second information is the device identification information of the device to be bound parsed from the received broadcast information.
[0050] Here, the package device includes at least one sub-device. One package device corresponds to one package device identification information, that is, at least one sub-device corresponding to the package device uniformly uses one package device identification information, so that in the code scanning binding method, there is no need to put too much information in the QR code, so that the generated QR code format is simpler, thereby improving the client's code scanning recognition rate. The package device identification information can be ID information, that is, it is a package ID.
[0051] In one embodiment, the gateway device is a router, for example, the gateway device is a router originally deployed by the user. In another embodiment, the gateway device is a gateway device that is matched with at least one sub-device corresponding to the package device; the gateway device can be independently set, that is, it is an independent device, or it can be a gateway device in the package device.
[0052] Here, the server is a server corresponding to at least one sub-device corresponding to the package device. The server is used to establish a binding relationship between the device identification information of the device to be bound and the user information of the client, that is, the server is a device that is bound to at least one sub-device corresponding to the package device, that is, the server is a device that establishes a connection relationship with at least one sub-device corresponding to the package device. For example, in the application scenario of home services, the server is a smart home cloud platform.
[0053] Here, the sub-device identification information of the sub-device may be hardware information, and the sub-device identification information may include but is not limited to: mac, sn, cmei, ID, etc. Further, device information (such as configurable information, etc.) of at least one sub-device may also be received from the server.
[0054] Here, the broadcast information is the information received by the gateway device in its surrounding environment. It is understandable that if the device in the surrounding environment of the gateway device needs to be bound, the device to be bound needs to broadcast the network access to enter the network configuration mode. Therefore, the device to be bound needs to broadcast its device identification information. The device identification information may include but is not limited to: mac, sn, cmei, ID, etc. Furthermore, the device to be bound can also broadcast its device information (such as configurable information, etc.).
[0055] Specifically, the first information and the second information are compared to determine whether the first information includes the second information.
[0056] For the server, before the above step 110, the server receives the package device identification information corresponding to the package device sent by the client, queries and obtains the sub-device identification information of at least one sub-device corresponding to the package device based on the package device identification information, and sends the sub-device identification information of at least one sub-device to the gateway device.
[0057] In one embodiment, a network access instruction sent by a server is received, and the network access instruction is parsed to obtain the first information. Further, the first information can be stored locally in the gateway device, and the network configuration mode of the gateway device is turned on.
[0058] Further, it is determined whether the gateway device and the server have been bound, that is, whether the gateway device and the server have established a connection relationship. If not, the gateway device is bound to the server. In one embodiment, the client collects the gateway device identification information of the gateway device and sends the gateway device identification information to the server; the server receives the gateway device identification information corresponding to the gateway device sent by the client, establishes a binding relationship between the gateway device identification information and the user information of the client, and pushes a successful binding message to the client.
[0059] Step 120: If yes, determine that the device to be bound is a sub-device in the set device, and send a device binding request to the server, wherein the device binding request carries the device identification information of the device to be bound.
[0060] Specifically, based on the device identification information of the device to be bound, a device binding request corresponding to the device to be bound is generated, so that the device binding request carries the device identification information of the device to be bound, so that the server receives the device binding request sent by the gateway device, obtains the device identification information of the device to be bound carried in the device binding request, and establishes a binding relationship between the device identification information of the device to be bound and the user information of the client.
[0061] The binding method of the set device provided by the embodiment of the present invention determines whether the first information includes the second information. If so, it is determined that the device to be bound is a sub-device in the set device, and sends a device binding request carrying the device identification information of the device to be bound to the server, so as to implement the device binding mode of different types of devices, thereby shortening the binding time of different types of devices; and the server obtains the sub-device identification information of at least one sub-device corresponding to the set device based on the set device identification information corresponding to the set device, so that in the code scanning binding mode, there is no need to put too much information in the QR code, so that the generated QR code format is simpler, thereby improving the code scanning recognition rate of the client, and finally improving the user experience, that is, the sub-device identification information of at least one sub-device is obtained at the server, there is no limit on the amount of information collected by the client, and there is no need for the client to send the sub-device identification information of at least one sub-device corresponding to the set device, thereby ensuring the security of user data, improving the security of the binding of the set device, and finally improving the user experience; at the same time, the first information includes the sub-device identification information of at least one sub-device received from the server, thereby realizing the simultaneous binding of multiple devices, thereby greatly shortening the binding time of the set device, thereby improving the user experience. In summary, the embodiments of the present invention can greatly shorten the binding time of the package device, improve the binding efficiency of the package device, and thus enhance the user experience.
[0062] Based on any of the above embodiments, in the method, the above step 110 includes:
[0063] Receiving a network access instruction sent by the server, and parsing the network access instruction to obtain the first information;
[0064] Storing the first information and starting the network configuration mode;
[0065] The second information broadcasted by surrounding devices in the environment is received.
[0066] Here, the network access instruction carries the first information, that is, carries the sub-device identification information of at least one sub-device. For the server, after the server obtains the sub-device identification information of at least one sub-device, the server generates a network access instruction based on the sub-device identification information of at least one sub-device, so that the network access instruction carries the sub-device identification information of at least one sub-device, and sends the network access instruction to the gateway device.
[0067] In the embodiment of the present invention, the first information is stored to facilitate subsequent determination of whether the first information includes the second information. The network configuration mode is turned on to facilitate receiving the second information broadcast by the surrounding devices in the surrounding environment of the gateway device. For at least one sub-device corresponding to the set device, all sub-devices are powered on and all sub-devices are placed in the network configuration mode. At this time, each sub-device will broadcast its device identification information, that is, each sub-device sends a network configuration broadcast.
[0068] The binding method for a set device provided in an embodiment of the present invention receives a network access instruction sent by a server, and parses the network access instruction to obtain first information, that is, the server encapsulates the sub-device identification information of at least one sub-device corresponding to the set device in the network access instruction to better transmit the sub-device identification information of all sub-devices, ensure that at least one sub-device corresponding to the set device is successfully bound, and improve the binding accuracy of the set device; and stores the first information to facilitate subsequent judgment of whether the first information includes the second information, thereby improving the timeliness and accuracy of network access pairing, and further improving the binding efficiency and binding accuracy of the set device; at the same time, after parsing the network access instruction to obtain the first information, the network configuration mode is turned on to reduce the power consumption of the gateway device.
[0069] Based on any of the above embodiments, after starting the network configuration mode, the method further includes:
[0070] If the activation time of the network configuration mode reaches a preset time, the network configuration mode is closed; and / or if the sub-device identification information of all the sub-devices is sent to the server through the device binding request, the network configuration mode is closed.
[0071] Considering that some surrounding devices do not enter the network configuration mode due to operational problems or faults, the network configuration time of the gateway device can be set to a preset time, and the network configuration mode of the gateway device is automatically turned off after the preset time, that is, if the network configuration mode is turned on for a preset time, the network configuration mode is automatically turned off. The preset time can be set according to actual needs, for example, the preset time is 5 minutes.
[0072] If the sub-device identification information of at least one sub-device is successfully compared with the second information, that is, at least one sub-device is successfully networked, the network configuration mode is automatically turned off. In other words, if the sub-device identification information of at least one sub-device successfully matches the device identification information of at least one device to be bound obtained by parsing the received broadcast information, there is no need to perform network configuration, so the network configuration mode is automatically turned off.
[0073] The binding method for a set device provided in an embodiment of the present invention closes the network configuration mode of the gateway device if the activation time of the network configuration mode reaches a preset time, thereby avoiding the network configuration mode being activated for a long time, thereby reducing the power consumption of the gateway device; if the sub-device identification information of at least one sub-device corresponding to the set device is sent to the server through a device binding request, closes the network configuration mode of the gateway device, thereby avoiding the network configuration mode being activated after the network configuration is completed, thereby reducing the power consumption of the gateway device.
[0074] Based on any of the above embodiments, the present invention further provides a method for binding a package device, which is applied to a server. Figure 2 The second flow chart of the method for binding a set of equipment provided by the present invention is as follows: Figure 2 As shown, the method includes:
[0075] Step 210: receiving package device identification information corresponding to the package device sent by the client.
[0076] Here, the package device includes at least one sub-device. One package device corresponds to one package device identification information, that is, at least one sub-device corresponding to the package device uniformly uses one package device identification information, so that in the code scanning binding method, there is no need to put too much information in the QR code, so that the generated QR code format is simpler, thereby improving the client's code scanning recognition rate. The package device identification information is used to uniquely identify the package device, which can be ID information, that is, it is a package ID.
[0077] Here, the client is a user terminal device that deploys the APP, such as a smart phone, tablet computer, laptop computer, etc. The APP is used to bind at least one sub-device corresponding to the package device to the server, and the APP is also used to control at least one sub-device corresponding to the package device.
[0078] In a specific embodiment, a package device binding request sent by a client is received, and the package device binding request carries package device identification information corresponding to the package device. For example, the request body of the package device binding request includes the package device identification information. More specifically, a package device binding request sent by an APP in a client is received.
[0079] Step 220: Based on the package device identification information, query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device.
[0080] Here, the sub-device identification information of the sub-device may be hardware information, and the sub-device identification information may include but is not limited to: mac, sn, cmei, ID, etc. Further, device information (such as configurable information, etc.) of at least one sub-device may also be received from the server.
[0081] In some embodiments, sub-device identification information of at least one sub-device corresponding to the package device is obtained by querying from information stored on the server.
[0082] In one embodiment, based on the package device identification information, the sub-device identification information of at least one sub-device corresponding to the package device is queried from the mapping relationship. The mapping relationship includes a mapping relationship of at least one package device identification information, and the mapping relationship of any package device identification information includes a mapping relationship between the package device identification information and the sub-device identification information of at least one sub-device. In other words, the server stores the mapping relationship, so as to query the sub-device identification information of at least one sub-device through the package device identification information.
[0083] It is understandable that the sub-device identification information of at least one sub-device is stored on the server side, thereby eliminating the need for the client to send the sub-device identification information of at least one sub-device, thereby ensuring user data security, improving security, and ultimately enhancing user experience.
[0084] Furthermore, considering that the corresponding sub-devices of a package device can be increased or decreased, in the code scanning binding method, the sub-device identification information of a fixed number of sub-devices is placed in the QR code. Since the QR code is not easy to replace, the package device cannot be updated, that is, the application scenario cannot be expanded. In other words, the current method has a narrow application range and low scalability. Based on this, the present invention stores the sub-device identification information of at least one sub-device on the server side through a mapping relationship, so that the user can modify the mapping relationship, thereby improving the scalability of the package device binding. Specifically, a mapping relationship modification instruction is obtained, and the mapping relationship is modified based on the mapping relationship modification instruction; more specifically, a mapping relationship modification instruction is obtained, and the package device identification information is determined based on the mapping relationship modification instruction, and the mapping relationship corresponding to the package device identification information is modified.
[0085] In other embodiments, sub-device identification information of at least one sub-device corresponding to the package device is obtained from other devices, thereby eliminating the need for the client to send the sub-device identification information of at least one sub-device, thereby ensuring user data security, improving security, and ultimately enhancing user experience.
[0086] Step 230: Send the sub-device identification information of the at least one sub-device to the gateway device.
[0087] In one embodiment, the sub-device identification information of at least one sub-device is directly sent to the gateway device.
[0088] In another embodiment, based on the sub-device identification information of at least one sub-device, a network access instruction is generated so that the network access instruction carries the sub-device identification information of at least one sub-device, and the network access instruction is sent to the gateway device. It can be understood that the server encapsulates the sub-device identification information of at least one sub-device corresponding to the package device in the network access instruction to better transmit the sub-device identification information of all sub-devices, ensure that at least one sub-device corresponding to the package device is successfully bound, and improve the binding accuracy of the package device.
[0089] In one embodiment, a gateway device identification information sent by a client is received; and a gateway device to which the sub-device identification information is to be sent is determined based on the gateway device identification information. The gateway device identification information is used to uniquely identify the gateway device, for example, it is gateway ID information.
[0090] In another embodiment, based on the package device identification information, the gateway device to which the sub-device identification information is to be sent is directly determined. The mapping relationship between the package device identification information and the gateway device is stored in the server.
[0091] Step 240: Receive a device binding request sent by the gateway device, and obtain device identification information of the device to be bound carried in the device binding request.
[0092] Here, the device to be bound is a sub-device corresponding to the package device. The device identification information of the device to be bound is obtained by parsing the broadcast information of the device to be bound, which may include but is not limited to: mac, sn, cmei, ID, etc.
[0093] Step 250: Establish a binding relationship between the device identification information of the device to be bound and the user information of the client, and push a message of successful binding to the client.
[0094] Specifically, a binding relationship is established between the device identification information of the device to be bound and the user information of the client, so as to bind the device to be bound to the server, thereby realizing device binding of the device to be bound. Further, the binding relationship can be stored for subsequent other processing based on the binding relationship.
[0095] In a specific embodiment, based on the device identification information of the device to be bound, binding success information of the device to be bound is generated, and the binding success information is pushed to the client. More specifically, the binding success information is pushed to the APP of the client.
[0096] The successful binding message is used to prompt that the device to be bound has been successfully bound, that is, to prompt that the device to be bound has been successfully bound to the server. Specifically, the successful binding message is sent to the client, so that after the client receives the successful binding message, it informs the user in a friendly manner through a prompt, and then guides the user to the corresponding device management page to perform device control operations.
[0097] In the binding method for a package device provided by an embodiment of the present invention, a server receives package device identification information corresponding to the package device sent by a client, so that in the code scanning binding method, there is no need to put too much information in the QR code, thereby making the generated QR code format simpler, thereby improving the client's code scanning recognition rate, and ultimately improving the user experience, that is, the sub-device identification information of at least one sub-device is obtained at the server, and there is no limit on the amount of information collected by the client; and based on the package device identification information, the sub-device identification information of at least one sub-device corresponding to the package device is queried, and the client does not need to send the sub-device identification information of at least one sub-device corresponding to the package device, thereby ensuring user data security and improving the package device. The security of binding ultimately improves the user experience; thereafter, the sub-device identification information of at least one sub-device is sent to the gateway device to receive the device binding request sent by the gateway device, and the device identification information of the device to be bound carried in the device binding request is obtained, and then the device identification information of the device to be bound is established with the user information of the client, so that multiple devices can be bound at the same time, thereby greatly shortening the binding time of the package device, thereby improving the user experience; at the same time, the successful binding information is pushed to the client to facilitate the client to perform related logical processing, thereby improving the user experience; and through the above method, multiple different types of devices can be bound at the same time, thereby also shortening the binding time of different types of devices. In summary, the embodiments of the present invention can greatly shorten the binding time of the package device, improve the binding efficiency of the package device, and thereby improve the user experience.
[0098] Based on any of the above embodiments, before the above step 230, the method further includes:
[0099] Receive the gateway device identification information sent by the client.
[0100] Here, the package device identification information is used to uniquely identify the package device, which may be ID information, that is, it is a package ID.
[0101] In one embodiment, a package device binding request sent by a client is received, and the package device binding request carries the package device identification information and the gateway device identification information corresponding to the package device. For example, the request body of the package device binding request includes the package device identification information and the gateway device identification information. More specifically, a package device binding request sent by an APP in a client is received. For the client, the client generates a package device binding request based on the package device identification information and the gateway device identification information, and sends the package device binding request to the server.
[0102] Accordingly, the above step 230 includes:
[0103] The sub-device identification information of the at least one sub-device is sent to the gateway device corresponding to the gateway device identification information.
[0104] It is understandable that by receiving the gateway device identification information sent by the client, the client can determine the gateway device currently being configured. For example, when there are multiple gateway devices, the user can decide which gateway device to use through the client, ultimately improving the user experience.
[0105] The method for binding a package device provided in an embodiment of the present invention can accurately determine which is the gateway device supporting the package device through the above manner, thereby accurately sending the sub-device identification information of at least one sub-device to the gateway device, thereby improving the accuracy of the package device binding.
[0106] Based on any of the above embodiments, after the above step 250, the method further includes:
[0107] If the device identification information of at least one sub-device is bound to the user information of the client, based on the package device identification information, the linkage rule corresponding to the package device is obtained from the identification information-linkage rule mapping relationship to control the at least one sub-device based on the linkage rule.
[0108] Here, the mapping relationship between identification information and linkage rules includes the mapping relationship between at least one set of equipment identification information, and the mapping relationship between any set of equipment identification information includes the mapping relationship between the set of equipment identification information and at least one linkage rule, that is, a set of equipment can recommend multiple linkage rules, so that a linkage rule is screened out from the multiple recommended linkage rules. For example, in the smart home application scenario, the linkage rule is the basic rule for realizing the smart linkage of the whole house. The mapping relationship between identification information and linkage rules can be set in advance or updated in real time, for example, based on the user's mapping relationship update instruction, the mapping relationship between identification information and linkage rules is updated.
[0109] Specifically, based on the identification information of the package device, the linkage rule recommended by the package device is queried from the identification information-linkage rule mapping relationship to obtain a linkage rule, so as to create a linkage rule for the package device based on the linkage rule.
[0110] Furthermore, the linkage rules are sent to the client so that the user can view the linkage rules through the client, that is, the client displays the linkage rules; or the client guides the user to use the linkage rules. The linkage rules can be displayed in a pop-up window or a Toast pop-up window, so as to inform the user of the linkage rules in a friendly manner through a pop-up window or a Toast prompt, thereby further improving the user experience.
[0111] Furthermore, a linkage rule creation success message is generated and sent to the client so that the user can view the linkage rule creation success message through the client. Specifically, the linkage rule creation success message can be friendly notified through a pop-up box or a toast prompt, thereby further improving the user experience.
[0112] The binding method for the package device provided in the embodiment of the present invention takes into account that the current linkage rules are fixed and are not pushed to the user for viewing. For ordinary users, the learning threshold of the linkage rules is relatively high, resulting in a low utilization rate of the linkage rules and affecting the user experience. Therefore, if the device identification information of at least one sub-device establishes a binding relationship with the user information of the client, the linkage rules corresponding to the package device are obtained from the identification information-linkage rule mapping relationship, thereby realizing the automatic generation of linkage rules, and the linkage rules are determined according to the type of the package device, that is, the linkage rules are determined according to the characteristics of the package device, thereby realizing the creation of linkage rules intelligently, facilitating users to have an intelligent experience, thereby improving the user experience and ultimately improving user stickiness.
[0113] Based on any of the above embodiments, after acquiring the linkage rule corresponding to the package device from the identification information-linkage rule mapping relationship based on the package device identification information, the method further includes:
[0114] Obtain user portrait information corresponding to the client;
[0115] Based on the user portrait information, the linkage rules are adjusted.
[0116] Here, the user portrait information is the information of the user who uses the package device, and it is also the information of the user who uses the client, that is, it is the information of the user who uses the APP in the client.
[0117] In one embodiment, user portrait information sent by a client is received. In another embodiment, other relevant information sent by a client is received, and user portrait information is acquired based on the other relevant information.
[0118] It can be understood that under the same set of device identification information, that is, under the same set of device, different user portrait information can correspond to different linkage rules, so that the linkage rules are automatically adjusted based on the user portrait information, that is, automatically adjusted on the server side according to the user portrait, so as to recommend different linkage rules (smart scenes) for binding the same set of device, thereby further enhancing the intelligent experience, that is, further enhancing the user experience and ultimately improving user stickiness.
[0119] For example, user portrait information includes: the user has the habit of opening the mobile phone APP (client) around 7:00 every day. Based on this, if the set of equipment includes a bedside lamp, the linkage rule can be "7:00 in the morning - turn on the bedroom bedside lamp." Furthermore, user portrait information can be recorded through the APP background and sent to the server.
[0120] The binding method for the set of devices provided in the embodiment of the present invention adjusts the linkage rules based on the user portrait information, thereby realizing the personalized adjustment of the linkage rules, thereby intelligently realizing the creation of linkage rules, and further improving the intelligent experience, that is, further improving the user experience, and ultimately further improving user stickiness.
[0121] Based on any of the above embodiments, after acquiring the linkage rule corresponding to the package device from the identification information-linkage rule mapping relationship based on the package device identification information, the method further includes:
[0122] Sending the linkage rule to the client so that the linkage rule can be modified by the client;
[0123] The modified linkage rule sent by the client is received.
[0124] For the client, the client displays the linkage rule so that the client device can guide the user to modify the linkage rule. The linkage rule can be displayed in a pop-up window or a Toast pop-up window, so as to inform the user of the linkage rule in a friendly manner through a pop-up window or a Toast prompt, and guide the user to change the linkage rule, thereby further improving the user experience.
[0125] Furthermore, the linkage rules are adjusted based on the user profile information, and then the adjusted linkage rules are sent to the client, so that the adjusted linkage rules can be modified by the client. Alternatively, the linkage rules are sent to the client first, so that the linkage rules can be modified by the client, the modified linkage rules sent by the client are received, and then the modified linkage rules are adjusted based on the user profile information.
[0126] The binding method for the set device provided in the embodiment of the present invention sends the linkage rules to the client so that the linkage rules can be modified through the client, and the modified linkage rules sent by the client are received, thereby realizing personalized adjustment of the linkage rules, thereby intelligently realizing the creation of linkage rules, and further improving the intelligent experience, that is, further improving the user experience, and ultimately further improving user stickiness.
[0127] Based on any of the above embodiments, the present invention further provides a method for binding a package device, which is applied to a client. Figure 3The third flow chart of the method for binding a set of equipment provided by the present invention is as follows: Figure 3 As shown, the method includes:
[0128] Step 310: Collect the package device identification information corresponding to the package device.
[0129] Here, the package device includes at least one sub-device. One package device corresponds to one package device identification information, that is, at least one sub-device corresponding to the package device uniformly uses one package device identification information, so that in the code scanning binding method, there is no need to put too much information in the QR code, so that the generated QR code format is simpler, thereby improving the client's code scanning recognition rate.
[0130] The package device identification information is used to uniquely identify the package device. Exemplarily, the package device identification information may be ID information, that is, it is a package ID.
[0131] The identification information of the set of equipment can be obtained by scanning a code, or by Bluetooth, AP, ZigBee, sound wave, etc.
[0132] In one embodiment, after the above step 310, it is determined whether the gateway device is bound to the server, that is, whether a connection relationship is established with the server. If it is bound, no processing is required. If it is not bound, a prompt message for binding the gateway device is displayed to prompt the user to bind the gateway device first. Further, it is determined whether there is a supported gateway device under the user information (such as user name) corresponding to the client. If there is no gateway device, a prompt message is output to prompt the user to bind the gateway device.
[0133] Step 320: Send the package device identification information to the server, so that the server can query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
[0134] In one embodiment, the package device identification information is directly sent to the server.
[0135] In another embodiment, a package device binding request is generated based on the package device identification information, so that the package device binding request carries the package device identification information, and the package device binding request is sent to the server.
[0136] The binding method of the package device provided in the embodiment of the present invention collects the package device identification information corresponding to the package device, so that in the scanning code binding method, there is no need to put too much information in the QR code, so that the generated QR code format is simpler, thereby improving the scanning code recognition rate of the client, and finally improving the user experience, that is, the sub-device identification information of at least one sub-device is obtained at the server, and there is no limit on the amount of information collected by the client; and the package device identification information is sent to the server, and there is no need for the client to send the sub-device identification information of at least one sub-device corresponding to the package device, thereby ensuring the security of user data, improving the security of package device binding, and finally improving the user experience; and the server queries the sub-device identification information of at least one sub-device corresponding to the package device based on the package device identification information, thereby greatly shortening the binding time of the package device, thereby improving the user experience; and through the above method, multiple different types of devices can be bound at the same time, thereby also shortening the binding time of different types of devices; and through the above method, the device binding method of different types of devices can be realized, thereby shortening the binding time of different types of devices. In summary, the embodiment of the present invention can greatly shorten the binding time of the package device, improve the binding efficiency of the package device, and thus improve the user experience.
[0137] Based on any of the above embodiments, the method further includes:
[0138] Identify a gateway device that has established a binding relationship with the user information of the client, and obtain gateway device identification information of the gateway device;
[0139] The gateway device identification information is sent to the server.
[0140] In one embodiment, the user information of the client is sent to the server, so that the server can determine at least one gateway device that establishes a binding relationship with the user information based on the user information, and the server sends the gateway device identification information of the at least one gateway device to the client, so that the client can determine the currently required gateway device and its gateway device identification information based on the gateway device identification information of the at least one gateway device. If the number of the at least one gateway device is exactly 1, it is not necessary to select and directly determine; if the number of the at least one gateway device is multiple, a gateway selection instruction is received, and the currently required gateway device and its gateway device identification information are determined based on the gateway selection instruction.
[0141] In another embodiment, a gateway selection instruction is received, a gateway device that has established a binding relationship with the user information of the client is identified based on the gateway selection instruction, and gateway device identification information of the gateway device is acquired.
[0142] In one embodiment, the gateway device identification information is directly sent to the server.
[0143] In another embodiment, a package device binding request is generated based on the package device identification information and the gateway device identification information, so that the package device binding request carries the package device identification information and the gateway device identification information, and the package device binding request is sent to the server.
[0144] The binding method for a set device provided in an embodiment of the present invention can accurately determine which is the gateway device that matches the set device through the above method, and send the gateway device identification information of the gateway device to the server, so that the server can accurately send the sub-device identification information of at least one sub-device corresponding to the set device to the gateway device, thereby improving the accuracy of binding of the set device.
[0145] Based on any of the above embodiments, in the method, the above step 310 includes:
[0146] Collecting the QR code information corresponding to the set of equipment;
[0147] If the identification information of the client exists in the two-dimensional code information, the identification information of the package device in the two-dimensional code information is obtained.
[0148] It should be noted that one set of equipment corresponds to one QR code, and the location of the QR code is not specifically limited. For example, it can be set on any sub-device or gateway device in the set of equipment, or on the packaging box or instruction manual of each device.
[0149] Specifically, the QR code information corresponding to the packaged device is obtained by scanning the QR code by the client. In one embodiment, a QR code scan image of the packaged device is obtained, and the QR code scan image is parsed to obtain the QR code information. The QR code scan image can be obtained by taking a picture of the client device, for example, by scanning the client device.
[0150] Here, the identification information is the identification information of the client, and further, it is the identification information of the APP in the client device, so as to judge whether the QR code information meets the requirements based on the identification information, that is, to judge whether the current QR code is a QR code supported by the client, and further, to judge whether the current QR code is a QR code supported by the APP.
[0151] In one embodiment, it is determined whether there is identification information of the client in the QR code information. If so, the package device identification information in the QR code information is obtained. If not, a prompt message is generated to indicate that the QR code is not supported.
[0152] In one embodiment, after determining that the client identification information exists in the QR code information, it is determined whether the package device identification information exists in the QR code information. If so, the package device identification information in the QR code information is obtained. If not, the process returns to the step of collecting the QR code information corresponding to the package device.
[0153] In one embodiment, the QR code format is as follows:
[0154] https: / / yyyyyyy? suitId=xxxxxxxx;
[0155] Among them, yyyyyyy is the identification information of the client, and xxxxxxxx is the identification information of the package device.
[0156] The binding method for a set device provided in an embodiment of the present invention obtains the identification information of the set device in the QR code information, so that there is no need to put too much information in the QR code, thereby making the generated QR code format simpler, thereby improving the client's scanning recognition rate, and ultimately improving the user experience; and first determining whether there is identification information of the client device in the QR code information to prevent other irrelevant QR codes from being recognized, thereby improving the security of the binding of the set device and ultimately improving the user experience.
[0157] Based on any of the above embodiments, after the above step 320, the method further includes:
[0158] Receiving linkage rules corresponding to the packaged equipment sent by the server;
[0159] Displaying the linkage rules;
[0160] Obtaining a rule modification instruction, and modifying the linkage rule based on the rule modification instruction;
[0161] The modified linkage rule is sent to the server.
[0162] Exemplarily, the linkage rules may be displayed in a pop-up window or a Toast pop-up window, etc., so as to inform the user of the linkage rules in a friendly manner through a pop-up window or a Toast prompt, and guide the user to change the linkage rules, thereby further improving the user experience.
[0163] Here, the rule modification instruction is an instruction triggered by the user based on the client.
[0164] The binding method for the package device provided in the embodiment of the present invention obtains the rule modification instruction, modifies the linkage rule corresponding to the package device based on the rule modification instruction, and sends the modified linkage rule to the server, thereby realizing the personalized adjustment of the linkage rule, thereby intelligently realizing the creation of the linkage rule, and further improving the intelligent experience, that is, further improving the user experience, and finally further improving the user stickiness.
[0165] To facilitate understanding of the above embodiments, a specific embodiment is used for description. Figure 4 As shown, the binding method of the set of equipment includes:
[0166] Step 401: Bind the gateway device to the server through the client so that the gateway device and the server establish a persistent connection. If the gateway device and the server are already bound, this step is not required.
[0167] Step 402: At least one sub-device corresponding to the package device is powered on and enters a network configuration state. At least one sub-device corresponding to the package device sends a network configuration broadcast.
[0168] Step 403: Scan the QR code of the package device through the client to obtain the QR code information.
[0169] Step 404, determine whether there is identification information of the client in the QR code information.
[0170] Step 405: If it exists, obtain the package device identification information of the package device based on the QR code information, and report the package device identification information to the server.
[0171] Step 406: If it does not exist, a QR code error message is displayed.
[0172] Step 407: Based on the package device identification information, query the sub-device identification information of at least one sub-device corresponding to the package device.
[0173] Step 408: if found, generate a network access instruction based on the identification information of each sub-device, and send the network access instruction to the gateway device.
[0174] Step 409: If the query fails, it indicates that the QR code is illegal.
[0175] Step 410: The gateway device starts the network configuration mode and parses and compares the broadcast information of surrounding sub-devices.
[0176] Step 411, bind the successfully compared sub-device to the server. If there are sub-devices in the package that have not been bound, return to the above step 410.
[0177] Step 412: If the comparison is unsuccessful, it is prompted that the corresponding sub-device fails to access the network.
[0178] Step 413: If all sub-devices in the set of devices are bound, the gateway device turns off the network configuration mode.
[0179] Step 414: The server generates a linkage rule and pushes the linkage rule to the client.
[0180] Step 415: The client performs intelligent scene display according to the linkage rules.
[0181] Based on the above embodiments, the present invention can bind multiple devices at the same time, which can solve the problems of long process, long time and poor experience caused by multiple single device binding in the current market. At the same time, at least one sub-device corresponding to the package device is placed on the server side, and the QR code only places lightweight package device identification information, which can make the code scanning recognition rate higher and the device information more secure.
[0182] The binding system of the package device provided by the present invention is described below. The binding system of the package device described below and the binding method of the package device described above can be referred to each other. The binding system of the package device includes: a server, a client, a gateway device, and at least one sub-device corresponding to the package device. When the processor in the server executes a program, any of the above binding methods for the package device applied to the server is implemented. When the processor in the client executes a program, any of the above binding methods for the package device applied to the client is implemented. When the processor in the gateway device executes a program, any of the above binding methods for the package device applied to the gateway device is implemented. To facilitate understanding of the binding system of the package device, a specific embodiment is taken as an example for explanation, such as Figure 5 As shown, the binding system of the package device includes a package device, a server, and a client. The package device includes at least one sub-device and a gateway device. Each sub-device in the package device needs to be connected to the server. The client needs to obtain the package device identification information of the package device, and the client needs to bind at least one sub-device to the server. The server can push various related information to the client.
[0183] The binding device of the package device provided by the present invention is described below. The binding device of the package device described below and the binding method of the package device described above can be referred to each other.
[0184] Figure 6 One of the structural schematic diagrams of the binding device of the set device provided by the present invention is as follows Figure 6 As shown, the binding device of the package device deployed on the gateway device includes:
[0185] The information determination module 610 is used to determine whether the first information includes the second information, wherein the first information includes the sub-device identification information of the at least one sub-device received from the server, the server obtains the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, and the second information is the device identification information of the device to be bound obtained by parsing the received broadcast information;
[0186] The request sending module 620 is configured to determine that the device to be bound is a sub-device in the set device, and send a device binding request to the server, wherein the device binding request carries the device identification information of the device to be bound.
[0187] Figure 7 The second structural diagram of the binding device of the set device provided by the present invention is as follows Figure 7 As shown, the binding device of the package device deployed on the server side includes:
[0188] The information receiving module 710 is used to receive the package device identification information corresponding to the package device sent by the client;
[0189] An information query module 720 is used to query and obtain sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information;
[0190] A first sending module 730, configured to send the sub-device identification information of the at least one sub-device to the gateway device;
[0191] The request receiving module 740 is used to receive the device binding request sent by the gateway device, and obtain the device identification information of the device to be bound carried in the device binding request;
[0192] The device binding module 750 is used to establish a binding relationship between the device identification information of the device to be bound and the user information of the client, and push a message of successful binding to the client.
[0193] Figure 8 The third structural diagram of the binding device of the set device provided by the present invention is as follows: Figure 8 As shown, the binding device of the package device deployed on the client includes:
[0194] An information collection module 810 is used to collect package device identification information corresponding to the package device;
[0195] The second sending module 820 is configured to send the package device identification information to a server, so that the server can query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
[0196] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 complete mutual communication through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute a binding method for a package device applied to a gateway device, the method comprising: determining whether the first information includes the second information, the first information including the sub-device identification information of the at least one sub-device received from the server, the server obtaining the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, the second information being the device identification information of the device to be bound parsed from the received broadcast information; if so, determining that the device to be bound is a sub-device in the package device, and sending a device binding request to the server, the device binding request carrying the device identification information of the device to be bound. Alternatively, a binding method for a package device applied to a server is executed, the method comprising: receiving package device identification information corresponding to the package device sent by a client; querying and obtaining sub-device identification information of at least one sub-device corresponding to the package device based on the package device identification information; sending the sub-device identification information of the at least one sub-device to a gateway device; receiving a device binding request sent by the gateway device, and obtaining the device identification information of the device to be bound carried in the device binding request; establishing a binding relationship between the device identification information of the device to be bound and the user information of the client, and pushing a message of successful binding to the client. Alternatively, a binding method for a package device applied to a client is executed, the method comprising: collecting the package device identification information corresponding to the package device; sending the package device identification information to a server, so that the server can query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
[0197] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0198] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the binding method for a set device applied to a gateway device provided by the above-mentioned methods, the method comprising: determining whether the first information includes the second information, the first information including the sub-device identification information of the at least one sub-device received from the server, the server obtaining the sub-device identification information of the at least one sub-device based on the set device identification information corresponding to the set device, the second information being the device identification information of the device to be bound parsed from the received broadcast information; if so, determining that the device to be bound is a sub-device in the set device, and sending a device binding request to the server, the device binding request carrying the device identification information of the device to be bound. Alternatively, when the computer program is executed by the processor, it is implemented to execute the binding method for the package device applied to the server provided by the above methods, the method comprising: receiving the package device identification information corresponding to the package device sent by the client; based on the package device identification information, querying and obtaining the sub-device identification information of the at least one sub-device corresponding to the package device; sending the sub-device identification information of the at least one sub-device to the gateway device; receiving the device binding request sent by the gateway device, and obtaining the device identification information of the device to be bound carried in the device binding request; establishing a binding relationship between the device identification information of the device to be bound and the user information of the client, and pushing a message of successful binding to the client. Alternatively, when the computer program is executed by the processor, it is implemented to execute the binding method for the package device applied to the client provided by the above methods, the method comprising: collecting the package device identification information corresponding to the package device; sending the package device identification information to the server, so that the server can query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
[0199] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for binding a package device, characterized in that: Applied to a gateway device, the package device includes at least one sub-device, and the method includes: determining whether the first information includes second information, the first information including sub-device identification information of the at least one sub-device received from the server, the server obtaining the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, and the second information being device identification information of the device to be bound obtained by parsing the received broadcast information; If so, it is determined that the device to be bound is a sub-device in the set device, and a device binding request is sent to the server, wherein the device binding request carries the device identification information of the device to be bound.
2. The method for binding a set of equipment according to claim 1, characterized in that: The determining whether the first information includes the second information further includes: Receiving a network access instruction sent by the server, and parsing the network access instruction to obtain the first information; Storing the first information and starting the network configuration mode; The second information broadcasted by surrounding devices in the environment is received.
3. The method for binding a set of equipment according to claim 2, characterized in that: The enabling of the network configuration mode further includes: If the duration of the network configuration mode being on reaches a preset duration, shutting down the network configuration mode; and / or, If the sub-device identification information of all the sub-devices is sent to the server through the device binding request, the network configuration mode is closed.
4. A method for binding a packaged device, characterized in that: Applied to a server, the package device includes at least one sub-device, and the method includes: Receiving package device identification information corresponding to the package device sent by the client; Based on the package device identification information, query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device; Sending the sub-device identification information of the at least one sub-device to the gateway device; Receiving a device binding request sent by the gateway device, and obtaining device identification information of the device to be bound carried in the device binding request; A binding relationship is established between the device identification information of the device to be bound and the user information of the client, and a message of successful binding is pushed to the client.
5. The method for binding a set of equipment according to claim 4, characterized in that: The sending of the sub-device identification information of the at least one sub-device to the gateway device also includes: receiving the gateway device identification information sent by the client, The sending the sub-device identification information of the at least one sub-device to the gateway device includes: The sub-device identification information of the at least one sub-device is sent to the gateway device corresponding to the gateway device identification information.
6. A method for binding a package device, characterized in that: Applied to a client, the package device includes at least one sub-device, and the method includes: Collecting package device identification information corresponding to the package device; The package device identification information is sent to a server, so that the server can query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
7. The method for binding a set of equipment according to claim 6, characterized in that: The collecting of the package device identification information corresponding to the package device includes: Collecting the QR code information corresponding to the set of equipment; If the identification information of the client exists in the two-dimensional code information, the identification information of the package device in the two-dimensional code information is obtained.
8. A binding device for a set of equipment, characterized in that: Deployed on a gateway device, the package device includes at least one sub-device, and the apparatus includes: an information determination module, configured to determine whether the first information includes second information, wherein the first information includes sub-device identification information of the at least one sub-device received from the server, the server obtaining the sub-device identification information of the at least one sub-device based on the package device identification information corresponding to the package device, and the second information is device identification information of the device to be bound obtained by parsing the received broadcast information; The request sending module is used to determine that the device to be bound is a sub-device in the set device, and send a device binding request to the server, wherein the device binding request carries the device identification information of the device to be bound.
9. A binding device for a set of equipment, characterized in that: Deployed on the server, the package device includes at least one sub-device, and the apparatus includes: An information receiving module, used for receiving package device identification information corresponding to the package device sent by the client; An information query module, configured to query and obtain sub-device identification information of at least one sub-device corresponding to the package device based on the package device identification information; A first sending module, configured to send sub-device identification information of the at least one sub-device to a gateway device; A request receiving module, used to receive a device binding request sent by the gateway device, and obtain device identification information of the device to be bound carried in the device binding request; The device binding module is used to establish a binding relationship between the device identification information of the device to be bound and the user information of the client, and push a message of successful binding to the client.
10. A binding device for a set of equipment, characterized in that: Deployed on a client, the package device includes at least one sub-device, and the apparatus includes: An information collection module, used to collect package device identification information corresponding to the package device; The second sending module is used to send the package device identification information to the server, so that the server can query and obtain the sub-device identification information of the at least one sub-device corresponding to the package device based on the package device identification information.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for binding a set of devices according to any one of claims 1 to 7 is implemented.
12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for binding a set of devices as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method, device and system for establishing binding relationship between account and device
CN106549977A
Equipment binding method and device
CN111885144A
Binding method and device of terminal equipment, computer equipment and storage medium
CN113596090A
Method, device and system for binding sub-devices in batches, electronic device and medium
CN114745723A
Intelligent electric energy meter communication method and device, equipment and storage medium
CN115474107A