Intelligent device networking method, networking system, intelligent device and storage medium

Through protocol communication between smart devices and router restart, automatic WIFI hotspot switching of smart devices is realized, solving the problem of complex and inefficient manual switching, and improving networking speed and efficiency.

CN115396959BActive Publication Date: 2024-09-17GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110563694.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-24
Publication Date
2024-09-17
Estimated Expiration
2041-05-24

AI Technical Summary

Technical Problem

When students are in class, if each smart device needs to manually switch WIFI hotspots, the operation is complicated and the networking efficiency is low.

Method used

Through protocol communication between smart devices, new WIFI hotspot information is sent to ensure that all devices are online, and the router is controlled to restart to generate new WIFI hotspots, allowing the devices to automatically disconnect old connections and search for new ones.

Benefits of technology

It realizes the rapid switching of WIFI hotspot networking for batches of smart devices without manual operation. The switching speed of each device is fast and the networking efficiency is high.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115396959B
    Figure CN115396959B
Patent Text Reader

Abstract

The present invention provides a method for networking smart devices, a networking system, a smart device and a storage medium. The method for networking smart devices includes the following steps: connecting to a first WIFI hotspot of a local area network where a second smart device is located, and sending a protocol communication broadcast; receiving a broadcast response signal fed back by the second smart device, and sending the hotspot information of the second WIFI hotspot to the second smart device through a protocol communication channel; receiving a disconnection callback signal returned by the second smart device, and counting the number of second smart devices according to the disconnection callback signal, and if the number of second smart devices is consistent with a preset device value, controlling a router to close the first WIFI hotspot and restart to send the second WIFI hotspot. The method for networking smart devices has the function of enabling smart devices to quickly switch to WIFI hotspots for networking, without the need to manually operate each second smart device to switch to WIFI hotspots for networking, thereby making the speed of switching to WIFI hotspots for networking faster and the networking efficiency higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of WIFI connection technology, and in particular to a smart device networking method, a networking system, a smart device and a storage medium. Background Art

[0002] With the development of science and technology, students are increasingly using personal smart devices such as interactive tablets during class. Students can access teaching videos or information in real time through their personal smart devices. In order to ensure that network bandwidth can be effectively utilized, these smart devices usually need to connect to the same WIFI hotspot to access the Internet. When it is necessary to switch the connection hotspots of all smart devices in a classroom, if each smart device manually switches to the WIFI hotspot to connect to the Internet, the operation is complicated and the networking efficiency is low. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the embodiments of the present invention provide a smart device networking method, a networking system, a smart device and a storage medium. The smart device networking method can enable multiple smart devices to switch WIFI hotspots and connect to the network at the same time, thereby improving the networking efficiency.

[0004] According to a first aspect of an embodiment of the present invention, there is provided a smart device networking method, which is applied to a first smart device and includes the following steps:

[0005] Connect to the first WIFI hotspot of the local area network where the second smart device is located, and send a protocol communication broadcast;

[0006] receiving a broadcast response signal fed back by the second smart device, and sending hotspot information of the second WIFI hotspot to the second smart device through a protocol communication channel;

[0007] Receive the network disconnection callback signal returned by the second smart device, count the number of second smart devices according to the network disconnection callback signal, and if the number of second smart devices is consistent with a preset device value, control the router to close the first WIFI hotspot and restart to send out the second WIFI hotspot.

[0008] According to a second aspect of an embodiment of the present invention, there is provided a smart device networking method, which is applied to a second smart device and includes the following steps:

[0009] Connect to a first WIFI hotspot of the local area network where the first smart device is located;

[0010] receiving a protocol communication broadcast sent by the first smart device, establishing protocol communication with the first smart device, and feeding back a broadcast response signal to the first smart device through a protocol communication channel;

[0011] Receiving hotspot information of a second WIFI hotspot sent by the first smart device through the protocol communication channel, returning a disconnection callback signal to the first smart device, disconnecting from the first WIFI hotspot, and disconnecting from the protocol communication with the first smart device;

[0012] Search for the second WIFI hotspot, and connect to the second WIFI hotspot according to the hotspot information of the second WIFI hotspot.

[0013] According to a third aspect of an embodiment of the present invention, there is provided a smart device networking system, comprising a router, a first smart device and a plurality of second smart devices;

[0014] The router is used to issue a first WIFI hotspot;

