Wireless network configuration method, system, device and medium
By using the user interaction function of wired connections and distribution equipment in wireless network camera distribution network, the existing distribution network methods are solved, and a more efficient and secure distribution process is achieved.
Patent Information
- Application Number
- CN202210974135.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-15
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-08-15
AI Technical Summary
The existing wireless network camera distribution method is troublesome to operate, is inefficient, is susceptible to external interference, is unfriendly to PC users, and has the risk of privacy leakage.
The distribution network device is wired to connect with the distribution network device, obtain and display the WIFI list, obtain the target WiFi information selected by the user, and send the information to the distribution network device through wired communication to connect to the target WiFi.
The distribution process of equipment to be distributed is simplified, the distribution efficiency is improved, the impact of external interference is reduced, and user privacy is protected through wired connections.
Smart Images

Figure CN115484627B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network connection, and in particular to a wireless network configuration method, a wireless network configuration system, a wireless network configuration device and a computer storage medium. Background Art
[0002] One of the key functions for the normal operation of a network camera is networking, one is wired and the other is wireless. When wireless networking is used, taking WiFi (Wireless Fidelity) as an example, users need to configure SSID (Service Set Identifier) and the corresponding password for the network camera. At present, the commonly used network configuration methods for network cameras in the industry include QR code scanning, WiFi air interface packet capture, BLE (Bluetooth Low Energy) connection, AP (Access Point) mode, audio playback, etc. The existing network camera network configuration methods have the following defects: cumbersome operation and low efficiency; susceptible to external interference; the network configuration method is not friendly to PC (Personal Computer) users, cannot be operated on the PC side, and often relies on mobile phones to operate; there is a risk of information leakage to the outside, and it is difficult to protect user privacy. Summary of the invention
[0003] The main purpose of the present invention is to provide a wireless network configuration method, a wireless network configuration system, a wireless network configuration device and a computer storage medium, aiming to solve the technical problems in the prior art that the network configuration operation of the networked equipment is cumbersome and inefficient, and the network configuration security is low.
[0004] To achieve the above object, the present invention provides a wireless network configuration method, which is applied to a network distribution device and includes the following steps:
[0005] Make a wired connection with the device to be configured and establish wired communication;
[0006] Get and display the WIFI list;
[0007] Obtain target WIFI information input by the user after selecting one or more target WIFIs in the WIFI list;
[0008] The target WiFi information is sent to the device to be networked through the wired communication, so that the device to be networked is connected to the target WiFi based on the target WiFi information.
[0009] Furthermore, after the step of establishing a wired connection with the network device to be configured and establishing wired communication, the step further includes:
[0010] Receiving identification information sent by the to-be-configured network device through the wired communication;
[0011] Display a list of devices to be networked based on the identification information;
[0012] Determine one or more target network configuration devices selected by the user in the device list;
[0013] After the step of obtaining the target WIFI information input by the user after selecting the target WIFI in the WIFI list, the following steps are included:
[0014] The target WiFi information is sent to the target network device to be configured through the wired communication, so that the target network device to be configured is connected to the target WiFi based on the target WiFi information.
[0015] Furthermore, the step of obtaining and displaying the WIFI list includes:
[0016] Receive the first WIFI list obtained and sent by the network device to be configured for display;
[0017] When the received first WIFI list is empty, the second WIFI list of the network configuration device is obtained for display.
[0018] Furthermore, before the step of sending the target WiFi information to the to-be-connected network device through the wired communication, the step further includes:
[0019] If the target WiFi is the connected WiFi of the network distribution device, the WiFi information of the connected WiFi is obtained and used as the target WiFi information.
[0020] In addition, to achieve the above-mentioned purpose, the present invention also provides a wireless network configuration system, the wireless network configuration system includes a network configuration device and a network device to be configured, the network configuration device and the network device to be configured are connected via a wired connection and establish wired communication;
[0021] The network distribution device obtains and displays a WIFI list, and obtains target WIFI information input by a user after selecting one or more target WIFIs in the WIFI list;
[0022] The network configuration device sends the target WiFi information to the network configuration device through the wired communication;
[0023] The device to be networked is connected to the target WiFi based on the target WiFi information received from the networked device.
[0024] Furthermore, the network distribution device and one or more of the network distribution devices to be distributed are connected via a wired connection and establish wired communication;
[0025] The device to be networked sends identification information to the networked device through the wired communication;
[0026] The network configuration device displays a list of devices to be configured based on the identification information, determines one or more target devices to be configured selected by the user in the device list, and sends the target WiFi information to the target devices to be configured through the wired communication;
[0027] The target network device to be configured is connected to the target WiFi based on the target WiFi information.
[0028] Furthermore, the device to be networked sends the first WIFI list to the networked device through the wired communication;
[0029] The network configuration device displays the received first WiFi list, and when the first WiFi list is empty, obtains and displays the second WiFi list of the network configuration device.
[0030] Furthermore, if the target WiFi is a connected WiFi of the network configuration device, the network configuration device obtains WiFi information of the connected WiFi and uses it as the target WiFi information.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a wireless network configuration device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the wireless network configuration method as described in any one of the above items.
[0032] In addition, to achieve the above objectives, the present invention further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the wireless network configuration method as described in any one of the above items are implemented.
[0033] The wireless network configuration method, wireless network configuration system, wireless network configuration device and computer storage medium proposed in the present invention are applied to a network configuration device, which performs wired connection with a network device to be configured and establishes wired communication; obtains and displays a WIFI list; obtains target WIFI information input by a user after selecting one or more target WiFi in the WIFI list; and sends the target WiFi information to the network device to be configured through the wired communication, so that the network device to be configured connects to the target WiFi based on the target WiFi information.
[0034] In the application, a network configuration device such as a PC is used to quickly configure the devices to be configured, such as network cameras, and the user interaction function of the network configuration device is used to fill the missing interaction capabilities of the devices to be configured. The network configuration device obtains a list of WiFi networks that the devices to be configured can connect to and provides user selection and confirmation, and transmits the WiFi information of the target WiFi to the devices to be configured through wired communication, so that it will not be affected by surrounding noise and light, and the configuration and networking of the devices to be configured can be completed simply and conveniently, thereby improving the user's network configuration efficiency for the devices to be configured. At the same time, due to the use of wired connection, the SSID and password will not be leaked during the air transmission of data, effectively protecting user privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic diagram of the structure of the hardware operation of the terminal device involved in the embodiment of the present invention;
[0036] Figure 2 It is a flowchart of an embodiment of a wireless network configuration method of the present invention;
[0037] Figure 3 It is a flowchart of another embodiment of a wireless network configuration method of the present invention;
[0038] Figure 4 It is a timing diagram of an embodiment of a wireless network configuration method of the present invention;
[0039] Figure 5 It is a system schematic diagram of an embodiment of a wireless network configuration system of the present invention.
[0040] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0042] like Figure 1 As shown, Figure 1 It is a structural diagram of the hardware operating environment of the terminal device involved in the embodiment of the present invention.
[0043] It should be noted that Figure 1 The terminal device of the embodiment of the present invention can be a storage device based on NAND flash as a storage medium, and can execute the wireless network configuration method provided by the present invention. The terminal device can be a mobile terminal, a data storage control terminal, a PC or a portable computer.
[0044] like Figure 1As shown, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a storage device 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The storage device 1005 may be a non-volatile storage device (such as a Flash storage device), a high-speed RAM storage device, or a stable storage device (non-volatile memory), such as a disk storage device. The storage device 1005 may also be a storage device independent of the aforementioned processor 1001.
[0045] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0046] like Figure 1 As shown, the storage device 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program. The operating system is a program that manages and controls the hardware and software resources of the sample terminal device and supports the operation of the computer program and other software or programs.
[0047] exist Figure 1 In the terminal device shown, the user interface 1003 is mainly used to communicate data with each terminal; the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; and the processor 1001 can be used to call the computer program stored in the storage device 1005 and perform the following operations:
[0048] Make a wired connection with the device to be configured and establish wired communication;
[0049] Get and display the WIFI list;
[0050] Obtain target WIFI information input by the user after selecting one or more target WIFIs in the WIFI list;
[0051] The target WiFi information is sent to the device to be networked through the wired communication, so that the device to be networked is connected to the target WiFi based on the target WiFi information.
[0052] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:
[0053] After the step of establishing a wired connection with the network device to be configured and establishing wired communication, the method further includes:
[0054] Receiving identification information sent by the to-be-configured network device through the wired communication;
[0055] Display a list of devices to be networked based on the identification information;
[0056] Determine one or more target network configuration devices selected by the user in the device list;
[0057] After the step of obtaining the target WIFI information input by the user after selecting the target WIFI in the WIFI list, the following steps are included:
[0058] The target WiFi information is sent to the target network device to be configured through the wired communication, so that the target network device to be configured is connected to the target WiFi based on the target WiFi information.
[0059] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:
[0060] The step of obtaining and displaying the WIFI list includes:
[0061] Receive the first WIFI list obtained and sent by the network device to be configured for display;
[0062] When the received first WIFI list is empty, the second WIFI list of the network configuration device is obtained for display.
[0063] Further, the processor 1001 may call a computer program stored in the storage device 1005, and further perform the following operations:
[0064] Before the step of sending the target WiFi information to the to-be-connected network device through the wired communication, the method further includes:
[0065] If the target WiFi is the connected WiFi of the network distribution device, the WiFi information of the connected WiFi is obtained and used as the target WiFi information.
[0066] At present, in the existing network configuration methods for devices such as network cameras,
[0067] QR code scanning means converting the SSID (WiFi name) and password into a QR code, and automatically setting the SSID and password after scanning the network device to be configured, such as a network camera. The disadvantage of this method is that it is easily affected by changes in ambient light and camera focal length.
[0068] WiFi air interface packet capture means that the App (Application) broadcasts the SSID and password in a specific format, and the device monitors the WiFi data and parses the SSID and password. This method is easily interfered by the surrounding WiFi signals.
[0069] BLE connection means that the mobile phone App connects to the device via BLE and transmits the SSID and password to the device via BLE. This method requires the device to be networked to add a Bluetooth module to support BLE communication.
[0070] AP mode means that the mobile phone needs to connect to the AP of the device to be configured, and then broadcast the SSID and password to the device to be configured via UDP (User Data Protocol), and then the mobile phone needs to switch to the same WiFi. This method is more troublesome to operate.
[0071] The audio playback method means that the App converts the SSID and password into binary data and then into audio of a specific frequency, and plays it to the device to be configured. After the device receives the audio through the microphone, it converts it into the target SSID and password, and then connects to WiFi. This method is easily affected by external noise.
[0072] The above network configuration methods for the devices to be configured are not friendly to PC users and often rely on mobile phones for operation. In addition, there are the following defects: cumbersome operation, easy to be interfered by the outside world, the network configuration method is not friendly to PC users, it cannot be operated on the PC side, and there is a risk of information leakage to the outside.
[0073] Please refer to Figure 2 , Figure 2 The figure is a flow chart of an embodiment of a wireless network configuration method of the present invention.
[0074] In this embodiment, the wireless network configuration method of the present invention includes:
[0075] Step S10, establish a wired connection with the device to be networked and establish wired communication.
[0076] Step S20, obtaining and displaying a WIFI list.
[0077] Step S30, obtaining target WIFI information input by the user after selecting one or more target WiFi in the WIFI list.
[0078] Step S40: sending the target WiFi information to the device to be networked through the wired communication, so that the device to be networked connects to the target WiFi based on the target WiFi information.
[0079] In this embodiment, the network configuration device is a network camera IPCamera, which can play audio and video in real time through the network, or other devices with wired connection and communication functions, but without user interaction functions, and thus cannot independently complete network configuration. The corresponding network configuration device is a PC, or other devices with wired connection and communication functions, and with user interaction functions, which can independently complete network configuration. The wired connection is a USB (Universal Serial Bus) connection or a serial port connection, etc. Preferably, in this embodiment, the USB communication protocol of HID (Human Interface Device) is used to interact without installing a driver. Among them, networking refers to the process of network device connection routing, and network configuration refers to the process of externally providing SSID and password to wireless devices.
[0080] Reference Figure 4 , Figure 4 It is a timing diagram of an embodiment of a wireless network configuration method of the present invention. In this embodiment, a wired connection is established between the network configuration device and the network device to be configured, and wired communication is established, such as a user connects a USB cable to a computer to establish USB communication. After scanning and opening the HID device and receiving the result of successful opening feedback from the network device to be configured, the network configuration device obtains and displays the WIFI list, so that the user can select one or more target WiFi in the WiFi list and enter the target WIFI information corresponding to the one or more target WiFi. The WiFi information includes SSID and password, and then the target WIFI information is sent to the network device to be configured through HID, so that the network device to be configured connects to the network according to the received WiFi information, and connects to the corresponding one or more target WiFi based on the target WiFi information.
[0081] In this embodiment, the wireless network configuration method is applied to a network configuration device, which is wired connected to the network device to be configured and establishes wired communication; obtains and displays a WIFI list; obtains target WIFI information entered by the user after selecting one or more target WiFi in the WIFI list; and sends the target WiFi information to the network device to be configured through the wired communication, so that the network device to be configured connects to the target WiFi based on the target WiFi information.
[0082] In this embodiment, a network configuration device such as a PC is used to quickly configure a device to be configured, such as a network camera, and the user interaction function of the network configuration device is used to fill the missing interaction capability of the device to be configured. The network configuration device obtains a list of WiFi networks that the device to be configured can connect to and provides the user with a selection for confirmation, and transmits the WiFi information of the target WiFi network to the device to be configured through wired communication, so that it will not be affected by surrounding noise and light, and the configuration and networking of the device to be configured can be completed simply and conveniently, thereby improving the user's network configuration efficiency for the device to be configured. At the same time, due to the use of a wired connection, the SSID and password will not be leaked during the air transmission of data, effectively protecting the user's privacy.
[0083] Reference Figure 3 , Figure 3 1 is a flow chart of another embodiment of a wireless network configuration method of the present invention. In this embodiment, after the step of establishing a wired connection with the network device to be configured and establishing wired communication, it also includes:
[0084] Step A: receiving identification information sent by the network device to be configured through the wired communication;
[0085] Step B: Displaying a list of devices to be networked based on the identification information;
[0086] Step C: determining one or more target network configuration devices selected by the user in the device list;
[0087] After the step of obtaining the target WIFI information input by the user after selecting the target WIFI in the WIFI list, the following steps are included:
[0088] Step D: Sending the target WiFi information to the target network device through the wired communication, so that the target network device is connected to the target WiFi based on the target WiFi information.
[0089] In this embodiment, a network configuration device can establish wired communication with multiple network devices to be configured through multiple wired connections. After establishing wired communication, the network configuration device receives identification information sent by each network device to be configured through wired communication, and displays each identification information in the device list for the user to select and determine one or more target network devices to be configured in the device list, and then sends the target WiFi information to the one or more target network devices to be configured through wired communication, thereby configuring the one or more target network devices to be configured to connect to the same WiFi. Of course, different WiFi can also be configured for each target network device to be configured, and different WiFi information can be sent to the corresponding target network device to be configured.
[0090] Optionally, the step of obtaining and displaying the WIFI list includes:
[0091] Receive the first WIFI list obtained and sent by the network device to be configured for display;
[0092] When the received first WIFI list is empty, the second WIFI list of the network configuration device is obtained for display.
[0093] There are two ways to get the WiFi list. One is to get the WiFi list consisting of the WiFi that can be connected from the device to be configured, and transmit it to the configuration device through the HID wired connection for display. The other is to get it directly from the configuration device such as a PC or desktop. In this case, the PC needs to have and turn on the wireless network card. Among them, the default is to get the WiFi list from the device to be configured. When an empty list is obtained from the device to be configured, choose to get the WiFi list from the PC of the configuration device. The reason for setting the order in this way is that the WIFI search capability of the device to be configured is smaller than that of the configuration device. If the WiFi list is obtained from the configuration device by default, it may cause the WiFi corresponding to the WiFi information of the device to be configured to be unable to search and connect.
[0094] Optionally, before the step of sending the target WiFi information to the to-be-connected network device through the wired communication, the step further includes:
[0095] If the target WiFi is the connected WiFi of the network distribution device, the WiFi information of the connected WiFi is obtained and used as the target WiFi information.
[0096] When obtaining the target WiFi information, in addition to the target WiFi information input by the user, the target WiFi information can also be actively filled in. When the target WiFi selected by the user happens to be a WiFi in the connected WiFi of the network configuration device, the WiFi information of the connected WiFi can be directly obtained and used as the target WiFi information, thereby further saving the user's input operation and improving the network configuration efficiency.
[0097] Please refer to Figure 5 , Figure 5 A system diagram of an embodiment of a wireless network configuration system of the present invention.
[0098] In this embodiment, the wireless network configuration system includes a network configuration device and a network device to be configured, and the network configuration device and the network device to be configured are connected via a wire and establish wired communication;
[0099] The network distribution device obtains and displays a WIFI list, and obtains target WIFI information input by a user after selecting one or more target WIFIs in the WIFI list;
[0100] The network configuration device sends the target WiFi information to the network configuration device through the wired communication;
[0101] The device to be networked is connected to the target WiFi based on the target WiFi information received from the networked device.
[0102] In this embodiment, the network configuration device is a network camera IPCamera, which can play audio and video in real time through the network, or other devices with wired connection and communication functions, but without user interaction functions, and thus cannot independently complete network configuration. The corresponding network configuration device is a PC, or other devices with wired connection and communication functions, and with user interaction functions, which can independently complete network configuration. The wired connection is a USB connection or a serial port connection, etc. Preferably, in this embodiment, the USB communication protocol of HID is used to interact without installing a driver. Among them, networking refers to the process of network device connection routing, and network configuration refers to the process of externally providing SSID and password to wireless devices.
[0103] Reference Figure 4 , Figure 4 It is a timing diagram of an embodiment of a wireless network configuration method of the present invention. In this embodiment, a wired connection is established between the network configuration device and the network device to be configured, and wired communication is established, such as a user connects a USB cable to a computer to establish USB communication. After scanning and opening the HID device and receiving the result of successful opening feedback from the network device to be configured, the network configuration device obtains and displays the WIFI list, so that the user can select one or more target WiFi in the WiFi list and enter the target WIFI information corresponding to the one or more target WiFi. The WiFi information includes SSID and password, and then the target WIFI information is sent to the network device to be configured through HID, so that the network device to be configured connects to the network according to the received WiFi information, and connects to the corresponding one or more target WiFi based on the target WiFi information.
[0104] In this embodiment, a network configuration device such as a PC is used to quickly configure a device to be configured, such as a network camera, and the user interaction function of the network configuration device is used to fill the missing interaction capability of the device to be configured. The network configuration device obtains a list of WiFi networks that the device to be configured can connect to and provides the user with a selection for confirmation, and transmits the WiFi information of the target WiFi network to the device to be configured through wired communication, so that it will not be affected by surrounding noise and light, and the configuration and networking of the device to be configured can be completed simply and conveniently, thereby improving the user's network configuration efficiency for the device to be configured. At the same time, due to the use of a wired connection, the SSID and password will not be leaked during the air transmission of data, effectively protecting the user's privacy.
[0105] Optionally, the network configuration device and one or more of the devices to be configured are connected via a wired connection and establish wired communication;
[0106] The to-be-networked device sends identification information to the network-connected device through the wired communication;
[0107] The network configuration device displays a list of devices to be configured based on the identification information, determines one or more target devices to be configured selected by the user in the device list, and sends the target WiFi information to the target devices to be configured through the wired communication;
[0108] The target network device to be configured is connected to the target WiFi based on the target WiFi information.
[0109] In this embodiment, a network configuration device can establish wired communication with multiple network devices to be configured through multiple wired connections. After establishing wired communication, the network configuration device receives identification information sent by each network device to be configured through wired communication, and displays each identification information in the device list for the user to select and determine one or more target network devices to be configured in the device list, and then sends the target WiFi information to the one or more target network devices to be configured through wired communication, thereby configuring the one or more target network devices to be configured to connect to the same WiFi. Of course, different WiFi can also be configured for each target network device to be configured, and different WiFi information can be sent to the corresponding target network device to be configured.
[0110] Optionally, the device to be networked sends a first WIFI list to the networked device through the wired communication;
[0111] The network configuration device displays the received first WiFi list, and when the first WiFi list is empty, obtains and displays the second WiFi list of the network configuration device.
[0112] There are two ways to get the WiFi list. One is to get the WiFi list consisting of the WiFi that can be connected from the device to be configured, and transmit it to the configuration device through the HID wired connection for display. The other is to get it directly from the configuration device such as a PC or desktop. In this case, the PC needs to have and turn on the wireless network card. Among them, the default is to get the WiFi list from the device to be configured. When an empty list is obtained from the device to be configured, choose to get the WiFi list from the PC of the configuration device. The reason for setting the order in this way is that the WIFI search capability of the device to be configured is smaller than that of the configuration device. If the WiFi list is obtained from the configuration device by default, it may cause the WiFi corresponding to the WiFi information of the device to be configured to be unable to search and connect.
[0113] Optionally, if the target WiFi is a connected WiFi of the network configuration device, the network configuration device obtains WiFi information of the connected WiFi and uses it as the target WiFi information.
[0114] When obtaining the target WiFi information, in addition to the target WiFi information input by the user, the target WiFi information can also be actively filled in. When the target WiFi selected by the user happens to be a WiFi in the connected WiFi of the network configuration device, the WiFi information of the connected WiFi can be directly obtained and used as the target WiFi information, thereby further saving the user's input operation and improving the network configuration efficiency.
[0115] In this embodiment, the network configuration device and the network device to be configured are connected via a USB cable in a wired connection, and the HID protocol is used to transmit commands. The computer program of the network configuration device is a network configuration application, which runs on a PC or desktop computer of Windows and macOS, or runs on a mobile phone, tablet or other device, and is connected to the network device to be configured, such as a network camera, through the USB of the mobile phone or tablet.
[0116] After the computer program of the network configuration device is running, it will enumerate and traverse the devices to be configured and display the device list for the user to choose. Multiple wired devices to be configured can be selected at the same time, and multiple devices to be configured can be configured to the same WiFi at the same time.
[0117] After selecting and confirming the device to be configured, the configuration device will display the obtained WiFi list. There are two ways to obtain the WiFi list. One is to obtain the WiFi list consisting of the WiFi that can be connected from the device to be configured, and transmit it to the configuration device through the HID wired connection for display. The other is to obtain it directly from the configuration device such as a PC or desktop. In this case, the PC needs to have and turn on the wireless network card. Among them, the default is to obtain the WiFi list from the device to be configured. After obtaining an empty list from the device to be configured, choose to obtain the WiFi list from the PC of the configuration device. The reason for setting the order in this way is that the WIFI search capability of the device to be configured is smaller than that of the configuration device. If the WiFi list is obtained from the configuration device by default, it may cause the WiFi corresponding to the WiFi information of the device to be configured to be connected to be unable to search and connect.
[0118] After the WiFi list is displayed, the user selects a WiFi and fills in the password to obtain the WiFi information of the corresponding target WiFi. Then, the computer program sends the WiFi information (SSID and password) to the device to be configured via HID. The device to be configured will connect to the target WiFi according to the SSID and password, and send the result of whether the connection is successful back to the computer program.
[0119] Among them, the USB host is a module that comes with the operating system of the network configuration device. USB communication is generated by two parties. One is the USB Host, which can play a control role; the other is the USB Device, which is set at the end of the device to be configured and is controlled to receive host commands.
[0120] The HID analysis module is mainly used to encapsulate and parse HID data. The data length of HID transmission at one time is limited. The length is 8 bytes for low-speed devices, 64 bytes for full-speed devices, and 1024 bytes for high-speed devices. In this embodiment, the amount of data transmitted is around 64 bytes, and a full-speed device is used, so a maximum of 64 bytes are transmitted at one time. Considering that the SSID, password, and command value added together may exceed 64 bytes, the transmission of the SSID and password is actually divided into two commands, one for transmitting the SSID and the other for transmitting the password. After the two commands are transmitted, the device to be configured will scan the surrounding WiFi list through the WiFi module and connect to the WiFi of the specified SSID. In this embodiment, the command for setting the SSID is shown in Table 1, and the command for setting the password is shown in Table 2:
[0121] Table 1:
[0122]
[0123]
[0124] Table 2:
[0125]
[0126]
[0127] In this embodiment, the WiFi information of the device to be networked is set by a preset computer program, which is simple to operate and does not require the installation of any driver. It also supports multiple devices to be networked at the same time, without the need to operate one by one, which greatly saves user time and improves network configuration efficiency. Since it is physically connected through a USB data cable, it effectively avoids the risk of being susceptible to external interference and leaking information to the outside, effectively protects user network information, and also meets the needs of users of different network configuration devices to quickly configure the devices to be networked.
[0128] In addition, an embodiment of the present invention further proposes a wireless network configuration device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the wireless network configuration method as described in any one of the above items.
[0129] In addition, an embodiment of the present invention further proposes a computer storage medium, characterized in that a computer program is stored on the computer storage medium, and when the computer program is executed by a processor, the steps of the wireless network configuration method as described in any one of the above items are implemented.
[0130] The steps implemented when the computer program running on the processor is executed may refer to the various embodiments of the wireless network configuration method of the present invention, and will not be described in detail here.
[0131] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0132] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0133] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a computer storage medium (such as a Flash storage device, ROM / RAM, a disk, or an optical disk), including a number of instructions for enabling a controller in a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) for controlling the storage medium to perform data read and write operations to execute the methods described in each embodiment of the present invention.
[0134] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A wireless network configuration method, characterized in that: The wireless network configuration method is applied to a network distribution device, and comprises the following steps: Make a wired connection with the device to be configured and establish wired communication; Get and display the WiFi list; Obtain target WiFi information input by the user after selecting one or more target WiFi in the WiFi list; Sending the target WiFi information to the to-be-connected network device through the wired communication, so that the to-be-connected network device connects to the target WiFi based on the target WiFi information; The step of obtaining and displaying the WiFi list includes: Receive the first WiFi list obtained and sent by the to-be-configured network device for display; When the received first WiFi list is empty, obtain the second WiFi list of the network configuration device for display; The WiFi list of the device to be networked is obtained by default. When an empty list is obtained from the device to be networked, the WiFi list of the networked device is obtained.
2. The wireless network configuration method according to claim 1, characterized in that: After the step of establishing a wired connection with the network device to be configured and establishing wired communication, the method further includes: Receiving identification information sent by the to-be-configured network device through the wired communication; Display a list of devices to be networked based on the identification information; Determine one or more target network configuration devices selected by the user in the device list; After the step of obtaining the target WiFi information input by the user after selecting the target WiFi in the WiFi list, the following steps are included: The target WiFi information is sent to the target network device to be configured through the wired communication, so that the target network device to be configured is connected to the target WiFi based on the target WiFi information.
3. The wireless network configuration method according to claim 1, wherein: Before the step of sending the target WiFi information to the to-be-connected network device through the wired communication, the method further includes: If the target WiFi is a connected WiFi of the network distribution device, WiFi information of the connected WiFi is obtained and used as the target WiFi information.
4. A wireless network configuration system, characterized in that: The wireless network configuration system includes a network configuration device and a network device to be configured, and the network configuration device and the network device to be configured are connected via a wire and establish wired communication; The network configuration device obtains and displays a WiFi list, and obtains target WiFi information input by a user after selecting one or more target WiFi in the WiFi list; The network configuration device sends the target WiFi information to the network configuration device through the wired communication; The device to be networked connects to the target WiFi based on the target WiFi information received from the networked device; The device to be networked sends the first WiFi list to the networked device through the wired communication; The network configuration device displays the received first WiFi list, and when the first WiFi list is empty, obtains and displays the second WiFi list of the network configuration device; The WiFi list of the device to be networked is obtained by default. When an empty list is obtained from the device to be networked, the WiFi list of the networked device is obtained.
5. The wireless network configuration system according to claim 4, characterized in that: The network distribution device and one or more of the network distribution devices to be distributed are connected by wire and establish wired communication; The to-be-networked device sends identification information to the network-connected device through the wired communication; The network configuration device displays a list of devices to be configured based on the identification information, determines one or more target devices to be configured selected by the user in the device list, and sends the target WiFi information to the target devices to be configured through the wired communication; The target network device to be configured is connected to the target WiFi based on the target WiFi information.
6. The wireless network configuration system according to claim 4, characterized in that: If the target WiFi is a connected WiFi of the network configuration device, the network configuration device obtains WiFi information of the connected WiFi and uses it as the target WiFi information.
7. A wireless network configuration device, characterized in that: The wireless network configuration device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the wireless network configuration method according to any one of claims 1 to 3.
8. A computer storage medium, characterized in that The computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the wireless network configuration method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
WiFi configuration method and device, storage medium and electronic device
CN111314912A
Network configuration method and device, electronic equipment and storage medium
CN112351074A