Internet of Things equipment connection switching method and Internet of Things equipment system
By obtaining information from the old router, simulating its SSID and KEY, and using temporary devices to establish communication connections with external devices in batches, and sending the SSID and KEY of the new router, the cumbersome operation problem when replacing routers for IoT devices is solved, and a fast and efficient network migration process is achieved.
Patent Information
- Application Number
- CN202410658925.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2025-11-25
AI Technical Summary
In existing technologies, replacing IoT devices with new routers requires manual operation of each device individually, which is cumbersome and inconvenient.
By obtaining information from the old router, simulating its SSID and KEY, temporary devices are used to establish communication connections with external devices in batches, and the SSID and KEY of the new router are sent to achieve rapid device conversion.
It enables multiple IoT devices to be quickly and in batches switched to the new router, improving network migration efficiency and user experience.
Smart Images

Figure CN121013145A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of IoT device distribution network technology, specifically to an IoT device connection switching method and an IoT device system. Background Technology
[0002] One existing method for forming an Internet of Things (IoT) device system is to use a wireless router as a central hub to connect multiple IoT devices to the wireless router for networking.
[0003] However, when replacing a wireless router or connecting multiple IoT devices to a second router, it's usually necessary to operate each device individually, disconnecting them from the old router and establishing connections with the new one – a cumbersome process. In other situations, the installation team might use a temporary router to configure and test the IoT devices. After configuration and testing, they typically leave the router used during the installation phase with the user. However, if the installation team takes the router with them, or if the user wants to use their own new router, they will need to reconfigure the network using the new router. In this case, establishing connections to each IoT device individually would be extremely inconvenient. Summary of the Invention
[0004] To address the above issues, this invention provides a method for switching IoT device connections, which can quickly complete the process of switching multiple IoT devices to a second wireless router, thereby improving the network switching efficiency of IoT devices.
[0005] The first aspect of the present invention provides a method for switching connections of Internet of Things (IoT) devices, comprising the following steps:
[0006] The steps to obtain information about the first router include obtaining the SSID (Service Set Identifier) and KEY (key) of the first router, and obtaining information about external devices that communicate with and are connected to the first router.
[0007] The steps to obtain information about the second router are as follows: Obtain the SSID and KEY of the second router;
[0008] The steps for simulating the first router are as follows: Based on the information obtained in the step of obtaining the first router information, simulate the first router.
[0009] In the communication connection step, a communication connection is established with the external device that communicates with the first router in the step of obtaining the first router information, based on the SSID and KEY of the simulated first router.
[0010] The routing information sending step involves sending the SSID and KEY of the second router to the external device.
[0011] After obtaining the SSID and KEY of the first router, a device other than the first router can be used to temporarily simulate the first router and establish communication connections with external devices that were originally connected to the first router in batches. Then, the SSID and KEY of the second router can be sent to each external device through this temporary device. This allows for batch and rapid commands to each external device to establish a connection with the second router, improving the efficiency of migrating multiple IoT devices to the second router.
[0012] Optionally, the IoT device connection switching method also includes a progress detection step, which detects the progress status of sending the second router's SSID and KEY to the external device in the routing information sending step. Detecting the progress status of sending the second router's SSID and KEY to the external device through a temporary device can help users understand the network switching progress more intuitively and improve the user experience.
[0013] Optionally, the IoT device connection switching method also includes:
[0014] The communication connection disconnection step is the communication connection established by the communication connection disconnection step.
[0015] The second router connection steps involve establishing a communication connection between the external device and the second router based on the SSID and KEY of the second router sent in the routing information sending step.
[0016] After the SSID and KEY of the second router are sent, the communication connection between the temporary device and the external devices is disconnected. At this point, all external devices have the SSID and KEY of the second router, and no devices are already connected, allowing for a quick establishment of a communication connection with the second router. This method enables the rapid and batch establishment of communication connections between external devices and the second router.
[0017] Optionally, the IoT device connection switching method also includes an external device list display step, which displays the connection status of the external devices for which the communication connection was established in the communication connection step.
[0018] By displaying a list of external devices connected to the temporary device, users can gain a more intuitive understanding of the information of the external devices currently undergoing network migration. On the other hand, it facilitates the selection of external devices that need to be migrated, thus increasing the flexibility in choosing external devices for network migration.
[0019] Optionally, the IoT device connection switching method also includes a first router connection step, in which the external device establishes a communication connection with the first router based on the first router's SSID and KEY.
[0020] Optionally, the IoT device connection switching method further includes the following steps: downloading connection information between the terminal executing the IoT device connection switching method, the first router, and the external device from the server. The connection information includes the SSID and KEY of the first router.
[0021] Optionally, the IoT device connection switching method further includes the following steps: detecting the router and determining whether the detected router has been connected to an external device; if the external device has not been connected to the detected router, then triggering the simulated first router step; if the external device has been connected to the detected router, then instructing the external device to establish a communication connection with the detected router.
[0022] Optionally, the IoT device connection switching method further includes a historical data reading step, which reads historical data of the connection between the terminal performing the IoT device connection switching method and the router or external device; and a historical data updating step, which updates the historical data after the external device and the second router establish a communication connection.
[0023] A second aspect of the present invention provides an Internet of Things (IoT) device system, including a first router and a second router, both of which can establish communication connections with external devices. The IoT device system also includes a terminal, which can establish communication connections with both the first and second routers. The IoT device system executes the IoT device connection switching method provided in the first aspect of the present invention. Specifically, the IoT device system executes the IoT device connection switching method provided in the first aspect of the present invention via the terminal.
[0024] Optionally, the first router is connected to the Internet, and the second router is connected to the local area network. Attached Figure Description
[0025] Figure 1 This is a flowchart illustrating the IoT device connection switching method provided in the first embodiment of the present invention.
[0026] Figure 2 This is a timing diagram of the IoT device connection switching method implemented based on a graphical user interface of a mobile terminal in the first embodiment of the present invention.
[0027] Figure 3 This is a schematic diagram of a graphical user interface showing the progress of network transfer according to the first embodiment of the present invention.
[0028] Figure 4 This is a schematic diagram of a graphical user interface for displaying comparison results according to the first embodiment of the present invention.
[0029] Figure 5 This is a timing diagram of the IoT device connection switching method in the second embodiment of the present invention.
[0030] Figure 6 This is a timing diagram of the IoT device connection switching method in the third embodiment of the present invention. Detailed Implementation
[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0032] <Terminology and its explanation>
[0033] In this article, "simulating the first router" refers to establishing a wireless network access point (AP) with the same or equivalent (e.g., encrypted) SSID and KEY as the first router.
[0034] In this embodiment, the first router and the second router can be wireless routers based on WiFi networks (IEEE 802.11 standard), or edge routers located at the periphery of the network relative to the core router inside a home or enterprise, dedicated to connecting IoT devices. In this embodiment of the invention, the specific type of router is not strictly limited.
[0035] In some implementations, the first router is a router that the user is currently using or that has already been installed and connected, while the second router is a new router that the user is preparing to use. More precisely, in some implementations, the first router is a router that has already been connected to an external device, and the second router is a router that has never been connected to an external device. The first router can be one or more; unless otherwise specified, in the following implementations, the first router is always a single unit at the beginning.
[0036] <First Implementation Method>
[0037] The first embodiment of the present invention provides a method for switching IoT device connections. This method can run on one or more terminals installed in a home or temporarily activated, such as a user's mobile terminal. Specifically, an IoT device management service provider provides an application that can run on the mobile terminal, which executes the various steps of the IoT device connection switching method by running the application.
[0038] Figure 1 This is a flowchart illustrating the IoT device connection switching method provided in the first embodiment of the present invention. (Reference) Figure 1In this embodiment, the IoT device connection switching method includes the following steps:
[0039] Step S1 for obtaining first router information: Obtain the SSID and KEY of the first router, and obtain information about external devices that communicate with the first router.
[0040] Step S2: Obtain the SSID and KEY of the second router.
[0041] In step S3 of simulating the first router, the first router is simulated based on the information obtained in the step of obtaining the first router information.
[0042] In communication connection step S4, a communication connection is established with the external device that communicates with the first router in the step of obtaining first router information, based on the SSID and KEY of the simulated first router.
[0043] In the routing information sending step S5, the SSID and KEY of the second router are sent to the external device.
[0044] The order of steps S1 (obtaining first router information) and S2 (obtaining second router information) is not limited. Step S1 can occur before, after, or simultaneously with step S2. The order of steps S1 and S2 in the overall connection switching method can also be flexibly adjusted, as long as the SSID, KEY, and external device information have been obtained through step S1 or S2 when the mobile terminal needs them. The method of "obtaining" the information in steps S1 and S2 is also not limited. For example, the SSID and KEY can be obtained by providing a form for the user to fill in, by directly receiving data from the first or second router, or by reading historical connection records stored on the mobile terminal. This embodiment of the invention does not impose any restrictions on these methods.
[0045] In step S1 of obtaining the first router information, in addition to obtaining the SSID and KEY of the first router, information about external devices communicating with the first router is also obtained. These two sub-steps—obtaining the SSID and KEY of the first router and obtaining information about external devices communicating with the first router—can occur sequentially, simultaneously, or at different times. This application does not limit the order of execution of these two sub-steps, nor their order with other steps. Furthermore, the information about the external devices may include, for example, the number of external devices, security protocols, frequency bands, channels, IP addresses, MAC addresses, subnet masks, default gateways, identifiers, etc., to facilitate the subsequent rapid establishment of communication connections between the simulated first router and the external devices.
[0046] It should be noted that, although in this embodiment, after the mobile terminal sends the SSID and KEY of the first router to the first router and establishes a connection in step S1 of obtaining the first router information, the first router returns information about the external devices communicating with the first router to the mobile terminal, the above method is only exemplary. In other embodiments, the information of the external devices communicating with the first router may also be stored in the mobile terminal and retrieved when needed. In other embodiments, it may also be obtained by downloading from a server. The method of "obtaining" in step S1 of obtaining the first router information in this application embodiment is not limited.
[0047] The step S3 of simulating the first router can occur after the step S1 of obtaining the first router information. Specifically, using the SSID and KEY obtained in step S1, a wireless network access point (AP) with the same or equivalent SSID and KEY as the first router is established. In the IEEE 802.11 standard, as long as the SSID and KEY match, a communication connection with the router or wireless network access point can be established. Therefore, by configuring the SSID and KEY of the mobile terminal's wireless network access point to be the same as the first router, all external devices that were originally able to communicate with the first router can directly connect to the simulated first router (mobile terminal). In this way, the mobile terminal can quickly and in batches establish communication connections with various external devices, facilitating the subsequent sending of the second router's SSID and KEY to each external device.
[0048] The communication connection step S4 can occur after the simulation of the first router step S3. In the communication connection step S4, each external device that was originally connected to the first router establishes a communication connection with the simulated first router. Before the communication connection step S4 is executed, the first router can be turned off or removed to avoid duplicate network names in the same or nearby spaces, thereby improving the reliability of the communication connection between external devices and the simulated first router.
[0049] The routing information sending step S5 occurs after the communication connection step S4. After the mobile terminal has established communication connections with each external device, it can send the SSID and KEY of the second router, which are saved or temporarily stored on the mobile terminal, to each external device. Since the mobile terminal acts as the central access point of the wireless network and communicates with each external device, it can easily and in batches send the SSID and KEY of the second router to each external device.
[0050] In the IoT device connection switching method provided in this embodiment, after obtaining the SSID and KEY of the first router, a device other than the first router (mobile terminal) can be used to temporarily simulate the first router, establish communication connections with external devices originally connected to the first router in batches, and then send the SSID and KEY of the second router to each external device through this temporary device. This allows for batch and rapid command of each external device to establish a connection with the second router, improving the efficiency of switching multiple IoT devices to the second router.
[0051] It should be noted that, although in this embodiment, the communication connection step S4 and the routing information sending step S5 are described as examples of the mobile terminal establishing communication connections with each external device and sending the SSID and KEY of the second router to each external device, in other embodiments of the present invention, the mobile terminal may also establish communication connections with only some external devices (e.g., some external devices selected by the user or those that meet specific conditions) and send SSID and KEY, and this application embodiment does not limit this.
[0052] <Graphical User Interface>
[0053] In this embodiment, the application prepared for the mobile terminal provides a graphical user interface. In the graphical user interface, interface elements can be generated for each external device, and the status of each communication channel between the router and the external device and the connection status of each communication channel can be displayed in a differentiated manner.
[0054] Figure 2 This is a timing diagram of an IoT device connection switching method implemented based on a graphical user interface of a mobile terminal in the first embodiment of the present invention. Figure 2 In the following text, SSID1 and KEY1 represent the SSID and KEY of the first router, and SSID2 and KEY2 represent the SSID and KEY of the second router.
[0055] refer to Figure 2 In this embodiment, the IoT device connection switching method further includes: an external device list display step S40 that occurs after the communication connection step S4, or simultaneously with the communication connection step S4. The external device list display step S40 performs the following: displaying the connection status of the external devices for which communication connections were established in the communication connection step S4.
[0056] Specifically, a graphical user interface is provided first. Figure 3 This is a schematic diagram of a graphical user interface that displays the progress of network transfer in this embodiment.
[0057] On this graphical user interface, based on the information of the external devices that communicate with the first router obtained in step S1 of obtaining the first router information, interface elements are created for each external device. For example, gray icon elements (indicating no communication connection is established) are first generated for each external device.
[0058] After the communication connection step S4, or in response to the establishment of a communication connection between the external device and the simulated first router (the wireless network access point of the mobile terminal) in the communication connection step S4, the color of the icon element of the external device that has established a communication connection with the wireless network access point of the mobile terminal is changed to green, or the communication connection between different external devices and the mobile terminal is distinguished by establishing a connection line between the icon element corresponding to the mobile terminal and the icon element corresponding to the external device.
[0059] By displaying a list of external devices connected to the temporary device, the above methods provide a more intuitive understanding of the information of the external devices currently undergoing network switching. Furthermore, they facilitate the selection of external devices for network switching, increasing the flexibility in choosing which external devices to use for the switch.
[0060] Continue to refer to Figure 2 and Figure 3 The IoT device connection switching method further includes: a transmission progress detection step S50 that occurs after the routing information transmission step S5, or simultaneously with the routing information transmission step S5. The transmission progress detection step S50 performs the following: detecting the progress status of the routing information transmission step S5 in sending the SSID and KEY of the second router to the external device.
[0061] Specifically, the sending progress detection step S50 can provide, for example, Figure 3The graphical user interface (GUI) shown intuitively displays the connection status of each external device's interface elements with the second router. For example, the GUI uses one color to indicate external devices that have established a communication connection with the second router, and another color to indicate those that haven't. This allows temporary devices to monitor the progress of sending the second router's SSID and KEY to external devices, helping users understand the migration progress of each external device more intuitively and improving the user experience. Of course, the methods for displaying the connection status of external devices and the second router are not limited to the above. Figure 3 In other implementations, the graphical user interface provided can also be used to indicate the connection status between each external device and the second router through indicator lights, beeps, or any other reasonable means.
[0062] In some embodiments of the present invention, a communication connection disconnection step S6 is included after the communication connection connection step S4. In the communication connection disconnection step S6, the communication connection established in the communication connection connection step S4 is disconnected. That is, the connection between the mobile terminal and the external device is disconnected, and after the connection is disconnected, the second router connection step S7 is executed.
[0063] In step S7 of the second router connection process, a communication connection is established between the external device and the second router. This connection is established based on the SSID and KEY of the second router sent in step S5. Specifically, since the external device has already received the SSID and KEY of the second router in step S5, it can find the corresponding network based on the SSID and KEY, input the KEY value, and establish a communication connection between the external device and the second router.
[0064] After the SSID and KEY of the second router are sent, the communication connection between the mobile terminal and the external devices is disconnected. At this point, all external devices already have the SSID and KEY of the second router, and no devices are currently connected, allowing for a quick establishment of a communication connection with the second router. This method enables the rapid and batch establishment of communication connections between external devices and the second router.
[0065] Furthermore, prior to step S3 of simulating the first router, this embodiment also includes a first router connection step S0. In the first router connection step S0, the external device establishes a communication connection with the first router based on the first router's SSID and KEY. In the first router connection step S0, after establishing the communication connection, the first router can collect information such as channel, IP address, MAC address, and identifier from each external device. In the first router information acquisition step S1, the mobile terminal can acquire and save this information to improve the efficiency of establishing communication connections between the simulated first router and each external device.
[0066] Furthermore, the IoT device connection switching method also includes an external device comparison step S8 and a comparison result output step S9, which occur after the second router connection step S7. Specifically, in the external device comparison step S8, the external device connected in the first router connection step S0 is compared with the external device connected in the second router connection step S7. In the comparison result output step S9, the comparison result from the external device comparison step S8 is output and displayed. The comparison result output step S9 occurs after the external device comparison step S8 and is used to display the comparison result from the external device comparison step S8. Figure 4 This is a schematic diagram of a graphical user interface for displaying comparison results according to the first embodiment of the present invention. Through the above comparison display method, the success or failure of network migration for each external device can be more intuitively shown, improving the intuitiveness of displaying whether the network migration was successful and enhancing the user experience.
[0067] The first embodiment of the present invention can be applied to replacing a wireless router for IoT devices within a certain spatial range, or in cases where the original router suddenly fails, thereby improving the efficiency of the router replacement process. Specifically, the first router is the old wireless router to which the IoT devices were originally connected. When replacing it with a new wireless router (i.e., the second router), the IoT device connection switching method provided in the first embodiment can be applied to quickly and in batches transfer all IoT devices within a certain spatial range to the new wireless router.
[0068] Taking the application scenario in the background technology as an example, the construction team can use a temporary router to configure and debug the network for each IoT device. After the configuration and debugging are completed, the construction team takes away the temporary router used for configuration and debugging, and uploads the SSID1 / KEY1 of the temporary router, as well as the logs generated by the connection between each IoT device and the temporary router, to the server. When users move in, they only need to download the logs and establish a simulated AP based on SSID1 / KEY1 to quickly and automatically connect to each IoT device. They can also send the SSID2 / KEY2 of the new router prepared by the user to each IoT device, thereby transferring each IoT device to the new router and quickly completing the network transfer process for each IoT device.
[0069] In some implementations, the mobile terminal can also save or update the connection information between the first router and the external device each time the first router connects to the external device, thereby ensuring the timeliness of the connection information. In step S1 of obtaining the first router information, the latest connection information between the first router and the external device is retrieved.
[0070] <Second Implementation Method>
[0071] This embodiment provides a method for switching connections of Internet of Things (IoT) devices. Figure 5 This is a flowchart illustrating the IoT device connection switching method provided in this embodiment. (Reference) Figure 5 The system executing this IoT device connection switching method includes a mobile terminal, an external device, a first router, and a second router. Before the IoT device connection switching method begins, the external device and the first router are interconnected. The mobile terminal may or may not be interconnected with the first router.
[0072] The IoT device connection switching method provided in this embodiment includes the following steps:
[0073] First, the application used to perform the IoT device connection switching method is launched on the mobile terminal or runs in the background. This application can obtain permissions to read historical connection data between the mobile terminal and the router, as well as external devices. For example, when the mobile terminal has connected to various IoT devices in the home, or to the home router, the connection information of the router and IoT devices will be stored on the mobile terminal, forming historical data.
[0074] In this embodiment, after the application is launched, the historical data reading step is executed to read the historical data of the mobile terminal's connection with the router or external device. In some other embodiments, permission to read historical data may be obtained only, and the historical data may be read only when required in subsequent steps.
[0075] Next, the router is detected, and it is determined whether the detected router has been connected to an external device. In other words, it is detected whether there is a first router that has been connected to an external device.
[0076] When the first router is working normally, it will be able to detect the existence of the first router during the step of detecting whether the first router exists. After that, the mobile terminal only needs to call the first router's SSID1 / KEY1 to connect to the first router and then confirm the connection status between the external device and the first router.
[0077] When the first router fails, the mobile terminal will not be able to detect the signal of the first router, and therefore can only detect the second router that has not been connected to external devices.
[0078] In this embodiment, when the first router fails, the mobile terminal can automatically switch the external device originally connected to the first router to the second router. Correspondingly, by detecting whether the first router exists or whether the first router is working properly, the failure of the first router can be detected in time and corresponding measures can be taken.
[0079] Specifically, when the first router fails and cannot be detected, the system checks if a second router exists. In other words, if the detected router has not been connected to any external devices, it is identified as the second router.
[0080] When the detected router is identified as the second router, a user interface is provided for the user to input SSID2 / KEY2, and the process of establishing an access point (AP) is triggered. If the mobile terminal has previously connected to this second router, it can skip the user interface step and directly read the SSID2 / KEY2 stored locally on the mobile terminal.
[0081] When SSID2 / KEY2 is obtained from the user or read from the SSID2 / KEY2 stored locally on the mobile terminal, an access point (AP) can be established to simulate a first router. In some implementations, the AP can be established first, and then the user can input or the SSID2 / KEY2 can be read from the mobile terminal.
[0082] Wireless network access points (APs) are established based on SSID1 / KEY1. In this way, mobile terminals can quickly establish communication connections with various external devices that were originally connected to the first router, and send SSID2 / KEY2, which is entered by the user or read from the mobile terminal, to each external device.
[0083] Once the received results confirm that SSID2 / KEY2 has been sent to all external devices, the mobile terminal can turn off the AP and disconnect the communication connection with each external device.
[0084] Afterwards, the mobile terminal can establish a communication connection with the second router, confirm the connection status of each external device, and perform a historical data update step to update the new connection status and information into the historical data of the mobile terminal's connection with the router and external devices.
[0085] Through the above methods, the IoT device connection switching method provided in this embodiment can automatically switch network connection status using mobile terminals. The application can be configured to run in the background, requiring no manual operation to switch all external devices to the second router. Furthermore, when establishing the initial communication connection with the second router, the network switching process can be completed with simple operation and minimal user-provided data.
[0086] <Third Implementation Method>
[0087] This embodiment provides a method for switching connections of Internet of Things (IoT) devices. Figure 6 This is a flowchart illustrating the IoT device connection switching method provided in this embodiment. (Reference) Figure 6 The system that executes this IoT device connection switching method includes a server, a construction worker's mobile terminal, a resident's mobile terminal, external devices (i.e., IoT devices), a temporary router (i.e., the first router), and a resident's router (i.e., the second router). Figure 6 The document only shows the servers, resident mobile terminals, external devices, and resident routers that participated in the resident network configuration phase.
[0088] The IoT device connection switching method provided in this embodiment includes two stages. The first stage is the construction stage, in which construction personnel use a temporary router they carry to perform network configuration, debugging, and setup of external devices. The second stage is the resident network configuration stage, which is the stage after residents move in, where they use their own purchased or installed resident routers to connect to each external device. One advantage of this embodiment is that after the first stage is completed, construction personnel can take the temporary routers used during construction away from the construction site, and in the second stage, residents can use the IoT device connection switching method provided in this embodiment to quickly complete the network configuration process between their resident router and each external device.
[0089] During the construction phase, servers, mobile terminals used by construction workers, external devices, and temporary routers were involved in the IoT device connection switching method. During the residential network configuration phase, servers, resident mobile terminals, external devices, and resident routers were involved in the IoT device connection switching method.
[0090] The following sections describe the operation process of the IoT device connection switching method in two different stages.
[0091] During the construction phase, construction workers use mobile terminals to complete the initial network configuration process for each external device. After completing the network configuration, debugging, and setup of the external devices, the construction workers' mobile terminals send information including SSID1 / KEY1 and the collected information of each external device to the server for storage. This allows residents to directly access the information after moving in, helping them quickly complete the network configuration and setup processes already completed by the construction workers and avoiding duplicate setups.
[0092] During the home network configuration phase, firstly, the application for this phase, which executes the IoT device connection switching method, is launched or runs in the background on the resident's mobile terminal. Once running, this application requests data from the server, specifically connection information between all mobile terminals, routers, and external devices within the home, including all SSIDs and keys. Secondly, the application can also obtain local permissions on the resident's mobile terminal and then perform a historical data reading step, retrieving historical connection data between the resident's mobile terminal and the router or external devices.
[0093] Next, it is determined whether the resident router has been connected to external devices. If the resident router has been connected to external devices, the SSID / KEY of the resident router can be directly used to connect to the resident router, and then the connection status between the external device and the resident router can be confirmed. If the resident router has not been connected to external devices, that is, the resident router is equivalent to the second router in this embodiment, an AP can be established based on the connection information obtained from the server, especially the SSID1 and KEY1 of the temporary router that has communicated with each external device during the construction phase, to simulate the temporary router establishing communication connections with each external device.
[0094] Next, the SSID2 / KEY2 of the home router, either manually entered by the resident or stored locally on the resident's mobile terminal, is sent to each external device. Upon receiving the SSID2 / KEY2, each external device disables the access point (AP) on the resident's mobile terminal, disconnecting from the communication connection with each external device. Each external device then uses the received SSID2 / KEY2 to reconnect to the home router.
[0095] Afterwards, the resident's mobile terminal can establish a communication connection with the resident's router, confirm the connection status of each external device with the resident's router, and perform the historical data update step to update the new connection status and information to the resident's mobile terminal, or it can further update the connection information stored in the server.
[0096] Using the methods described above, the SSID1 / KEY1 and external device information saved during the construction phase, as well as the network configuration and settings information for each external device saved during the construction phase, can be quickly copied to the new system during the resident's network configuration phase without needing to be configured again. This facilitates the smooth progress of network configuration and debugging during the construction phase, and avoids redundant settings, effectively reducing the amount of configuration required after residents move in and improving the user experience.
[0097] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for switching connections between Internet of Things (IoT) devices, characterized in that, include, The steps for obtaining information about the first router include obtaining the SSID and KEY of the first router, and obtaining information about external devices that are connected to the first router. The steps to obtain information about the second router are as follows: Obtain the SSID and KEY of the second router; The first router simulation step involves simulating the first router based on the information obtained in the first router information acquisition step. The communication connection step involves establishing a communication connection with the external device based on the SSID and KEY of the simulated first router. In the routing information sending step, the SSID and KEY of the second router are sent to the external device.
2. The IoT device connection switching method as described in claim 1, characterized in that, It also includes, The progress detection step detects the progress status of the routing information sending step in sending the SSID and KEY of the second router to the external device.
3. The IoT device connection switching method as described in claim 1 or 2, characterized in that, It also includes, The communication connection disconnection step disconnects the communication connection established in the communication connection disconnection step. In the second router connection step, based on the SSID and KEY of the second router sent in the routing information sending step, the external device establishes a communication connection with the second router.
4. The IoT device connection switching method as described in claim 3, characterized in that, It also includes, The external device list display step shows the connection status of the external devices for which the communication connection was established in the communication connection step.
5. The IoT device connection switching method as described in claim 1, characterized in that, It also includes the following steps, The connection information between the terminal executing the IoT device connection switching method, the first router, and the external device is downloaded from the server. The connection information includes the SSID and KEY of the first router.
6. The IoT device connection switching method as described in claim 5, characterized in that, It also includes the following steps: Detect the router and determine whether the detected router has been connected to the external device; if the external device has not been connected to the detected router, then trigger the step of simulating the first router. If the external device has already connected to the detected router, then instruct the external device to establish a communication connection with the detected router.
7. The IoT device connection switching method as described in claim 6, characterized in that, It also includes, The historical data reading step involves reading historical data about the connection between the terminal executing the IoT device connection switching method and the router or external device. The historical data update step involves updating the historical data after a communication connection is established between the external device and the second router.
8. An Internet of Things (IoT) device system, comprising: The first router can establish communication connections with external devices; The second router can establish communication connections with external devices; The terminal can establish communication connections with both the first router and the second router. The feature is that the IoT device system executes the IoT device connection switching method according to any one of claims 1-8.
9. The Internet of Things (IoT) device system as described in claim 8, characterized in that, The first router is connected to the Internet, and the second router is connected to the local area network.