CN114220256B - Gas sampling wireless control protocol - Google Patents

Gas sampling wireless control protocol Download PDF

Info

Publication number
CN114220256B
CN114220256B CN202010917432.4A CN202010917432A CN114220256B CN 114220256 B CN114220256 B CN 114220256B CN 202010917432 A CN202010917432 A CN 202010917432A CN 114220256 B CN114220256 B CN 114220256B
Authority
CN
China
Prior art keywords
data
received
frame
receiving
sequence number
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
Application number
CN202010917432.4A
Other languages
Chinese (zh)
Other versions
CN114220256A (en
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.)
Shanghai Academy of Environmental Sciences
Original Assignee
Shanghai Academy of Environmental Sciences
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 Shanghai Academy of Environmental Sciences filed Critical Shanghai Academy of Environmental Sciences
Priority to CN202010917432.4A priority Critical patent/CN114220256B/en
Publication of CN114220256A publication Critical patent/CN114220256A/en
Application granted granted Critical
Publication of CN114220256B publication Critical patent/CN114220256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N1/00Sampling; Preparing specimens for investigation
    • G01N1/02Devices for withdrawing samples
    • G01N1/22Devices for withdrawing samples in the gaseous state
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a gas sampling wireless control protocol, which comprises a remote control side and a mobile side: the data flow sent by the remote control side is as follows: if the data to be transmitted is in the specified interval, filling the data into a fixed frame format, filling information such as length and the like, and forming a data frame to be transmitted; if no data to be sent exists, filling the identification domain with no data, filling random data and length, and forming a data frame to be sent; transmitting the generated data frame; the mobile side receives the data flow as follows: if no data is received within a prescribed time, indicating a reception error; if the data is received, checking the correctness of the received data; judging whether the loss occurs or not according to the received transmission sequence number; according to the results of S2, S3 and S4, identifying whether the local terminal receives an error or not; and judging whether the data sent by the local terminal is correctly received by the other party according to the received receiving sequence number. The invention has the advantage that the receiving and transmitting sequence numbers are added in the receiving and transmitting frame format, so that the fault of the communication link can be detected rapidly.

Description

Gas sampling wireless control protocol
Technical Field
The invention relates to the technical field of wireless systems between a remote controller and gas sampling equipment, in particular to a gas sampling wireless control protocol.
Background
The wireless remote control is used for realizing non-contact remote control of a controlled target and is widely applied to the fields of industrial control, aerospace and household appliances. Wireless remote control and wireless transmission systems provide increased freedom of movement over wired and infrared devices. Thereby, the wireless remote control device and the wireless transmission system are increasingly applied in the industrial field. The advantage of the relative cable connection is that it is low in installation cost (no wiring, no underground engineering, no cable trough), increases flexibility and reduces maintenance costs, and the existing control commands sent from the remote control end to the remote device are mostly analog unidirectional communications (PWM). For a one-time control command, the remote control end transmits the command to the remote device through a wireless link, but the remote control end cannot know whether the device end receives the control command correctly and executes the control command correctly. There are also bi-directional data links used to transmit and receive data. But it is difficult to detect a unidirectional link failure.
Disclosure of Invention
The invention aims to provide a gas sampling wireless control protocol which has the advantages that a receiving and transmitting sequence number is added in a receiving and transmitting frame format, so that the fault of a communication link can be detected quickly, and the problem that the control command sent by the existing remote control end to remote equipment is solved, wherein analog unidirectional communication (PWM) is adopted mostly. For a one-time control command, the remote control end transmits the command to the remote device through a wireless link, but the remote control end cannot know whether the device end receives the control command correctly and executes the control command correctly. There are also bi-directional data links used to transmit and receive data. But it is difficult to detect the problem of unidirectional link failure.
In order to achieve the above purpose, the present invention provides the following technical solutions: a gas sampling wireless control protocol comprising a remote control side and a mobile side:
the data flow sent by the remote control side is as follows:
s1: and if the data to be transmitted is in the specified interval, filling the data into a fixed frame format, filling information such as length and the like, and forming a data frame to be transmitted.
S2: if no data is to be sent in the set time, filling the identification field with no data, and filling random data and length to form a data frame to be sent.
S3: and filling the current transmission sequence number according to the sequence number of the last transmission frame, and filling the received frame sequence number and the receiving state according to the received opposite transmission sequence number and the receiving detection result.
S4: and sending the generated data frame.
The mobile side receives the data flow as follows:
s1: if no data is received within a prescribed time, a reception error is indicated.
S2: if data is received, checking the correctness of the received data according to the frame header standard, the length, the verification and the type.
S3: if the received data frame is correct, continuing to analyze the received data frame, if the type indicates that the data exists, transmitting the data field data to the receiving end software, and if the data field indicates that the data does not exist, discarding the data field.
S4: and judging whether the loss occurs or not according to the received transmission sequence number.
S5: and according to the results of S2, S3 and S4, identifying whether the local terminal receives an error or not.
S6: and judging whether the data sent by the local terminal is correctly received by the other party according to the received receiving sequence number.
S7: and delivering the received data to other software for processing.
Preferably, the data frame includes: frame header, length, transmission sequence number, reception status, type, data, frame efficiency, transmitting end transmits data/command if there is data/command transmission in a prescribed time; if no data is transmitted at a prescribed time (100 ms), a frame with a command ID of 0 is transmitted; and transmitting effective data or transmitting heartbeat frames between the transmission and the reception.
Preferably, the local receiving sequence number is updated every time a complete frame is received; setting the receiving state if the received sequence number is discontinuous with the last time; a reception status bit indicating that a reception error has occurred; the reception state can be cleared only when the reception sequence number is transmitted a plurality of times (10 times).
Preferably, if the transmission sequence number of the received frame is discontinuous, it represents that there is a data loss; if a valid frame is not received within a prescribed time, a communication failure in the receiving direction is represented.
Preferably, for local sender error detection, the received data frame is analyzed; if the local receiving is normal, but the receiving sequence number of the received frame is unchanged, indicating that the link sent to the far end fails; if the local receiving is normal, but the receiving state is set in the received receiving sequence number, the receiving state indicates that the receiving of the opposite party is wrong.
Compared with the prior art, the invention has the beneficial effects that: and a receiving and transmitting sequence number is added in a receiving and transmitting frame format, so that the communication link fault can be detected rapidly.
Drawings
FIG. 1 is a schematic flow diagram of a receiving/transmitting end of the present invention;
fig. 2 is a schematic diagram of a transmission frame format according to the present invention;
FIG. 3 is a schematic diagram illustrating the fault detection of a bi-directional communication unidirectional link according to the present invention;
fig. 4 is a schematic diagram of a bidirectional communication reception error notification method according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper", "lower", "inner", "outer", "front", "rear", "both ends", "one end", "the other end", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific direction, be configured and operated in the specific direction, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "provided," "connected," and the like are to be construed broadly, and may be fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Referring to fig. 1 to 2, a gas sampling wireless control protocol according to an embodiment of the present invention includes a remote control side and a mobile side:
the data flow sent by the remote control side is as follows:
s1: if the data to be transmitted is in the prescribed interval, filling the data into a fixed frame format, filling information such as length and the like, and forming a data frame to be transmitted, wherein the data frame comprises: frame header, length, transmission sequence number, reception status, type, data, frame efficiency, transmitting end transmits data/command if there is data/command transmission in a prescribed time; if no data is transmitted at a prescribed time (100 ms), a frame with a command ID of 0 is transmitted; and transmitting effective data or transmitting heartbeat frames between the transmission and the reception.
S2: if no data is to be sent in the set time, filling the identification field with no data, and filling random data and length to form a data frame to be sent.
S3: and filling the current transmission sequence number according to the sequence number of the last transmission frame, and filling the received frame sequence number and the receiving state according to the received opposite transmission sequence number and the receiving detection result.
S4: and sending the generated data frame.
The mobile side receives the data flow as follows:
s1: if no data is received within a prescribed time, a reception error is indicated.
S2: if data is received, checking the correctness of the received data according to the frame header standard, the length, the verification and the type.
S3: if the received data frame is correct, continuing to analyze the received data frame, if the type indicates that the data exists, transmitting the data field data to the receiving end software, and if the data field indicates that the data does not exist, discarding the data field.
S4: judging whether the loss occurs according to the received transmission sequence number, if the received transmission sequence number of the frame is discontinuous, representing that the data is lost; if a valid frame is not received within a prescribed time, a communication failure in the receiving direction is represented.
S5: according to the results of S2, S3 and S4, identifying whether the local end receives errors or not, and for the error detection of the local transmitting end, analyzing the received data frames; if the local receiving is normal, but the receiving sequence number of the received frame is unchanged, indicating that the link sent to the far end fails; if the local receiving is normal, but the receiving state is set in the received receiving sequence number, the receiving state indicates that the receiving of the opposite party is wrong.
S6: judging whether the data sent by the local terminal is correctly received by the other party according to the received receiving sequence number, and updating the local receiving sequence number every time a frame is received completely; setting the receiving state if the received sequence number is discontinuous with the last time; a reception status bit indicating that a reception error has occurred; the reception state can be cleared only when the reception sequence number is transmitted a plurality of times (10 times).
S7: and delivering the received data to other software for processing.
Referring to fig. 3 to 4, a gas sampling wireless control protocol according to an embodiment of the present invention:
communication a detects a communication failure of a to B: the data frame sent by the A comprises a sending sequence number of the data frame; the data frame sent by the B has own sending sequence number and receiving sequence number of the response A;
if the receiving sequence number in the frame sent by the B is unchanged; a can determine that B has not received the data sent by a. I.e., a to B communication failure, but B to a communication is normal;
communication a detects a communication failure of B to a: the communication fault can be judged according to the sequence number and the time, because the data exist in the intervals from B to A and the communication fault can be judged without the data.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (2)

