Intelligent equipment network distribution method and device, equipment and storage medium
By setting default groups and priority groups in smart devices, configuring routing information and controlling device networking, the problem of consuming a lot of manpower and material resources to connect smart devices to the IoT platform one by one is solved, and the convenience of batch distribution network is achieved.
Patent Information
- Application Number
- CN202411674725.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-02-25
AI Technical Summary
Connecting smart devices to Internet of Things (IoT) platforms one by one requires a lot of manpower and material resources, which is not convenient for networking of smart devices.
By setting the default group and priority group in the smart device to be distributed, configuring the routing information in the default group and priority group, control the smart device to be powered and connected to the network. When the priority group is empty, the router corresponding to the routing information in the default group is connected to the network; when the priority group is non-empty, the router corresponding to the routing information in the priority group is connected to the network.
The batch distribution network has been realized, reducing the manpower and material resources required for batch distribution networking, and improving the convenience of networking of smart devices.
Smart Images

Figure CN119521340A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of Internet of Things, and in particular to a method, device, equipment and storage medium for configuring a network for smart devices. Background Art
[0002] In the commercial field, with the rapid development of Internet of Things (IoT) technology, more and more IoT devices need to be connected and managed. These devices may include smart home devices, industrial sensors, smart security cameras, etc. They generate huge amounts of data and need to be managed and analyzed efficiently and securely.
[0003] In some technologies, smart devices need to access the network through various communication protocols (such as WiFi, Bluetooth, etc.). In order to ensure smooth access of smart devices, it is necessary to select appropriate communication protocols and configure corresponding network devices (such as routers, gateways, etc.) to achieve seamless communication and data transmission between smart devices. At present, some places have WiFi network environments, and it is expected that smart devices can be connected to the WiFi network for centralized control to reduce the cost of traffic cards.
[0004] However, connecting smart devices to the Internet of Things (IoT) platform one by one requires a lot of manpower and material resources, and is not convenient for networking smart devices. Summary of the invention
[0005] The purpose of the present invention is to at least provide a method, device, equipment and storage medium for smart device networking, which can at least solve the technical problem that connecting smart devices to the Internet of Things (IoT) platform one by one requires a lot of manpower and material resources, and is inconvenient to network the smart devices. At least it can achieve the technical effect of using the fixed routing information in the default group and the empty or non-empty changeable routing information in the priority group so that the server can directly control the routing information of the required connection, so that the first smart device can be connected to the corresponding router through the routing information to achieve batch networking, effectively reducing the manpower and material resources required for batch networking and improving the convenience of networking the smart devices.
[0006] To solve the above technical problems, at least one embodiment of the present application provides a smart device network configuration method, including:
[0007] Setting a default group and a priority group for storing routing information in a first smart device to be networked;
[0008] Configure routing information in the default group and the priority group, wherein the routing information in the default group is non-empty fixed routing information, and the routing information in the priority group is empty or non-empty changeable routing information;
[0009] Control the first smart device to be powered on and connected to the Internet; wherein, when the priority group is empty, control the first smart device to be connected to the Internet through the router corresponding to the routing information in the default group; when the priority group is not empty, control the first smart device to be connected to the Internet through the router corresponding to the routing information in the priority group.
[0010] At least one embodiment of the present application further provides a smart device network configuration device, including:
[0011] A setting module, used for setting a default group and a priority group for storing routing information in a first smart device to be networked;
[0012] A configuration module, used to configure routing information in the default group and the priority group, wherein the routing information in the default group is non-empty fixed routing information, and the routing information in the priority group is empty or non-empty changeable routing information;
[0013] A control module is used to control the first smart device to be powered on and connected to the network; wherein, when the priority group is empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the default group; when the priority group is not empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the priority group.
[0014] At least one embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned smart device network configuration method.
[0015] At least one embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned smart device network configuration method when executed by a processor.
[0016] The embodiment of the present application provides a method for configuring a network configuration for a smart device, which configures the default group in the first smart device to be configured and the routing information in the priority group, and controls the first smart device to be powered on and connected to the network; wherein, when the priority group is empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the default group; when the priority group is not empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the priority group. In this way, through the fixed routing information in the default group and the empty or non-empty changeable routing information in the priority group, the server can directly control the routing information required for the connection, so that the first smart device can be connected to the corresponding router through the routing information to achieve batch configuration, effectively reducing the manpower and material resources required for batch configuration, and improving the convenience of networking smart devices.
[0017] In some optional embodiments, the method further includes:
[0018] While the first smart device has been connected to the network through the first router corresponding to the first routing information in the default group, the second routing information of the second router to be replaced is sent down and stored in the priority group, and the first smart device is controlled to be connected to the network through the second router corresponding to the second routing information in the priority group.
[0019] In this way, when the router connected to the first smart device needs to be changed, the routers connected to the first smart device are changed in batches by storing the second routing information of the second router to be replaced in the priority group.
[0020] In some optional embodiments, the method further includes:
[0021] During the period when the first smart device has been connected to the Internet via the second router corresponding to the second routing information in the priority group, detecting whether there is a second smart device that needs to be connected to the Internet, wherein the second smart device is also provided with a default group and a priority group for storing routing information;
[0022] When it is detected that there is the second smart device that needs to be connected to the Internet, the second routing information is configured in the priority group of the second smart device, and the second smart device is controlled to connect to the Internet through the second router corresponding to the second routing information in the priority group.
[0023] In this way, when there is a second smart device that needs to be connected to the Internet, the second routing information is configured in the priority group in the second smart device so that the second smart device can be connected to the Internet through the second router based on the second routing information, thereby effectively reducing the workload of configuring the network for the new device that needs to be connected to the Internet, so as to facilitate the configuration of the new device that needs to be connected to the Internet.
[0024] In some optional embodiments, configuring the second routing information in the priority group in the second smart device, and controlling the second smart device to connect to the network through the second router corresponding to the second routing information in the priority group, includes:
[0025] The second routing information in the priority group of the first smart device is kept unchanged, the second routing information is sent and stored in the priority group of the second smart device, and the second smart device is controlled to connect to the network through the second router corresponding to the second routing information in the priority group.
[0026] In this way, the first smart device and the second smart device are both connected to the network through the second router, so as to centrally control and manage the smart devices.
[0027] In some optional embodiments, configuring the second routing information in the priority group in the second smart device, and controlling the second smart device to connect to the network through the second router corresponding to the second routing information in the priority group, includes:
[0028] After the connection between the first smart device and the second router is disconnected, the first smart device is connected to the network through the first router corresponding to the first routing information in the default group in the first smart device;
[0029] Control the second smart device to connect to the network via a third router corresponding to third routing information in a default group in the second smart device;
[0030] The second routing information of the second router is sent and stored to the priority groups in the first smart device and the second smart device respectively, and the first smart device and the second smart device are controlled to connect to the network through the second routers corresponding to the second routing information in their respective priority groups.
[0031] In this way, the routers connected to the first smart device and the second smart device are unified as the second router, so as to centrally control and manage the smart devices.
[0032] In some optional embodiments, controlling the connection between the first smart device and the second router to be disconnected includes:
[0033] The first routing information in the default group of the first smart device is sent to the priority group of the first smart device, and the first smart device is controlled to connect to the first router corresponding to the first routing information in the priority group, so that the connection between the first smart device and the second router is disconnected.
[0034] By replacing the second routing information of the priority group in the first smart device with the first routing information, the first smart device is controlled to connect to the network through the first router corresponding to the first routing information in the priority group, thereby disconnecting the connection between the first smart device and the second router.
[0035] In some optional embodiments, the number of the first smart devices is multiple;
[0036] The method further comprises:
[0037] While the first smart device has been connected to the Internet through the first router corresponding to the first routing information in the default group, the second routing information of the second router is sent and stored in the priority group of at least one of the first smart devices, and the at least one first smart device is controlled to be connected to the Internet in batches through the second router corresponding to the second routing information in the respective priority groups.
[0038] If the routers connected to some of the first smart devices need to be replaced, the second routing information of the second router to be replaced needs to be sent and stored to the priority group of at least one first smart device whose router needs to be replaced among multiple first smart devices, and then at least one first smart device whose router needs to be changed is controlled to be connected to the Internet through the second router, so as to make batch changes to the routers connected to some of the first smart devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.
[0040] Figure 1 It is a flowchart of a method for configuring a network for an intelligent device provided by an embodiment of the present application;
[0041] Figure 2 It is a structural diagram of a smart device network configuration device provided by an embodiment of the present application;
[0042] Figure 3 is a structural schematic diagram of an electronic device provided by another embodiment of the present application;
[0043] Figure 4 is a flowchart of a smart device network configuration method provided by another embodiment of the present application;
[0044] Figure 5 It is a schematic diagram of a process of connecting to the Internet through a second router provided by an embodiment of the present application. DETAILED DESCRIPTION
[0045] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined and referenced with each other under the premise of no contradiction.
[0046] In order to facilitate understanding of the embodiments of the present application, relevant content about the smart device network configuration method is first introduced here.
[0047] In the commercial field, with the rapid development of Internet of Things (IoT) technology, more and more IoT devices need to be connected and managed. These devices may include smart home devices, industrial sensors, smart security cameras, etc. They generate huge amounts of data and need to be managed and analyzed efficiently and securely.
[0048] In some technologies, smart devices need to access the network through various communication protocols (such as WiFi, Bluetooth, etc.). In order to ensure smooth access of smart devices, it is necessary to select appropriate communication protocols and configure corresponding network devices (such as routers, gateways, etc.) to achieve seamless communication and data transmission between smart devices. At present, some places have WiFi network environments, and it is expected that smart devices can be connected to the WiFi network for centralized control to reduce the cost of traffic cards.
[0049] However, connecting smart devices to the Internet of Things (IoT) platform one by one requires a lot of manpower and material resources, and is not convenient for networking smart devices.
[0050] In order to solve the above-mentioned technical problem that connecting smart devices one by one to the Internet of Things (IoT) platform requires a lot of manpower and material resources and is inconvenient to connect smart devices to the Internet, the present invention proposes a smart device networking method. The implementation details of the smart device networking method of this embodiment are specifically described below. The following content is only for the convenience of understanding the implementation details provided, and is not necessary for the implementation of this solution.
[0051] Embodiment 1:
[0052] The smart device network configuration method of this embodiment can be applied to electronic devices with communication, computing and data storage capabilities. The specific process can be as follows: Figure 1 As shown, including:
[0053] Step 101: setting a default group and a priority group for storing routing information in a first smart device to be networked.
[0054] Specifically, the first smart device to be networked has a built-in module (communication module), and the built-in module contains a default group and a priority group for storing routing information, wherein the routing information includes a router name (SSID) and a router password (password).
[0055] Step 102, configuring the routing information in the default group and the priority group, wherein the routing information in the default group is non-empty fixed routing information, and the routing information in the priority group is empty or non-empty changeable routing information.
[0056] Specifically, when the first smart device leaves the factory, the routing information in the default group is non-empty fixed routing information, that is, a fixed router name (SSID) and router password (password), and the routing information in the priority group in the first smart device is configured as empty routing information or non-empty changeable routing information, that is, the priority group in the first smart device may have no routing information, or the routing information in the priority group may be non-empty but the routing information therein may be changed.
[0057] Step 103, controlling the first smart device to be powered on and connected to the network; wherein, when the priority group is empty, controlling the first smart device to be connected to the network through the router corresponding to the routing information in the default group; when the priority group is not empty, controlling the first smart device to be connected to the network through the router corresponding to the routing information in the priority group.
[0058] Specifically, since a default group and a priority group are set in the first smart device, the routing information in the default group is non-empty fixed routing information. After the first smart device is powered on and connected to the network, when the routing information in the priority group is empty, the first smart device is controlled to connect to the network through the router corresponding to the routing information in the default group; and when the routing information in the priority group is non-empty and changeable routing information, the first smart device is controlled to connect to the network through the router corresponding to the routing information in the priority group.
[0059] In this embodiment, the routing information in the default group and the priority group in the first smart device to be networked is configured, and the first smart device is controlled to be powered on and connected to the network; wherein, when the priority group is empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the default group; when the priority group is not empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the priority group. In this way, through the fixed routing information in the default group and the empty or non-empty changeable routing information in the priority group, the server can directly control the routing information required for the connection, so that the first smart device can be connected to the corresponding router through the routing information to achieve batch network configuration, effectively reducing the manpower and material resources required for batch network configuration, and improving the convenience of networking smart devices.
[0060] In some embodiments, the method further comprises:
[0061] While the first smart device has been connected to the network through the first router corresponding to the first routing information in the default group, the second routing information of the second router to be replaced is sent and stored in the priority group, and the first smart device is controlled to be connected to the network through the second router corresponding to the second routing information in the priority group.
[0062] Specifically, the first routing information corresponding to the first router is stored in the default group in the first smart device. After the first smart device is connected to the network through the first router corresponding to the first routing information in the default group, if the router needs to be replaced, the second routing information of the second router to be replaced (i.e., the name and password of the second router) is sent and stored in the priority group in the first smart device, and then the first smart device is controlled to connect to the network through the second router. In this way, when it is necessary to change the router connected to the first smart device, the second routing information of the second router to be replaced is stored in the priority group, thereby making batch changes to the routers connected to the first smart device. In some examples, when the routing information in the priority group in the first smart device is empty routing information, the second routing information of the second router is directly stored in the priority group in the first smart device; when the routing information in the priority group in the first smart device is non-empty and changeable routing information, the second routing information of the second router replaces the routing information in the priority group in the first smart device.
[0063] In some embodiments, the method further comprises:
[0064] During the period when the first smart device has been connected to the network through the second router corresponding to the second routing information in the priority group, detecting whether there is a second smart device that needs to be connected to the network, and the second smart device is also provided with a default group and a priority group for storing routing information;
[0065] When it is detected that there is a second smart device that needs to be connected to the Internet, second routing information is configured in the priority group of the second smart device, and the second smart device is controlled to connect to the Internet through a second router corresponding to the second routing information in the priority group.
[0066] Specifically, after the first smart device is connected to the network through the second router corresponding to the second routing information in the priority group, it is detected whether there is a second smart device that needs to be connected to the network. The second smart device also has a built-in module (communication module), and the built-in module stores a default group and a priority group for storing routing information. When there is a second smart device that needs to be connected to the network, the second smart device is configured based on the second routing information of the second router to be replaced, so that the second smart device can be connected to the network through the second router. It should be noted that the second smart device can be a new device or a first smart device after the built-in module parts are replaced. Both of the above situations need to be connected to the network. In this way, when there is a second smart device that needs to be connected to the network, by configuring the second routing information in the priority group in the second smart device, so that the second smart device can be connected to the network through the second router based on the second routing information, the workload of configuring the network for the new device that needs to be connected to the network is effectively reduced, so as to facilitate the configuration of the network for the new device that needs to be connected to the network.
[0067] In some embodiments, configuring the second routing information in the priority group in the second smart device, and controlling the second smart device to connect to the network through the second router corresponding to the second routing information in the priority group, includes:
[0068] The second routing information in the priority group of the first smart device is kept unchanged, the second routing information is sent and stored in the priority group of the second smart device, and the second smart device is controlled to connect to the network through the second router corresponding to the second routing information in the priority group.
[0069] Specifically, after the first smart device is connected to the network through the second router corresponding to the second routing information in the priority group, the first smart device is not operated to change the router, that is, the second routing information in the priority group of the first smart device is kept unchanged, and the first smart device is connected to the network through the second router. Subsequently, the second routing information is sent and stored in the priority group of the second smart device, so that the second smart device is connected to the network through the second router. In this way, both the first smart device and the second smart device are connected to the network through the second router, so as to facilitate centralized control and management of the smart devices.
[0070] In some embodiments, Figure 5 As shown, configuring the second routing information in the priority group in the second smart device, and controlling the second smart device to connect to the network through the second router corresponding to the second routing information in the priority group, includes:
[0071] Step 301, after the connection between the first smart device and the second router is disconnected, the first smart device is connected to the network through the first router corresponding to the first routing information in the default group in the first smart device.
[0072] Specifically, after the first smart device is connected to the network through the second router corresponding to the second routing information in the priority group, the connection between the first smart device and the second router is controlled to be disconnected, and the first smart device is connected to the network through the first router corresponding to the first routing information in the default group in the first smart device. In some examples, the second routing information in the priority group in the first smart device can be cleared, and when the routing information of the priority group in the first smart device is empty, the first smart device is controlled to be connected to the network through the first router corresponding to the first routing information in the default group; when the routing information of the priority group in the first smart device is the first routing information, the first smart device is controlled to be connected to the network through the first router corresponding to the first routing information in the priority group.
[0073] Step 302: Control the second smart device to connect to the network based on the third router corresponding to the third routing information in the default group in the second smart device.
[0074] Specifically, the built-in module memory of the second smart device contains a default group and a priority group for storing routing information. The routing information in the default group of the second smart device is the third routing information of the third router, wherein the third router may be the same as or different from the first router, and similarly, the third routing information may be the same as or different from the first routing information. In some examples, when there is a second smart device that needs to be connected to the Internet, if the routing information of the priority group in the second smart device is empty, the second smart device is controlled to be connected to the Internet through the third router corresponding to the third routing information in the default group; when the routing information of the priority group in the second smart device is non-empty and changeable routing information, the third routing information of the third router is controlled to replace the routing information in the priority group of the second smart device. In this way, the second smart device is controlled to be connected to the Internet based on the third router corresponding to the third routing information in the default group of the second smart device.
[0075] Step 303: Send the second routing information of the second router to the priority groups in the first smart device and the second smart device respectively, and control the first smart device and the second smart device to connect to the network through the second router corresponding to the second routing information in their respective priority groups.
[0076] Specifically, the second routing information of the second router is sent and stored to the priority groups in the first smart device and the second smart device, respectively, so that the first smart device and the second smart device are connected to the network through the second router. In this way, the first smart device and the second smart device are both connected to the network through the second router, so as to centrally control and manage the smart devices.
[0077] In this embodiment, after the connection between the first smart device and the second router is disconnected, the first router corresponding to the first routing information in the default group of the first smart device is connected to the network, and then the second smart device is controlled to connect to the network based on the third router corresponding to the third routing information in the default group of the second smart device. Subsequently, the second routing information of the second router is sent and stored in the priority groups of the first smart device and the second smart device, and the first smart device and the second smart device are controlled to connect to the network through the second router corresponding to the second routing information in their respective priority groups. In this way, the routers connected to the first smart device and the second smart device are unified as the second router, so as to facilitate centralized control and management of smart devices.
[0078] In some embodiments, controlling the disconnection between the first smart device and the second router includes:
[0079] The first routing information in the default group of the first smart device is sent to the priority group of the first smart device, and the first smart device is controlled to connect to the first router corresponding to the first routing information in the priority group, so that the connection between the first smart device and the second router is disconnected.
[0080] Specifically, after the first smart device is connected to the network through the second router corresponding to the second routing information in the priority group, the connection between the first smart device and the second router is controlled to be disconnected. By replacing the second routing information of the priority group in the first smart device with the first routing information, the first smart device is controlled to be connected to the network through the first router corresponding to the first routing information in the priority group, thereby achieving the disconnection of the connection between the first smart device and the second router.
[0081] In some embodiments, the number of the first smart devices is multiple;
[0082] The method also includes:
[0083] While the first smart device has been connected to the Internet through the first router corresponding to the first routing information in the default group, the second routing information of the second router is sent and stored in the priority group of at least one first smart device, and the at least one first smart device is controlled to be connected to the Internet in batches through the second router corresponding to the second routing information in the respective priority groups.
[0084] Specifically, after the first smart device is connected to the network through the first router corresponding to the first routing information in the default group, there are multiple first smart devices connected to the network through the first router. If it is necessary to replace the routers connected to some of the first smart devices, the second routing information of the second router to be replaced needs to be sent and stored in the priority group of at least one first smart device whose router needs to be replaced among the multiple first smart devices, and then at least one first smart device whose router needs to be changed is controlled to connect to the network through the second router, thereby making batch changes to the routers connected to some of the first smart devices.
[0085] Embodiment 2:
[0086] like Figure 4 As shown, this embodiment provides exemplary content of Embodiment 1, that is, provides an exemplary process of a method for configuring a network for a smart device, and the specific content includes:
[0087] This method includes: an intelligent device management platform, a mobile terminal, and an intelligent device (supporting wifi and emitting a Bluetooth hotspot).
[0088] Smart devices include: the whole machine panel: paste the QR code, which contains the device MAC address information. Built-in module: a default (default group) set of SSID (WiFi name) and password. There is also a group (priority group) of blank SSID (WiFi name) and password. Request a fixed service address (the management background of the specified domain name). If there is a value in the priority group, the device tries to connect to the router of the priority group. Among them, the built-in module is the communication module in the smart device. The whole device comes with a default group router name SSID and password Password when it leaves the factory, and the router information sent by the background is stored in the priority group. The default group and the priority group can be the same router or different routers. Mainly in actual applications, not every merchant can connect to a fixed SSID, but it is necessary to be able to connect to the Internet in batches to reduce manual network configuration operations.
[0089] Connect smart devices to the Internet: When the smart device is powered on, if the built-in module of the whole device only has the router information of the default group, then connect to the router. Quickly access the network in batches.
[0090] Bind the service area of the smart device: enter the merchant information, building, room number, and category information in the management background. Use the mobile terminal to select the merchant, building, and room number, scan the QR code on the body, obtain the device MAC address information, and bind the smart device to the room number. Select the category and model of the smart device.
[0091] At this point, the management platform data includes: merchant, building, room number, equipment category, model, and equipment MAC.
[0092] When batch changing the WiFi routers connected to the devices, select the devices in the background, set the WiFi router information B (SSID and password) to be replaced by the smart device, and after setting, the background sends the WiFi router information to the smart device, and the smart device stores the data in the priority group and replies to the server. The background can view the number of device router information storage. At this time, change the SSID (WiFi name) and password of the router to B, and the device connects to the router of the priority group to complete the device replacement.
[0093] When a new device is installed or a module part is replaced, the new device needs to be networked. Method 1: If the router information of the environment is the priority group at this time. Press the reset key on the whole machine panel to display the Bluetooth hotspot. Use a mobile terminal to connect to the Bluetooth hotspot, set the priority group information to be connected, and wait for the device to connect to the router and the server.
[0094] Method 2: If the router information of the environment is the priority group at this time, temporarily change the router to the default group information. The original device will be disconnected and use the default group information to connect to the router. After the new device is connected to the server, the same operation is performed. The background sends the router information to be replaced. After the new device or the device that replaces the module parts receives it, it stores the router information of the priority group, and the router changes back to the name and password of the priority group.
[0095] In this embodiment, a default SSID and password are fixed in the built-in module, and multiple priority group router configurations can be stored. The background management and control device needs to connect to the router information to achieve batch network configuration.
[0096] Embodiment three:
[0097] Another embodiment of the present application relates to a smart device network configuration device. The implementation details of the smart device network configuration device of this embodiment are specifically described below. The following content is only for the convenience of understanding the implementation details provided, and is not necessary for the implementation of this solution. The schematic diagram of the smart device network configuration device of this embodiment can be as follows Figure 2 As shown, including:
[0098] A setting module 201, used to set a default group and a priority group for storing routing information in a first smart device to be networked;
[0099] Configuration module 202, used to configure routing information in a default group and a priority group, wherein the routing information in the default group is non-empty fixed routing information, and the routing information in the priority group is empty or non-empty changeable routing information;
[0100] The control module 203 is used to control the first smart device to be powered on and connected to the network; when the priority group is empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the default group; when the priority group is not empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the priority group.
[0101] In some embodiments, the smart device network configuration device further includes:
[0102] The first sending module is used to send and store the second routing information of the second router to be replaced to the priority group while the first smart device has been connected to the Internet through the first router corresponding to the first routing information in the default group, and control the first smart device to connect to the Internet through the second router corresponding to the second routing information in the priority group.
[0103] In some embodiments, the smart device network configuration device further includes:
[0104] A detection module, used for detecting whether there is a second smart device that needs to be connected to the Internet during the period when the first smart device has been connected to the Internet through the second router corresponding to the second routing information in the priority group, and the second smart device is also provided with a default group and a priority group for storing routing information;
[0105] The networking control module is used to configure the second routing information in the priority group of the second smart device when a second smart device that needs to be connected to the network is detected, and control the second smart device to connect to the network through the second router corresponding to the second routing information in the priority group.
[0106] In some embodiments, the networking control module is also used to keep the second routing information in the priority group of the first smart device unchanged, send the second routing information down and store it in the priority group in the second smart device, and control the second smart device to connect to the network through the second router corresponding to the second routing information in the priority group.
[0107] In some embodiments, the networking control module includes:
[0108] A first networking unit, used to control the first smart device to be connected to the network through the first router corresponding to the first routing information in the default group in the first smart device after the connection between the first smart device and the second router is disconnected;
[0109] A second networking unit, used for controlling the second smart device to be connected to a third router corresponding to the third routing information in the default group in the second smart device;
[0110] The third networking unit is used to send and store the second routing information of the second router to the priority groups in the first smart device and the second smart device respectively, and simultaneously control the first smart device and the second smart device to connect to the network through the second router corresponding to the second routing information in their respective priority groups.
[0111] In some embodiments, the first networking unit is also used to send the first routing information within the default group of the first smart device to the priority group of the first smart device, and control the first smart device to connect to the first router corresponding to the first routing information in the priority group, causing the connection between the first smart device and the second router to be disconnected.
[0112] In some embodiments, the smart device network configuration device further includes:
[0113] The second sending module is used to send and store the second routing information of the second router to the priority group of at least one first smart device during the period when the first smart device has been connected to the Internet through the first router corresponding to the first routing information in the default group, and control at least one first smart device to be connected to the Internet in batches through the second router corresponding to the second routing information in the respective priority groups.
[0114] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.
[0115] Embodiment 4:
[0116] Another embodiment of the present application relates to an electronic device, such as Figure 3 As shown, it includes: at least one processor 901; and a memory 902 that is communicatively connected to the at least one processor 901; wherein the memory 902 stores instructions that can be executed by the at least one processor 901, and the instructions are executed by the at least one processor 901 so that the at least one processor 901 can execute the smart device networking method in the above-mentioned embodiments.
[0117] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0118] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0119] Embodiment five:
[0120] Another embodiment of the present application relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0121] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as: ROM), random access memory (Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program codes.
[0122] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.
Claims
1. A method for configuring a network for an intelligent device, characterized in that: include: Setting a default group and a priority group for storing routing information in a first smart device to be networked; Configure routing information in the default group and the priority group, wherein the routing information in the default group is non-empty fixed routing information, and the routing information in the priority group is empty or non-empty changeable routing information; Control the first smart device to be powered on and connected to the Internet; wherein, when the priority group is empty, control the first smart device to be connected to the Internet through the router corresponding to the routing information in the default group; when the priority group is not empty, control the first smart device to be connected to the Internet through the router corresponding to the routing information in the priority group.
2. The method for configuring a network for smart devices according to claim 1, characterized in that: The method further comprises: While the first smart device has been connected to the network through the first router corresponding to the first routing information in the default group, the second routing information of the second router to be replaced is sent down and stored in the priority group, and the first smart device is controlled to be connected to the network through the second router corresponding to the second routing information in the priority group.
3. The method for configuring a network for smart devices according to claim 1, characterized in that: The method further comprises: During the period when the first smart device has been connected to the network through the second router corresponding to the second routing information in the priority group, detecting whether there is a second smart device that needs to be connected to the network, and the second smart device is also provided with a default group and a priority group for storing routing information; When it is detected that there is the second smart device that needs to be connected to the Internet, the second routing information is configured in the priority group of the second smart device, and the second smart device is controlled to connect to the Internet through the second router corresponding to the second routing information in the priority group.
4. The method for configuring a network for smart devices according to claim 3, characterized in that: The configuring the second routing information in the priority group in the second smart device, and controlling the second smart device to connect to the network through the second router corresponding to the second routing information in the priority group, includes: The second routing information in the priority group of the first smart device is kept unchanged, the second routing information is sent and stored in the priority group of the second smart device, and the second smart device is controlled to connect to the network through the second router corresponding to the second routing information in the priority group.
5. The method for configuring a network for smart devices according to claim 3, characterized in that: The configuring the second routing information in the priority group in the second smart device, and controlling the second smart device to connect to the network through the second router corresponding to the second routing information in the priority group, includes: After the connection between the first smart device and the second router is disconnected, the first smart device is connected to the network through the first router corresponding to the first routing information in the default group in the first smart device; Control the second smart device to connect to the network via a third router corresponding to third routing information in a default group in the second smart device; The second routing information of the second router is sent and stored to the priority groups in the first smart device and the second smart device respectively, and the first smart device and the second smart device are controlled to connect to the network through the second routers corresponding to the second routing information in their respective priority groups.
6. The method for configuring a network for smart devices according to claim 5, characterized in that: The controlling the first smart device to disconnect from the second router includes: The first routing information in the default group of the first smart device is sent to the priority group of the first smart device, and the first smart device is controlled to connect to the first router corresponding to the first routing information in the priority group, so that the connection between the first smart device and the second router is disconnected.
7. The method for configuring a network for smart devices according to claim 2, characterized in that: The number of the first smart devices is multiple; The method further comprises: While the first smart device has been connected to the Internet through the first router corresponding to the first routing information in the default group, the second routing information of the second router is sent and stored in the priority group of at least one of the first smart devices, and the at least one first smart device is controlled to be connected to the Internet in batches through the second router corresponding to the second routing information in the respective priority groups.
8. A smart device network distribution device, characterized in that: include: A setting module, used for setting a default group and a priority group for storing routing information in a first smart device to be networked; A configuration module, used to configure routing information in the default group and the priority group, wherein the routing information in the default group is non-empty fixed routing information, and the routing information in the priority group is empty or non-empty changeable routing information; A control module is used to control the first smart device to be powered on and connected to the network; wherein, when the priority group is empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the default group; when the priority group is not empty, the first smart device is controlled to be connected to the network through the router corresponding to the routing information in the priority group.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the smart device networking method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the smart device network configuration method according to any one of claims 1 to 7 is implemented.