CN212034143U - Multi-endpoint data transmission device based on MQTT protocol and wireless communication technology - Google Patents

Multi-endpoint data transmission device based on MQTT protocol and wireless communication technology Download PDF

Info

Publication number
CN212034143U
CN212034143U CN202020769174.5U CN202020769174U CN212034143U CN 212034143 U CN212034143 U CN 212034143U CN 202020769174 U CN202020769174 U CN 202020769174U CN 212034143 U CN212034143 U CN 212034143U
Authority
CN
China
Prior art keywords
data
transmission device
module
wireless communication
data transmission
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.)
Expired - Fee Related
Application number
CN202020769174.5U
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.)
Heilongjiang University
Original Assignee
Heilongjiang University
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 Heilongjiang University filed Critical Heilongjiang University
Priority to CN202020769174.5U priority Critical patent/CN212034143U/en
Application granted granted Critical
Publication of CN212034143U publication Critical patent/CN212034143U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The utility model discloses a multi-endpoint data transmission device based on MQTT agreement and wireless communication technique belongs to internet of things technical field. Switching power supply USP module supplies power for multi-endpoint data transmission device, and main control singlechip and data terminal pass through communication conversion chip data intercommunication, and main control singlechip controls each other with EEPROM data storage chip, GPRS module and WIFI module data respectively, and GPRS module and WIFI module communicate with cloud platform data respectively, and mobile terminal APP obtains data from the cloud platform. The utility model discloses can preferentially adopt the WIFI mode to carry out data interaction with the cloud platform, and in case the WIFI mode can not work, the GPRS mode can replace the use in addition, because of adopted the GPRS module, consequently the installation of this device does not receive the regional restriction, also can guarantee in the field that the network is unobstructed, and possesses the low-power mode, and is more energy-conserving.

Description

Multi-endpoint data transmission device based on MQTT protocol and wireless communication technology
Technical Field
The utility model relates to a multi-endpoint data transmission device based on MQTT agreement and wireless communication technique belongs to internet of things technical field.
Background
The MQTT protocol is an instant messaging protocol oriented to the application of the Internet of things, provides network connection by using TCP/IP, can realize message shielding transmission on load contents, has low cost and can effectively reduce network flow; the technology can realize single-point message issuing, transfer by the server and simultaneous multipoint message receiving.
However, the traditional environment monitoring equipment and the agricultural meteorological equipment can only be used for local communication and data checking, and particularly, some environment monitoring equipment are installed in the field environment, so that the difficulty of data acquisition is greatly increased.
SUMMERY OF THE UTILITY MODEL
The utility model aims at providing a multi-endpoint data transmission device based on MQTT agreement and wireless communication technique to solve current environmental monitoring equipment and agricultural meteorological equipment and can only local communication, the big problem of the degree of difficulty is acquireed to data.
Multi-endpoint data transmission device based on MQTT agreement and wireless communication technique, including main control singlechip, data terminal, switching power supply USP module, WIFI module, GPRS module, EEPROM data storage chip, communication conversion chip, mobile terminal APP and cloud platform, switching power supply USP module does the multi-endpoint data transmission device power supply, main control singlechip passes through with data terminal communication conversion chip data intercommunication, main control singlechip respectively with EEPROM data storage chip, GPRS module and WIFI module data are controlled each other, GPRS module and WIFI module respectively with cloud platform data intercommunication, mobile terminal APP follows the cloud platform acquires data.
Further, after the data terminal uploads different types of data to the communication conversion chip, the communication conversion chip converts the different types of data into uniform type data through a Modbus protocol, and uploads the uniform type data to the master control single chip microcomputer.
Further, the GPRS module and the WIFI module both issue information to the cloud platform through an MQTT protocol, and the cloud platform subscribes information to the GPRS module and the WIFI module through the MQTT protocol.
Furthermore, an industrial SIM card is arranged in the GPRS module.
Further, the EEPROM data storage chip has the storage capacity of 64KB and is communicated with the main control single chip microcomputer by IIC.
Further, the EEPROM data storage chip stores an IP address, a WIFI password, and subscribed message data.
Further, the device is provided with a low power consumption mode.
Further, the device is subjected to lightning protection treatment.
The utility model has the main advantages that: the utility model discloses a multi-endpoint data transmission device based on MQTT agreement and wireless communication technique can preferentially adopt the WIFI mode to carry out data interaction with the cloud platform, and in case the WIFI mode can not work, and the GPRS mode can replace the use in addition, because of having adopted the GPRS module, consequently the installation of this device does not receive the regional restriction, also can guarantee in the field that the network is unobstructed, and possesses the low-power mode, more energy-conservation.
Drawings
Fig. 1 is a schematic diagram of a system structure of a multi-endpoint data transmission device based on MQTT protocol and wireless communication technology according to the present invention;
fig. 2 is a flowchart of an operation method of the multi-endpoint data transmission device based on MQTT protocol and wireless communication technology.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention.
To the present situation that present traditional environmental monitoring equipment and agricultural meteorological equipment can only be looked over at local communication, data, especially some environmental monitoring equipment install in the field environment, very big increase the degree of difficulty that data acquireed, the utility model discloses an adopt the multi-endpoint data transfer design based on MQTT agreement and wireless communication technique, adopt wireless communication technique, use MQTT agreement with fixed format with data upload to cloud platform, the historical data that the equipment can be looked over at the long-range customer.
Referring to fig. 1, multi-endpoint data transmission device based on MQTT protocol and wireless communication technology, including main control singlechip, data terminal, switching power supply USP module, the WIFI module, the GPRS module, EEPROM data storage chip, communication conversion chip, mobile terminal APP and cloud platform, switching power supply USP module is the power supply of multi-endpoint data transmission device, main control singlechip passes through communication conversion chip data intercommunication with data terminal, main control singlechip respectively with EEPROM data storage chip, GPRS module and WIFI module data are controlled each other, GPRS module and WIFI module respectively with cloud platform data intercommunication, mobile terminal APP obtains data from the cloud platform.
Specifically, the main control single chip microcomputer adopts STM32F103RCT6, the WIFI module adopts an ESP8266 chip, the GPRS module adopts SIM800C, and the communication conversion chip is an SP3232 serial port data conversion chip or an SP485 data transmitting/receiving chip. The utility model discloses in, the user can look over cloud platform data through mobile terminal APP in real time, also can acquire the early warning through the cloud platform, has greatly improved the practicality.
The ESP8266 is an ultra-low power consumption wireless transparent transmission wireless WIFI module; the SIM800C is a low-power-consumption GPRS module capable of realizing voice and data transmission, the two modules are widely applied to the field of Internet of things, and both modules can receive data sent by a main control single chip microcomputer through a serial port and transmit the data to a cloud platform in a fixed protocol format to realize equipment networking.
Referring to fig. 2, the operation flow of the device is as follows: each module and each chip are powered on and started up, a switching power supply USP module provides 4V and 3.3V direct-current power supplies to supply power to each module and each chip, meanwhile, a main control single chip microcomputer initializes a hardware circuit, whether a WIFI signal exists or not is detected firstly after initialization is finished, if the WIFI signal exists, the main control single chip microcomputer sends fixed command characters in order to start the WIFI module to connect, otherwise, the single chip microcomputer sends the fixed command characters to wake up the GPRS module, then a string of fixed messages (containing 16-system characters such as a fixed header, a variable header, an equipment ID number and a product ID number) are sent according to an MQTT protocol to apply for connecting a cloud platform and subscribe a Theme; when the data terminal has data and the data terminal uses a Modbus protocol to send the data to the master control single chip microcomputer through the serial port, the master control single chip microcomputer sends a Theme Message body Message to the cloud platform after decoding, data extraction and data packaging, and thus, the sending of a complete release Message is finished; the cloud platform sends the Message body Message to other equipment and then sends the effective data to the data terminal, so that the complete subscription Message reception is finished; through the method, data interaction is completed between the data terminal and the simple and reliable data interaction mode has great development prospect in the field of Internet of things such as environment monitoring and agricultural monitoring equipment.
This design is equipped with mobile terminal APP, logs in the data that the real-time online watch equipment of cloud platform uploaded at mobile terminal to and the download of historical data, improved the portability.
In the preferred embodiment of this part, after the data terminal uploads different types of data to the communication conversion chip, the communication conversion chip converts the different types of data into uniform type of data through the Modbus protocol, and uploads the uniform type of data to the main control single chip microcomputer.
In the preferred embodiment of this section, both the GPRS module and the WIFI module publish information to the cloud platform through the MQTT protocol, and the cloud platform subscribes information to the GPRS module and the WIFI module through the MQTT protocol.
Specifically, the MQTT protocol is an instant messaging protocol oriented to internet of things application, provides network connection by using TCP/IP, can implement message mask transmission on load content, has low overhead, and can effectively reduce network traffic; the method is a technology which can realize single-point message issuing, transit through a server and simultaneous multipoint message receiving.
The utility model adopts 2 ways to connect the network, (1) the networking using the WIFI module has the advantages that the network cost does not need to be paid independently, the cost is saved, and the system is suitable for being used under the condition that a plurality of data acquisition terminal devices in the developed region of the urban network need to be networked; (2) the GPRS module has the advantages that the GPRS module is not limited by areas, and the network smoothness can be ensured in the field environment.
In the preferred embodiment of this part, the GPRS module has an industrial SIM card built in.
Specifically, the utility model discloses a GPRS module adopts external thing networking SIM card as flow charging mode, can provide low-cost, high reliable wireless networking service, and one length and width 6.0mm 5.0 mm's chip has replaced the SIM card of traditional use, and industry SIM card still has the installation simple, antidetonation and the low temperature resistant (still can normally work under the ultralow temperature environment of 45) characteristic simultaneously, and this has guaranteed the utility model discloses an environmental suitability is strong very much.
In the preferred embodiment of this part, the EEPROM data storage chip has a storage capacity of 64KB and adopts IIC communication with the main control singlechip.
In the preferred embodiment of this part, the EEPROM data storage chip stores the IP address, the WIFI password, and the subscribed message data.
Specifically, the EEPROM data storage chip is mainly used for storing WIFI addresses, passwords, cloud platform IP addresses, equipment ID numbers and cache data; in the program, 10 units are allocated to store WIFI addresses and passwords, so that connection is facilitated; the cached data is used under the condition of receiving cloud platform wishlist messages, the wishlist messages are caused by power failure and the like, when the equipment is not on line, the cloud platform cannot immediately send subscribed messages to the equipment end, when the next equipment is on line again, the cloud platform sends the wishlist messages, the data volume is possibly large, the serial port sending unit of the main control single chip microcomputer cannot timely send the data to the data terminal, if the data overflow or data loss is caused, the data are cached in the EEPROM data storage chip, one message is sent to the main control single chip microcomputer every time in a stacking and popping (first in first out) mode, the main control single chip microcomputer sends the data to the data terminal, the main control single chip microcomputer sends the next message after determining that the data are sent successfully, and the wishlist messages cached by the EEPROM are gradually released in a circulating mode.
In a preferred embodiment of this section, the device is provided with a low power mode.
Specifically, the device performs low-power-consumption processing, and adopts a mode of active reporting (when the device is online, data is actively uploaded to the cloud platform) when the device issues data, and adopts a mode of passive lighting detection (when the device end is in a low-power-consumption dormant state, and when the cloud platform actively issues data, the device automatically wakes up) when the device receives data. Through experimental tests, one-time complete message sending and receiving can be completed within 60s, data does not need to be refreshed every minute in the fields of environmental monitoring, agricultural monitoring and the like, generally, the data is reported once within 1-3 hours, and the equipment is in a standby waiting state in most of time, so that low-power consumption processing is performed in a dormant mode in the standby stage of the equipment, the power consumption of the equipment is greatly reduced, electric energy is saved, and the service time of a battery is prolonged (particularly in a field environment, the battery is badly changed for several months).
In the preferred embodiment of this section, the device is lightning protected.
Specifically, the utility model discloses data acquisition port on the communication conversion chip adopts 485 and 232 dual mode, and 485 data acquisition port follows the Modbus agreement, can external 255 slave units (being data terminal) at most, has satisfied most of service conditions, and 232 data port makes things convenient for local on-line test.
The utility model discloses added the lightning protection design between equipment end-data terminal, mainly concatenated the anti-overflow fuse at 485 input/output ports. The design plays a protective role on equipment, and particularly under the environment that lightning frequently appears in the field, a lightning protection design is added.
The utility model adopts the design of the multi-endpoint data transmission device based on MQTT protocol and wireless communication technology, and utilizes the main advantages of the MQTT protocol, each device can be used as a host to actively release messages, and the other devices are used as slave machines to receive subscription messages so as to realize data information sharing; meanwhile, the MQTT protocol supports the function of caching the advice messages at the cloud platform end, and when the information missed by the equipment due to the offline is on line again, the cloud platform can push the information to the equipment end again.

