Internet of things equipment rapid network distribution method and systemTechnical Field
The invention relates to Internet of things equipment, in particular to a method and a system for rapidly distributing network for the Internet of things equipment.
Background
At present, the net is joined in marriage to thing networking equipment includes:
and in the SoftAP mode, the IoT equipment works in an AP mode, the mobile phone is directly connected with the IoT equipment, and the SSID/Password of the target router is transmitted.
The WPS mode (Wi-Fi Protected Setup) is an authentication project implemented by the Wi-Fi alliance organization, and mainly aims to simplify the security encryption Setup of a wireless network. Wi-Fi Protected Setup (WPS) can help users to automatically set up network name (SSID), configure the highest level WPA2 security keys.
In the Broadcast/Sniffer mode, the APP controls to Broadcast the SSID/Passford to the air in a UDP Broadcast or multicast mode.
Other means, such as voiceprints, etc.
In the SoftAP mode, a user needs to download an APP, connects an IoT device first, and manually inputs an SSID/Password, which is difficult for a non-professional to use.
The WPS mode requires that the router and the IoT simultaneously support the WPS, at present, part of routers cancel the WPS function, and the IoT is inconvenient to add keys. Therefore, this approach may not be considered.
In the Broadcast/Sniffer method, since air interface communication is encrypted and usually uses private coding, the efficiency is low, interference is easy to occur, and the success rate is low. Similar to the SoftAP approach, the APP is difficult for non-professionals to accept.
Other peripheral hardware modes such as voiceprint, on the one hand the technique is not mature, and require highly to the surrounding environment, on the other hand all needs APP to generate corresponding functional data, and it is higher to require the user, and bars such as hardware cost and education cost are higher relatively.
Disclosure of Invention
Aiming at the problems, the invention provides a method and a system for rapidly distributing network for Internet of things equipment.
According to one aspect of the invention, a method for rapidly distributing network to Internet of things equipment is provided, which comprises the following steps:
the device side realizes WIFI data receiving through an NFC front-end component;
the routing end realizes WIFI information acquisition through the NFC label type module;
the mobile phone configures WIFI access information through Bluetooth;
the mobile phone end reads the WIFI configuration information through Bluetooth;
and an NFC near field communication function is added on the WIFI node equipment for data transmission.
Further, the equipment end realizes WIFI access through the NFC component and includes:
an NFC front-end component is integrated on the IOT node equipment, and the SSID and the password are transmitted in through an NFC reader-writer; the communication mode can use TTL serial ports or IIC, and when the NFC front end senses data swiping, the IOT device is informed to read.
Still further, route end passes through NFC label formula module and realizes that WIFI information acquisition includes:
an NFC label type module is integrated on the router, and the master controller writes WIFI configuration information into a label through a TTL serial port or an IIC; after the NFC reader-writer passes the NFC authentication, the current WIFI access information can be read from the tag and stored locally in the reader-writer.
Further, the configuring, by the mobile phone terminal, the WIFI access information by bluetooth includes:
for a user who does not purchase an NFC router at home, WIFI configuration information can be sent to an NFC reader-writer through BLE by using an APP or an applet at a mobile phone end;
the mobile phone end reads the WIFI configuration information through Bluetooth and comprises the following steps:
if the WIFI password is forgotten carelessly and the IOT contact equipment without the NFC front end cannot be reconfigured, the WIFI information stored in the configurator can be read through the APP by Bluetooth and then used for configuring the traditional intelligent equipment;
if no configurator exists, the NFC mobile phone can be used as the configurator, and the WIFI configuration data is sent to the IOT equipment through the NFC front-end component and the configuration APP carried by the mobile phone.
According to another aspect of the invention, a rapid network distribution system for internet of things equipment is provided, which includes:
the Bluetooth NFC gateway read-write configurator is used for sending the configuration information to third-party equipment in a Bluetooth or NFC mode;
and the NFC data transmission gateway module is used for NFC data transmission.
Further, the bluetooth NFC gateway read-write configurator includes:
the bluetooth MCU circuit: the single-mode Bluetooth signal processing device is used for single-mode Bluetooth signal processing;
USB charging circuit and first LDO: the circuit board is powered by a lithium battery and is used for supplying power to the MCU and the radio frequency circuit through the LDO to convert 3.3V;
a radio frequency circuit: the radio frequency chip SKY1311S and peripheral circuits are included;
the working state lamp: the LED lamp is composed of two LED lamps in a power-on/power-off state and a Bluetooth state;
a buzzer circuit: the buzzer prompts when the card is read and written;
pressing a key: the function of the key is two: the Bluetooth module is used for starting up and long-time pressing for Bluetooth transmission;
and the first MCU is respectively connected with the USB charging circuit, the first LDO, the radio frequency circuit, the working state lamp, the buzzer and the key.
Furthermore, the Bluetooth MCU circuit comprises a USB-to-serial port chip CH340E/MSOP10 and peripheral circuits, a Bluetooth chip MS1791 and peripheral circuits, and the USB-to-serial port chip CH340E/MSOP10 is connected with the Bluetooth chip.
Furthermore, the bluetooth MCU circuit is a single-mode ultra-low power consumption bluetooth chip, and the radio frequency adopts a frequency of 2.4ghz ism band and 2MHz channel interval.
Still further, the USB charging circuit and the first LDO include a power chip TP4054 circuit, a power chip KF8177 circuit.
Still further, the NFC data transmission gateway module includes:
the second LDO circuit: the power supply circuit comprises a power supply chip ME6206A33P, capacitors C4, C9, C5 and C10, wherein the capacitors C4, C9, C5 and C10 are respectively connected with the power supply chip ME6206A33P and are power supply conversion circuits used for converting 5V into 3.3V;
the second MCU circuit: the card IC data reading and forwarding circuit comprises an MCU chip STC8H1K08 and capacitors C1, C3, C11, C6, C7 and C8, wherein the capacitors C1, C3, C11, C6, C7 and C8 are respectively bridged between a power supply VCC and the ground and are used for reading card IC data and forwarding the data;
IC card circuit: comprises FM11NT081D and peripheral circuits;
and the second MCU is respectively connected with the second LDO circuit and the IC card circuit.
The invention has the advantages that:
the invention defines a method for acquiring WIFI data and transmitting the WIFI data to an internet of things device again through near field communication.
By the method and the device, the WIFI network distribution of the intelligent equipment can be simply and accurately finished, and no technical requirements are required for users.
By the method and the system, the problem that the left-behind old people cannot use the intelligent equipment autonomously is solved, and technical convenience is provided for scenes such as remote nursing and remote monitoring of the old people.
The configurator, the NFC receiver, the Bluetooth receiver and other devices related to the invention are designed as core modules by the company, and can be integrated with third-party household appliances in the ways of UART, I2C, SPI and the like, thereby realizing rapid popularization.
In addition to the objects, features and advantages described above, other objects, features and advantages of the present invention are also provided. The present invention will be described in further detail below with reference to the drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention.
Fig. 1 is a block diagram of a routing side architecture of the present invention.
Fig. 2 is a block diagram of the device side architecture of the present invention.
Fig. 3 is a schematic diagram of a bluetooth NFC gateway read-write configurator of the present invention.
Fig. 4 is a schematic diagram of an NFC data transfer gateway module of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1 to 4, a network system for rapidly distributing internet of things devices includes:
the Bluetooth NFC gateway read-write configurator is used for sending the configuration information to third-party equipment in a Bluetooth or NFC mode;
and the NFC data transmission gateway module is used for NFC data transmission.
The bluetooth NFC gateway read-write configurator comprises:
the bluetooth MCU circuit: the single-mode Bluetooth signal processing device is used for single-mode Bluetooth signal processing;
USB charging circuit and first LDO: the circuit board is powered by a lithium battery and is used for supplying power to the MCU and the radio frequency circuit through the LDO to convert 3.3V;
a radio frequency circuit: the radio frequency chip SKY1311S and peripheral circuits are included;
the working state lamp: the LED lamp is composed of two LED lamps in a power-on/power-off state and a Bluetooth state;
a buzzer circuit: the buzzer prompts when the card is read and written;
pressing a key: the function of the key is two: the Bluetooth module is used for starting up and long-time pressing for Bluetooth transmission;
and the first MCU is respectively connected with the USB charging circuit, the first LDO, the radio frequency circuit, the working state lamp, the buzzer and the key.
The Bluetooth MCU circuit comprises a USB-to-serial port chip CH340E/MSOP10 and peripheral circuits, a Bluetooth chip MS1791 and peripheral circuits, wherein the USB-to-serial port chip CH340E/MSOP10 is connected with the Bluetooth chip.
The Bluetooth MCU circuit is a single-mode ultra-low power consumption Bluetooth chip, and the radio frequency adopts the frequency of a 2.4GHz ISM frequency band and 2MHz channel interval.
The USB charging circuit and the first LDO comprise a power chip TP4054 circuit and a power chip KF8177 circuit.
The NFC data transmission gateway module comprises:
the second LDO circuit: the power supply circuit comprises a power supply chip ME6206A33P, capacitors C4, C9, C5 and C10, wherein the capacitors C4, C9, C5 and C10 are respectively connected with the power supply chip ME6206A33P and are power supply conversion circuits used for converting 5V into 3.3V;
the second MCU circuit: the card IC data reading and forwarding circuit comprises an MCU chip STC8H1K08 and capacitors C1, C3, C11, C6, C7 and C8, wherein the capacitors C1, C3, C11, C6, C7 and C8 are respectively bridged between a power supply VCC and the ground and are used for reading card IC data and forwarding the data;
IC card circuit: comprises FM11NT081D and peripheral circuits;
and the second MCU is respectively connected with the second LDO circuit and the IC card circuit.
A quick network distribution method for Internet of things equipment comprises the following steps:
the device side realizes WIFI data receiving through an NFC front-end component;
the routing end realizes WIFI information acquisition through the NFC label type module;
the mobile phone configures WIFI access information through Bluetooth;
the mobile phone end reads the WIFI configuration information through Bluetooth;
and an NFC near field communication function is added to the WIFI node equipment (Internet of things equipment) for data transmission.
The equipment side realizes WIFI access through the NFC component and comprises the following steps:
an NFC front-end component is integrated on the IOT node equipment, and the SSID and the password are transmitted in through an NFC reader-writer; the communication mode can use TTL serial ports or IIC, and when the NFC front end senses data swiping, the IOT device is informed to read.
Routing end passes through NFC label formula module and realizes that WIFI information acquisition includes:
an NFC label type module is integrated on the router, and the master controller writes WIFI configuration information into a label through a TTL serial port or an IIC; after the NFC reader-writer passes the NFC authentication, the current WIFI access information can be read from the tag and stored locally in the reader-writer.
The mobile phone terminal configures WIFI access information through Bluetooth and comprises the following steps:
for a user who does not purchase an NFC router at home, the WIFI configuration information can be sent to the NFC reader-writer through BLE by using APP or an applet at a mobile phone end.
The mobile phone end reads the WIFI configuration information through Bluetooth and comprises the following steps:
if the WIFI password is forgotten carelessly and the IOT contact equipment without the NFC front end cannot be reconfigured, the WIFI information stored in the configurator can be read through the APP by the Bluetooth, and then the traditional intelligent equipment is configured.
If no configurator exists, the NFC mobile phone can be used as the configurator, and the WIFI configuration data is sent to the IOT equipment through the NFC front-end component and the configuration APP carried by the mobile phone.
Further comprising:
the configurator works in a read-write card state after being started, if a standard NDEF tag card is read, data in the card is read and stored, and if an NFC data transparent transmission card is read, the stored data is transmitted to third-party equipment through an NFC front end;
the configurator is started and then presses the Bluetooth sending key, the configurator is converted into a Bluetooth sending mode, peripheral BLE receiving signals are searched first, BLE equipment is connected after the signals are found, and then stored configuration data are sent to third-party equipment through the BLE receiving module.
Referring to fig. 1, the routing end acquires WIFI information by "touch-and-dash";
an NFC label type module is integrated on the router, and the main controller writes WIFl configuration information into a label through a TTL serial port or an IIC.
After the NFC reader-writer passes the NFC authentication, the current WIFI access information can be read from the tag and stored locally in the reader-writer.
Referring to fig. 2, the device side implements WIFI access by "bump-bump";
and an NFC front-end component is integrated on the IOT node equipment, and the SSID and the password are transmitted in through an NFC reader-writer.
The communication mode can use TTL serial ports or IIC, and when the NFC front end senses data swiping, the IOT device is informed to read.
No APP operation is required: the NFC configurator is configured by the router or is configured by mobile operation and maintenance personnel when the gateway is installed, and the user only needs to touch one point, and does not need the assistance of a third party APP.
Fast and accurate: the distribution network directly transmits the WIFI name and the password into the equipment without searching and waiting, and the distribution network is permanently configured for one time.
The method for configuring the WIFI network by the Internet of things equipment is completed through near field communication, and the method can also be used for configuring other parameters by the intelligent equipment.
The invention uses the Bluetooth radio frequency card read-write module as a configurator (Bluetooth NFC gateway read-write configurator) to verify the sending function of the invention, the form of the invention is a multiband card reader supporting 13.56MHz and 2.5GHz, and the configurator has the capability of sending the configuration information to third-party equipment in a Bluetooth or NFC mode.
The invention can use the BLE receiving module and the NFC data pass-through card to verify the receiving function of the invention.
According to the invention, third-party Internet of things equipment also has BLE or NFC transmission capability (through NFC data transmission gateway equipment), so that configuration data sent by a configurator is received.
The invention reads and transmits the card data based on the NDEF standard format.
The invention uses BLE mode to transmit Bluetooth data.
The configurator matched with the invention is provided with a polymer lithium battery for power supply.
After the configurator is started, the configurator works in a read-write card state, if a standard NDEF tag card is read, data in the card is read and stored, and if an NFC data transparent transmission card is read, the stored data is transmitted to third-party equipment through an NFC front end.
According to the invention, the configurator is switched into a Bluetooth sending mode by pressing down the Bluetooth sending button after being started, peripheral BLE receiving signals are searched first, the BLE equipment is connected after the signals are found, and then the stored configuration data is sent to third-party equipment through the BLE receiving module.
The method and the device are mainly used for the intelligent equipment to be connected with the WIFI network quickly.
The invention mainly follows the ISO14443-A, ISO14443-B protocol.
The present invention relates to an NFC-related communication technology.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.