CN108769134B - Multi-protocol dual-host communication method - Google Patents
Multi-protocol dual-host communication method Download PDFInfo
- Publication number
- CN108769134B CN108769134B CN201810423391.6A CN201810423391A CN108769134B CN 108769134 B CN108769134 B CN 108769134B CN 201810423391 A CN201810423391 A CN 201810423391A CN 108769134 B CN108769134 B CN 108769134B
- Authority
- CN
- China
- Prior art keywords
- information
- host
- transmission
- transmission module
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
- Communication Control (AREA)
Abstract
The invention relates to the technical field of communication methods of the Internet of things, in particular to a multi-protocol double-host communication method. Compared with the prior art, the invention has the advantages that: the data transmission method has the advantages that a transmitter and a receiver of data are separated, the transmitter is responsible for data acquisition of monitoring equipment, the receiver is responsible for realizing cloud synchronous transmission, in order to realize simultaneous working of multiple communication protocols, a special data transmission method is designed, stability and reliability of the system are greatly enhanced, conflicts among data transmission of different communication modules are avoided, and the problem that the traditional scheme cannot work in severe environments such as high altitude, deep wells, large-scale metal frames and the like can be well solved.
Description
Technical Field
The invention relates to the technical field of communication methods of the Internet of things, in particular to a multi-protocol double-host communication method.
Background
In the field of the internet of things, the traditional scheme adopts a single machine design, the internet of things collection equipment is installed around a core control system of monitored equipment, and equipment working in high altitude, underground and other areas is provided, due to a complex and severe electromagnetic environment, severe interference can be often received in external communication, no matter which communication protocol is adopted, the stability can not be ensured, and in order to solve the problem, the effectiveness of communication is ensured by adopting a large number of LET cellular base stations in the prior art, the cost is very high, and the environment is not favorable for the requirement of environmental protection.
Disclosure of Invention
The invention aims to solve the defects of the prior art and provides a multi-protocol dual-host communication method, wherein data transmission and data reception are separately arranged on two hosts, the first host is used as a transmitter to collect data of monitoring equipment, and the second host is used as a receiver to realize cloud synchronous transmission, so that the stability and the reliability of a system are greatly enhanced.
In order to achieve the purpose, a multi-protocol dual-host communication method is designed, the dual-host communication method is connected with monitored equipment through a first host to acquire information, the first host sends the acquired information to a second host, and the second host transmits the received information to a cloud server.
In the information transmission process, the information transmission between the first host and the monitored equipment is realized through a ZIGBEE transmission module, the information transmission between the first host and the second host is realized through a LORA transmission module, and the information transmission between the second host and the cloud server is realized through a 4GLTE transmission module.
When the first host or the second host receives the information, the received information is temporarily stored into the respective dedicated memory buffer areas through a data receiving and transmitting interrupt system, the information transmission sequence is arranged, and finally the priority of the information transmission is determined according to the information sequence arrangement and the information source so as to avoid data collision.
The sequence arrangement for information transmission is realized by the following steps: and marking a timestamp accurate to a machine cycle at the front end of the information temporarily stored in the exclusive memory buffer area for marking the information sequence.
After the information transmission is finished in sequence, a flag bit is set through the data receiving and transmitting interrupt system, and the data receiving and transmitting system informs the processor to read all the information in the exclusive memory buffer zone in sequence and transmit the information through the transmission module.
Before data is sent, the processor sequentially arranges all the information read by the dedicated memory buffer area into a sending buffer area queue and marks the information in a target sending mode, and the processor sequentially extracts the information in a memory transmission mode and sends the information to the communication module corresponding to the mark in the target sending mode.
Compared with the prior art, the invention has the advantages that: the data transmission method has the advantages that a transmitter and a receiver of data are separated, the transmitter is responsible for data acquisition of monitoring equipment, the receiver is responsible for realizing cloud synchronous transmission, in order to realize simultaneous working of multiple communication protocols, a special data transmission method is designed, stability and reliability of the system are greatly enhanced, conflicts among data transmission of different communication modules are avoided, and the problem that the traditional scheme cannot work in severe environments such as high altitude, deep wells, large-scale metal frames and the like can be well solved.
Detailed Description
The principles of this method will be apparent to those skilled in the art, as the invention is further described below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The Internet of things equipment comprises two hosts, wherein the two hosts are divided into a transmitter and a receiver, and the first host is used as the transmitter and installed in an equipment control center and connected with a core control system of monitored equipment to acquire working data from the core control system. The second host is installed as a receiver at the bottom of the communication-facilitating device or at another location, receives the data transmitted by the transmitter, and transmits it to the cloud server. The current situation that a large number of LET cellular base stations are arranged in the prior art is changed, the stability and the reliability of the system are greatly enhanced, and the problem that the traditional scheme cannot work in severe environments such as high altitude, deep wells, large-scale metal frames and the like can be well solved.
The dual-host communication method is characterized in that a first host is connected with monitored equipment to acquire information, the first host sends the acquired information to a second host, and the second host transmits the received information to a cloud server.
In the information transmission process, the information transmission between the first host and the monitored equipment is realized through a ZIGBEE transmission module, the information transmission between the first host and the second host is realized through a LORA transmission module, and the information transmission between the second host and the cloud server is realized through a 4GLTE transmission module. Compared with the traditional single machine, the invention adopts double hosts, and each host is provided with a plurality of communication modules, so a method for solving the conflict among multiple protocols is required to be specially designed.
Dedicated memory buffers are respectively configured for the ZIGBEE transmission module, the LORA transmission module and the 4GLTE transmission module in the memories of the first host and the second host, when the first host or the second host receives information, the received information is temporarily stored in the respective dedicated memory buffers through a data receiving and transmitting interrupt system, the information transmission sequence is arranged, and finally the priority of the information transmission is determined according to the information sequence arrangement and the information source so as to avoid data collision.
The sequence arrangement for information transmission is realized by the following steps: and marking a timestamp accurate to a machine cycle at the front end of the information temporarily stored in the exclusive memory buffer area for marking the information sequence.
After the information transmission is finished in sequence, a flag bit is set through the data receiving and transmitting interrupt system, and the data receiving and transmitting system informs the processor to read all the information in the exclusive memory buffer zone in sequence and transmit the information through the transmission module.
Before data is sent, the processor sequentially arranges all the information read by the dedicated memory buffer area into a sending buffer area queue and marks the information in a target sending mode, and the processor sequentially extracts the information in a memory transmission mode and sends the information to the communication module corresponding to the mark in the target sending mode.
In one embodiment, dedicated memory buffers are respectively configured for the ZIGBEE transmission module and the LORA transmission module in the memory of the first host, dedicated memory buffers are respectively configured for the LORA transmission module and the 4GLTE transmission module in the memory of the second host, information such as operating state information of a monitored device or other working data is obtained from the monitored device by the first host through the ZIGBEE transmission module and temporarily stored in the dedicated memory buffers of the ZIGBEE transmission module, a timestamp accurate to a machine cycle is marked at a front end of the information temporarily stored in the dedicated memory buffers, and information transmission order is arranged according to the timestamp, where the machine cycle is a time required to complete a basic operation, and in this embodiment, is a time required for performing a data reading or collecting operation. Then, the data receiving and transmitting interruption system of the first host sets a flag bit, the position of the flag bit can be defined in advance, the data receiving and transmitting system informs a processor of the first host to sequentially read all information before the flag bit of the exclusive memory buffer area and sequentially arrange the information into a sending buffer area queue, meanwhile, the target sending mode is marked to be transmission through an LORA transmission module, the processor of the first host sequentially extracts the information and transmits the information to the LORA transmission module in a memory transmission mode, and the LORA transmission module transmits the information to the second host.
Similarly, after the second host obtains the information through the LORA transmission module, the information is temporarily stored in a dedicated memory buffer area of the LORA transmission module, the information front end temporarily stored in the exclusive memory buffer area is marked with a time stamp accurate to the machine period, and the information transmission sequence is arranged according to the time stamp, then, the data transceiving interruption system of the second host sets a flag bit, the position of the flag bit can be defined in advance, and the data receiving and transmitting system informs the processor of the second host to read all the information before the flag bit of the dedicated memory buffer area in turn and arrange the information in the queue of the sending buffer area in turn, and meanwhile, the target sending mode is marked to be transmission through a 4GLTE transmission module, the processor of the second host sequentially extracts information and transmits the information to the 4GLTE transmission module in a memory transmission mode, and the 4GLTE transmission module transmits the information to the cloud server.
In addition, according to the preset setting, different priorities can be set for different transmission modules so as to determine the sequence of processing of each transmission module by the processor.
Claims (2)
1. A multi-protocol dual-host communication method is characterized in that the dual-host communication method is connected with monitored equipment through a first host to acquire information, the first host sends the acquired information to a second host, and the second host transmits the received information to a cloud server;
in the information transmission process, the information transmission between the first host and the monitored equipment is realized through a ZIGBEE transmission module, the information transmission between the first host and the second host is realized through a LORA transmission module, and the information transmission between the second host and the cloud server is realized through a 4GLTE transmission module;
configuring dedicated memory buffer areas for the ZIGBEE transmission module, the LORA transmission module and the 4GLTE transmission module respectively, when the first host or the second host receives information, temporarily storing the received information into the respective dedicated memory buffer areas through a data receiving and transmitting interrupt system, and carrying out information transmission sequencing, and finally determining the priority of information transmission according to the information sequencing to avoid data collision;
after the information transmission is arranged in sequence, a flag bit is set through a data receiving and transmitting interrupt system, the data receiving and transmitting interrupt system informs a processor to read all information before the flag bit in an exclusive memory buffer zone in sequence and transmit the information through a transmission module;
before data is sent, the processor sequentially arranges all the information read by the exclusive memory buffer area into a sending buffer area queue and marks the information in a target sending mode, and the processor sequentially extracts the information in a memory transmission mode and sends the information to the communication module corresponding to the mark in the target sending mode;
the first host computer is installed in a control center of the monitored equipment, and the second host computer is installed in a position easy to communicate.
2. The multi-protocol dual-host communication method according to claim 1, wherein the information transmission sequence is implemented by: and marking a timestamp accurate to a machine cycle at the front end of the information temporarily stored in the exclusive memory buffer area for marking the information sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810423391.6A CN108769134B (en) | 2018-05-06 | 2018-05-06 | Multi-protocol dual-host communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810423391.6A CN108769134B (en) | 2018-05-06 | 2018-05-06 | Multi-protocol dual-host communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108769134A CN108769134A (en) | 2018-11-06 |
CN108769134B true CN108769134B (en) | 2021-10-26 |
Family
ID=64009137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810423391.6A Active CN108769134B (en) | 2018-05-06 | 2018-05-06 | Multi-protocol dual-host communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108769134B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449431B (en) * | 2018-05-06 | 2024-04-09 | 大器物联科技(广州)有限公司 | Dual-host communication method and system |
CN111585603A (en) * | 2020-05-18 | 2020-08-25 | 天津市中环系统工程有限责任公司 | Dual-wireless link hot standby circuit and redundant communication method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917666A (en) * | 2010-08-31 | 2010-12-15 | 中国农业大学 | Mobile farmland intelligent data acquisition system and method |
KR20130046037A (en) * | 2011-10-27 | 2013-05-07 | 순천대학교 산학협력단 | Event-based data collect method for energy efficiency on greenhouse |
CN106453666A (en) * | 2016-12-20 | 2017-02-22 | 四川长虹电器股份有限公司 | Gateway communication system based on dongle agent |
CN106774209A (en) * | 2016-12-26 | 2017-05-31 | 北京梵天智能工业科技有限公司 | A kind of industrial equipment collecting method and device |
CN106950847A (en) * | 2017-05-09 | 2017-07-14 | 青岛理工大学 | Intelligent home control system based on ZigBee and cloud computing |
CN106953921A (en) * | 2017-03-27 | 2017-07-14 | 上海景语智能科技有限公司 | A kind of Cloud Server, environmental perception device, system and its control method |
CN107065657A (en) * | 2017-03-20 | 2017-08-18 | 苏州德姆斯信息技术有限公司 | Machine state wireless monitoring device, method and system |
-
2018
- 2018-05-06 CN CN201810423391.6A patent/CN108769134B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917666A (en) * | 2010-08-31 | 2010-12-15 | 中国农业大学 | Mobile farmland intelligent data acquisition system and method |
KR20130046037A (en) * | 2011-10-27 | 2013-05-07 | 순천대학교 산학협력단 | Event-based data collect method for energy efficiency on greenhouse |
CN106453666A (en) * | 2016-12-20 | 2017-02-22 | 四川长虹电器股份有限公司 | Gateway communication system based on dongle agent |
CN106774209A (en) * | 2016-12-26 | 2017-05-31 | 北京梵天智能工业科技有限公司 | A kind of industrial equipment collecting method and device |
CN107065657A (en) * | 2017-03-20 | 2017-08-18 | 苏州德姆斯信息技术有限公司 | Machine state wireless monitoring device, method and system |
CN106953921A (en) * | 2017-03-27 | 2017-07-14 | 上海景语智能科技有限公司 | A kind of Cloud Server, environmental perception device, system and its control method |
CN106950847A (en) * | 2017-05-09 | 2017-07-14 | 青岛理工大学 | Intelligent home control system based on ZigBee and cloud computing |
Also Published As
Publication number | Publication date |
---|---|
CN108769134A (en) | 2018-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108769134B (en) | Multi-protocol dual-host communication method | |
CN109067644B (en) | Method and device for realizing PROFINET industrial Ethernet gateway | |
JP2017538319A5 (en) | ||
CN105262555A (en) | Time synchronization method, programmable logic device, single board and network element | |
CN104392255A (en) | No-blind zone precise locating system and locating method for radio frequency identification | |
CN116418647A (en) | Method, device and equipment for receiving and transmitting network management information | |
CN106850331B (en) | Ethernet frame sending device with synchronous clock function in traffic field | |
CN103905995A (en) | Data and clock synchronous signal transmission method in ultra-bandwidth indoor positioning system | |
CN108650253B (en) | Multi-protocol communication method and system of double hosts | |
CN103107862B (en) | Logical device and MDIO data transmission method for uplink thereof | |
CN101159641B (en) | Can bus extension method | |
CN204463106U (en) | UM-BUS bus run Failure Detection Controller | |
CN103346943A (en) | Method and system of data transmission | |
CN104539528B (en) | Multi-core communication equipment and its message interaction method between radius server | |
CN104683090A (en) | Expandable clock monitoring device and method | |
CN212013066U (en) | Positioning base station based on ultra wide band technology | |
CN104102568A (en) | Multi-serial port communication test system | |
CN103678235B (en) | Based on parallel pipeline network data processing device and method | |
CN103813382A (en) | Clock synchronization method, device and system | |
CN102446157A (en) | Communication method and communication device of processor core based on array structure | |
CN104202227A (en) | Fixed time slice based RS485 rapid communication method | |
CN211577432U (en) | Polling type on-line automatic delay compensation high-precision master-slave clock system | |
CN104219623A (en) | Mining positioning base station | |
WO2019000432A1 (en) | Time synchronization method and device | |
CN109275086B (en) | Positioning communication system and data transmission module |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |