CN113810473A - Thing networking wiFi passes module thoroughly - Google Patents

Thing networking wiFi passes module thoroughly Download PDF

Info

Publication number
CN113810473A
CN113810473A CN202110999155.0A CN202110999155A CN113810473A CN 113810473 A CN113810473 A CN 113810473A CN 202110999155 A CN202110999155 A CN 202110999155A CN 113810473 A CN113810473 A CN 113810473A
Authority
CN
China
Prior art keywords
internet
module
things
server
mcu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110999155.0A
Other languages
Chinese (zh)
Inventor
张万青
陈焕熙
陈汉伟
李泉坊
赵升
吴桂初
王京京
陈洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Juchuang Intelligent Technology Co ltd
Original Assignee
Zhejiang Juchuang Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Juchuang Intelligent Technology Co ltd filed Critical Zhejiang Juchuang Intelligent Technology Co ltd
Priority to CN202110999155.0A priority Critical patent/CN113810473A/en
Publication of CN113810473A publication Critical patent/CN113810473A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides an Internet of things WiFi transparent transmission module, which is connected between an MCU and an Internet of things server and comprises a serial port configuration module, a transparent transmission module and an active acquisition module; the serial port configuration module receives an AT instruction sent by an external debugging tool to realize local state query; the transparent transmission module receives data, characters and various messages acquired by various sensors connected with the MCU, and realizes that the data, the characters and the compatible messages are sent to the Internet of things server by combining a preset message compatible format, and further transmits the data, the characters and the compatible messages to the Internet of things middleware server to realize message analysis; the active acquisition module receives an acquisition instruction issued by the server of the Internet of things so as to realize that the MCU controls various connected sensors to acquire corresponding data, characters and various messages. The method and the device have the advantages of simple operation, reduced development workload and reduced cost investment.

Description

