Batch binding method and device of equipment, electronic equipment and storage medium
By judging the router type and batch binding during smart home appliance distribution network, the problem of low efficiency and cumbersome operation of distribution network failure detection is solved, and the distribution network efficiency and user experience are improved.
Patent Information
- Application Number
- CN202311186503.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-14
- Publication Date
- 2025-03-14
AI Technical Summary
When it comes to smart home appliance distribution networks, it is difficult to determine the specific problem after the distribution network fails in the existing technology, resulting in low efficiency in problem detection, and the multi-equipment distribution network needs to be cumbersome to operate manually, reducing the user experience.
After powering on the water device, it is determined whether there is a custom router. If it exists, batch binding is performed according to the customized router and the wireless access point AP of the water device; if it does not exist, batch binding is performed according to the user equipment and the water device AP.
It improves distribution network efficiency, reduces user operation complexity, improves user experience, and simplifies the problem investigation process.
Smart Images

Figure CN119628982A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a method and device for batch binding of devices, an electronic device and a storage medium. Background Art
[0002] Smart home appliance distribution network usually adopts the wireless access point (AP) mode of distribution network binding. This method mainly interacts with mobile devices, smart home appliances and wireless routers, and finally connects smart home appliances to the cloud server to realize remote query and control.
[0003] At present, since the network configuration and binding of the Ap mode is a complete process, when the network configuration fails, it is impossible to find out which specific link in the network configuration process has a problem. Instead, it is necessary to manually troubleshoot and eliminate the entire network configuration process repeatedly to determine the cause of the network configuration failure. The troubleshooting and network configuration efficiency are low. At the same time, during the network configuration connection process, if there are multiple devices, click in sequence according to the guidance, and then manually enter the password, etc. Each device needs to be manually configured and bound one by one. The operation is cumbersome and complicated, which reduces the user experience. Summary of the invention
[0004] The present invention provides a method, device, electronic device and storage medium for batch binding of devices, aiming to solve the problem of low efficiency of problem troubleshooting and network configuration, reduce the complicated network configuration binding operation process for users, and improve the user experience.
[0005] According to one aspect of the present invention, a method for batch binding of devices is provided, the method comprising:
[0006] After it is determined that the water device has been powered on and there is a router within a preset range of the water device, determining whether the router is a customized router; wherein there are at least two water devices and the customized router is a router with a preset routing protocol;
[0007] If the router is a customized router, all water devices are bound in batches according to the customized router, the wireless access point AP of the water devices and the first binding rule;
[0008] If the router is not a customized router, all water devices are bound in batches according to the user device, the AP of the water device and the second binding rule.
[0009] Optionally, all water devices are bound in batches according to the customized router, the AP of the water devices and the first binding rule, including: obtaining the wireless access point AP of all water devices according to the customized router; and directly configuring and binding in batches with the AP of all water devices through the customized router.
[0010] Optionally, all water devices are bound in batches according to the user device, the AP of the water device and the second binding rule, including: determining the first target water device; after determining that the user device and the first target water device are configured and bound, obtaining the AP of the first target water device; connecting the first remaining water device through the AP of the first target water device, wherein the first remaining water device is the device among all water devices except the first target water device; after determining that the first remaining water device and the AP of the first target water device are connected, sending the account information of the router to the first remaining water device through the user device, so that the first remaining water device is configured and bound with the router according to the account information; wherein the account information includes the account number, account password and user device number.
[0011] Optionally, after determining that the water device has completed power-on and there is no router within the preset range of the water device, the water device is obtained through the user device, and a second target water device is determined; wherein the second target water device is any water device among the water devices; after determining that the device hotspot of the user device is connected to the AP of the second target water device, the hotspot information of the device hotspot of the user device is sent to the second target water device, so that the second target water device is configured and bound to the user device through the hotspot information; wherein the hotspot information includes the hotspot account, the hotspot password and the user device number; after the second target water device is configured and bound to the user device, the AP of the second target water device is automatically connected to the second remaining water device; wherein the second remaining water device is the device among all water devices except the second target water device; after determining that the second remaining water device is connected to the AP of the second target water device, the hotspot information is sent to the second remaining water device through the user device, so that the second remaining water device is configured and bound to the user device according to the hotspot information.
[0012] Optionally, after the second target water device and the second remaining water device are configured and bound to the user device, it also includes: determining whether there is a router; if there is a router, connecting the user device to the router, and sending the account information of the router to the second target water device and the second remaining water device through the user device, so that the second target water device and the second remaining water device are batch configured and bound to the router through the account information.
[0013] Optionally, after all water devices are bound in batches, it also includes: for any water device, determining whether the water device configuration binding is successful; if the router is successfully connected to the AP of the water device, determining that the configuration binding is successful; if the router is unsuccessful in connecting to the AP of the water device, determining that the configuration binding fails.
[0014] Optionally, after determining that the water device configuration binding has failed, it also includes: re-configuring and binding the router where the configuration binding failed and the AP of the water device to determine the number of binding failures; determining whether the number of binding failures is equal to a preset number; if the number of binding failures is equal to the preset number, stopping the configuration binding and issuing an alarm instruction; wherein the alarm instruction is used to remind the user that the water device configuration binding has failed.
[0015] According to another aspect of the present invention, a device for batch binding of devices is provided, the device comprising:
[0016] A router determination module, used to determine whether the router is a customized router after it is determined that the water device has been powered on and there is a router within a preset range of the water device; wherein there are at least two water devices and the customized router is a router with a preset routing protocol;
[0017] A first binding module, for, if the router is a customized router, batch binding all water devices according to the customized router, the AP of the water device and the first binding rule;
[0018] The second binding module is used to batch bind all water devices according to user devices, APs of water devices and the second binding rule if the router is not a customized router.
[0019] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0020] at least one processor; and a memory communicatively coupled to the at least one processor;
[0021] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the batch binding method for devices of any embodiment of the present invention.
[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement the batch binding method of devices in any embodiment of the present invention when executed.
[0023] The technical solution of the present invention determines whether the router is a customized router after it is determined that the water device has completed power-on and there is a router within the preset range of the water device; wherein there are at least two water devices and the customized router is a router with a preset routing protocol; if the router is a customized router, all water devices are batch bound according to the customized router, the AP of the water device and the first binding rule; if the router is not a customized router, all water devices are batch bound according to the user device, the AP of the water device and the second binding rule. The technical solution of the present invention determines whether the router is a customized router and then batch binds the water devices according to different binding rules, aiming to solve the problems of low efficiency of problem troubleshooting and network distribution, reduce the complicated network distribution binding operation process for users, and improve the user experience.
[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0026] Figure 1 This is a flow chart of a method for batch binding of devices provided in the first embodiment;
[0027] Figure 2 This is a flow chart of a method for batch binding of devices provided in the second embodiment;
[0028] Figure 3 It is a structural diagram of a batch binding device of a device provided in the third embodiment;
[0029] Figure 4 It is a structural diagram of an electronic device provided in the fourth embodiment. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solution of the present invention, 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment 1
[0033] Figure 1 This is a flow chart of a method for batch binding of devices provided in the first embodiment. This embodiment is applicable to the case of batch binding of devices. The method can be executed by a batch binding device for devices. The batch binding device for devices can be implemented in the form of hardware and / or software. The batch binding device for devices can be configured in electronic devices. Figure 1 As shown, the method includes:
[0034] S101. After it is determined that the water device has been powered on and there is a router within a preset range of the water device, determine whether the router is a customized router.
[0035] The water equipment is a household appliance that can use water or store water, such as a water dispenser, a direct drinking machine, a dishwasher, a washing machine, a shoe washing machine, a shower device, and a bathtub device, etc., which are not limited in this embodiment. The router is the hub of the Internet, used to share the network, and can realize the network connection of multiple devices.
[0036] There are at least two water devices, and the customized router is a router with a preset routing protocol. The preset range is a preset configuration range of the router and the water device, for example, 10 meters, 20 meters, 30 meters, etc., which is not limited in this embodiment.
[0037] Specifically, after it is determined that the water equipment has been powered on, all water equipment is in a standby state after being powered on, and it is determined whether there is a router within the preset range of the water equipment. When it is determined that there is a router within the preset range of the water equipment, it is further determined whether the router is a customized router with a pre-customized routing protocol. If the routing protocol of the router is a pre-customized protocol that can interact with the water equipment, the router is determined to be a customized router, and S102 is executed; if the routing protocol of the router is not a pre-customized routing protocol, it is determined that the router is not a customized router, and S103 is executed.
[0038] S102: Batch bind all water devices according to the customized router, the wireless access point AP of the water devices and the first binding rule.
[0039] Among them, wireless AP, also known as wireless access point, is a wireless switch in wireless LAN (Wireless Fidelity, wifi) shared Internet access. It is the access point for mobile terminal users to enter the wired network and is mainly used for home broadband, home appliances, etc.
[0040] Specifically, if the router is a customized router, then the APs of all water devices are directly obtained according to the customized router, and then after the APs of all water devices are directly obtained through the customized router, the customized router is directly bound to the APs of all water devices obtained for batch configuration, so that all water devices can be connected to the Internet.
[0041] S103: Batch bind all water devices according to the user devices, APs of the water devices and the second binding rule.
[0042] Specifically, if the router is not a customized router, any water device is randomly determined from all water devices obtained by the router, and after the first water device is manually connected and bound to the user device when any water device is determined, and after the configuration and binding between the user device and any water device is determined, the AP of any water device is directly obtained to automatically send out any water device. After the AP of any water device is obtained, the AP of any water device is used to automatically connect all water devices except the determined any water device, and after the connection between the water devices except the determined any water device and the AP of the determined any water device is determined, the water devices except the determined any water device are indirectly connected to the user device. Therefore, the account information of the router can be sent to the water devices except the determined any water device through the user device, so that all water devices except the determined any water device are configured and bound to the router according to the account information, thereby realizing the batch configuration and binding of all water devices except the determined any water device.
[0043] In a specific embodiment, optionally, after determining that the water device has completed power-on and there is no router within the preset range of the water device, the water device is obtained through the user device and a second target water device is determined; wherein the second target water device is any water device among the water devices; after determining that the device hotspot of the user device is connected to the AP of the second target water device, the hotspot information of the device hotspot of the user device is sent to the second target water device, so that the second target water device is configured and bound to the user device through the hotspot information; wherein the hotspot information includes the hotspot account, the hotspot password and the user device number; after the second target water device is configured and bound to the user device, the AP of the second target water device is automatically connected to the second remaining water device; wherein the second remaining water device is the device among all water devices except the second target water device; after determining that the second remaining water device is connected to the AP of the second target water device, the hotspot information is sent to the second remaining water device through the user device, so that the second remaining water device is configured and bound to the user device according to the hotspot information.
[0044] Among them, the second target water device is any water device among the water devices, and the second remaining water device is the device among all water devices except the second target water device; the hotspot information includes the hotspot account, hotspot password and user device number; the user device is a mobile electronic device that can connect to the water device, such as a tablet computer, tablet, mobile phone and phone watch, etc., which is not limited in this embodiment.
[0045] Specifically, after determining that the water device has completed power-on and there is no router within the preset range of the water device, the water device is obtained through the user device, and the second target water device is determined; wherein the second target water device is any water device among the water devices. After determining that the device hotspot of the user device is connected to the AP of the second target water device, the hotspot information of the device hotspot of the user device is sent to the second target water device, so that the second target water device is configured and bound with the user device through the hotspot information; wherein the hotspot information includes the hotspot account, the hotspot password and the user device number. After the second target water device is configured and bound with the user device, the AP of the second target water device is automatically connected to the second remaining water device; wherein the second remaining water device is the device of all water devices except the second target water device. After determining that the second remaining water device is connected to the AP of the second target water device, the hotspot information is sent to the second remaining water device through the user device, so that the second remaining water device is configured and bound with the user device according to the hotspot information.
[0046] The advantage of such a setting is that after determining that the water device has completed power-on and there is no router within the preset range of the water device, the hotspot information of user devices such as mobile phones, tablets, laptops and other devices can be used to connect to the AP of the second target water device, and the hotspot information of the user device can be further sent to the second target water device. Then, the hotspot information of the user device is sent to the second remaining water device through the AP of the second target water device, so that the second remaining water device can be configured and bound with the user device according to the hotspot information. Finally, in the absence of a router, all water devices and user devices can complete batch configuration binding, thereby improving the efficiency of configuration binding.
[0047] In a specific embodiment, optionally, after the second target water device and the second remaining water device are configured and bound to the user device, it also includes: determining whether there is a router; if there is a router, connecting the user device to the router, and sending the account information of the router to the second target water device and the second remaining water device through the user device, so that the second target water device and the second remaining water device are batch configured and bound to the router through the account information.
[0048] Specifically, after the second target water device and the second remaining water device are configured and bound to the user device, it is further determined in real time whether there is a router; if there is a router, the user device is connected to the router, and the account information of the router is sent to the second target water device and the second remaining water device through the user device, so that the second target water device and the second remaining water device are batch configured and bound to the router through the account information.
[0049] The advantage of this setting is that when all water devices are configured and bound with the user device, it continues to determine whether there is a router. If there is a router, the user device is connected to the router, and the account information of the router is sent to the second target water device and the second remaining water device through the user device, so that the second target water device and the second remaining water device are batch configured and bound with the router through the account information, thereby reducing the binding load of the user device.
[0050] The technical solution of the present invention determines whether the router is a customized router after it is determined that the water device has completed power-on and there is a router within the preset range of the water device; wherein there are at least two water devices and the customized router is a router with a preset routing protocol; if the router is a customized router, all water devices are batch bound according to the customized router, the AP of the water device and the first binding rule; if the router is not a customized router, all water devices are batch bound according to the user device, the AP of the water device and the second binding rule. The technical solution of the present invention determines whether the router is a customized router and then batch binds the water devices according to different binding rules, aiming to solve the problems of low efficiency of problem troubleshooting and network distribution, reduce the complicated network distribution binding operation process for users, and improve the user experience.
[0051] Embodiment 2
[0052] Figure 2 This is a flow chart of a method for batch binding of a device provided in the second embodiment. This embodiment is applicable to the case of batch binding of devices. The method can be executed by a batch binding device of the device. The batch binding device of the device can be implemented in the form of hardware and / or software. The batch binding device of the device can be configured in an electronic device. Further optimization is made to batch bind all water devices according to the customized router, the wireless access point AP of the water device and the first binding rule, and to batch bind all water devices according to the user device, the AP of the water device and the second binding rule. Figure 2 As shown, the method includes:
[0053] S201. After it is determined that the water device has been powered on and there is a router within a preset range of the water device, determine whether the router is a customized router.
[0054] Specifically, after it is determined that the water equipment has been powered on, all water equipment is in a standby state after being powered on, and it is determined whether there is a router within the preset range of the water equipment. When it is determined that there is a router within the preset range of the water equipment, it is further determined whether the router is a customized router with a pre-customized routing protocol. If the routing protocol of the router is a pre-customized protocol that can interact with the water equipment, the router is determined to be a customized router, and S202 is executed; if the routing protocol of the router is not a pre-customized routing protocol, it is determined that the router is not a customized router, and S204 is executed.
[0055] S202. Obtain APs of all water devices according to the customized router.
[0056] Among them, wireless AP, also known as wireless access point, is the wireless switch in wifi shared Internet access. It is the access point for mobile terminal users to enter the wired network, mainly used for home broadband, home appliances, etc. General wireless AP also has access point client mode, that is, APs can be wirelessly linked to each other, thereby expanding the coverage of wifi shared Internet access.
[0057] Specifically, AP network configuration is also called AP mode. The user device is configured to connect to the smart hardware inside the home appliance, and then build a local area network. Of course, the local area network cannot access the Internet. It only sends out WiFi signals from the device, but the connected devices in the local area network can communicate. The user device then passes the WiFi information to the device. After the device is successfully connected to the Internet, the cloud of the device receives it and notifies the user that the device is successfully bound, and the network configuration is completed.
[0058] Specifically, if the router is a customized router, the APs of all water devices are directly obtained according to the customized router.
[0059] S203. Perform batch configuration binding directly with the APs of all water devices through a customized router.
[0060] Specifically, after the APs of all water devices are directly obtained through the customized router, the customized router is directly configured and bound in batches with the APs of all water devices so that all water devices can be connected to the network.
[0061] The advantage of this setting is that if the user needs to use all water devices, they can directly batch configure and bind all water devices through a customized router, reducing the complex network configuration and binding operation process for users and improving the user experience.
[0062] For example, if AP1 of water device A, AP2 of water device B, and AP3 of water device C are obtained, AP1 of water device A, AP2 of water device B, and AP3 of water device C are directly connected through a customized router, so that water device A, water device B, and water device C are directly batch configured and bound to the customized router.
[0063] S204: Determine the first target water equipment.
[0064] The first target water equipment is any water equipment among all water equipment.
[0065] Specifically, if the router is not a customized router, any water device is randomly determined from all water devices acquired by the router, and is the first target water device.
[0066] Exemplarily, if it is determined that all water equipment includes water equipment A, water equipment B and water equipment C, water equipment A is randomly determined as the first target water equipment, or water equipment B is determined as the first target water equipment, which is not limited in this embodiment.
[0067] S205: After determining that the configuration binding between the user equipment and the first target water equipment is completed, obtain the AP of the first target water equipment.
[0068] The user device is a mobile electronic device that can be connected to the water device, such as a tablet computer, a tablet, a mobile phone, a phone watch, etc., which is not limited in this embodiment. The user device is connected to the router device.
[0069] Specifically, after determining the first target water device, manually connect and bind the first water device to the user device, and after determining that the user device and the first target water device are configured and bound, directly obtain the AP of the first target water device automatically sent by the first target water device.
[0070] S206 . Connect the first remaining water device through the AP of the first target water device.
[0071] The first remaining water equipment is the equipment among all water equipment except the first target water equipment.
[0072] Specifically, after the AP of the first target water device is acquired, the first remaining water devices are automatically connected via the AP of the first target water device.
[0073] The advantage of this setting is that all water devices can interact with each other through the AP of the water devices.
[0074] S207: After determining that the AP connection between the first remaining water device and the first target water device is completed, the account information of the router is sent to the first remaining water device through the user device, so that the first remaining water device is configured and bound with the router according to the account information.
[0075] Among them, the account information includes the account number, account password and user device number.
[0076] Specifically, after determining that the AP connection between the first remaining water device and the first target water device is completed, that is, the first remaining water device is indirectly connected to the user device, the account information of the router can be sent to the first remaining water device through the user device, so that all the first remaining water devices are configured and bound to the router according to the account information, thereby realizing batch configuration binding of all the first remaining water devices.
[0077] In a specific implementation, optionally, after all water devices are bound in batches, the method further includes: for any water device, determining whether the water device is configured and bound successfully.
[0078] Specifically, after all water devices are bound in batches, for any water device, determine whether the water device is configured and bound successfully. If the router is connected to the AP of the water device successfully, it is determined that the configuration binding is successful; if the router is connected to the AP of the water device unsuccessfully, it is determined that the configuration binding fails.
[0079] The advantage of this setting is that it can further determine whether the water devices are successfully bound after all water devices are batch configured and bound, so that users can know the binding status of water devices in time and improve the user experience.
[0080] In a specific implementation, optionally, after determining that the water device configuration binding has failed, it also includes: re-configuring and binding the router where the configuration binding failed and the AP of the water device to determine the number of binding failures; determining whether the number of binding failures is equal to a preset number; if the number of binding failures is equal to the preset number, stopping the configuration binding and issuing an alarm instruction.
[0081] Among them, the preset number of times is the pre-set number of water device binding failures, for example, it can be 2 times, 3 times, 5 times, etc., and this embodiment does not limit this; among them, the alarm instruction is used to remind the user that the water device configuration binding failed.
[0082] Specifically, after determining that the water device configuration binding fails, re-configure the router that failed to configure the binding and the AP of the water device to determine the number of binding failures; determine whether the number of binding failures is equal to the preset number; if the number of binding failures is equal to the preset number, stop the configuration binding and issue an alarm command to remind the user that the water device configuration binding failed.
[0083] Exemplarily, the preset number of times is determined to be 3 times. After determining that the water device configuration binding has failed, the router that failed to configure the binding is re-bound to the AP of the water device. It is determined that the number of binding failures is 2 times. At this time, the number of binding failures of 2 times is less than the preset number of 3 times. The router that failed to configure the binding is continued to be re-bound to the AP of the water device. It is determined that the number of binding failures is 3 times. At this time, the number of binding failures of 3 times is equal to the preset number of 3 times, then the configuration binding is stopped, and an alarm instruction is issued to remind the user that the water device configuration binding has failed.
[0084] The advantage of this setting is that when the water device configuration binding fails, the binding can be repeated. When the number of repeated configuration binding failures is equal to the preset number, the configuration binding is stopped and an alarm command is issued to remind the user that the water device configuration binding failed, thereby improving the user experience.
[0085] The technical solution of the present invention is as follows: after determining that the water device has completed power-on and there is a router within a preset range of the water device, determining whether the router is a customized router; if the router is a customized router, directly obtaining the APs of all water devices according to the customized router; and directly performing batch configuration binding with the APs of all water devices through the customized router; if the router is not a customized router, determining the first target water device; after determining that the configuration binding between the user device and the first target water device is completed, obtaining the AP of the first target water device; connecting the first remaining water device through the AP of the first target water device; after determining that the connection between the first remaining water device and the AP of the first target water device is completed, sending the account information of the router to the first remaining water device through the user device, so that the first remaining water device is configured and bound with the router according to the account information. The technical solution of the present invention determines whether the router is a customized router. When the router is a customized router, batch configuration binding is performed directly with the APs of all water devices through the customized router; when it is determined that the router is not a customized router, the first target water device is determined, and after the configuration binding between the user device and the first target water device is completed, the AP of the first target water device is obtained, and the first remaining water device is connected through the AP of the first target water device, and after the connection between the first remaining water device and the AP of the first target water device is completed, the account information of the router is sent to the first remaining water device through the user device, so that the first remaining water device is configured and bound with the router according to the account information. The technical solution of the present invention determines whether the router is a customized router. When the router is a customized router, the batch configuration binding is performed directly with the APs of all water devices through the customized router; when the router is determined not to be a customized router, the complicated network configuration binding operation process is reduced for users, and the user experience is improved.
[0086] Embodiment 3
[0087] Figure 3 Schematic diagram of the structure of a device batch binding apparatus provided in the third embodiment. Figure 3 As shown, the device includes: a router determination module 301, a first binding module 302 and a second binding module 303.
[0088] The router determination module 301 is used to determine whether the router is a customized router after it is determined that the water device has completed power-on and there is a router within the preset range of the water device; wherein there are at least two water devices and the customized router is a router with a preset routing protocol.
[0089] The first binding module 302 is used to batch bind all water devices according to the customized router, the wireless access point AP of the water devices and the first binding rule if the router is a customized router.
[0090] The second binding module 303 is used to batch bind all water devices according to the user equipment, the AP of the water device and the second binding rule if the router is not a customized router.
[0091] Optionally, the first binding module 302 is specifically used to: obtain APs of all water devices according to the customized router; and perform batch configuration binding directly with wireless access points AP of all water devices through the customized router.
[0092] Optionally, the second binding module 303 is specifically used to: determine the first target water device; after determining that the user device is configured to be bound to the first target water device, obtain the AP of the first target water device; connect the first remaining water device through the AP of the first target water device, wherein the first remaining water device is the device among all water devices except the first target water device; after determining that the first remaining water device is connected to the AP of the first target water device, send the account information of the router to the first remaining water device through the user device, so that the first remaining water device is configured to be bound to the router according to the account information; wherein the account information includes the account number, account password and user device number.
[0093] Optionally, the device also includes a third binding module, which is used to obtain the water device through the user device and determine the second target water device after determining that the water device has completed power-on and there is no router within the preset range of the water device; wherein the second target water device is any water device among the water devices; after determining that the device hotspot of the user device is connected to the AP of the second target water device, the hotspot information of the device hotspot of the user device is sent to the second target water device, so that the second target water device is configured and bound to the user device through the hotspot information; wherein the hotspot information includes the hotspot account, the hotspot password and the user device number; after the second target water device is configured and bound to the user device, the AP of the second target water device is automatically connected to the second remaining water device; wherein the second remaining water device is the device among all water devices except the second target water device; after determining that the second remaining water device is connected to the AP of the second target water device, the hotspot information is sent to the second remaining water device through the user device, so that the second remaining water device is configured and bound to the user device according to the hotspot information.
[0094] Optionally, the third binding module is also used to: after the second target water device and the second remaining water device are configured and bound with the user device, determine whether there is a router; if there is a router, connect the user device to the router, and send the account information of the router to the second target water device and the second remaining water device through the user device, so that the second target water device and the second remaining water device are batch configured and bound with the router through the account information.
[0095] Optionally, the device also includes: a binding success determination module, which is used to determine whether the water device is configured and bound successfully for any water device after all water devices are bound in batches; if the router is connected to the AP of the water device successfully, it is determined that the configuration binding is successful; if the router is connected to the AP of the water device unsuccessfully, it is determined that the configuration binding fails.
[0096] Optionally, the device also includes: an alarm module, which is used to re-configure and bind the router whose configuration binding failed and the AP of the water device after determining that the water device configuration binding failed, and determine the number of binding failures; determine whether the number of binding failures is equal to a preset number; if the number of binding failures is equal to the preset number, stop configuring the binding and issue an alarm instruction; wherein the alarm instruction is used to remind the user that the water device configuration binding failed.
[0097] The batch binding device of the equipment provided by the present invention can execute the batch binding method of the equipment provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0098] Embodiment 4
[0099] Figure 4 : is a structural diagram of an electronic device provided in the fourth embodiment. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0100] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0101] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a batch binding method for devices.
[0103] In some embodiments, the batch binding method of the device may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the batch binding method of the device described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the batch binding method of the device in any other appropriate manner (e.g., by means of firmware).
[0104] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0105] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0106] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0107] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0108] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server) or a computing system that includes middleware components (e.g., an application server) or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein) or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0109] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0111] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for batch binding of devices, characterized in that: The method includes: After it is determined that the water device has been powered on, and there is a router within the preset range of the water device, determining whether the router is a customized router; wherein there are at least two water devices, and the customized router is a router with a preset routing protocol; If the router is the customized router, all the water devices are bound in batches according to the customized router, the wireless access point AP of the water devices and the first binding rule; If the router is not the customized router, all the water devices are bound in batches according to the user equipment, the AP of the water device and the second binding rule.
2. The method for batch binding of devices according to claim 1, characterized in that: The step of batch binding all the water devices according to the customized router, the wireless access point AP of the water devices and the first binding rule includes: Acquire the APs of all the water devices according to the customized router; The customized router is used to directly perform batch configuration binding with the APs of all the water devices.
3. The method for batch binding of devices according to claim 1, characterized in that: The batch binding of all the water devices according to the user equipment, the AP of the water device and the second binding rule includes: Determine the first target water equipment; After determining that the configuration binding between the user equipment and the first target water device is completed, obtaining the AP of the first target water device; Connecting a first remaining water device through the AP of the first target water device, wherein the first remaining water device is a device among all water devices except the first target water device; After determining that the AP connection between the first remaining water device and the first target water device is completed, the account information of the router is sent to the first remaining water device through the user device, so that the first remaining water device is configured and bound to the router according to the account information; wherein the account information includes an account number, an account password and a user device number.
4. The method for batch binding of devices according to claim 1, characterized in that: Also includes: After it is determined that the water device has been powered on and there is no router within the preset range of the water device, the water device is acquired through the user device, and a second target water device is determined; wherein the second target water device is any water device among the water devices; After determining that the device hotspot of the user device is connected to the AP of the second target water device, the hotspot information of the device hotspot of the user device is sent to the second target water device, so that the second target water device is configured and bound with the user device through the hotspot information; wherein the hotspot information includes the hotspot account, hotspot password and user device number; After the second target water device is configured and bound to the user equipment, the second target water device is automatically connected to the second remaining water device through the AP of the second target water device; wherein the second remaining water device is the device among all water devices except the second target water device; After determining that the AP connection between the second remaining water device and the second target water device is completed, the hotspot information is sent to the second remaining water device through the user device, so that the second remaining water device is configured and bound with the user device according to the hotspot information.
5. The method for batch binding of devices according to claim 4, characterized in that: After the second target water device and the second remaining water device are configured and bound to the user equipment, the method further includes: Determine whether the router exists; If the router exists, the user device is connected to the router, and the account information of the router is sent to the second target water device and the second remaining water device through the user device, so that the second target water device and the second remaining water device are batch configured and bound to the router through the account information.
6. The method for batch binding of devices according to claim 1, characterized in that: After batch binding of all the water equipment, it also includes: For any of the water devices, determining whether the water device is configured and bound successfully; If the router is successfully connected to the AP of the water device, it is determined that the configuration binding is successful; If the router fails to connect to the AP of the water device, it is determined that the configuration binding fails.
7. The method for batch binding of devices according to claim 6, characterized in that: After determining that the water device configuration binding fails, the method further includes: Re-configure and bind the router and the AP of the water device that failed to be bound, and determine the number of binding failures; Determine whether the number of binding failures is equal to a preset number; If the number of binding failures is equal to the preset number, the configuration binding is stopped and an alarm instruction is issued; wherein the alarm instruction is used to remind the user that the water equipment configuration binding has failed.
8. A method for batch binding of devices, characterized in that: The method includes: A router determination module, used to determine whether the router is a customized router after it is determined that the water device has completed power-on and there is a router within the preset range of the water device; wherein there are at least two water devices and the customized router is a router with a preset routing protocol; A first binding module, configured to, if the router is the customized router, batch bind all the water devices according to the customized router, the AP of the water device and the first binding rule; The second binding module is used for, if the router is not the customized router, batch binding all the water devices according to the user equipment, the AP of the water device and the second binding rule.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the batch binding method for devices described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the batch binding method for devices described in any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Quick distribution network method and system for intelligent device
CN108966224A
Intelligent device and automatic network distribution method and system for intelligent device
CN109819498A
Network distribution method, system and device, equipment and storage medium
CN112492570A
Network distribution method and device of intelligent equipment, electronic equipment and storage medium
CN114245402A
Method and device for binding intelligent device, intelligent device and storage medium
CN115633355A