[0015] The first smart device connects to the first WIFI hotspot of the local area network where the second smart device is located, sends a protocol communication broadcast to receive a broadcast response signal fed back by the second smart device, and sends hotspot information of the second WIFI hotspot to the second smart device through the protocol communication channel; receives a network disconnection callback signal returned by the second smart device, counts the number of second smart devices according to the network disconnection callback signal, and if the number of second smart devices is consistent with a preset device value, controls the router to close the first WIFI hotspot and restarts to send the second WIFI hotspot;

[0016] The second smart device is connected to the first WIFI hotspot, receives the protocol communication broadcast sent by the first smart device, establishes protocol communication with the first smart device, and feeds back a broadcast response signal to the first smart device through the protocol communication channel; receives the hotspot information of the second WIFI hotspot sent by the first smart device through the protocol communication channel, returns a network disconnection callback signal to the first smart device, disconnects from the first WIFI hotspot, and disconnects from the protocol communication with the first smart device; searches for the second WIFI hotspot, and connects to the second WIFI hotspot according to the hotspot information of the second WIFI hotspot.

[0017] According to a fourth aspect of an embodiment of the present invention, there is provided a smart device, comprising a display, a processor and a memory; the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the smart device networking method as described in any one of the above embodiments.

[0018] According to a fifth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for networking a smart device as described in any one of the above embodiments is implemented.

[0019] By applying the above technical solution of the embodiment of the present invention, by sending a protocol communication broadcast to the second smart device, a protocol communication is established with the second smart device, so that the new WIFI hotspot information can be sent to the second smart device through the protocol communication, ensuring that all the second smart devices are online, and controlling the router to restart to generate a new WIFI hotspot, so that the second smart device disconnects the old WIFI hotspot connection and protocol communication, searches for a new WIFI hotspot and connects. The above technical solution of the embodiment of the present invention has the advantage of enabling batches of smart devices to quickly switch to WIFI hotspots for networking, without the need to manually operate each second smart device to switch to WIFI hotspots for networking, and the speed of switching to WIFI hotspots for networking is fast, and the networking efficiency is high.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention.

[0021] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 A flowchart of a method for connecting a smart device to a network according to an embodiment of the present application;

[0024] Figure 2 This is a structural block diagram of a smart device networking device according to an embodiment of the present application;

[0025] Figure 3 This is a structural block diagram of a first smart device shown in one embodiment of the present application;

[0026] Figure 4 A flowchart of a method for connecting a smart device to a network according to an embodiment of the present application;

[0027] Figure 5 This is a structural block diagram of a smart device networking device according to an embodiment of the present application;

[0028] Figure 6 This is a structural block diagram of a second smart device shown in one embodiment of the present application;

[0029] Figure 7 This is a structural block diagram of a smart device networking system according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0031] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0032] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0033] See also Figure 7 , Figure 7 This is a structural block diagram of a smart device networking system according to an embodiment of the present application.

[0034] The application environment of the smart device networking method is a smart device networking system, including a router 710, a first smart device 720 and a plurality of second smart devices 730. Among them, the router 710 is a hardware device that connects two or more networks, acts as a gateway between networks, and is a dedicated intelligent network device that reads the address in each data packet and then decides how to transmit. In this embodiment, the router 710 is used to connect to the external network and can issue multiple WIFI hotspots. The first smart device 720 can be a computer device connected to the router 710, used to connect to the router's WIFI hotspot, and used to set the networking parameters and WIFI hotspot of the router 710. The second smart device 730 can be a computer device that needs to switch the WIFI hotspot connection, such as an interactive tablet, a mobile phone and other smart devices. In this embodiment, the second smart device 730 is an interactive tablet for students to use in class, and can be connected to the first WIFI hotspot issued by the router 710 when it is connected to the network for the first time after booting.

[0035] In order to ensure the stability of the network connection, the second smart device 730 usually needs to connect to the same WIFI hotspot to access the Internet. When it is necessary to switch the connection hotspots of all the second smart devices 730 in a certain area, if each second smart device 730 needs to manually switch the WIFI hotspot to connect to the Internet, the operation is complicated and the networking efficiency is low. Based on the above problems, in an embodiment of the present invention, it is intended to automatically connect multiple second smart devices 730 in the same area to the same WIFI hotspot, without manually switching the connected WIFI hotspot for each second smart device 730, which is convenient to operate and has high networking efficiency.

[0036] In addition, the application environment of the smart device networking method may also include a processing device independent of the electronic device. After the processing device is connected to the electronic device, the smart device networking method of the present application can be implemented.

[0037] The following is an explanation through specific examples.