Thing networking wiFi passes module thoroughly
Technical Field
The invention relates to the technical field of Internet of things, in particular to a WiFi transparent transmission module of the Internet of things.
Background
The transparent transmission module enables the era of the Internet of things, and the communication module in the concept of the Internet of things is a key link for connecting the sensing layer of the Internet of things and the network layer. The communication module is used for carrying out data interaction from a terminal to a cloud platform through a local area network or a wide area network, is a channel for user data transmission, is one of core components of the terminal of the Internet of things, and the computing capacity of the intelligent controller in the communication module is usually larger than that of a common embedded intelligent chip in the market. Therefore, many manufacturers OPEN the surplus capacity in the chip to the third party for use in a new way based on the reasons, so that the third party can develop the existing chip for the second time to realize the relevant functions required by the user, and the chip is generally called an OPEN communication chip.
At present, the OPEN communication chip is often used for realizing the functions of unvarnished transmission and active acquisition, but in the technical scheme that the functions of unvarnished transmission and active acquisition are realized by the existing OPEN communication chip, a designer needs to call a bottom layer instruction, so that the workload of development is large, and the cost input is greatly increased.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide the WiFi transparent transmission module of the Internet of things, secondary development of the module is completed according to market application scenes, the operation is simple, a user can meet application development requirements only by simple instruction calling, the development workload is greatly reduced, and the cost input is reduced.
In order to solve the technical problem, an embodiment of the invention provides an internet of things WiFi transparent transmission module, which is connected between an MCU and an internet of things server, and includes a serial port configuration module, a transparent transmission module, and an active acquisition module; wherein,
the serial port configuration module is used for receiving an AT instruction sent by an external debugging tool when the serial port configuration module is connected with the external debugging tool through a configured first UART serial port so as to realize local state query;
the transparent transmission module is used for receiving data, characters and various messages collected by various sensors connected with the MCU when the MCU is connected with a second UART serial port and a preset wireless antenna is in wireless communication with the Internet of things server, sending the data, the characters and the compatible messages collected by the sensors to the Internet of things server by combining a preset message compatible format, and further transmitting the data, the characters and the compatible messages to the Internet of things middleware server to realize message analysis;
the active acquisition module is used for receiving an acquisition instruction issued by the Internet of things server when the MCU is connected with the MCU through the configured second UART serial port and the preset wireless antenna is in wireless communication with the Internet of things server, so that the MCU controls various sensors connected with the MCU to acquire corresponding data, characters and various messages.
Wherein, still include: a pre-registration module; wherein,
the pre-registration module is used for pre-storing the MAC address of the pre-registration module as a module code ID in the server of the Internet of things when the pre-registration module is in wireless communication with the server of the Internet of things through the preset wireless antenna.
Wherein, still include: a mobile phone APP login module; wherein,
the mobile phone APP login module is used for configuring a local network connection state through a web page when wireless communication is carried out between the mobile phone APP login module and a user mobile phone through a preset wireless antenna, adjusting the on-off state of the Internet of things server or other communication equipment, and sending a control instruction to the MCU through the web page so as to realize control over each sensor connected with the MCU.
Wherein, still include: a heartbeat detection module; wherein,
and the heartbeat detection module is used for realizing automatic heartbeat detection through a preset program.
Wherein, still include: a remote upgrade module; wherein,
and the remote upgrading module is used for realizing remote OTA upgrading when the preset wireless antenna is in wireless communication with the Internet of things server.
The preset message compatible format comprises a Jason packet, a binary system and character strings of three specified separators.
The acquisition instruction comprises a timing acquisition instruction and a hard trigger acquisition instruction.
The embodiment of the invention has the following beneficial effects:
1. according to the invention, the AT instruction of the serial port debugging part does not need a complicated text protocol to carry out command indexing in the operation, and meanwhile, the wireless network required by the chip is operated through a mobile phone APP, so that the operation of workers is simplified, the workload of development is reduced, and the cost input is reduced;
2. the chip detection heartbeat function is integrated into the chip program, and meanwhile, the remote OTA upgrading function is realized, so that the development difficulty of a program designer is greatly reduced, and the cost investment is further reduced;
3. according to the invention, the chip MAC address is registered in advance at the server side of the Internet of things, and a user only needs to connect the chip and distribute the network for use, so that great convenience is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is within the scope of the present invention for those skilled in the art to obtain other drawings based on the drawings without inventive exercise.
Fig. 1 is a schematic system structure diagram of a WiFi transparent transmission module of an internet of things according to an embodiment of the present invention;
fig. 2 is a network topology diagram of the internet of things WiFi transparent transmission module provided by the embodiment of the present invention connected between the MCU and the internet of things server;
fig. 3 is a working schematic diagram of a transparent transmission module in a WiFi transparent transmission module of the internet of things according to an embodiment of the present invention to implement message analysis.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, in the embodiment of the present invention, a WiFi transparent transmission module of the internet of things is provided, which has a platform communication protocol, a transparent transmission protocol, an active acquisition protocol, a hard trigger protocol, an OTA upgrade protocol, and the like built in, and supports an MQTT internet of things dedicated protocol, so as to greatly save data traffic.
The module is connected between the MCU and the Internet of things server (shown in figure 2), and comprises a serial port configuration module 1, a transparent transmission module 2 and an active acquisition module 3. Wherein,
the serial port configuration module 1 is configured to receive an AT instruction sent by an external debugging tool (not shown) when the external debugging tool (not shown) is connected to a first UART serial port to USB debugging interface (not shown) through configuration, so as to implement local state query.
For example, the AT command is sent: AT + STATUS? The return success format has a total of 7 bits (partially empty):
commt:0/1 network:0/1 csq:xxxxxx imei ccid protocol open_id:ID
commt: 0/1: protocol connection status: disconnection/connection;
network 0/1: the network connection state: disconnection/connection;
csq xxxxxx: signal strength for mobile, WiFi, etc.;
imei is the serial number of the main chip;
ccid is the card number for the mobile;
protocol mqtt (connection protocols such as mqtt, tcp, Huawei, baidu, ali);
ID (meaning client, user _ name, topic _ get, up _ name, client _ ID, etc.)
And returning failure: ERROR.
If so, setting a serial port mode: AT + SPMODE
Figure BDA0003235047710000041
The transparent transmission module 2 is used for receiving data, characters and various messages collected by various sensors connected with the MCU when the MCU is connected with a second UART serial port (not shown) and a preset wireless antenna (not shown) is in wireless communication with the Internet of things server, sending the data, the characters and the compatible messages collected by the sensors to the Internet of things server by combining a preset message compatible format, and further transmitting the data, the characters and the compatible messages to the Internet of things middleware server to realize message analysis; the preset message compatible format comprises a Jason packet, a binary system and a character string ([ ] [; ] [: ]) of three specified separators, the problem of sensor incompatibility is perfectly solved, and great convenience is provided for users.
For example, when the module is connected with the MCU through the UART serial port, the module firstly sets a serial port communication convention:
parameter(s) Description of the invention
Baud rate Default 115200bps, customizable
Data bit 8 bit
Parity check Is free of
Stop position 1
Data flow control Is free of
Then, the frame format is set:
Figure BDA0003235047710000051
all data with more than 1 byte are transmitted in a big-end mode; generally, a synchronous sending-receiving mechanism with the same command word is adopted; one side sends command and the other side responds, if the sender overtime does not receive correct response packet, the overtime is transmitted.
Finally, setting the design requirement of message transmission: the sending interval between the characters cannot be less than 3ms, and the sending of the message is finished when the time is exceeded; the interval between the packets needs to be more than 500ms, and if the interval is less than the time interval, the system can be unstable; the message length should be within 255kb, and the loss of message content can be caused when the message length exceeds the message limit.
As shown in fig. 3, the equipment for uploading information is identified, so that different processes are analyzed in the middleware server, various messages are analyzed, and compatibility of various sensor devices is realized.
And the active acquisition module 3 is used for receiving an acquisition instruction issued by the internet of things server when the MCU is connected with the MCU through the configured second UART serial port and the preset wireless antenna is in wireless communication with the internet of things server, so that the MCU controls various connected sensors to acquire corresponding data, characters and various messages. The acquisition instruction comprises a timing acquisition instruction and a hard trigger acquisition instruction.
For example, data such as voltage, current, power, temperature, humidity that the sensor that MCU links gathered can be set up to upload for the thing networking server according to the demand.
In an embodiment of the present invention, the module further includes: a pre-registration module 4; wherein,
and the pre-registration module 4 is used for pre-storing the MAC address of the user as a module code ID in the server of the Internet of things when the user performs wireless communication with the server of the Internet of things through a preset wireless antenna.
For example, each chip has an independent MAC address when it leaves the factory, and development of the internet of things is shown by using the MAC address of the chip as a module code ID. First, taking the chip of the experiment as an example, the module code ID is 000A4CF12E8707A, and binding the information of the chip to the database of the internet of things server in advance, so as to facilitate the connection of the server during network connection. After the module is connected with the local network, the connection of the chip, the internet of things server and the web page is completed.
In an embodiment of the present invention, the module further includes: a mobile phone APP login module 5; wherein,
and the mobile phone APP login module 5 is used for configuring the connection state of the local network through the web page when wireless communication is performed with the user mobile phone through a preset wireless antenna, realizing the adjustment of the on-off state of the Internet of things server or other communication equipment, and issuing a control instruction to the MCU through the web page so as to realize the control of each sensor connected with the MCU.
For example, the mobile phone can automatically search WiFi signals transmitted by the module and connect the WiFi signals with the chip, the APP setting interface options are two, dynamic connection is always realized, the router automatically allocates IP addresses, and only WiFi passwords need to be input; the other is static connection, and the information of WiFi, IP address and the like needs to be manually input to complete the connection. When the chip is started next time, the chip can be automatically connected with the network, and the network connection of the chip at the cost stage can be completed without setting again.
The working state is displayed through a web page, uploaded historical data are checked, data can be displayed according to the configuration of a client and the format of the client and the client data can be forwarded, meanwhile, the debugging mode is also provided, and the log of the data receiving and sending of the equipment is recorded in real time. And historical data may be queried. (the operation specification of the platform of the Internet of things is described in a platform operation specification document).
And functions of issuing command control instructions, acquiring information, controlling devices and the like can also be realized through the web page.
In an embodiment of the present invention, the module further includes: a heartbeat detection module 6; wherein,
and the heartbeat detection module 6 is used for realizing automatic heartbeat detection through a preset program.
In an embodiment of the present invention, the module further includes: a remote upgrade module 7; wherein,
and the remote upgrading module 7 is used for realizing remote OTA upgrading when wireless communication is carried out between the Internet of things server and a preset wireless antenna.
The embodiment of the invention has the following beneficial effects:
1. according to the invention, the AT instruction of the serial port debugging part does not need a complicated text protocol to carry out command indexing in the operation, and meanwhile, the wireless network required by the chip is operated through a mobile phone APP, so that the operation of workers is simplified, the workload of development is reduced, and the cost input is reduced;
2. the chip detection heartbeat function is integrated into the chip program, and meanwhile, the remote OTA upgrading function is realized, so that the development difficulty of a program designer is greatly reduced, and the cost investment is further reduced;
3. according to the invention, the chip MAC address is registered in advance at the server side of the Internet of things, and a user only needs to connect the chip and distribute the network for use, so that great convenience is realized.
It should be noted that, in the foregoing embodiment, each included module is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, the specific names of the functional modules are only for convenience of distinguishing from each other and are not used for limiting the protection scope of the present invention.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (7)

1. The WiFi transparent transmission module of the Internet of things is connected between an MCU and a server of the Internet of things and is characterized by comprising a serial port configuration module, a transparent transmission module and an active acquisition module; wherein,
the serial port configuration module is used for receiving an AT instruction sent by an external debugging tool when the serial port configuration module is connected with the external debugging tool through a configured first UART serial port so as to realize local state query;
the transparent transmission module is used for receiving data, characters and various messages collected by various sensors connected with the MCU when the transparent transmission module is connected with the MCU through a configured second UART serial port and a preset wireless antenna is in wireless communication with the Internet of things server, sending the data, the characters and the compatible messages collected by the sensors to the Internet of things server by combining a preset message compatible format, and further transmitting the data, the characters and the compatible messages to the Internet of things middleware server to realize message analysis;
the active acquisition module is used for receiving an acquisition instruction issued by the internet of things server when the active acquisition module is connected with the MCU through the configured second UART serial port and the preset wireless antenna is in wireless communication with the internet of things server, so that the MCU controls various sensors connected with the MCU to acquire corresponding data, characters and various messages.
2. The internet-of-things WiFi transparent transmission module of claim 1, further comprising: a pre-registration module; wherein,
the pre-registration module is used for pre-storing the MAC address of the pre-registration module as a module code ID in the server of the Internet of things when the pre-registration module is in wireless communication with the server of the Internet of things through the preset wireless antenna.
3. The internet-of-things WiFi transparent transmission module of claim 2, further comprising: a mobile phone APP login module; wherein,
the mobile phone APP login module is used for configuring a local network connection state through a web page when wireless communication is carried out between the mobile phone APP login module and a user mobile phone through a preset wireless antenna, adjusting the on-off state of the Internet of things server or other communication equipment, and sending a control instruction to the MCU through the web page so as to realize control over each sensor connected with the MCU.
4. The internet-of-things WiFi transparent transmission module of claim 3, further comprising: a heartbeat detection module; wherein,
and the heartbeat detection module is used for realizing automatic heartbeat detection through a preset program.
5. The internet-of-things WiFi transparent transmission module of claim 4, further comprising: a remote upgrade module; wherein,
and the remote upgrading module is used for realizing remote OTA upgrading when the preset wireless antenna is in wireless communication with the Internet of things server.
6. The internet-of-things WiFi transparent transmission module of claim 1, wherein the preset message compatible format includes Jason package, binary and character string of three designated separators.
7. The internet-of-things WiFi transparent transmission module of claim 1, wherein the collection instruction comprises a timed collection instruction and a hard-triggered collection instruction.
CN202110999155.0A 2021-08-28 2021-08-28 Thing networking wiFi passes module thoroughly Pending CN113810473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110999155.0A CN113810473A (en) 2021-08-28 2021-08-28 Thing networking wiFi passes module thoroughly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110999155.0A CN113810473A (en) 2021-08-28 2021-08-28 Thing networking wiFi passes module thoroughly

