CN113347586A - Distributed multi-terminal communication system based on Lora and industrial Internet of things - Google Patents

Distributed multi-terminal communication system based on Lora and industrial Internet of things Download PDF

Info

Publication number
CN113347586A
CN113347586A CN202110596238.5A CN202110596238A CN113347586A CN 113347586 A CN113347586 A CN 113347586A CN 202110596238 A CN202110596238 A CN 202110596238A CN 113347586 A CN113347586 A CN 113347586A
Authority
CN
China
Prior art keywords
things
internet
lora
host
data
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
CN202110596238.5A
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.)
Hefei University of Technology
Original Assignee
Hefei University of Technology
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 Hefei University of Technology filed Critical Hefei University of Technology
Priority to CN202110596238.5A priority Critical patent/CN113347586A/en
Publication of CN113347586A publication Critical patent/CN113347586A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention discloses a distributed multi-terminal communication system based on Lora and an industrial Internet of things, which relates to the technical field of communication, provides a solution for establishing communication among distributed multi-terminals based on Lora and the industrial Internet of things, and can reliably realize data transmission between a host and a plurality of slave machines through a communication system established by a Lora module within a range of several kilometers, and simultaneously avoid using complex cable connection in an industrial field; the host establishes a link with the Internet of things management platform through the WIFI module, data of each slave is synchronized to the cloud server to be stored, and each item of data can be clearly indexed and inquired on the Internet of things platform; and a control command can be sent to the host machine through the management platform of the internet of things, and then a control instruction is sent to the slave machines, so that the control function of each slave machine is realized.

Description

Distributed multi-terminal communication system based on Lora and industrial Internet of things
The technical field is as follows:
the invention relates to the technical field of communication, in particular to a distributed multi-terminal communication system based on Lora and an industrial Internet of things.
Background art:
the internet of things is that various required information is acquired through various information sensors, and the ubiquitous connection of objects and people is realized through various possible network accesses, so that the intelligent sensing, identification and management of the objects and the process are realized.
The LoRa is a long-distance wireless transmission technology based on a spread spectrum technology, and is one of LPWAN communication technologies. The scheme provides a simple means for realizing long-distance and low-power consumption wireless communication for users. The advantage is the long distance capability in the technical sense. A single gateway or base station may cover an entire city or hundreds of square kilometers.
With the development of industry, the demands for accurate and efficient multi-terminal data acquisition, storage, processing and multi-terminal networking control are more urgent. At present, communication connection among different terminals is usually realized by erecting cables in the industry, and the industrial system is high in cost, poor in flexibility and complex in system. Therefore, a distributed multi-terminal communication system based on Lora and the industrial internet of things is provided.
The invention content is as follows:
the distributed multi-terminal communication system based on Lora and the industrial internet of things not only can reduce industrial cost and improve flexibility of the industrial system, but also has remarkable advantages in information storage, processing and multi-terminal networking control.
The technical problem to be solved by the invention is realized by adopting the following technical scheme:
a distributed multi-terminal communication system based on Lora and an industrial Internet of things is composed of a host, an Internet of things management platform and a plurality of terminal slave machines.
The host computer carries on a Lora module, a WIFI module and a main control processor.
On one hand, the master control processor of the host controls the Lora module to establish contact with the slave machines in an SPI communication mode, and transmits command codes to each slave machine in a polling mode to control the slave machines to transmit sensor data or execute corresponding operations; on the other hand, the WIFI module is in contact with the management platform of the Internet of things, the data of each slave machine is uploaded to the management platform of the Internet of things, the controlled variable of the management platform of the Internet of things is received, and the controlled variable is transmitted to the corresponding slave machine.
The slave machine is provided with a Lora module, a master control processor, a sensor and a controller.
On one hand, the master control processor of the slave completes industrial information acquisition through the driving sensor and completes industrial control through the driving controller; on the other hand, the Lora module is controlled to upload the information collected by the sensor to the host through controlling the SPI communication mode, and the controller is driven to complete industrial control by receiving the control quantity sent by the host.
The management platform of the Internet of things comprises data statistics, data storage and equipment abnormal information recording.
The data statistics comprises current collected data and current set control quantity; the data storage comprises historical acquisition data and historical setting control; the equipment abnormal information record comprises equipment running state abnormal information, collected data overrun information and the like.
In addition, the management platform of the internet of things can also send control commands.
The communication between the host and the slave is based on a Modbus protocol; the communication between the host and the management platform of the Internet of things is based on a TCP protocol.
The communication protocol between the host and the slave through the Lora module is specifically as follows:
the data packets sent by the host and received by the slave comprise network addresses, equipment addresses, operation codes, parameters, data lengths and check codes, and the format is as follows:
Figure BDA0003091234900000021
the data packet sent by the slave and received by the host comprises a network address, an equipment address, data length and a check code, and the format is as follows:
Figure BDA0003091234900000031
the communication protocol between the host and the management platform of the internet of things through the WIFI module is specifically as follows:
the data packet sent by the host and received by the management platform of the internet of things comprises a network address, an equipment address, data and a check code, and the format is as follows:
Figure BDA0003091234900000032
the data packet that thing networking management platform sent, host computer received includes: network address, equipment address, operation code, operand, check code, the format is as follows:
Figure BDA0003091234900000033
the invention has the beneficial effects that: the invention provides a solution for establishing communication among distributed multiple terminals based on Lora and an industrial Internet of things, and a communication system established by a Lora module within a range of several kilometers can reliably realize data transmission between a host and multiple slave machines, and simultaneously avoids complex cable connection in an industrial field; the host establishes a link with the Internet of things management platform through the WIFI module, data of each slave is synchronized to the cloud server to be stored, and each item of data can be clearly indexed and inquired on the Internet of things platform; and a control command can be sent to the host machine through the management platform of the internet of things, and then a control instruction is sent to the slave machines, so that the control function of each slave machine is realized.
Description of the drawings:
FIG. 1 is a schematic diagram of a communication network according to the present invention;
FIG. 2 is a flowchart illustrating a method for a host to read and upload slave data according to an embodiment of the present invention;
fig. 3 is a flowchart of issuing a control quantity by the management platform of the internet of things in the embodiment of the invention.
The specific implementation mode is as follows:
in order to make the technical means, the creation features, the achievement purposes and the effects of the invention easy to understand, the invention is further explained below by combining the specific embodiments and the attached drawings.
Embodiments of the present invention are further described below with reference to fig. 1-3. The communication system based on Lora and the industrial Internet of things is applied to the aspect of distributed gas mass flowmeters. The communication system is composed of a host, an Internet of things management platform and a plurality of terminal slave machines.
The host computer carries on Lora module, WIFI module and master control treater. The master processor is STM32F103C8T 6. The Lora module selects a spread spectrum factor of 7, a frequency of 433MHz and a bandwidth of 125kHz, and uses the SPI bus to communicate with the main control processor. The WIFI module selects ESP8266 and communicates with the master control processor through a serial port.
The slave machine is provided with a Lora module, a main control processor, a sensor and a controller. The master processor is STM32F103C8T 6. The Lora module selects a spread spectrum factor of 7, a frequency of 433MHz and a bandwidth of 125kHz, and uses the SPI bus to communicate with the main control processor. The sensor is a gas flow sensor and can output corresponding voltage values according to the flow. The controller is a gas flow valve and can control the closing degree of the valve according to the magnitude of input voltage.
Wherein the Lora module uses a 5cm copper spring as a transmitting antenna.
The management platform of the internet of things stores and analyzes the gas flow and can control the gas flow.
The communication protocol between the host and the slave and between the host and the physical platform refers to the data packet format in the invention content.
The network address NET _ ADDR is set to 0xA5, which can be modified by itself to avoid the interference caused by the signal outside the system entering the communication system. The device address SLAVE _ ADDR takes the value from 0x00-0xFF, corresponding to 256 terminals. The OP _ CODE includes 0x00 and 0x01, where 0x00 represents write data; 0x01 represents read data. The parameter PARM includes the number of each sensor corresponding to the controller, e.g. 0x01 corresponding to the ADC sensor. The DATA is the DATA content of the transmission, and LEN is the corresponding DATA length. The check code adopts CRC check code.
The following further describes the specific implementation steps of this embodiment by taking the uploading of the gas flow data and the setting of the gas flow control amount as examples.
Referring to fig. 2, the master sends a read command to the slave, waiting for the slave to respond. And after receiving the host reading command, the slave machine sends data of each sensor. The host reads data collected by the sensor of the slave and uploads the data to the management platform of the Internet of things. The master sends data in a polling mode, namely, the SLAVE _ ADDR is increased from 1 to the maximum number N of the SLAVEs and then returns to 1.
Referring to fig. 3, the master interrupt responds to the control command of the internet of things management platform, and sends the control command to the slave. And after receiving the host control command, the slave controls the controller to complete corresponding operation and then sends a task response signal to the host. The host receives the response signal, and completes the control operation after checking.
In the specific embodiment of the invention, the flow control of the distributed multi-equipment can be realized based on the communication system constructed by the Lora and the industrial internet. The main machine can complete the gas flow collection and gas flow control of about 200 slave machines within seconds and kilometers. All the devices are connected in a wireless mode, so that the problem of complex wiring on a complex industrial site is solved, the overall flexibility of the system is improved, and the industrial cost is reduced.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (10)