[0038] According to a first aspect of an embodiment of the present invention, a method for networking a smart device is disclosed, and the method is applied to an electronic device. The electronic device may implement the method for networking a smart device of the present application in a pure software manner, or may implement it in a combination of software and hardware. The electronic device may run an application for executing the method for networking a smart device, and the application may be presented in a form adapted to the electronic device, such as an APP application. In some examples, it may also be presented in the form of a system plug-in, a web page plug-in, etc. The present application is described below with the electronic device being the first smart device, and the first smart device being a computer device.

[0039] See also Figure 1 , Figure 1 The present invention is a flowchart of a method for connecting a smart device to a network according to an embodiment of the present invention.

[0040] The smart device networking method is applied to a first smart device and comprises the following steps:

[0041] S110: Connect to a first WIFI hotspot in the local area network where the second smart device is located, and send a protocol communication broadcast.

[0042] In an embodiment of the present application, the first WIFI hotspot is a WIFI hotspot set by default by the router, for the first smart device, the second smart device, and other smart devices to connect. Since the networking parameters of the router and the WIFI hotspot need to be set by the first smart device, the first smart device needs to be connected to the first WIFI hotspot; and the first smart device needs to be connected to the same local area network as the second smart device to facilitate protocol communication. Optionally, the WIFI hotspot connected to the first smart device can be the same as or different from the WIFI hotspot connected to the second smart device.

[0043] In the embodiment of the present application, a protocol communication broadcast is issued by the first smart device to facilitate the second smart device and the first smart device to establish a protocol communication, so as to send the hotspot information of the second WIFI hotspot to all second smart devices that need to switch the WIFI hotspot.

[0044] S120: Receive the broadcast response signal fed back by the second smart device, and send the hotspot information of the second WIFI hotspot to the second smart device through the protocol communication channel.

[0045] In this embodiment, a protocol communication broadcast is sent out by the first smart device to establish protocol communication between the first smart device and the second smart device, so that the hotspot information of the second WIFI hotspot is sent to all second smart devices that need to switch the WIFI hotspot. Other electronic devices that do not need to switch the WIFI hotspot will not receive the hotspot information of the second WIFI hotspot sent by the first smart device because they have not established protocol communication with the first smart device, and cannot connect to the second WIFI hotspot, thereby ensuring the accuracy of the network connection and facilitating the effective use of network bandwidth.

[0046] In this embodiment, the protocol communication established between the first smart device and the second smart device is TCP protocol communication. TCP protocol communication is the Transmission Control Protocol (TCP), which is a connection-oriented, reliable, byte stream-based transport layer communication protocol.

[0047] Specifically, the first smart device starts a TCP server to send a TCP protocol communication broadcast to the second smart device, monitors the TCP response signal returned by the second smart device through the TCP protocol communication channel, and after receiving the TCP response signal fed back by the second smart device through the TCP protocol communication channel, sends the hotspot information of the second WIFI hotspot to the second smart device through the TCP protocol communication channel. Since it is necessary to confirm whether the communication between the first smart device and the second smart device is normal, the second smart device needs to respond after the first smart device sends a TCP broadcast to ensure that the TCP protocol communication between the two is successful.

[0048] In other embodiments, the protocol communication between the first smart device and the second smart device may be other types of protocol communication, which is not limited here.

[0049] In an optional embodiment, before the first smart device sends the protocol communication broadcast to the second smart device, it also includes the step of receiving the hotspot information of the second WIFI hotspot input by the user, including: responding to the user's login operation, opening the hotspot configuration window; receiving the hotspot information of the second WIFI hotspot input by the user through the hotspot configuration window, so that the user can set the second WIFI hotspot according to his own preferences or requirements.

[0050] The application scenario in this embodiment is that student tablets connect to WIFI hotspots in batches, so a teacher account is required to log in and set up the second WIFI hotspot of the router. The second smart device corresponds to the login operation of the teacher account and opens the hotspot configuration window. At this time, the teacher can enter the hotspot information of the second WIFI hotspot in the hotspot configuration window, that is, perform relevant settings for the second WIFI hotspot subsequently issued by the router.

[0051] In an optional embodiment, the hotspot information only includes the name of the second WIFI hotspot. When the hotspot information of the second WIFI hotspot is received by the user through the hotspot configuration window, a second WIFI hotspot password corresponding to the second WIFI hotspot name is generated according to the second WIFI hotspot name by a password generation tool.