Publications (1)

Publication Number Publication Date
CN113810473A true CN113810473A (en) 2021-12-17

Family

ID=78894303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110999155.0A Pending CN113810473A (en) 2021-08-28 2021-08-28 Thing networking wiFi passes module thoroughly

Country Status (1)

Country Link
CN (1) CN113810473A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150436A (en) * 2022-09-01 2022-10-04 国网信息通信产业集团有限公司 System and method for realizing serial communication between Internet of things sensing module and MCU

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203057535U (en) * 2012-12-11 2013-07-10 合肥晖润能源科技有限公司 IoT (Internet of Things) data acquisition terminal
CN106453529A (en) * 2016-09-28 2017-02-22 浙江大学 Hen house Internet of Things sensor node data collecting, monitoring and controlling device based on WIFI
CN109710471A (en) * 2018-12-12 2019-05-03 上海宏力达信息技术股份有限公司 A kind of LoRa communication serial port debugging tool
WO2020248274A1 (en) * 2019-06-14 2020-12-17 胡永生 Smart internet of things information acquisition and transmission system
CN112180784A (en) * 2020-09-21 2021-01-05 江苏科技大学 NB-IOT (NB-IOT) -based machine tool production abnormity alarm remote monitoring system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203057535U (en) * 2012-12-11 2013-07-10 合肥晖润能源科技有限公司 IoT (Internet of Things) data acquisition terminal
CN106453529A (en) * 2016-09-28 2017-02-22 浙江大学 Hen house Internet of Things sensor node data collecting, monitoring and controlling device based on WIFI
CN109710471A (en) * 2018-12-12 2019-05-03 上海宏力达信息技术股份有限公司 A kind of LoRa communication serial port debugging tool
WO2020248274A1 (en) * 2019-06-14 2020-12-17 胡永生 Smart internet of things information acquisition and transmission system
CN112180784A (en) * 2020-09-21 2021-01-05 江苏科技大学 NB-IOT (NB-IOT) -based machine tool production abnormity alarm remote monitoring system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150436A (en) * 2022-09-01 2022-10-04 国网信息通信产业集团有限公司 System and method for realizing serial communication between Internet of things sensing module and MCU
CN115150436B (en) * 2022-09-01 2022-12-02 国网信息通信产业集团有限公司 System and method for realizing serial communication between Internet of things sensing module and MCU