Claims (8)

1. Multi-endpoint data transmission device based on MQTT agreement and wireless communication technique, its characterized in that, including main control singlechip, data terminal, switching power supply USP module, WIFI module, GPRS module, EEPROM data storage chip, communication conversion chip, mobile terminal APP and cloud platform, switching power supply USP module does the multi-endpoint data transmission device power supply, main control singlechip passes through with data terminal communication conversion chip data intercommunication, main control singlechip respectively with EEPROM data storage chip, GPRS module and WIFI module data are mutually controlled, GPRS module and WIFI module respectively with cloud platform data intercommunication, mobile terminal APP follows the cloud platform acquires data.
2. The multi-endpoint data transmission device based on the MQTT protocol and the wireless communication technology according to claim 1, wherein after the data terminal uploads different types of data to the communication conversion chip, the communication conversion chip converts the different types of data into uniform type of data through a Modbus protocol, and uploads the uniform type of data to the master single chip.
3. The multi-endpoint data transmission device based on the MQTT protocol and the wireless communication technology according to claim 1, wherein the GPRS module and the WIFI module both publish information to the cloud platform through the MQTT protocol, and the cloud platform subscribes information to the GPRS module and the WIFI module through the MQTT protocol, respectively.
4. The MQTT protocol and wireless communication technology-based multi-endpoint data transmission device according to claim 3, wherein the GPRS module has an industrial SIM card built in.
5. The multi-endpoint data transmission device based on the MQTT protocol and the wireless communication technology as claimed in claim 1, wherein the EEPROM data memory chip, with a storage capacity of 64KB, communicates with the main control single chip microcomputer using IIC.
6. The multi-endpoint data transmission device based on the MQTT protocol and the wireless communication technology according to claim 5, wherein the EEPROM data storage chip stores therein an IP address, a WIFI password and subscribed message data.
7. The MQTT protocol and wireless communication technology-based multi-endpoint data transmission device according to any one of claims 1-6, wherein the device is equipped with a low power consumption mode.
8. The multi-endpoint data transmission device based on MQTT protocol and wireless communication technology according to any of claims 1-6, wherein the device is lightning protected.
CN202020769174.5U 2020-05-11 2020-05-11 Multi-endpoint data transmission device based on MQTT protocol and wireless communication technology Expired - Fee Related CN212034143U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202020769174.5U CN212034143U (en) 2020-05-11 2020-05-11 Multi-endpoint data transmission device based on MQTT protocol and wireless communication technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202020769174.5U CN212034143U (en) 2020-05-11 2020-05-11 Multi-endpoint data transmission device based on MQTT protocol and wireless communication technology

Publications (1)

Publication Number Publication Date
CN212034143U true CN212034143U (en) 2020-11-27

Family

ID=73480893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202020769174.5U Expired - Fee Related CN212034143U (en) 2020-05-11 2020-05-11 Multi-endpoint data transmission device based on MQTT protocol and wireless communication technology

Country Status (1)

Country Link
CN (1) CN212034143U (en)

Similar Documents

Publication Publication Date Title
CN110381251A (en) The control method of web camera, apparatus and system
CN105573239A (en) High speed backboard bus communication control device and method
CN110971515A (en) Intelligent Internet of things gateway and Internet of things system based on same
WO2019119922A1 (en) Wireless sensor management method, apparatus, and system
CN104507148A (en) Low-power-consumption wireless sensor network
CN103837197B (en) A kind of continual humiture observation system and method
CN212034143U (en) Multi-endpoint data transmission device based on MQTT protocol and wireless communication technology
CN110072296A (en) A kind of lora networking Beidou monitoring data Transmission system and data transmission method
CN203870749U (en) Sensor-based forest fire-prevention monitoring and patrolling system
CN209526894U (en) A kind of lora networking Beidou monitoring data Transmission system
CN208461844U (en) A kind of smart city monitoring system based on LoRa wireless network
CN218734708U (en) Intelligent water meter based on BLE and intelligent water meter cluster
CN114157325B (en) Multi-head end communication conversion tail end device and system based on HPLC carrier network
CN209930292U (en) Remote monitoring system for LNG (liquefied Natural gas) bottle group station based on MQTT (message queuing transport) message protocol
CN214474530U (en) Internet of things gateway equipment based on LoRa-MQTT protocol
CN109287051A (en) Strong power controller and its strong power management method
CN115277867A (en) Collector and electric power communication method and system of Modbus protocol equipment based on collector
CN212060926U (en) Internet of things gateway and Internet of things control system
WO2014173117A1 (en) Method for fault location and isolation and detection device
CN204795120U (en) Split type extensible network message storage device
CN210744827U (en) Power grid internet of things system
CN209358559U (en) A kind of cloud gateway apparatus based on cloud platform
CN207249898U (en) Online low-consumption wireless pH value sensor
CN113763689A (en) Remote monitoring system based on high-performance DTU module
CN206224223U (en) A kind of intelligent home control system based on KNX and MQTT agreements

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201127

Termination date: 20210511