WIFI Network Configuration Device and Method Based on PWM Timer Capture Mode Decoding

Through the WIFI distribution device and method decoded based on PWM Timer capture method, the SSID and PASSWORD of the encoded router are encrypted using PWM signals to solve the problem that the existing WIFI configuration mode is prone to configuration failure when the wireless network is unstable, and an efficient and secure WIFI distribution network is achieved.

CN115150824BActive Publication Date: 2025-06-03SICHUAN ILINK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210773601.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2025-06-03
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

The existing WIFI configuration mode is prone to fail in the event of a poor wireless network, and data transmission through the serial port may be lost, low efficiency and low security.

Method used

The WIFI distribution device and method that is decoded based on PWM Timer capture method is connected to the WIFI module of the smart hardware through the USB module of the mobile terminal, and the SSID and PASSWORD of the encoded router are encrypted using the PWM signal, and the distribution is completed through PWM Timer capture.

Benefits of technology

Improves the efficiency and security of WIFI configuration, avoids the impact of wireless network instability, and improves the security of data transmission through encrypted encoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115150824B_ABST
    Figure CN115150824B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of rapid network configuration for smart homes, and specifically relates to a WIFI network configuration device and method based on PWM Timer capture decoding. It greatly improves the efficiency of WIFI configuration. The solution includes: during network configuration, the first pin is connected to the data receiving pin of the WIFI module, and the second pin is connected to the ground pin of the WIFI module and grounded. When the mobile terminal turns on the USB power supply, by continuously turning on and off the USB power supply on the mobile terminal, the SSID and PASSWORD of the router are sent to the WIFI module of the smart hardware according to the set PWM signal after encryption coding, and the WIFI module captures and obtains the SSID and PASSWORD of the router through the PWM Timer of the data receiving pin to complete network configuration. The present invention is applicable to the WIFI network configuration of smart hardware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rapid network configuration for smart homes, and particularly to a WIFI network configuration device and method based on PWM Timer capture mode decoding. Background Art

[0002] Smart homes / home appliances are still in the popularization stage at present. Due to the popularization of home WIFI networks, currently, WIFI is generally used to complete the connection with the router and conduct data interaction with the mobile phone / cloud.

[0003] Smart hardware, such as smart sockets, smart air conditioners, and smart air purifiers, do not have a human-computer interaction interface and cannot search / select a specified router and input the connection password interface like a computer. Therefore, the problem of correctly connecting to the router must be solved first.

[0004] Currently, the popular WIFI configuration modes generally include the following two types:

[0005] 1. The smart hardware is in the AP mode, and the mobile phone is in the station mode. After the mobile phone connects to the AP of the smart socket to form a local area network, the mobile phone sends the SSID and password of the router to be connected to the smart socket. After the smart hardware actively connects to the specified router, the connection is completed.

[0006] 2. One-key configuration (smartconfig) mode: The smart hardware is in the promiscuous mode (it can capture all 802.11 frames in the air), listens to all packets in the network, and the mobile phone APP encodes the SSID and password into UDP packets and sends them through broadcast packets or group broadcasts. After the smart hardware receives the UDP packets, it decodes them to obtain the correct SSID and password, and then actively connects to the router with the specified SSID to complete the connection.

[0007] However, the above WIFI configuration modes all use wireless methods for configuration, and it is very easy to fail to configure in the case of poor wireless network.

[0008] The prior art usually uses a method combining hardware and software for WIFI network configuration. The SSID and PASSWORD of the router are formed into serial data with a specific baud rate according to the serial port protocol through hardware plus software and sent to the smart hardware WIFI module to complete the network configuration.

[0009] However, sending data through the serial port is likely to cause data loss and low data sending efficiency, and at the same time, the security of data transmission is not high. Summary of the Invention

[0010] The purpose of the present invention is to provide a WIFI network configuration device and method based on PWM Timer capture mode decoding, which greatly improves the efficiency and security of WIFI configuration.

[0011] The present invention adopts the following technical solutions to achieve the above object. A WIFI network configuration device based on PWM Timer capture decoding is used to perform WIFI network configuration on intelligent hardware through a mobile terminal. The mobile terminal includes a USB module. The network configuration device includes a USB extension cable and a diode. One end of the USB extension cable is respectively connected to the power pin and the ground pin of the USB module of the mobile terminal. The other end of the USB extension cable connected to the power pin of the USB module is connected to the anode of the diode. The cathode of the diode is connected to the first pin. The other end of the USB extension cable connected to the ground pin of the USB module is connected to the second pin. During network configuration, the first pin is connected to the data receiving pin of the WIFI module, and the second pin is connected to the ground pin of the WIFI module and grounded. When the mobile terminal turns on the USB power, the diode conducts. When the USB power is turned off, the diode cuts off. By continuously turning on and off the USB power on the mobile terminal, the SSID and PASSWORD of the router are sent to the WIFI module of the intelligent hardware according to the set PWM signal after encryption coding. The WIFI module captures the SSID and PASSWORD of the router through PWM Timer capture of the data receiving pin to complete network configuration.