Similar Documents

Publication Publication Date Title
CN102497630B (en) Machine to machine (M2M) equipment, method for realizing service, intelligent card and communication module
CN104660682B (en) A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE
CN105159256B (en) A kind of intelligent home control system based on Web service
CN107172051A (en) A kind of method that internet of things equipment finds and managed
CN106411907A (en) Data transmission method and system
JP2013538382A (en) Data card and data card networking method
CN101453711A (en) Automatic test system and test method for mobile phone short message
CN108337308B (en) Data communication method, device and system for LWM2M client and upper computer
CN101801104B (en) Mac OS system equipment and network connection configuration method thereof
CN106292518A (en) Remote PLC monitoring and debugging system and method
CN113810473A (en) Thing networking wiFi passes module thoroughly
CN104424036A (en) Synchronous operation method and device of smart terminal
CN111010323A (en) Network distribution method and system of intelligent equipment
CN103841587A (en) Method, apparatus, and system for realization of internet-of-things converged gateway
CN202043130U (en) Remote control system for power station
CN103313428A (en) Wi-Fi (wireless fidelity) communication system and Wi-Fi communication method for smartphone and upper computer in computer five-prevention system
WO2020253330A1 (en) Method and apparatus for customer premise equipment configuration management
CN111107507B (en) LoRa equipment networking method suitable for geological disaster monitoring application
CN104618124B (en) A kind of system and method controlling cable break-make using short message
CN101155184A (en) Method for implementing AT command commutation
CN115277867A (en) Collector and electric power communication method and system of Modbus protocol equipment based on collector
CN107872431B (en) Data transmitting and receiving method, device and base station
CN105281869A (en) GPRS-based wireless data transmission method and apparatus
CN105916184B (en) A kind of industrial wireless sensing network termination implementation method meeting ISA100.11a standard
CN205883594U (en) A network system is stepped on to single modem double cassette of developments download number is provided

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination