Configuration system for quick connection router
UDP multicast packet technology solves the problems of low wireless network configuration efficiency, security issues, and compatibility limitations, achieving fast and secure device connection, and is suitable for diverse application scenarios.
Patent Information
- Application Number
- CN202411140386.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing wireless network configuration technology suffers from low configuration efficiency, security issues, compatibility limitations and poor user experience in large-scale deployment and diverse application scenarios, and cannot meet the needs for fast, safe and simple device connection.
UDP multicast data packets are used to generate and send multicast data packets through the terminal. The parsing module receives and parses the data. The router automatically connects to the wireless network, realizes automatic configuration of SSID and password, and uses multicast address and XOR verification. Technology ensures safety and efficiency.
It achieves fast, stable and secure wireless network connection, improves configuration efficiency and security, reduces device connection failure rate, and is suitable for a wide range of devices and operating systems.
Smart Images

Figure BDA0005000611520000051 
Figure BDA0005000611520000061
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of wireless network configuration, and in particular to a configuration system for quickly connecting a router. Background Art
[0002] With the rapid development of mobile Internet and IoT technologies, more and more devices need to be connected to wireless networks. In the traditional wireless network configuration process, it is usually necessary to manually enter the SSID and service set identifier (SSID) and password of the wireless network. This method is not only time-consuming and labor-intensive, but also for large-scale deployment of IoT devices, it is obviously impractical to manually configure each device.
[0003] In order to simplify the process of connecting devices to wireless networks, some automated configuration solutions have been proposed. For example, Wi-Fi Protected Setup (WPS) is a common wireless network configuration technology that helps devices quickly connect to wireless networks through physical buttons or PIN codes. Although WPS provides a certain degree of convenience, it also has some limitations, such as security issues, configuration complexity, and limited scope of application.
[0004] In addition, there are some configuration methods based on QR Code, where users can automatically configure wireless network connections by scanning QR codes. This method solves the problem of manual input to a certain extent, but it is still not applicable to devices that do not have cameras or cannot scan QR codes.
[0005] In recent years, with the advancement of wireless network technology and the diversification of application scenarios, more demand scenarios based on wireless network configuration have emerged. For example, in the fields of industrial automation, smart home, smart city, etc., a large number of devices need to be connected to the wireless network quickly and securely. Existing wireless network configuration technologies often have the following problems in these scenarios:
[0006] Inefficient configuration: Manual or semi-automatic configuration cannot meet the needs of large-scale deployment;
[0007] Security issues: Existing automatic configuration methods may have security risks, such as the risk of information leakage, such as the wireless network configuration method and wireless network device disclosed in publication number CN104683994A;
[0008] Compatibility limitations: Some configuration methods are only applicable to certain types of devices or operating systems, limiting their wide application;
[0009] Poor user experience: The configuration process is complicated and difficult for users to master, resulting in a high device connection failure rate.
[0010] Therefore, a new wireless network configuration method is needed to solve the above problems and realize fast, safe and convenient wireless network connection configuration of devices. The present invention is proposed to solve these problems. Summary of the invention
[0011] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a configuration system for quickly connecting routers.
[0012] The technical solution adopted by the present invention to solve the technical problem is: a configuration system for quickly connecting a router includes:
[0013] Use terminal: used to generate UDP multicast data packets and send UDP multicast data packets to the parsing module;
[0014] Parsing module: used to receive UDP multicast data packets and parse the data, and send the successfully parsed data to the router;
[0015] Router: Receives parsed UDP multicast data and connects the terminal to the router.
[0016] Use a terminal (such as a mobile phone) to send a UDP multicast packet with a specified port number. After receiving the data packet, the parsing module parses it to obtain the correct SSID name and the corresponding password, and then the router automatically connects to the SSID.
[0017] UDP multicast data packets are constructed based on multicast addresses and follow the sending method and value range of the multicast addresses.
[0018] The multicast address is a reserved Class D address, and its value range is 224.0.0.0–239.255.255.255.
[0019] Each of the UDP multicasts includes 4 fields, each field is one byte.
[0020] The first field takes the value 224, and sends hexadecimal 0xe0, which is the multicast address feature code;
[0021] The second field is the sending sequence number of the data packet, with a value range of 0–255;
[0022] The third field sends the specified data, with a value range of 0–255;
[0023] The fourth field sends the specified data, with a value range of 0–255.
[0024] When sending data using the terminal, the hexadecimal format is used.
[0025] When using the terminal to send UDP multicast data packets to the parsing module, the flag entry interpretation is followed. The sending process is as follows:
[0026] First send 3 feature packets at the parsing entry;
[0027] The length data packet is sent after the feature packet. The third field of the length data packet is filled with the SSID length a, and the fourth field is filled with the PWD length b. The total length of the sent data is max(a,b)+5. The maximum length of the SSID is 16 characters, and the maximum length of the PSW is 32 characters (the actual maximum length available is 60 characters).
[0028] Execute CRC verification;
[0029] The above data packets are sent in a cyclic manner until the parsing module completes the parsing. When performing CRC verification, XOR is used for continuous verification;
[0030] The fifth data packet starts to send data. The third byte of each data packet sends the ASCII code value c of SSID, and the fourth byte sends the ASCII code value d of PWD.
[0031] If the SSID or PWD is sent, fill the rest with 0, for example: if (a>b);
[0032] The fourth field of the 5+bth data packet is automatically filled with 0.
[0033] The initial value of Crc is 0, and each data packet ends with Crc = Ccr^c^d;
[0034] After all SSIDs and PWDs are sent, a CRC packet is sent;
[0035] The second field of the CRC packet is 64, which is sent as 0x40 in hexadecimal.
[0036] The third field sends the CRC value;
[0037] The fourth field sends CRC 0x01(byte)0x5e 0x40.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] This application provides an effective interactive method to achieve the purpose of efficient and fast connection to the router;
[0040] This application achieves the purpose of connecting the module to the specified router in a relatively stable and secure way in a relatively short period of time;
[0041] This application adopts UDP multicast, the data packet length is small, the number of data packets sent is small, the success rate of data parsing is high, the time consumption is short, and the error rate is low. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Example 1
[0044] The configuration system of the fast connection router includes using a terminal: for generating a UDP multicast data packet and sending the UDP multicast data packet to a parsing module;
[0045] Parsing module: used to receive UDP multicast data packets and parse the data, and send the successfully parsed data to the router;
[0046] Router: Receives parsed UDP multicast data and connects the terminal to the router.
[0047] Considering the security of interactive data, all data sent in this application are encrypted and sent in multicast mode.
[0048] UDP multicast data packets are constructed based on multicast addresses and follow the sending method and value range of the multicast addresses.
[0049] The multicast address is a reserved Class D address, and its value range is 224.0.0.0–239.255.255.255.
[0050] Each of the UDP multicasts includes 4 fields, each field is one byte.
[0051] The first field takes the value 224, and sends hexadecimal 0xe0, which is the multicast address feature code;
[0052] The second field is the sending sequence number of the data packet, with a value range of 0–255;
[0053] The third field sends the specified data, with a value range of 0–255;
[0054] The fourth field sends the specified data, with a value range of 0–255.
[0055] When sending data using the terminal, the hexadecimal format is used.
[0056] When using the terminal to send UDP multicast data packets to the parsing module, the flag entry interpretation is followed. The sending process is as follows:
[0057] First send 3 feature packets at the parsing entry;
[0058] After the feature packet, a length data packet is sent. The third field of the length data packet is filled with the SSID length a, and the fourth field is filled with the PWD length b. The total length of the sent data is max(a,b)+5. The maximum length of the SSID is 16 characters, and the maximum length of the PSW is 32 characters (the actual maximum length available is 60 characters).
[0059] Execute CRC verification; when executing CRC verification, use XOR method to continuously verify;
[0060] The fifth data packet starts to send data. The third byte of each data packet sends the ASCII code value c of SSID, and the fourth byte sends the ASCII code value d of PWD.
[0061] If the SSID or PWD is sent, fill the rest with 0, for example: if (a>b);
[0062] The fourth field of the 5+bth data packet is automatically filled with 0.
[0063] The initial value of Crc is 0, and each data packet ends with Crc = Ccr^c^d;
[0064] After all SSIDs and PWDs are sent, a CRC packet is sent;
[0065] The second field of the CRC packet is 64, which is sent as 0x40 in hexadecimal.
[0066] The third field sends the CRC value;
[0067] The fourth field sends CRC 0x01(byte)0x5e 0x40.
[0068] The above data packets are sent in a cyclic manner until the parsing module completes the parsing.
[0069] Example 2
[0070] At the beginning of the configuration, three signature packets are sent:
[0071]
[0072] Send SSID length packet and PSW length:
[0073] 0xe0 0x03 SSID length PSW length
[0074] The maximum length of an SSID is 16 characters, and the maximum length of a PSW is 32 characters.
[0075] Start sending SSID and PSW characters:
[0076] 0xe0 0x04 AB
[0077] The last two bytes of the multicast address of each data packet are represented as SSID and PSW characters, where A is the ASCII value of SSID and B is the ASCII value of PSW. If the lengths are not equal, the shorter one is padded with 0x00.
[0078] Start sending crc verification code:
[0079] 0xe0 0x40 crc Crc^0x01^(byte)0x5e^0x40
[0080] For example: SSID is "TP-LINK_hys", PSW is "12345678", and the multicast address is as follows:
[0081]
[0082] The above descriptions are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention specification under the inventive concept of the present invention, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A configuration system for quickly connecting a router, characterized in that: include Use terminal: used to generate UDP multicast data packets and send UDP multicast data packets to the parsing module; Parsing module: used to receive UDP multicast data packets and parse the data, and send the successfully parsed data to the router; Router: Receives parsed UDP multicast data and connects the terminal to the router.
2. The configuration system for fast connection router according to claim 1, characterized in that: UDP multicast data packets are constructed based on multicast addresses and follow the sending method and value range of the multicast addresses.
3. The configuration system for fast connection router according to claim 2, characterized in that: The multicast address is a Class D address, and the value range is 224.0.0.0–239.255.255.
255.
4. The configuration system for fast connection router according to claim 1, characterized in that: Each of the UDP multicasts includes 4 fields, each field is one byte.
5. The configuration system for fast connection router according to claim 1, characterized in that: The first field has a value of 224, which is the multicast address feature code 0xe0; The second field is the sending sequence number of the data packet, with a value range of 0–255; The third field sends the specified data, with a value range of 0–255; The fourth field sends the specified data, with a value range of 0–255.
6. The configuration system for fast connection router according to claim 5, characterized in that: When sending data using the terminal, the hexadecimal format is used.
7. The configuration system for fast connection router according to claim 5, characterized in that: When using the terminal to send UDP multicast data packets to the parsing module, the flag entry interpretation is followed. The sending process is as follows: First send 3 feature packets at the parsing entry; The length data packet is sent after the feature packet; Execute CRC verification; The above data packets are sent in a cyclic manner until the parsing module completes the parsing.
8. The configuration system for fast connection router according to claim 7, characterized in that: The third field of the length data packet is filled with the SSID length a, and the fourth field is filled with the PWD length b. The total length of the sent data is max(a,b)+5. The maximum length of the SSID is 16 characters, and the maximum length of the PSW is 32 characters.
9. The configuration system for fast connection router according to claim 7, characterized in that: When executing CRC verification, XOR method is used for continuous verification; The fifth data packet starts to send data. The third byte of each data packet sends the ASCII code value c of SSID, and the fourth byte sends the ASCII code value d of PWD. If the SSID or PWD has been sent, fill the rest with 0; The fourth field of the 5+bth data packet is automatically filled with 0.
10. The configuration system for fast connection router according to claim 9, characterized in that: The initial value of Crc is 0, and each data packet ends with Crc = Ccr^c^d; After all SSIDs and PWDs are sent, a CRC packet is sent; The second field of the CRC packet is sent as 0x40; The third field sends the CRC value; The fourth field sends CRC 0x01(byte)0x5e 0x40.
Citation Information
Patent Citations
Method, device and system for secure access of intelligent device to wireless network
CN106412886A
Network access method and system of intelligent device
CN106488447A
Network connection configuration methods and electronic devices
CN106973124A
Network access method and system
CN108040355A