[0012] Furthermore, in the set PWM signal, if the ratio of the high level to the low level is the first ratio, it is a PWM signal of binary 0. If the ratio of the high level to the low level is the second ratio, it is a PWM signal of binary 1.

[0013] In the set PWM signal, the ratio of the high level to the low level of the initial PWM signal is the third ratio.

[0014] The first ratio is 1:1, the second ratio is 5:36, and the third ratio is 5:2.

[0015] Furthermore, the network configuration device further includes a first resistor. One end of the first resistor is connected to the cathode of the diode, and the other end is grounded.

[0016] Furthermore, jacks are opened at both the data receiving pin and the ground pin of the WIFI module. The size of the jacks corresponds to the size of the first pin and the second pin.

[0017] Furthermore, the model of the diode is 1N5819.

[0018] A WIFI network configuration method based on PWM Timer capture decoding includes:

[0019] Step 1: Connect the first pin to the data receiving pin of the WIFI module, and connect the second pin to the ground pin of the WIFI module and ground it.

[0020] Step 2: By continuously turning on and off the USB power supply on the mobile terminal, the SSID and PASSWORD of the router are sent to the WIFI module after being encrypted and encoded according to the set PWM signal;

[0021] Step 3: The WIFI module captures and obtains the SSID and PASSWORD of the router through the PWM Timer of the data receiving pin to complete network configuration.

[0022] The present invention performs WIFI network configuration in a way that combines hardware and software. During network configuration, the first pin is connected to the data receiving pin of the WIFI module, and the second pin is connected to the ground pin of the WIFI module and grounded. When the mobile terminal turns on the USB power supply, the diode conducts; when the USB power supply is turned off, the diode cuts off. By continuously turning on and off the USB power supply on the mobile terminal, the SSID and PASSWORD of the router are sent to the WIFI module of the intelligent hardware after being encrypted and encoded according to the set PWM signal. The WIFI module captures and obtains the SSID and PASSWORD of the router through the PWM Timer of the data receiving pin to complete network configuration. This avoids the instability of network configuration through a single wireless network, improves the data transmission efficiency by sending data through PWM pulse signals, and improves the security by encrypting the data. Description of the Drawings

[0023] Figure 1 It is a schematic circuit structure diagram of the network configuration device provided by an embodiment of the present invention.

[0024] In the drawings, D1 is a diode, R1 is a first resistor, GND is a ground pin, Vbus is a power pin, and RX is a data receiving pin. Detailed Embodiments

[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0026] The following will describe in detail the specific embodiments of the present invention with reference to the accompanying drawings.

[0027] The WIFI network configuration device of the present invention based on serial communication, as shown in Figure 1As shown, it is used to perform WIFI network configuration for intelligent hardware through a mobile terminal. The mobile terminal includes a USB module. The network configuration device includes a USB extension cable and a diode D1. One end of the USB extension cable is respectively connected to the power supply pin Vbus and the ground pin GND of the USB module of the mobile terminal. The other end of the USB extension cable connected to the power supply pin Vbus of the USB module is connected to the anode of the diode D1. The cathode of the diode D1 is connected to the first pin. The other end of the USB extension cable connected to the ground pin GND of the USB module is connected to the second pin. During network configuration, the first pin is connected to the data receiving pin RX of the WIFI module, and the second pin is connected to the ground pin GND of the WIFI module and grounded. When the mobile terminal turns on the USB power supply, the diode D1 conducts, and the negative electrode of the diode is at a high level. When the USB power supply is turned off, the diode D1 is cut off, and the negative electrode of the diode is at a low level. In this way, high and low pulses will be formed. By continuously turning on and off the USB power supply of the mobile terminal, the SSID (Service Set Identifier) and PASSWORD (i.e., password) of the router are sent to the WIFI module of the intelligent hardware according to the set PWM signal after encryption coding. The WIFI module captures and obtains the SSID and PASSWORD of the router through the PWM Timer of the data receiving pin to complete the network configuration.

[0028] In an embodiment of the present invention, base64 can be used for encryption coding to improve the security of data.

[0029] In an embodiment of the present invention, in the set PWM signal, if the ratio of the high level to the low level is the first ratio, it is a PWM signal of binary 0; if the ratio of the high level to the low level is the second ratio, it is a PWM signal of binary 1. In the set PWM signal, the ratio of the high level to the low level of the initial PWM signal is the third ratio.

[0030] In an embodiment, the first ratio is 1:1, the second ratio is 5:36, and the third ratio is 5:2. For example, in the initial level signal of one cycle, the high level is 20 ms and the low level signal is 8 ms; in the PWM signal of one cycle, if the high level is 125 us and the low level is 125 us, it represents a PWM signal of 0; if the high level is 125 us and the low level is 900 us, it represents a PWM signal of 1.

[0031] The network configuration device of the present invention further includes a first resistor R1. One end of the first resistor R1 is connected to the cathode of the diode D1, and the other end is grounded. The first resistor R1 can adopt a 1 kΩ resistor. In this way, when the VSBUS power supply is just turned off, the RX of the module is 0V instead of floating without a level signal.

[0032] Jacks are provided at both the data receiving pin and the ground pin of the WIFI module, and the sizes of the jacks correspond to those of the first pin and the second pin. This facilitates the user's network configuration operation.

[0033] In an embodiment of the present invention, the diode can be 1N5819.

[0034] The WIFI network configuration method based on PWM Timer capture decoding of the present invention includes:

[0035] Step 1: Connect the first pin to the data receiving pin of the WIFI module, and connect the second pin to the ground pin of the WIFI module and ground it;

[0036] Step 2: Send the SSID and PASSWORD of the router to the WIFI module after encryption encoding according to the set PWM signal by continuously turning on and off the USB power supply on the mobile terminal;

[0037] Step 3: The WIFI module obtains the SSID and PASSWORD of the router through PWM Timer capture of the data receiving pin to complete network configuration.

[0038] In summary, the present invention greatly improves the efficiency of WIFI network configuration and the security of data transmission during WIFI network configuration.

Claims

1. A WIFI network configuration device based on PWM Timer capture mode decoding, which is used to perform WIFI network configuration on intelligent hardware through a mobile terminal. The mobile terminal includes a USB module. It is characterized in that the network configuration device includes a USB extension cable and a diode. One end of the USB extension cable is respectively connected to the power pin and the ground pin of the USB module of the mobile terminal. The other end of the USB extension cable connected to the power pin of the USB module is connected to the anode of the diode. The cathode of the diode is connected to the first pin. The other end of the USB extension cable connected to the ground pin of the USB module is connected to the second pin. During network configuration, the first pin is connected to the data receiving pin of the WIFI module, and the second pin is connected to the ground pin of the WIFI module and grounded. When the mobile terminal turns on the USB power, the diode conducts. When the USB power is turned off, the diode cuts off. By continuously turning on and off the USB power on the mobile terminal, the SSID and PASSWORD of the router are sent to the WIFI module of the intelligent hardware according to the set PWM signal after encryption coding. The WIFI module obtains the SSID and PASSWORD of the router through PWM Timer capture of the data receiving pin to complete the network configuration.

2. The WIFI network configuration device based on PWM Timer capture mode decoding according to claim 1, It is characterized in that in the set PWM signal, if the ratio of the high level to the low level is the first ratio, it is a PWM signal of binary 0; if the ratio of the high level to the low level is the second ratio, it is a PWM signal of binary 1.

3. The WIFI network configuration device based on PWM Timer capture mode decoding according to claim 2, It is characterized in that in the set PWM signal, the ratio of the high level to the low level of the initial PWM signal is the third ratio.

4. The WIFI network configuration device based on PWM Timer capture mode decoding according to claim 3, It is characterized in that the first ratio is 1:1, the second ratio is 5:36, and the third ratio is 5:

2.

5. The WIFI network configuration device based on PWM Timer capture mode decoding according to claim 1, It is characterized in that the network configuration device further includes a first resistor. One end of the first resistor is connected to the cathode of the diode, and the other end is grounded.

6. The WIFI network configuration device based on PWM Timer capture mode decoding according to claim 1, It is characterized in that jack holes are opened at both the data receiving pin and the ground pin of the WIFI module, and the sizes of the jack holes correspond to the sizes of the first pin and the second pin.

7. The WIFI network configuration device based on PWM Timer capture mode decoding according to claim 1, It is characterized in that the model of the diode is 1N5819.

8. A WIFI network configuration method based on PWM Timer capture mode decoding, which uses a mobile terminal and the WIFI network configuration device based on PWM Timer capture mode decoding according to claim 1 to perform WIFI network configuration on intelligent hardware. It is characterized in that Including: Step 1: Connect the first pin to the data receiving pin of the WIFI module, and connect the second pin to the ground pin of the WIFI module and ground it; Step 2: Send the SSID and PASSWORD of the router to the WIFI module after encryption coding according to the set PWM signal by continuously turning on and off the USB power supply on the mobile terminal; Step 3: The WIFI module captures and obtains the SSID and PASSWORD of the router through the PWM Timer of the data receiving pin to complete network configuration.

Citation Information

Patent Citations

  • Lamp distribution network circuit and lamp identification distribution network method

    CN110380909A

  • WiFi rapid network distribution system based on NFC

    CN212463517U