1. A gas sampling wireless control protocol, including remote control side and mobile side, characterized in that:
the data flow sent by the remote control side is as follows:
s1: and if the data to be transmitted is in a specified interval, filling the data into a fixed frame format, filling information, and forming a data frame to be transmitted, wherein the data frame comprises: frame header, length, send sequence number, receive status, type, data, frame efficiency;
s2: if no data to be sent exists in the set time, filling the identification domain with no data, and filling random data and length to form a data frame to be sent;
s3: filling the current transmission sequence number according to the sequence number of the last transmission frame, and filling the receiving sequence number and the receiving state according to the received opposite transmission sequence number and the receiving detection result;
s4: the generated data frame is transmitted and the data frame is transmitted,
the mobile side receives the data flow as follows:
s1: if no data is received within a prescribed time, indicating a reception error;
s2: if the data is received, checking the correctness of the received data according to the standard, the length, the verification and the type of the frame header;
s3: if the received data frame is correct, continuing to analyze the received data frame, if the type indicates that the data exists, giving the data domain data to the receiving end software, and if the data domain indicates that the data does not exist, discarding the data domain;
s4: judging whether the loss occurs according to the received transmission sequence number, if the received transmission sequence number of the frame is discontinuous, representing that the data is lost; if the valid frame is not received within the specified time, representing the communication failure of the receiving direction;
s5: according to the results of S2, S3 and S4, identifying whether the local end receives the error, and analyzing the received data frame for detecting the error of the local transmitting end; if the local receiving is normal, but the receiving sequence number of the received frame is unchanged, indicating that the link sent to the far end fails; if the local receiving is normal, but the receiving state in the received receiving sequence number is set, the receiving state indicates that the receiving of the opposite party is wrong;
s6: judging whether the data sent by the local terminal is correctly received by the other party according to the received receiving sequence number, and updating the local receiving sequence number every time a frame is received completely; setting the receiving state if the received sequence number is discontinuous with the last time; a reception status bit indicating that a reception error has occurred; only when the receiving sequence number is transmitted a plurality of times, the receiving state can be cleared;
s7: and delivering the received data to other software for processing.
2. A gas sampling wireless control protocol according to claim 1, wherein: the transmitting end transmits the data/command if the data/command is transmitted within the specified time; if no data is transmitted within a prescribed time, a frame with a command ID of 0 is transmitted; and transmitting effective data or transmitting heartbeat frames between the transmission and the reception.
CN202010917432.4A 2020-09-03 2020-09-03 Gas sampling wireless control protocol Active CN114220256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010917432.4A CN114220256B (en) 2020-09-03 2020-09-03 Gas sampling wireless control protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010917432.4A CN114220256B (en) 2020-09-03 2020-09-03 Gas sampling wireless control protocol

Publications (2)

Publication Number Publication Date
CN114220256A CN114220256A (en) 2022-03-22
CN114220256B true CN114220256B (en) 2023-06-27

Family