[0052] In an optional embodiment, the hotspot information may include a second WIFI hotspot name and a second WIFI hotspot password corresponding to the second WIFI hotspot name. The second WIFI hotspot name may be composed of multiple letters and / or numbers, and the second WIFI hotspot password is obtained by reversing the second WIFI hotspot name.

[0053] The second WIFI hotspot name may be composed of multiple letters and / or numbers, and the second WIFI hotspot password is obtained by converting the uppercase letters of the second WIFI hotspot name into lowercase letters, and converting the lowercase letters into uppercase letters.

[0054] In other embodiments, the relationship between the second WIFI hotspot password and the second WIFI hotspot name may also be other association relationships.

[0055] The present application facilitates the reasonable use and management of the network by providing a second WIFI hotspot and the setting of the second WIFI hotspot password.

[0056] S130: Receive a disconnection callback signal returned by the second smart device, count the number of second smart devices according to the disconnection callback signal, and if the number of second smart devices is consistent with a preset device value, control the router to close the first WIFI hotspot and restart to send out the second WIFI hotspot.

[0057] In the present application, after receiving the hotspot information of the second WIFI hotspot, the second smart device automatically returns the disconnection callback information to the first smart device to indicate that the second smart device is about to disconnect from the first WIFI hotspot and wait for connection to the second WIFI hotspot.

[0058] In order to ensure that all second smart devices can connect to the second WIFI hotspot, that is, to ensure that the interactive tablets used by students can switch to the second WIFI hotspot, it is necessary to determine whether all second smart devices are ready to connect by the number of returned disconnection callback signals before switching the hotspot. Specifically, the disconnection callback signals are quantitatively counted. If the number of second smart devices is consistent with the preset device value, it means that all second smart devices are ready to switch WIFI hotspots. At this time, the router can be controlled to close the first WIFI hotspot and restart to send the second WIFI hotspot for the first smart device and the second smart device to connect. In this way, teachers can enter the classroom to teach through the first smart device, and students can learn through the second smart device, which is more convenient.

[0059] In an optional embodiment, a preset switching time is also set. If the number of second smart devices fails to reach the preset device value within the preset switching time, an interactive window pops up to prompt the number and identifiers of second smart devices that have currently returned the network disconnection callback signal, and / or an interactive window pops up to prompt the number and identifiers of second smart devices that have not currently returned the network disconnection callback signal, thereby prompting the user to check the second smart devices that have not returned the network disconnection callback signal.

[0060] Furthermore, the interactive window prompts whether to switch the WIFI hotspot immediately, responds to the user's switching confirmation operation, controls the router to close the first WIFI hotspot and restarts to send the second WIFI hotspot for the second smart device that is ready to connect to connect.

[0061] In an optional embodiment, a preset switching time is also set. If the number of second smart devices fails to reach a preset device value within the preset switching time, the router is controlled to shut down the first WIFI hotspot and restart to send out the second WIFI hotspot for the second smart device that is ready to connect to connect.

[0062] In an optional embodiment, the method further includes the steps of disconnecting from the first WIFI hotspot, searching for the second WIFI hotspot and connecting to it. Since the router only sends out the second WIFI hotspot after shutting down the first WIFI hotspot, the first smart device needs to connect to the second WIFI hotspot to access the Internet and communicate with the second smart device to send relevant videos or materials.

[0063] By applying the above technical solution of the embodiment of the present invention, by sending a protocol communication broadcast to the second smart device, a protocol communication is established with the second smart device, so that the new WIFI hotspot information can be sent to the second smart device first, ensuring the number of online second smart devices, and controlling the router to restart to generate a new WIFI hotspot, so that the second smart device disconnects the old WIFI hotspot connection and the protocol connection, searches for a new WIFI hotspot and connects. The above technical solution of the embodiment of the present invention has the function of enabling batches of smart devices to automatically switch to WIFI hotspots for networking. Since there is no need to manually operate each second smart device to switch to WIFI hotspots for networking, the speed of switching to WIFI hotspots for networking is fast and the networking efficiency is high.

[0064] According to the second aspect of the present application, a smart device networking device is also provided, which can be used to execute the content of the smart device networking method of the corresponding embodiment of the present application, and has corresponding functions and beneficial effects. For details not disclosed in the embodiment of the smart device networking device of the present application, please refer to the content of the smart device networking method of the present application.

[0065] See also Figure 2 , which is a structural schematic block diagram of a smart device networking device provided by an embodiment of the present application.

[0066] The smart device networking device 200 includes:

[0067] The broadcast module 210 is used to connect to the first WIFI hotspot of the local area network where the second smart device is located and send a protocol communication broadcast;

[0068] An information sending module 220 is used to receive the broadcast response signal fed back by the second smart device, and send the hotspot information of the second WIFI hotspot to the second smart device through the protocol communication channel;

[0069] The hotspot switching module 230 is used to receive the disconnection callback signal returned by the second smart device, count the number of second smart devices according to the disconnection callback signal, and if the number of second smart devices is consistent with a preset device value, control the router to close the first WIFI hotspot and restart to send out the second WIFI hotspot.

[0070] The embodiment of the present application sends a protocol communication broadcast through the first smart device to establish a protocol communication with the second smart device, so that the new WIFI hotspot information can be sent to the second smart device first, ensuring the number of online second smart devices, and controlling the router to restart to generate a new WIFI hotspot, so that the second smart device disconnects the old WIFI hotspot connection and protocol communication, searches for a new WIFI hotspot and connects. The above technical solution of the embodiment of the present invention has the function of enabling the smart device to automatically switch to the WIFI hotspot for networking. Since there is no need to manually operate each second smart device to switch to the WIFI hotspot for networking, the speed of switching to the WIFI hotspot for networking is fast and the networking efficiency is high.

[0071] It is worth noting that in the embodiment of the above-mentioned smart device networking device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0072] According to the third aspect of the present application, a smart device is also provided. The smart device can be any smart terminal with a display screen, for example, it can be specifically a computer, a mobile phone, a tablet computer, an interactive tablet, etc. In an embodiment of the present application, the smart device is a computer.

[0073] See also Figure 3 , which is a schematic block diagram of the structure of an intelligent device provided by an embodiment of the present application. The intelligent device 300 includes at least one processor 310, at least one network interface 320, a user interface 330, a memory 340 and at least one communication bus 350. The communication bus 350 is used to realize the connection and communication between these components.

[0074] The user interface 330 may include an interface for connecting to a display screen, and the optional user interface 330 may also include a standard wired interface or a wireless interface.

[0075] The network interface 320 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0076] Among them, the processor 310 may include one or more processing cores. The processor 310 uses various interfaces and lines to connect the various parts of the entire interactive tablet 300, and executes various functions and processes data of the interactive tablet 300 by running or executing instructions, programs, code sets or instruction sets stored in the processor 310, and calling data stored in the memory 340. Optionally, the processor 310 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic arrays (Programmable logic arrays, PLA). The processor 310 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 310, but implemented separately through a chip.

[0077] The memory 340 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 340 includes a non-transitory computer-readable storage medium. The memory 340 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 340 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 340 may optionally be at least one storage device located away from the aforementioned processor 310. As Figure 3 As shown, the memory 340 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application of the smart interactive tablet.

[0078] exist Figure 3In the smart device 300 shown, the user interface 330 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 310 can be used to call the operating application of the smart device stored in the memory 340 and execute the relevant operations in the smart device networking method in the above embodiment.

[0079] The above-mentioned smart devices can be used to execute the contents of the smart device networking method corresponding to the embodiment of the present application, and have corresponding functions and beneficial effects.

[0080] According to the fourth aspect of the present application, a method for networking a smart device is also provided, which is applied to a second smart device, wherein the second smart device is a computer device or an interactive tablet that needs to switch a WIFI hotspot connection. In this embodiment, it is an interactive tablet for students to use in class.

[0081] See also Figure 4 , which is a flow chart of a smart device networking method provided by an embodiment of the present application.

[0082] The smart device networking method comprises the following steps:

[0083] S410: Connecting to a first WIFI hotspot of the local area network where the first smart device is located.

[0084] In an embodiment of the present application, the first WIFI hotspot is a WIFI hotspot set by default by the router, for the first smart device, the second smart device, and other smart devices to connect to. The second smart device can be connected to the first WIFI hotspot, or to other hotspots in the local area network where the first smart device is located, so as to establish protocol communication with the first smart device.

[0085] S420: receiving the protocol communication broadcast sent by the first smart device, establishing protocol communication with the first smart device, and feeding back a broadcast response signal to the first smart device through the protocol communication channel.