1. The utility model provides a distributed multi-terminal communication system based on Lora and industry thing networking which characterized in that: the system is composed of a host, an Internet of things management platform and a plurality of terminal slaves.
2. The distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 1, wherein: the host computer carries on a Lora module, a WIFI module and a main control processor.
3. The distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 2, wherein: on one hand, the master control processor of the host controls the Lora module to establish contact with the slave machines in an SPI communication mode, and transmits command codes to each slave machine in a polling mode to control the slave machines to transmit sensor data or execute corresponding operations; on the other hand, the WIFI module is in contact with the management platform of the Internet of things, the data of each slave machine is uploaded to the management platform of the Internet of things, the controlled variable of the management platform of the Internet of things is received, and the controlled variable is transmitted to the corresponding slave machine.
4. The distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 1, wherein: the slave machine is provided with a Lora module, a master control processor, a sensor and a controller.
5. The distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 4, wherein: on one hand, the master control processor of the slave completes industrial information acquisition through the driving sensor and completes industrial control through the driving controller; on the other hand, the Lora module is controlled to upload the information collected by the sensor to the host through controlling the SPI communication mode, and the controller is driven to complete industrial control by receiving the control quantity sent by the host.
6. The distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 1, wherein: the management platform of the Internet of things comprises data statistics, data storage and equipment abnormal information recording.
7. The distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 6, wherein: the data statistics comprises current collected data and current set control quantity; the data storage comprises historical acquisition data and historical setting control; the equipment abnormal information record comprises equipment running state abnormal information and collected data overrun information.
8. The distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 1, wherein: the communication between the host and the slave is based on a Modbus protocol; the communication between the host and the management platform of the Internet of things is based on a TCP protocol.
9. The distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 8, wherein: the communication protocol between the host and the slave through the Lora module is specifically as follows:
the data packets sent by the host and received by the slave comprise network addresses, equipment addresses, operation codes, parameters, data lengths and check codes, and the format is as follows:
Figure FDA0003091234890000021
the data packet sent by the slave and received by the host comprises a network address, an equipment address, data length and a check code, and the format is as follows:
Figure FDA0003091234890000022
10. the distributed multi-terminal communication system based on Lora and the internet of things of industry according to claim 8, wherein: the communication protocol between the host and the management platform of the internet of things through the WIFI module is specifically as follows:
the data packet sent by the host and received by the management platform of the internet of things comprises a network address, an equipment address, data and a check code, and the format is as follows:
Figure FDA0003091234890000023
the data packet that thing networking management platform sent, host computer received includes: network address, equipment address, operation code, operand, check code, the format is as follows:
Figure FDA0003091234890000031
CN202110596238.5A 2021-05-30 2021-05-30 Distributed multi-terminal communication system based on Lora and industrial Internet of things Pending CN113347586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110596238.5A CN113347586A (en) 2021-05-30 2021-05-30 Distributed multi-terminal communication system based on Lora and industrial Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110596238.5A CN113347586A (en) 2021-05-30 2021-05-30 Distributed multi-terminal communication system based on Lora and industrial Internet of things

Publications (1)

Publication Number Publication Date
CN113347586A true CN113347586A (en) 2021-09-03

Family

ID=77472108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110596238.5A Pending CN113347586A (en) 2021-05-30 2021-05-30 Distributed multi-terminal communication system based on Lora and industrial Internet of things

Country Status (1)

Country Link
CN (1) CN113347586A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114509967A (en) * 2021-12-31 2022-05-17 南京晨光集团有限责任公司 RDDV valve digital controller based on Internet of things
CN117061274A (en) * 2023-10-12 2023-11-14 天津卓朗科技发展有限公司 LORA remote control method and device for Ethernet communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207380507U (en) * 2017-11-07 2018-05-18 杭州轨物科技有限公司 Wireless modbus concentrators based on LoRa technologies
CN108184232A (en) * 2018-01-23 2018-06-19 珠海派诺科技股份有限公司 LORA wireless communications relay method, apparatus and system
CN207560061U (en) * 2017-12-26 2018-06-29 国网河南省电力公司信息通信公司 The industrial platform of internet of things system architecture away from environmental monitoring system based on Lora spread spectrum radios length
CN112185092A (en) * 2020-09-24 2021-01-05 西安科技大学 Farmland environment wireless sensor network monitoring system and wireless transmission method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207380507U (en) * 2017-11-07 2018-05-18 杭州轨物科技有限公司 Wireless modbus concentrators based on LoRa technologies
CN207560061U (en) * 2017-12-26 2018-06-29 国网河南省电力公司信息通信公司 The industrial platform of internet of things system architecture away from environmental monitoring system based on Lora spread spectrum radios length
CN108184232A (en) * 2018-01-23 2018-06-19 珠海派诺科技股份有限公司 LORA wireless communications relay method, apparatus and system
CN112185092A (en) * 2020-09-24 2021-01-05 西安科技大学 Farmland environment wireless sensor network monitoring system and wireless transmission method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114509967A (en) * 2021-12-31 2022-05-17 南京晨光集团有限责任公司 RDDV valve digital controller based on Internet of things
CN117061274A (en) * 2023-10-12 2023-11-14 天津卓朗科技发展有限公司 LORA remote control method and device for Ethernet communication
CN117061274B (en) * 2023-10-12 2024-01-12 天津卓朗科技发展有限公司 LORA remote control method and device for Ethernet communication

Similar Documents

Publication Publication Date Title
CN108011814B (en) Multi-protocol intelligent gateway based on narrowband Internet of things and implementation method thereof
CN104660682B (en) A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE
CN113347586A (en) Distributed multi-terminal communication system based on Lora and industrial Internet of things
CN102903219B (en) Remote wireless real-time greenhouse environment monitoring system
CN204598011U (en) A kind of OPC data acquisition and monitoring intelligent terminal based on TD-LTE
CN106685774B (en) Smart home management method, device and system
CN102053935A (en) MODBUS serial communication protocol-based communication method
CN103123470A (en) Method for controlling a field device
CN104486783A (en) Multi-state wireless gateway system for multi-state wireless monitoring network and control method
CN106292518A (en) Remote PLC monitoring and debugging system and method
CN202035000U (en) Control host for internet of things and internet of things provided with same
CN203758635U (en) Wireless intelligent temperature transmitter
CN108512907A (en) The equipment communication means of half transparent transmission
CN103823775A (en) Serial port and Internet port smart converter
CN203552252U (en) Data conversion device based on internet of things
CN105955902A (en) Serial-to-wireless communicator
CN112637370B (en) Data processing method, device, equipment and storage medium
CN203387692U (en) Wireless gateway equipment capable of data conversion of ZigBee signal with Wi-Fi signal
CN105206028A (en) Information acquisition device and system based on internet of things
CN204465598U (en) A kind of multiprotocol conversion alert Information Remote Transmission System based on MODBUS
CN114253210A (en) Json-RPC-based PLC communication system and method
CN203325197U (en) Front-end information collection device for internet of things
CN207530856U (en) A kind of internet of things data acquisition terminal based on ZigBee
CN105182807A (en) Data collection processing system based on 3G network and method
CN205644530U (en) Serial ports changes wireless communicator

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210903

RJ01 Rejection of invention patent application after publication