Complete-device binding method and apparatus, and electronic device and storage medium
By judging the information content in the gateway device and sending device binding requests, the problem of long binding time for set devices is solved, efficient binding and secure binding are achieved, and user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/115558
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-25
- Filing Date
- 2024-08-29
- Publication Date
- 2025-04-03
AI Technical Summary
In the prior art, the binding time of the set device is long, which affects the user experience. Especially when multiple sub-devices need to be bound, binding each sub-device alone will result in excessive time consumption.
The gateway device 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 a device binding request carrying the device identification information of the device to be bound is sent to the server to realize the device binding method of different types of devices, thereby shortening the binding time.
It realizes efficient set of equipment binding, shortens binding time, improves user experience, and improves user data security and binding security by reducing the amount of information sent by the client.
Smart Images

Figure CN2024115558_03042025_PF_FP_ABST
Abstract
Description
Binding method, device, electronic device and storage medium for packaged equipment
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 202311247562.1 and application date of September 25, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application in its entirety. Technical Field
[0003] The present application relates to the field of Internet of Things technology, and in particular to a method, apparatus, electronic device, and storage medium for binding a set of devices. Background Art
[0004] With the rapid development of IoT technology, more and more smart devices are being bound to cloud platform servers. Device binding involves establishing a connection between a smart device and user information stored on a cloud platform server through an app (Application), enabling management and control of the smart device through the app. The device binding process is crucial to the user experience, so shortening the device binding time is crucial.
[0005] Currently, device binding methods include Bluetooth binding, wireless AP (Access Point) binding, acoustic wave binding, and QR code scanning binding. Based on this, current device binding methods can only bind one device at a time. However, when multiple devices need to be bound, such as multiple sub-devices in a set, each sub-device needs to be bound separately, which takes a long time to bind, thus affecting the user experience.
[0006] Summary of the Invention
[0007] The present application provides a method, apparatus, electronic device, and storage medium for binding a set of devices, which are used to solve the problem of long binding time of set devices in the prior art, achieve efficient binding of set devices, and thus improve user experience.
[0008] The present application provides a method for binding a package device, which is applied to a gateway device. The package device includes at least one sub-device. The method includes:
[0009] If the first information includes the second information, a device binding request is sent to the server; the first information includes the sub-device identification information of the at least one sub-device received from the server, and 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; the device binding request carries the device identification information of the device to be bound.
[0010] The present application 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:
[0011] Receiving package device identification information corresponding to the package device sent by the client;
[0012] 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;
[0013] Sending the sub-device identification information of the at least one sub-device to the gateway device;
[0014] 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;
[0015] 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.
[0016] The present application 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:
[0017] Collecting package device identification information corresponding to the package device;
[0018] 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.
[0019] The present application also provides a binding apparatus for a packaged device, which is deployed on a gateway device. The packaged device includes at least one sub-device, and the apparatus includes:
[0020] A request sending module, used to send a device binding request to a server if the first information includes the second information; 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; the device binding request carries the device identification information of the device to be bound.
[0021] The present application also provides a binding device for a packaged device, which is deployed on a server. The packaged device includes at least one sub-device, and the device includes:
[0022] An information receiving module, configured to receive package device identification information corresponding to the package device sent by a client;
[0023] An information query module, configured 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;
[0024] A first sending module, configured to send the sub-device identification information of the at least one sub-device to the gateway device;
[0025] a request receiving module, configured 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;
[0026] 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.
[0027] The present application 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:
[0028] An information collection module, configured to collect identification information of the packaged device corresponding to the packaged device;
[0029] The second sending module 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.
[0030] The present application also provides an electronic device, including 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 method for binding a device package as described above is implemented.
[0031] The present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for binding a set of devices as described above is implemented.
[0032] The present application provides a method, apparatus, electronic device, and storage medium for binding a set device. In this method, a gateway device determines whether first information includes 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 a server. This implements a device binding method for different types of devices, thereby shortening the binding time for different types of devices. 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. In this way, in a code scanning binding method, there is no need to put too much information in the QR code, 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 the at least one sub-device is only obtained by the server, and there is no limit on the amount of information collected by the client. The client does not need to send the sub-device identification information of the at least one sub-device corresponding to the set device, thereby ensuring user data security, improving the security of the set device binding, and ultimately improving the user experience. At the same time, the first information includes the sub-device identification information of the at least one sub-device received from the server, thereby enabling simultaneous binding of multiple devices, significantly shortening the binding time of the set device, and thereby improving the user experience. In summary, this application can greatly shorten the binding time of the packaged device, improve the binding efficiency of the packaged device, and thus enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] FIG1 is a flow chart of a method for binding a set of devices provided in this application;
[0035] FIG2 is a second flow chart of the method for binding a set of devices provided in this application;
[0036] FIG3 is a third flow chart of the method for binding a set of devices provided in this application;
[0037] FIG4 is a fourth flow chart of the method for binding a set of devices provided in this application;
[0038] FIG5 is a schematic diagram of the structure of the binding system of the packaged device provided in this application;
[0039] FIG6 is a schematic diagram of a structure of a binding device of a set of equipment provided in this application;
[0040] FIG7 is a second structural diagram of the binding device of the set device provided by the present application;
[0041] FIG8 is a third structural diagram of the binding device of the set device provided in this application;
[0042] FIG9 is a schematic structural diagram of the electronic device provided in this application. DETAILED DESCRIPTION
[0043] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0044] With the rapid development of IoT technology, more and more smart devices are being bound to cloud platform servers. Device binding refers to establishing a connection between a smart device and user information stored on a cloud platform server through an app, allowing the smart device to be managed and controlled through the app. It should be noted that through device binding and device management, the ultimate goal of smart device manufacturers is to retain current customers and develop them into lifelong customers of the brand. Therefore, the device binding experience is very important and is crucial as the first step for users to use smart products. Therefore, the device binding process is extremely important to the user experience. To improve the user experience, it is necessary to shorten the time it takes to bind each device.
[0045] Currently, device binding methods include Bluetooth binding, wireless AP binding, acoustic wave binding, and QR code scanning. Based on this, current device binding methods can only bind one device at a time. However, when multiple devices need to be bound, such as multiple sub-devices in a set, each sub-device must be bound separately, which takes a long time to bind and affects the user experience.
[0046] In addition, even though there is currently a method for batch binding devices, that is, using an integrated circuit card (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 to achieve batch binding of devices, see CN114495331A - A binding method, binding device, and binding system for a smart lock. However, it can only bind devices of the same type 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.
[0047] In addition, in the above-mentioned 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 the following information: Media Access Control (MAC), International Mobile Equipment Identity (CMIE), Serial Number (SN), etc. The QR code is then scanned by the client device's APP to identify the corresponding device information, and the APP establishes a binding relationship with the server. However, the QR code information includes device information, which poses certain security risks and may lead to user information leakage, thereby reducing security and ultimately affecting the user experience. For example, if a user discards the packaging box with the QR code printed on it at will, it will cause certain security risks after being used by someone with ulterior motives.
[0048] In addition, binding a smart device to the cloud platform requires at least one piece of hardware information of the smart device (such as MAC or SN). If you want the cloud platform 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 the QR code will make the generated QR code image too complex. Since the capacity of the 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 a device type ID.
[0049] In response to the above problems, this application proposes the following embodiments.
[0050] The present application provides a method for binding a packaged device, which is applied to a gateway device and includes:
[0051] If the first information includes the second information, a device binding request is sent to the server; the first information includes the sub-device identification information of at least one sub-device received from the server, and the server obtains the sub-device identification information of 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; the device binding request carries the device identification information of the device to be bound.
[0052] The present application provides a method for binding a set of devices applied to a gateway device. If the first information includes the second information, the device to be bound is determined to be a sub-device in the set of devices, and a device binding request carrying the device identification information of the device to be bound is sent to the server, thereby realizing a device binding method for different types of devices, thereby shortening the binding time of different types of devices.
[0053] If the first information includes the second information, the step of sending the device binding request to the server also includes:
[0054] Obtaining first information based on the network access instruction sent by the server;
[0055] Enable network configuration mode to receive secondary information broadcast by surrounding devices.
[0056] This application turns on the network distribution mode only after obtaining the first information to reduce the power consumption of the gateway device.
[0057] FIG1 is a flow chart of a method for binding a set of devices provided in this application. As shown in FIG1 , the method for binding a set of devices applied to a gateway device includes:
[0058] Step 110, determine whether the first information includes the second information, the first information includes the sub-device identification information of at least one sub-device received from the server, the server obtains the sub-device identification information of 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.
[0059] Here, a package device includes at least one sub-device. Each package device corresponds to a piece of package device identification information. That is, at least one sub-device corresponding to the package device uses the same package device identification information. This eliminates the need to include too much information in the QR code during scan-to-bind, making the generated QR code format simpler and improving the client's scan recognition rate. The package device identification information can be ID information, i.e., a package ID.
[0060] In one embodiment, the gateway device is a router, for example, a router previously deployed by the user. In another embodiment, the gateway device is a gateway device that is provided with at least one sub-device corresponding to the package device. The gateway device can be independently configured, i.e., a standalone device, or a gateway device within the package device.
[0061] Here, the server is the server corresponding to at least one sub-device of the package. This 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. Specifically, the server is the device that binds to the at least one sub-device of the package, and the server is the device that establishes a connection relationship with the at least one sub-device of the package. For example, in a home service application scenario, this server is a smart home cloud platform.
[0062] Here, the sub-device identification information of the sub-device may be hardware information, which may include but is not limited to: mac, sn, cmei, ID, etc. Furthermore, device information (such as configurable information, etc.) of at least one sub-device may also be received from the server.
[0063] Here, broadcast information refers to information received by the gateway device in its surrounding environment. It is understood that if a device in the surrounding environment of the gateway device needs to be bound, the device to be bound needs to broadcast network access to enter the network configuration mode. Therefore, the device to be bound needs to broadcast its device identification information. This device identification information may include, but is not limited to: MAC, SN, CMEI, ID, etc. Furthermore, the device to be bound may also broadcast its device information (such as configurable information, etc.).
[0064] Specifically, the first information and the second information are compared to determine whether the first information includes the second information.
[0065] 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 the at least one sub-device to the gateway device.
[0066] 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. Furthermore, the first information can be stored locally in the gateway device, and the network configuration mode of the gateway device is enabled.
[0067] Furthermore, it is determined whether the gateway device and the server are bound, that is, whether a connection relationship has been established between the gateway device and the server. 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.
[0068] Step 120: If yes, determine that the device to be bound is a sub-device in a set of devices, and send a device binding request to the server. The device binding request carries the device identification information of the device to be bound.
[0069] 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.
[0070] The method for binding a set device provided in an embodiment of the present application determines whether the first information includes the second information. If so, the device to be bound is determined to be a sub-device in the set device, and a device binding request carrying the device identification information of the device to be bound is sent to the server, thereby implementing a device binding method for different types of devices, thereby shortening the binding time of different types of devices. 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. Therefore, in the code scanning binding method, there is no need to put too much information in the QR code, 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 the at least one sub-device is only obtained by the server, there is no limit on the amount of information collected by the client, and the client does not need to send the sub-device identification information of the at least one sub-device corresponding to the set device, thereby ensuring user data security, improving the security of the set device binding, and ultimately improving the user experience. At the same time, the first information includes the sub-device identification information of the at least one sub-device received from the server, thereby enabling simultaneous binding of multiple devices, thereby significantly shortening the binding time of the set device, thereby improving the user experience. In summary, the embodiments of the present application can greatly shorten the binding time of the package device, improve the binding efficiency of the package device, and thus enhance the user experience.
[0071] Based on any of the above embodiments, in the method, step 110 includes:
[0072] Receiving a network access instruction sent by the server, parsing the network access instruction to obtain first information;
[0073] storing the first information and starting the network distribution mode;
[0074] Receive second information broadcast by surrounding devices in the environment.
[0075] Here, the network access instruction carries first information, namely, sub-device identification information of at least one sub-device. For the server, after obtaining the sub-device identification information of the at least one sub-device, the server generates a network access instruction based on the sub-device identification information of the at least one sub-device, so that the network access instruction carries the sub-device identification information of the at least one sub-device, and sends the network access instruction to the gateway device.
[0076] In this embodiment of the present application, the first information is stored to facilitate subsequent determination of whether the first information includes the second information. Network configuration mode is enabled to facilitate reception of the second information broadcast by surrounding devices in the gateway device's surrounding environment. For at least one sub-device corresponding to the set device, all sub-devices are powered on and placed in network configuration mode. At this point, each sub-device broadcasts its device identification information, i.e., each sub-device issues a network configuration broadcast.
[0077] The binding method for a set device provided in an embodiment of the present application 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, ensures that at least one sub-device corresponding to the set device is successfully bound, and improves the binding accuracy of the set device; and stores the first information to facilitate subsequent determination 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, the network configuration mode is not enabled until the first information is obtained by parsing the network access instruction to reduce the power consumption of the gateway device.
[0078] Based on any of the above embodiments, after starting the network distribution mode, the method further includes:
[0079] If the duration of the network configuration mode reaches a preset duration, the network configuration mode is closed; and / or if the sub-device identification information of all sub-devices is sent to the server through the device binding request, the network configuration mode is closed.
[0080] Considering that some surrounding devices may not enter the network configuration mode due to operational problems or failures, the network configuration duration of the gateway device can be set to a preset duration. After the preset duration, the network configuration mode of the gateway device is automatically turned off. That is, if the network configuration mode is turned on for a preset duration, the network configuration mode is automatically turned off. The preset duration can be set according to actual needs, for example, the preset duration is 5 minutes.
[0081] If the sub-device identification information of at least one sub-device successfully matches the second information, that is, if at least one sub-device is successfully paired with the network, the network pairing mode is automatically disabled. 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 to-be-bound device parsed from the received broadcast information, no further network pairing is required, and the network pairing mode is automatically disabled.
[0082] The binding method for a set device provided in an embodiment of the present application, if the duration of the network configuration mode being on reaches a preset duration, the network configuration mode of the gateway device is turned off, thereby avoiding the network configuration mode being turned on 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, the network configuration mode of the gateway device is turned off, thereby avoiding the network configuration mode being turned on after the network configuration is completed, thereby reducing the power consumption of the gateway device.
[0083] Based on any of the above embodiments, the present application further provides a method for binding a packaged device, which is applied to a server. FIG2 is a second flow chart of the method for binding a packaged device provided by the present application. As shown in FIG2 , the method includes:
[0084] Step 210: Receive package device identification information corresponding to the package device sent by the client.
[0085] Here, a package device includes at least one sub-device. Each package device corresponds to a piece of package device identification information. That is, at least one sub-device corresponding to the package device uses the same package device identification information. This eliminates the need to include too much information in the QR code during code scanning and binding, making the generated QR code format simpler and improving the client's code recognition rate. This package device identification information is used to uniquely identify the package device and can be ID information, namely, the package ID.
[0086] Here, the client is a user terminal device that deploys an APP, such as a smartphone, tablet computer, laptop, 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.
[0087] In one specific embodiment, a package device binding request is received from a client, the package device binding request carrying package device identification information corresponding to the package device. For example, the package device binding request includes the package device identification information in the request body. More specifically, the package device binding request is received from an app in the client.
[0088] Step 220: Based on the package device identification information, query and obtain the sub-device identification information of at least one sub-device corresponding to the package device.
[0089] Here, the sub-device identification information of the sub-device may be hardware information, which may include but is not limited to: mac, sn, cmei, ID, etc. Furthermore, device information (such as configurable information, etc.) of at least one sub-device may also be received from the server.
[0090] 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.
[0091] 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 retrieved from a mapping relationship. The mapping relationship includes a mapping relationship for at least one package device identification information, and the mapping relationship for 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 and can use the package device identification information to retrieve the sub-device identification information of at least one sub-device.
[0092] It is understandable that the sub-device identification information of at least one sub-device is stored on the server side, so there is no 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.
[0093] Furthermore, considering that for a set device, its corresponding sub-devices 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 set device cannot be updated, that is, the application scenario cannot be expanded. In other words, the current method has a relatively narrow application range and is not very scalable. Based on this, the present application 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 set device binding. Specifically, a mapping relationship modification instruction is obtained, and based on the mapping relationship modification instruction, the mapping relationship is modified; more specifically, a mapping relationship modification instruction is obtained, and based on the mapping relationship modification instruction, the set device identification information is determined, and the mapping relationship corresponding to the set device identification information is modified.
[0094] 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.
[0095] Step 230: Send the sub-device identification information of at least one sub-device to the gateway device.
[0096] In one embodiment, the sub-device identification information of at least one sub-device is directly sent to the gateway device.
[0097] In another embodiment, a network access instruction is generated based on the sub-device identification information of at least one sub-device, such that the network access instruction carries the sub-device identification information of the at least one sub-device, and the network access instruction is sent to the gateway device. It will be appreciated that the server encapsulates the sub-device identification information of the at least one sub-device corresponding to the package device within the network access instruction to better transmit the sub-device identification information of all sub-devices, ensure successful binding of the at least one sub-device corresponding to the package device, and improve the accuracy of package device binding.
[0098] 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.
[0099] 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 server stores a mapping relationship between the package device identification information and the gateway device.
[0100] Step 240: Receive a 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.
[0101] 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.
[0102] 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.
[0103] Specifically, a binding relationship is established between the device identification information of the device to be bound and the user information of the client to bind the device to the server, thereby achieving device binding of the device to be bound. Furthermore, the binding relationship can be stored for subsequent other processing based on the binding relationship.
[0104] In a specific embodiment, based on the device identification information of the device to be bound, a binding success message of the device to be bound is generated and pushed to the client. More specifically, the binding success message is pushed to the client's APP.
[0105] The successful binding message is used to indicate that the pending device has been successfully bound, that is, to indicate that the pending device has been successfully bound to the server. Specifically, the successful binding message is sent to the client, so that after receiving the successful binding message, the client can inform the user through a friendly prompt and then guide the user to the corresponding device management page to perform device control operations.
[0106] In the binding method of the package device provided in the embodiment of the present application, the server receives the package device identification information corresponding to the package device sent by the 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 on 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 obtained, without the client sending 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 is improved, and the user experience is ultimately enhanced; 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, thereby enabling simultaneous binding of multiple devices, 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 embodiment of the present application can greatly shorten the binding time of the package device, improve the binding efficiency of the package device, and thereby improve the user experience.
[0107] Based on any of the above embodiments, before step 230, the method further includes:
[0108] Receive the gateway device identification information sent by the client.
[0109] Here, the package device identification information is used to uniquely identify the package device, and it may be ID information, that is, it is a package ID.
[0110] In one embodiment, a package device binding request is received from a client. The package device binding request carries the package device identification information and 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, the package device binding request is received from an app on 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.
[0111] Accordingly, the above step 230 includes:
[0112] The sub-device identification information of at least one sub-device is sent to the gateway device corresponding to the gateway device identification information.
[0113] It is understandable that after receiving the gateway device identification information sent by the client, the client can determine the gateway device currently being configured. For example, if there are multiple gateway devices, the user can decide which gateway device to use through the client, ultimately improving the user experience.
[0114] The binding method for a set device provided in an embodiment of the present application can accurately determine which is the gateway device that matches the set device through the above method, thereby accurately sending the sub-device identification information of at least one sub-device to the gateway device, thereby improving the accuracy of the binding of the set device.
[0115] Based on any of the above embodiments, after step 250, the method further includes:
[0116] If the device identification information of at least one sub-device is bound to the user information of the client, the linkage rule corresponding to the package device is obtained from the identification information-linkage rule mapping relationship based on the package device identification information, so as to control the at least one sub-device based on the linkage rule.
[0117] Here, the mapping relationship between identification information and linkage rules includes the mapping relationship between at least one set of device identification information, and the mapping relationship between any set of device identification information includes the mapping relationship between the set of device identification information and at least one linkage rule, that is, a set of device can recommend multiple linkage rules, thereby screening out a linkage rule 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.
[0118] Specifically, based on the identification information of the package device, the linkage rule recommended by the package device is obtained from the identification information-linkage rule mapping relationship, so as to create a linkage rule for the package device based on the linkage rule.
[0119] 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 the pop-up window or toast prompt, thereby further improving the user experience.
[0120] 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 toast prompt, thereby further improving the user experience.
[0121] The binding method for the set device provided in the embodiment of the present application takes into account that the current linkage rules are fixed and not pushed to the user for viewing. For ordinary users, the learning threshold of the linkage rules is relatively high, resulting in a low usage rate of the linkage rules and affecting the user experience. Therefore, if the device identification information of at least one sub-device is bound to the user information of the client, the linkage rules corresponding to the set 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 set device, that is, the linkage rules are determined according to the characteristics of the set device, thereby realizing the intelligent creation of linkage rules, facilitating the user's intelligent experience, thereby improving the user experience and ultimately increasing user stickiness.
[0122] Based on any of the above embodiments, after obtaining 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:
[0123] Get the user portrait information corresponding to the client;
[0124] Adjust linkage rules based on user portrait information.
[0125] 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.
[0126] In one embodiment, the user portrait information sent by the client is received. In another embodiment, other relevant information sent by the client is received, and the user portrait information is obtained based on the other relevant information.
[0127] It is understandable that under the same set device identification information, that is, under the same set 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 device, thereby further enhancing the intelligent experience, that is, further enhancing the user experience and ultimately improving user stickiness.
[0128] For example, if a user's profile includes information about a user's habit of opening a mobile app (client) around 7:00 AM every day, then if the device set includes a bedside lamp, the linkage rule could be "7:00 AM - Turn on the bedroom bedside lamp." Furthermore, this user profile information can be recorded in the app backend and sent to the server.
[0129] The binding method for the set of devices provided in the embodiment of the present application adjusts the linkage rules based on user portrait information, 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.
[0130] Based on any of the above embodiments, after obtaining 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:
[0131] Send linkage rules to the client so that the linkage rules can be modified through the client;
[0132] Receive the modified linkage rules sent by the client.
[0133] For the client, the client displays the linkage rules so that the client device can guide the user to modify 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 the pop-up window or toast prompt and guide the user to modify the linkage rules, thereby further improving the user experience.
[0134] Furthermore, the linkage rules are first adjusted based on the user profile information, and then the adjusted linkage rules are sent to the client, so that the client can modify the adjusted linkage rules. Alternatively, the linkage rules are first sent to the client, so that the client can modify the linkage rules, and the modified linkage rules sent by the client are received, and then the modified linkage rules are adjusted based on the user profile information.
[0135] The binding method for the set device provided in the embodiment of the present application sends the linkage rules to the client so that the linkage rules can be modified through the client, and receives the modified linkage rules sent by the client, 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.
[0136] Based on any of the above embodiments, the present application further provides a method for binding a packaged device, which is applied to a client. FIG3 is a third flow chart of the method for binding a packaged device provided by the present application. As shown in FIG3 , the method includes:
[0137] Step 310: Collect package device identification information corresponding to the package device.
[0138] Here, a package device includes at least one sub-device. Each package device corresponds to a single package device identification information. That is, at least one sub-device corresponding to the package device uses the same package device identification information. This eliminates the need to include too much information in the QR code during the scan code binding method, making the generated QR code format simpler and improving the client's scan code recognition rate.
[0139] 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.
[0140] The identification information of the set of equipment can be obtained by scanning a code, or by Bluetooth, wireless access point (Access Point, AP), ZigBee protocol, sound wave, etc.
[0141] In one embodiment, after step 310, a determination is made as to whether the gateway device is bound to the server, i.e., whether a connection relationship has been established with the server. If so, no further processing is required. If not, a prompt message for binding the gateway device is displayed to prompt the user to first bind the gateway device. Furthermore, a determination is made as to whether there is a supported gateway device under the user information corresponding to the client (e.g., user name). If no gateway device is available, a prompt message is displayed to prompt the user to bind the gateway device.
[0142] 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 at least one sub-device corresponding to the package device based on the package device identification information.
[0143] In one embodiment, the package device identification information is directly sent to the server.
[0144] 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.
[0145] The binding method of the package device provided in the embodiment of the present application collects the package device identification information corresponding to the package device, 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 only obtained on the server, and there is no limit on the amount of information collected by the client; and the package device identification information only needs to be sent to the server, without the client having to send the sub-device identification information of at least one sub-device corresponding to the package device, thereby ensuring user data security, improving the security of the package device binding, and ultimately 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, a device binding method of different types of devices can be implemented, thereby shortening the binding time of different types of devices. In summary, the embodiment of the present application can greatly shorten the binding time of the package device, improve the binding efficiency of the package device, and thereby improve the user experience.
[0146] Based on any of the above embodiments, the method further includes:
[0147] Identify the gateway device that has established a binding relationship with the user information of the client, and obtain the gateway device identification information of the gateway device;
[0148] Send the gateway device identification information to the server.
[0149] In one embodiment, the client's user information is sent to the server, which determines, based on the user information, at least one gateway device to establish a binding relationship with the user information. The server then sends the gateway device identification information of the at least one gateway device to the client, allowing the client to 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 one, no selection is required and the device is directly determined. 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.
[0150] 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 obtained.
[0151] In one embodiment, the gateway device identification information is directly sent to the server.
[0152] 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.
[0153] The binding method for a set device provided in an embodiment of the present application 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 the binding of the set device.
[0154] Based on any of the above embodiments, in the method, step 310 includes:
[0155] Collect the QR code information corresponding to the set of equipment;
[0156] If the QR code information contains the identification information of the client, the package device identification information in the QR code information is obtained.
[0157] It should be noted that one set of devices 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 devices, or on the packaging box or instruction manual of each device, etc.
[0158] Specifically, the QR code information corresponding to the packaged device is obtained by scanning the QR code on the client. In one embodiment, a QR code scan image of the packaged device is obtained and parsed to obtain the QR code information. The QR code scan image can be obtained by capturing it on the client device, for example, by scanning it on the client device.
[0159] 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 that based on the identification information, it is judged whether the QR code information meets the requirements, that is, whether the current QR code is a QR code supported by the client, and further, whether the current QR code is a QR code supported by the APP.
[0160] In one embodiment, it is determined whether the client identification information exists in the QR code information. If it exists, the package device identification information in the QR code information is obtained. If it does not exist, a prompt message is generated to indicate that the QR code is not supported.
[0161] 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.
[0162] In one embodiment, the QR code format is as follows:
[0163] https: / / yyyyyyy? suitId=xxxxxxxx;
[0164] Where yyyyyyy is the identification information of the client, and xxxxxxxx is the identification information of the package device.
[0165] The binding method for a set device provided in an embodiment of the present application obtains the identification information of the set device in the QR code information, thereby eliminating the 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 the identification information of the client device exists in the QR code information to prevent the recognition of other irrelevant QR codes, thereby improving the security of the binding of the set device and ultimately improving the user experience.
[0166] Based on any of the above embodiments, after step 320, the method further includes:
[0167] Receive the linkage rules corresponding to the packaged devices sent by the server;
[0168] Display linkage rules;
[0169] Obtain rule modification instructions and modify linkage rules based on the rule modification instructions;
[0170] Send the modified linkage rules to the server.
[0171] Exemplarily, the linkage rules can 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 the pop-up window or Toast prompt, and guide the user to change the linkage rules, thereby further improving the user experience.
[0172] Here, the rule modification instruction is an instruction triggered by the user based on the client.
[0173] The binding method for the set device provided in the embodiment of the present application obtains a rule modification instruction, modifies the linkage rules corresponding to the set device based on the rule modification instruction, and sends the modified linkage rules to the server, 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.
[0174] To facilitate understanding of the above embodiments, a specific embodiment is described here. As shown in FIG4 , the binding method of the set of devices includes:
[0175] Step 401: Bind the gateway device to the server through the client to establish a persistent connection between the gateway device and the server. If the gateway device and the server are already bound, this step is not required.
[0176] 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.
[0177] Step 403: Scan the QR code of the packaged device through the client to obtain QR code information.
[0178] Step 404: determine whether the QR code information contains the client's identification information.
[0179] 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.
[0180] Step 406: If it does not exist, a QR code error message is displayed.
[0181] 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.
[0182] Step 408: If found, a network access instruction is generated based on the identification information of each sub-device, and the network access instruction is sent to the gateway device.
[0183] Step 409: If the query fails, it will be prompted that the QR code is illegal.
[0184] In step 410, the gateway device starts the network distribution mode and parses and compares the broadcast information of the surrounding sub-devices.
[0185] Step 411: Bind the successfully compared sub-devices to the server. If there are sub-devices in the device set that have not been bound, return to step 410.
[0186] Step 412: If the comparison is unsuccessful, it will be prompted that the corresponding sub-device has failed to join the network.
[0187] In step 413, if all sub-devices in the device package are bound, the gateway device turns off the network configuration mode.
[0188] In step 414, the server generates a linkage rule and pushes the linkage rule to the client.
[0189] In step 415, the client performs intelligent scene display according to the linkage rules.
[0190] Based on the above embodiments, this application 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 bindings 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.
[0191] The following describes the binding system for a packaged device provided by this application. The binding system for a packaged device described below can be referenced in conjunction with the binding method for a packaged device described above. The binding system for a packaged device includes: a server, a client, a gateway device, and at least one sub-device corresponding to the packaged device. When a program is executed by a processor in the server, any of the above-described binding methods for a packaged device applied to the server are implemented. When a program is executed by a processor in the client, any of the above-described binding methods for a packaged device applied to the client are implemented. When a program is executed by a processor in the gateway device, any of the above-described binding methods for a packaged device applied to the gateway are implemented. To facilitate understanding of the binding system for a packaged device, a specific embodiment will be used as an example. As shown in FIG5 , the binding system for a packaged device includes a packaged device, a server, and a client. The packaged device includes at least one sub-device and a gateway device. Each sub-device in the packaged device needs to connect to the server. The client needs to obtain the packaged device identification information of the packaged device and bind at least one sub-device to the server. The server can push various relevant information to the client.
[0192] The binding apparatus of the set device provided in the present application is described below. The binding apparatus of the set device described below and the binding method of the set device described above can refer to each other.
[0193] FIG6 is a schematic diagram of a structure of a binding apparatus for a set of devices provided in this application. As shown in FIG6 , the binding apparatus for a set of devices deployed on a gateway device includes:
[0194] An information determination module 610 is configured to determine whether the first information includes second information, where the first information includes sub-device identification information of at least one sub-device received from the server, the sub-device identification information of the at least one sub-device being obtained by the server 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;
[0195] The request sending module 620 is configured to determine that the device to be bound is a sub-device in a set of devices, and send a device binding request to the server. The device binding request carries the device identification information of the device to be bound.
[0196] The binding device of the package device deployed on the gateway device of the present application may also include a request sending module, which is used to send a device binding request to the server if the first information does not include the second information; the first information includes the sub-device identification information of at least one sub-device received from the server, and the server obtains the sub-device identification information of 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; the device binding request carries the device identification information of the device to be bound.
[0197] FIG7 is a second structural diagram of the binding apparatus for the packaged device provided in this application. As shown in FIG7 , the binding apparatus for the packaged device deployed on the server side includes:
[0198] The information receiving module 710 is used to receive the package device identification information corresponding to the package device sent by the client;
[0199] An information query module 720 is 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;
[0200] A first sending module 730 is configured to send sub-device identification information of at least one sub-device to a gateway device;
[0201] The request receiving module 740 is configured to receive a 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;
[0202] 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.
[0203] FIG8 is a third structural diagram of the binding apparatus for the packaged device provided in this application. As shown in FIG8 , the binding apparatus for the packaged device deployed on the client includes:
[0204] An information collection module 810 is used to collect package device identification information corresponding to the package device;
[0205] The second sending module 820 is configured to send the package device identification information to the server, so that the server can query and obtain the sub-device identification information of at least one sub-device corresponding to the package device based on the package device identification information.
[0206] FIG9 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG9 , the electronic device may include: a processor 910, a communications interface 920, a memory 930, and a communication bus 940, wherein the processor 910, the communications interface 920, and the memory 930 communicate with each other via the communication bus 940. The processor 910 may invoke logic instructions in the memory 930 to execute a method for binding a set of devices applied to a gateway device. The method includes: if the first information includes the second information, sending a device binding request to the server; the first information includes sub-device identification information of 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 is the device identification information of the device to be bound obtained by parsing the received broadcast information; the device binding request carries the device identification information of the device to be bound.
[0207] Alternatively, the processor 910 may call 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 first information includes second information, the first information comprising sub-device identification information of at least one sub-device received from a server, the server obtaining 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, 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, executing a binding method for a package device applied to a server, 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 the gateway device; receiving a device binding request sent by the gateway device, 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 successful binding message to the client. Alternatively, a binding method for a package device applied to a client is executed, the method comprising: collecting 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 sub-device identification information of at least one sub-device corresponding to the package device based on the package device identification information.
[0208] 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 sold or used as an independent product. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0209] On the other hand, the present application 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 package device applied to a gateway device provided by the above-mentioned methods, the method comprising: if the first information includes the second information, sending a device binding request to the server; the first information includes sub-device identification information of at least one sub-device received from the server, and the server obtains the sub-device identification information of 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; the device binding request carries the device identification information of the device to be bound.
[0210] 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 gateway device provided by the above methods, the method including: determining whether the first information includes the second information, the first information includes the sub-device identification information of at least one sub-device received from the server, the server obtains the sub-device identification information of 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; 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.
[0211] 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 including: 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 at least one sub-device corresponding to the package device; sending the sub-device identification information of 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.
[0212] 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 including: 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 at least one sub-device corresponding to the package device based on the package device identification information.
[0213] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling 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 certain parts of the embodiments.
[0214] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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 application. Industrial Applicability
[0215] In an embodiment of the present application, the gateway device determines whether the first information includes the second information. If so, it 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, thereby realizing a device binding method for different types of devices, thereby shortening the binding time of different types of devices, improving the binding efficiency of the set device, and thus improving the user experience.
Claims
1. A method for binding a package device, applied to a gateway device, wherein the package device includes at least one sub-device, and the method includes: If the first information includes the second information, sending a device binding request to the server; The first information includes sub-device identification information of the at least one sub-device received from the server, and 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. The second information is the device identification information of the device to be bound obtained by parsing the received broadcast information; the device binding request carries the device identification information of the device to be bound.
2. The method for binding a set of devices according to claim 1, wherein if the first information includes the second information, before the step of sending a device binding request to the server, the method further comprises: Obtaining the first information based on the network access instruction sent by the server; Turn on the network configuration mode to receive the second information broadcast by surrounding devices in the environment.
3. The method for binding a set of equipment according to claim 2, wherein the step of starting the network configuration mode further comprises: 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.
4. A method for binding a package device, applied to a server, wherein 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 devices according to claim 4, wherein before sending the sub-device identification information of the at least one sub-device to the gateway device, the method further comprises: 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, applied to a client, wherein 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 package device according to claim 6, wherein the step of collecting package device identification information corresponding to the package device comprises: 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 package device, deployed in a gateway device, the package device including at least one sub-device, the device comprising: A request sending module, configured to send a device binding request to a server if the first information does not include the second information; The first information includes sub-device identification information of the at least one sub-device received from the server, and 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. The second information is the device identification information of the device to be bound obtained by parsing the received broadcast information; the device binding request carries the device identification information of the device to be bound.
9. A binding device for a package device, deployed on a server, wherein the package device includes at least one sub-device, and the device 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 package device, deployed on a client, wherein the package device includes at least one sub-device, and the device 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, wherein the processor implements the method for binding a set of devices as claimed in any one of claims 1 to 7 when executing the program.
12. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for binding a set of devices according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Binding method for automatic equipment distribution network and anti-misconfiguration method for the automatic equipment distribution network and cloud server
CN110912761A
Smart home batch configuration method, device and system and electronic equipment
CN111913402A
Internet of Things equipment network distribution method, device, equipment and medium
CN114584974A
Equipment network distribution method, device and system
CN116016004A
Internet of Things equipment batch network distribution method and system
CN116684270A