[0086] The present application sends a protocol communication broadcast through the first smart device, so that the first smart device and the second smart device establish protocol communication, so as to send the hotspot information of the second WIFI hotspot to all second smart devices that need to switch the WIFI hotspot, while other electronic devices that do not need to switch the WIFI hotspot will not receive the hotspot information of the second WIFI hotspot sent by the first smart device because they have not established protocol communication with the first smart device, and cannot connect to the second WIFI hotspot, thereby ensuring the effective use of the network. When the second smart device monitors the protocol communication broadcast sent by the first smart device, it establishes a protocol connection with the first smart device, returns a response signal to the first smart device, informs the first smart device of the online status, and waits for the WIFI hotspot to switch.

[0087] In this embodiment, the protocol communication established between the first smart device and the second smart device is TCP protocol communication. After the first smart device sends the hotspot information of the second WIFI hotspot to the second smart device through the TCP protocol connection, in order to confirm whether the protocol communication between the first smart device and the second smart device is normal, after the first smart device sends the TCP protocol communication broadcast, the second smart device needs to respond to indicate that the protocol communication between the two is successful.

[0088] Specifically, the second smart device receives the TCP protocol communication broadcast generated by the first smart device through the TCP server, establishes TCP protocol communication with the first smart device, and returns a TCP broadcast response signal to the first smart device through the TCP protocol communication.

[0089] S430: receiving hotspot information of a second WIFI hotspot sent by the first smart device through the protocol communication channel, returning a disconnection callback signal to the first smart device, disconnecting from the first WIFI hotspot, and disconnecting from the protocol communication with the first smart device.

[0090] After the second smart device sends a disconnection callback signal to the first smart device, it indicates that it is ready to wait for connecting to a new WIFI hotspot.

[0091] S440: Searching for the second WIFI hotspot, and connecting to the second WIFI hotspot according to the hotspot information of the second WIFI hotspot.

[0092] In this embodiment, the hotspot information of the second WIFI hotspot includes a second WIFI hotspot name and a second WIFI hotspot password corresponding to the second WIFI hotspot name, wherein the setting of the second WIFI hotspot password is consistent with the method adopted in the above embodiment.

[0093] When the second smart device searches for the second WIFI hotspot, it automatically verifies the second WIFI hotspot name and the second WIFI hotspot password and connects to the second WIFI hotspot, thereby realizing the automatic switching of the WIFI hotspot and connection of the second smart device. All second smart devices that need to switch to the WIFI hotspot to access the Internet can realize automatic switching of the WIFI hotspot and connection through the above method, thereby realizing batch switching of WIFI hotspots of smart devices, improving networking efficiency, and being very convenient.

[0094] According to the fifth aspect of the present application, the present application also provides a smart device networking device, which can be used to execute the content of the smart device networking method of the corresponding embodiment of the present application, and has corresponding functions and beneficial effects. For details not disclosed in the embodiment of the smart device networking device of the present application, please refer to the content of the smart device networking method of the present application.

[0095] See also Figure 5 , which is a schematic block diagram of the structure of a smart device networking device provided by an embodiment of the present application, the smart device networking device 500 includes:

[0096] The first connection module 510 is used to connect to a first WIFI hotspot of the local area network where the first smart device is located;

[0097] The response module 520 is used to receive the protocol communication broadcast sent by the first smart device, establish protocol communication with the first smart device, and feed back a broadcast response signal to the first smart device through the protocol communication channel;

[0098] A network disconnection module 530 is used to receive the hotspot information of the second WIFI hotspot sent by the first smart device through the protocol communication channel, return a network disconnection callback signal to the first smart device, disconnect the connection with the first WIFI hotspot, and disconnect the protocol communication with the first smart device;

[0099] The second connection module 540 is used to search for the second WIFI hotspot and connect to the second WIFI hotspot according to the hotspot information of the second WIFI hotspot.

[0100] The embodiment of the present application sends a protocol communication broadcast to the second smart device, so that the second smart device establishes a protocol communication with the first smart device, thereby receiving the new WIFI hotspot information sent by the first smart device, disconnecting the old WIFI hotspot connection and protocol communication, searching for a new WIFI hotspot and connecting. The above technical solution of the embodiment of the present invention has the function of enabling the smart device to automatically switch to the WIFI hotspot for networking. Since there is no need to manually operate each second smart device to switch to the WIFI hotspot for networking, the speed of switching to the WIFI hotspot for networking is fast and the networking efficiency is high.

[0101] It is worth noting that the smart device networking device provided in the above embodiment only uses the division of the above functional modules as an example when executing the above smart device networking method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the smart device networking device provided in the above embodiment and the smart device networking method embodiment belong to the same concept, and the embodiment process is detailed in the embodiment, which will not be repeated here.

[0102] According to the sixth aspect of the present application, the present application also provides a smart device, which can be any smart terminal with a display screen, for example, it can be specifically a computer, a mobile phone, a tablet computer, an interactive tablet, etc. In an embodiment of the present application, the smart device is an interactive tablet for students to use in class.

[0103] See also Figure 6 , which is a schematic block diagram of the structure of an intelligent device provided by an embodiment of the present application. The intelligent device 600 includes at least one processor 610, at least one network interface 620, a user interface 630, a memory 640 and at least one communication bus 650. The communication bus 650 is used to realize the connection and communication between these components.

[0104] The user interface 630 may include an interface for connecting to a display screen, and the optional user interface 630 may also include a standard wired interface or a wireless interface.

[0105] The network interface 620 may optionally include a standard wired interface or a wireless interface (such as a WIFI interface).

[0106] Among them, the processor 610 may include one or more processing cores. The processor 610 uses various interfaces and lines to connect the various parts of the entire interactive tablet 600, and executes various functions and processes data of the interactive tablet 600 by running or executing instructions, programs, code sets or instruction sets stored in the processor 610, and calling data stored in the memory 640. Optionally, the processor 610 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic arrays (Programmable logic arrays, PLA). The processor 610 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 610, and can be implemented separately through a chip.

[0107] Among them, the memory 640 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 640 includes a non-transitory computer-readable storage medium. The memory 640 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 640 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 640 may also be optionally at least one storage device located away from the aforementioned processor 610. As Figure 6 As shown, the memory 640 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application of the smart interactive tablet.

[0108] exist Figure 6 In the smart device 600 shown, the user interface 630 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 610 can be used to call the operating application of the smart device stored in the memory 640 and execute the relevant operations in the smart device networking method in the above embodiment.

[0109] The above-mentioned smart devices can be used to execute the contents of the smart device networking method corresponding to the embodiment of the present application, and have corresponding functions and beneficial effects.

[0110] According to the seventh aspect of the present application, a smart device networking system is also provided. Figure 7 , which is a structural block diagram of a smart device networking system provided by an embodiment of the present application. The smart device networking system includes a router 710, a first smart device 720 and a plurality of second smart devices 730;

[0111] The router 710 is used to issue a first WIFI hotspot;

[0112] The first smart device 720 connects to the first WIFI hotspot of the local area network where the second smart device 730 is located, sends a protocol communication broadcast to receive a broadcast response signal fed back by the second smart device 730, and sends hotspot information of the second WIFI hotspot to the second smart device 730 through the protocol communication channel; receives a network disconnection callback signal returned by the second smart device 730, counts the number of the second smart devices 730 according to the network disconnection callback signal, and if the number of the second smart devices 730 is consistent with a preset device value, controls the router 710 to close the first WIFI hotspot and restarts to send the second WIFI hotspot;

[0113] The second smart device 730 is connected to the first WIFI hotspot, receives the protocol communication broadcast sent by the first smart device 720, establishes protocol communication with the first smart device 720, and feeds back a broadcast response signal to the first smart device 720 through the protocol communication channel; receives the hotspot information of the second WIFI hotspot sent by the first smart device 720 through the protocol communication channel, returns a disconnection callback signal to the first smart device 720, disconnects from the first WIFI hotspot, and disconnects from the protocol communication with the first smart device 720; searches for the second WIFI hotspot, and connects to the second WIFI hotspot according to the hotspot information of the second WIFI hotspot.

[0114] In an optional embodiment, the protocol communication is TCP protocol communication;

[0115] The first smart device 720 sends a TCP protocol communication broadcast, receives a broadcast response signal fed back by the second smart device 730, and sends the hotspot information of the second WIFI hotspot to the second smart device 730 through the TCP protocol communication channel;

[0116] The second smart device 730 receives the TCP protocol communication broadcast sent by the first smart device 720, establishes TCP protocol communication with the first smart device 720, and feeds back a broadcast response signal to the first smart device 720 through the TCP protocol communication channel; receives the hotspot information of the second WIFI hotspot sent by the first smart device 720 through the TCP protocol communication channel, and returns a disconnection callback signal to the first smart device 720.

[0117] The embodiment of the present application sends a protocol communication broadcast through the first smart device to establish a protocol communication with the second smart device, so that the new WIFI hotspot information can be sent to the second smart device first, ensuring the number of online second smart devices, and controlling the router to restart to generate a new WIFI hotspot, so that the second smart device disconnects the old WIFI hotspot connection and protocol communication, searches for a new WIFI hotspot and automatically verifies the connection. The above technical solution of the embodiment of the present invention has the function of enabling batches of smart devices to automatically switch to WIFI hotspots for networking. Since there is no need to manually operate each second smart device to switch to WIFI hotspots for networking, the speed of switching to WIFI hotspots for networking is fast and the networking efficiency is high.

[0118] According to the eighth aspect of the present application, a storage medium containing computer executable instructions is also provided, and the computer executable instructions are used to perform the relevant operations in the smart device networking method provided in any embodiment of the present application when executed by a computer processor, and have corresponding functions and beneficial effects. Among them, computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can be a computer-readable instruction, a data structure, a module of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape magnetic disk storage or other magnetic storage device or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carriers.

[0119] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0120] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A method for networking a smart device, applied to a first smart device, characterized in that: The following steps are involved: Connect to the first WIFI hotspot of the local area network where the second smart device is located, and send a protocol communication broadcast; receiving a broadcast response signal fed back by the second smart device, and sending hotspot information of the second WIFI hotspot to the second smart device through a protocol communication channel; Receive the network disconnection callback signal returned by the second smart device, count the number of second smart devices according to the network disconnection callback signal, and if the number of second smart devices is consistent with a preset device value, control the router to close the first WIFI hotspot and restart to send out the second WIFI hotspot.

2. The method for networking smart devices according to claim 1, characterized in that: The protocol communication is TCP protocol communication; the method for sending a protocol communication broadcast by the first WIFI hotspot connected to the local area network where the second smart device is located is: Connect to a first WIFI hotspot of the local area network where the second smart device is located, start a TCP server to generate a TCP protocol communication broadcast, and send out a TCP protocol communication broadcast.

3. The method for networking smart devices according to claim 1, characterized in that: Before the step of receiving the broadcast response signal fed back by the second smart device and sending the hotspot information of the second WIFI hotspot to the second smart device through the protocol communication channel, the step further includes: In response to the user's login operation, a hotspot configuration window is opened to receive hotspot information of a second WIFI hotspot input by the user through the hotspot configuration window.

4. The method for networking smart devices according to claim 3, characterized in that: The hotspot information includes the name of the second WIFI hotspot, When receiving the hotspot information of the second WIFI hotspot input by the user through the hotspot configuration window, a second WIFI hotspot password corresponding to the second WIFI hotspot name is generated according to the second WIFI hotspot name.

5. The method for networking smart devices according to claim 1, characterized in that: A preset switching time is also set. If the number of second smart devices fails to reach the preset device value within the preset switching time, an interactive window pops up to prompt the number and identifiers of second smart devices that have currently returned the network disconnection callback signal, and / or an interactive window pops up to prompt the number and identifiers of second smart devices that have not currently returned the network disconnection callback signal.

6. The method for networking smart devices according to claim 5, characterized in that: If the number of the second smart devices fails to reach the preset device value within the preset switching time, an interactive window will pop up to prompt whether to switch the WIF hotspot immediately. In response to the user's switching confirmation operation, the router will be controlled to close the first WIFI hotspot and restart to issue the second WIFI hotspot.

7. A smart device networking system, characterized in that: comprising a router, a first smart device and a plurality of second smart devices; The router is used to issue a first WIFI hotspot; The first smart device connects to the first WIFI hotspot of the local area network where the second smart device is located, sends a protocol communication broadcast to receive a broadcast response signal fed back by the second smart device, and sends hotspot information of the second WIFI hotspot to the second smart device through the protocol communication channel; receives a network disconnection callback signal returned by the second smart device, counts the number of second smart devices according to the network disconnection callback signal, and if the number of second smart devices is consistent with a preset device value, controls the router to close the first WIFI hotspot and restarts to send the second WIFI hotspot; The second smart device is connected to the first WIFI hotspot, receives the protocol communication broadcast sent by the first smart device, establishes protocol communication with the first smart device, and feeds back a broadcast response signal to the first smart device through the protocol communication channel; receives the hotspot information of the second WIFI hotspot sent by the first smart device through the protocol communication channel, returns a network disconnection callback signal to the first smart device, disconnects from the first WIFI hotspot, and disconnects from the protocol communication with the first smart device; searches for the second WIFI hotspot, and connects to the second WIFI hotspot according to the hotspot information of the second WIFI hotspot.

8. A smart device comprising a display, a processor and a memory; characterized in that: The memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the smart device networking method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the smart device networking method according to any one of claims 1 to 6 is implemented.