ID=80695616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010917432.4A Active CN114220256B (en) 2020-09-03 2020-09-03 Gas sampling wireless control protocol

Country Status (1)

Country Link
CN (1) CN114220256B (en)

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4543571B2 (en) * 2001-03-15 2010-09-15 日本電気株式会社 Data retransmission method and communication system
KR101229768B1 (en) * 2005-03-07 2013-02-06 퀄컴 인코포레이티드 Block ack protocols for wireless packet network
JP2006319934A (en) * 2005-05-11 2006-11-24 Waimachikku Kk Wireless network node
CN101123481B (en) * 2006-08-10 2012-10-17 迈普通信技术股份有限公司 Data frame encapsulation method of IP telecom network
WO2008023638A1 (en) * 2006-08-21 2008-02-28 Panasonic Corporation Wireless communication system, communication control method and communication node
CN101409611B (en) * 2008-11-21 2011-05-18 北京佳讯飞鸿电气股份有限公司 Communication method for IP scheduling
JPWO2010140192A1 (en) * 2009-06-03 2012-11-15 株式会社東芝 Communication device
CN102215144B (en) * 2011-05-17 2016-06-29 中兴通讯股份有限公司 The measuring method of packet loss and system
CN102811109A (en) * 2011-06-01 2012-12-05 中兴通讯股份有限公司 Method and system for detecting loss of service frames of uplinking enhanced dedicated channel
CN103036661B (en) * 2013-01-08 2015-06-24 西安电子科技大学 Automatic retransmission request method with self-healing function
CN104869545B (en) * 2015-05-15 2018-08-31 哈尔滨海能达科技有限公司 A kind of transmission method that grouped data group is exhaled, device and system
CN105119691B (en) * 2015-07-21 2018-08-24 中国航天科工集团第三研究院第八三五七研究所 A kind of method of Ethernet point-to-point transmitting
CN106559739B (en) * 2016-09-28 2020-03-20 深圳成谷科技有限公司 Lightweight data transmission method suitable for Bluetooth low-power wireless communication system
JP6863600B2 (en) * 2018-10-05 2021-04-21 Necプラットフォームズ株式会社 Inter-frame gap control system, inter-frame gap control method and program
CN109379264B (en) * 2018-10-16 2021-07-06 西北铁道电子股份有限公司 Multi-board card communication equipment, method and system based on CAN2.0
CN111615018B (en) * 2020-05-12 2023-02-28 国网江苏省电力有限公司电力科学研究院 Communication system and method based on ultra/extra-high voltage power transmission and transformation project

Also Published As

Publication number Publication date
CN114220256A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
US11251898B2 (en) Device and method for the unidirectional transmission of data
CN101520744A (en) Self-checking serial communication system and self-checking method thereof
CN105502119A (en) Elevator light curtain failure self-inspection method and device
CN108696309B (en) Relay device and multi-connected control system
CN106033641A (en) A multifunctional intelligent control system achieved by a power line carrier and a controlling method thereof
US20030084384A1 (en) Residual error handling in a can network
CN106131085A (en) The communication means of remote intelligent control system
CN114220256B (en) Gas sampling wireless control protocol
CN112188420B (en) Method and system for identifying fault section of optical fiber multiplexing channel by using short message
CN107294762B (en) Telecommunication system for programmable logic controller
CN115988357A (en) Communication method of battery pack detection control system
CN115361236A (en) Data transmission consistency checking method, device, equipment and medium
JP5123968B2 (en) Communication control method, communication control program, and master communication device
JP3850841B2 (en) Method and apparatus for monitoring safe transmission of data packet
CN109618006B (en) RTU remote monitoring method
CN108631914A (en) Blue-teeth data verification, method of reseptance and device and bluetooth equipment
KR100511950B1 (en) Error Checking System for Network Enable Home Appliance and Method for the Same
CN111510328B (en) Short-time recovery method for channel abnormity
JP4353888B2 (en) Communication connection confirmation method and communication connection confirmation device for home automation system
CN101316202B (en) On-line diagnosis method and system of embedded software, embedded software device
CN104363248B (en) Radio data transmission method and user terminal
JP3510792B2 (en) Communications system
CN109195182B (en) Pairing type wireless voice signal communication method
CN111654551B (en) Transmission control method and system for stress dispersion locking data of railway jointless track
CN101111043A (en) Method and system for conveying monitor report when abort of transmission link

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