CN104767590A - Reliable data transmission and control method for serial communication - Google Patents

Reliable data transmission and control method for serial communication Download PDF

Info

Publication number
CN104767590A
CN104767590A CN201510160552.3A CN201510160552A CN104767590A CN 104767590 A CN104767590 A CN 104767590A CN 201510160552 A CN201510160552 A CN 201510160552A CN 104767590 A CN104767590 A CN 104767590A
Authority
CN
China
Prior art keywords
data
message
communication
reliable
control method
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
CN201510160552.3A
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.)
JIANGSU FEISHANG SAFETY MONITORING CONSULTING Co Ltd
Original Assignee
JIANGSU FEISHANG SAFETY MONITORING CONSULTING Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JIANGSU FEISHANG SAFETY MONITORING CONSULTING Co Ltd filed Critical JIANGSU FEISHANG SAFETY MONITORING CONSULTING Co Ltd
Priority to CN201510160552.3A priority Critical patent/CN104767590A/en
Publication of CN104767590A publication Critical patent/CN104767590A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • H04L1/001Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding applied to control information

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to a reliable data transmission and control method for serial communication on the basis of internet-of-things terminal interconnection or data communication. When the data transmission and control method is used for communication between systems on a serial communication system, communication content is packaged and processed, so that communication reliability is guaranteed from the perspective of algorithms on the basis that a transmitting end and a receiving end conduct proper control. A complete control method and scheme which are oriented to serial communication and put forward for meeting the data reliability requirement are provided for a client. According to the method, a reliable communication model on a low-speed network can be achieved quickly and generally, and good solutions and practices are provided for serial devices supporting internet-of-things medium and low speeds and reliable data transmission under inter-node serial data transmission scenes.

Description

A kind of reliable data transmission of serial communication and control method
Technical field
When the present invention relates to or transfer of data interconnected based on thing connection terminal, a kind of reliable data transmission of serial communication and control method.
Background technology
Based on 2.5G or 3G, 4G or other data transmission schemes based on telecommunication system, under the scenes such as field, remote, harsh weather, under the data communication mode between each node in Internet of Things, be the scheme of common transfer of data.
Most domestic transducer is based on low-frequency serial bus equipment such as 485 or 232, and to the control of these equipment, transfer of data etc. usually require to set up by control end to the complete serial link of node (transducer) layer.This link can be that the circuit of physics connects, and also can be the serial protocol virtual link based on IP carrying, and the Control for Dependability of the transfer of data on this link, improves along with the raising of system reliability requirement.
At present based on Modbus agreement or other serial communications of IP carrying, only control in IP grouping the transmitting-receiving that data are provided with single packet mode, for the transmission of chunk data, we also need a kind of reliable, detachable, support to reentry (breakpoint, power-off) resume data transmission scheme and the control method of pattern.
Summary of the invention
The technical problem to be solved in the present invention overcomes above-mentioned defect, provides a kind of reliable data transmission and control method of serial communication, to promote existing low speed, and more widely using of low cost serial internet of things equipment.
For solving the problem, the technical solution adopted in the present invention is:
A kind of reliable data transmission of serial communication and control method, when the method is based upon and carries out communication between the system in serial communication system, by to the packaging of Content of communciation and process, and to carry out on the basis that suitably controls at transmitting terminal and receiving terminal, from algorithm ensure a kind of data of the reliability of communication transmission and and control; Communication two party carries out communication with reliable communicating agreement, and by the reliable delivery of key-course control data between communication node;
The method comprises the steps:
1) sender and recipient set up transmitting-receiving confirmation system;
2) communication two party Message recover signature and host-host protocol is set up, by CRC redundancy check, packet model, compression algorithm, the one or more than one mode in hash algorithm algorithm realizes the certificate authenticity of data;
3) on the basis of host-host protocol, expansion realizes grouping, and compression protocol is to support large data and to save bandwidth;
4) data confirm before sending;
5) connection status report.
Further, when transmitting terminal sends bag data; These data, with said shank, at " head " of message, contain a series of reliability data marks of the message that will send, comprising:
A), message id, this ID comprises in response packet, as the mark of " receipt ";
B), message header CRC: after receiving terminal receives message, CRC checking is carried out to head;
C), packet marking: when data need repeatedly to send, marked which individual/several information altogether of message;
D), coded format: marked the coded format that message data district adopts;
E), routing iinformation: when message needs to carry out cross-node route, the source address that message is wanted and destination address;
After recipient receives and sends data, by the various checking of the header information that data are corresponding;
Recipient sends reply data, informs that sender receives the authorization information of data;
After transmit leg receives response, do subsequent treatment; Whether whether whether the other side's data receive data that are no, that receive correctly, also has follow-up data to send.
Further, transmitting terminal refers to the data that will send, and data are a stream or a blocks of data or file or other set forms;
Data transmit control device in transmitting terminal provides 3 kinds of patterns to carry out deal with data:
Send by the stream mode data of sending strategy grouping;
The independent binary blocks of data divided into groups may be needed to send by block size;
The data of specified format, this form is by customization.
Further, data transmit control device. process following behavior: control sending strategy: number of retries, error handle; Data block/order is unpacked automatically and organizes bag; To the distribution processor of the data received; Message declaration period treatment.
Further, receiving terminal, carries out packet transaction after receiving data as required, after receiving terminal receives data, informs the data message that transmitting terminal receives.
Further, coded format is compressed format.
Communication two party based on this agreement, serial circuit (agreement) can realize block functions.
Communication two party based on this agreement, serial circuit (agreement) can realize the reliable feature capability of long data block.
Beneficial effect of the present invention:
Owing to have employed technique scheme, compared with prior art, the present invention for client provide towards serial communication time, the complete control method that data reliability requirement is proposed and scheme, by this method, can be quick, realize to generalization the reliable communicating model in slow network, to the serial device of low speed in holder networking, and the reliable data transmission between node under serial data transmission scene, provide good solution and practice.
Accompanying drawing explanation
Fig. 1: be data sending/receiving mode declaration pattern specification in the present invention;
Fig. 2: for data in the present invention send structure (message) explanation;
Fig. 3: in the present invention, chunk data grouping sends and receives explanation;
Fig. 4: for A in the present invention sends to Node B data explanation of shaking hands;
Fig. 5: for A in the present invention sends heartbeat explanation to B.
Embodiment
Describe the present invention below in conjunction with accompanying drawing:
Fig. 1 describes the transmitting-receiving signal of data from transmitting terminal to receiving terminal:
When transmitting terminal sends a bag request msg; These data, with Fig. 2 said shank, at " head " of message, contain a series of reliability data marks of the message that will send, comprising:
A), message id: this ID comprises in response packet, as the mark of " receipt ";
B), message header CRC: after receiving terminal receives message, CRC checking is carried out to head;
C), packet marking: when data need repeatedly to send, marked which individual/several information altogether of message;
D), coded format: marked the coded format that message data district adopts, be generally compressed format;
E), routing iinformation: when message needs to carry out cross-node route, the source address that message is wanted and destination address;
After recipient receives and sends data, by the various checking of the header information that data are corresponding;
Recipient sends reply data, informs that sender receives the authorization information of data;
After transmit leg receives reply data, carry out subsequent treatment decision-making according to reply data:
The other side's data receive no;
The data received are correctly no;
Follow-up data whether is also had to send.
In Fig. 2:
Data: refer to the real data that will send.
Afterbody: the CRC(redundant cyclic in " data " region is verified) fill.
Fig. 3: when describing the grouping transmission of data needs, the tupe of message
transmitting terminal
Being often referred to the data that will send. data may be a stream, or a blocks of data, or file, or other set forms.
Transmitter provides 3 kinds of patterns to carry out deal with data.
1. stream modedata send (by sending strategy grouping)
2. independent binary block datasend (grouping may be needed by block size)
3. the data of specified format, this form is by customization.
send
Data transmit control device. process following behavior:
1. control sending strategy (number of retries, error handle etc.);
2. pair data block/order is automatically unpacked and organizes bag;
3. the distribution processor of pair data received;
4. message declaration period treatment.
physical link
Physical data interface, refers to serial ports physical connection passage herein.
Receive
Data, by actual physical link, receive data at receiving terminal.
Response packet
After receiving terminal receives data, inform the data message that transmitting terminal receives.
receiving terminal
Receiving terminal, carries out packet transaction after receiving data as required.
Fig. 4 illustrates before A sends message to B, message processing procedure when needing confirmation recipient whether online.
A sends a handshake packet, attempts sending to B;
If B is subject to this handshake packet, identify sender information, connect if allow, then send a response of shaking hands to A;
A receives response of shaking hands, and mark and the other side connect, and can carry out data processing;
A at the appointed time in do not receive B response, mark cannot set up communication with B, subsequent communications stop;
Fig. 5 describes A timing and sends heartbeat to B, and for informing A existing state information, when multiple A point is reported to B simultaneously, we can realize a topological diagram function based on serial network.

Claims (6)

1. the reliable data transmission of serial communication and a control method, is characterized in that:
When the method is based upon and carries out communication between the system in serial communication system, by to the packaging of Content of communciation and process, and to carry out on the basis that suitably controls at transmitting terminal and receiving terminal, from algorithm ensure a kind of data of the reliability of communication transmission and and control; Communication two party carries out communication with reliable communicating agreement, and by the reliable delivery of key-course control data between communication node;
The method comprises the steps:
1) sender and recipient set up transmitting-receiving confirmation system;
2) communication two party Message recover signature and host-host protocol is set up, by CRC redundancy check, packet model, compression algorithm, the one or more than one mode in hash algorithm algorithm realizes the certificate authenticity of data;
3) on the basis of host-host protocol, expansion realizes grouping, and compression protocol is to support large data and to save bandwidth;
4) data confirm before sending;
5) connection status report.
2. the reliable data transmission of serial communication according to claim 1 and control method, is characterized in that:
When transmitting terminal sends bag data; These data, with said shank, at " head " of message, contain a series of reliability data marks of the message that will send, comprising:
A), message id, this ID comprises in response packet, as the mark of " receipt ";
B), message header CRC: after receiving terminal receives message, CRC checking is carried out to head;
C), packet marking: when data need repeatedly to send, marked which individual/several information altogether of message;
D), coded format: marked the coded format that message data district adopts;
E), routing iinformation: when message needs to carry out cross-node route, the source address that message is wanted and destination address;
After recipient receives and sends data, by the various checking of the header information that data are corresponding;
Recipient sends reply data, informs that sender receives the authorization information of data;
After transmit leg receives response, do subsequent treatment; Whether whether whether the other side's data receive data that are no, that receive correctly, also has follow-up data to send.
3. the reliable data transmission of serial communication according to claim 1 and control method, is characterized in that:
Transmitting terminal refers to the data that will send, and data are a stream or a blocks of data or file or other set forms;
Data transmit control device in transmitting terminal provides 3 kinds of patterns to carry out deal with data:
Send by the stream mode data of sending strategy grouping;
The independent binary blocks of data divided into groups may be needed to send by block size;
The data of specified format, this form is by customization.
4. the reliable data transmission of serial communication according to claim 3 and control method, is characterized in that:
Data transmit control device. process following behavior:
Control sending strategy: number of retries, error handle;
Data block/order is unpacked automatically and organizes bag;
To the distribution processor of the data received;
Message declaration period treatment.
5. the reliable data transmission of serial communication according to claim 1 and control method, is characterized in that: receiving terminal, carry out packet transaction as required after receiving data, after receiving terminal receives data, inform the data message that transmitting terminal receives.
6. the reliable data transmission of serial communication according to claim 1 and control method, is characterized in that: coded format is compressed format.
CN201510160552.3A 2015-04-08 2015-04-08 Reliable data transmission and control method for serial communication Pending CN104767590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510160552.3A CN104767590A (en) 2015-04-08 2015-04-08 Reliable data transmission and control method for serial communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510160552.3A CN104767590A (en) 2015-04-08 2015-04-08 Reliable data transmission and control method for serial communication

Publications (1)

Publication Number Publication Date
CN104767590A true CN104767590A (en) 2015-07-08

Family

ID=53649231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510160552.3A Pending CN104767590A (en) 2015-04-08 2015-04-08 Reliable data transmission and control method for serial communication

Country Status (1)

Country Link
CN (1) CN104767590A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603199A (en) * 2016-12-04 2017-04-26 深圳大学 Hash code based multiple access method and device of wireless network
CN109219936A (en) * 2016-06-02 2019-01-15 诺基亚通信公司 Device and method for the reliable communication in multi-connection
CN111061670A (en) * 2019-11-20 2020-04-24 福建北峰通信科技股份有限公司 Method for optimizing terminal program space through virtual serial port protocol conversion

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819506A (en) * 2006-03-16 2006-08-16 江苏沙钢集团有限公司 Series interface wireless communication data processing method
US20090323722A1 (en) * 2008-06-25 2009-12-31 Debendra Das Sharma Link and lane level packetization scheme of encoding in serial links
CN102318283A (en) * 2008-05-01 2012-01-11 格诺多有限公司 A method of data delivery across a network fabric in a router or Ethernet bridge
CN102647252A (en) * 2012-03-26 2012-08-22 航天东方红卫星有限公司 Serial communication method
CN103200127A (en) * 2013-02-28 2013-07-10 武汉中软通科技有限公司 Inter-plate serial communication system and inter-plate serial communication method
CN104009957A (en) * 2013-02-22 2014-08-27 中兴通讯股份有限公司 Ethernet communication method and device based on serial port

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819506A (en) * 2006-03-16 2006-08-16 江苏沙钢集团有限公司 Series interface wireless communication data processing method
CN102318283A (en) * 2008-05-01 2012-01-11 格诺多有限公司 A method of data delivery across a network fabric in a router or Ethernet bridge
US20090323722A1 (en) * 2008-06-25 2009-12-31 Debendra Das Sharma Link and lane level packetization scheme of encoding in serial links
CN102647252A (en) * 2012-03-26 2012-08-22 航天东方红卫星有限公司 Serial communication method
CN104009957A (en) * 2013-02-22 2014-08-27 中兴通讯股份有限公司 Ethernet communication method and device based on serial port
CN103200127A (en) * 2013-02-28 2013-07-10 武汉中软通科技有限公司 Inter-plate serial communication system and inter-plate serial communication method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109219936A (en) * 2016-06-02 2019-01-15 诺基亚通信公司 Device and method for the reliable communication in multi-connection
CN109219936B (en) * 2016-06-02 2022-07-22 诺基亚通信公司 Apparatus and method for reliable communication in multiple connections
CN106603199A (en) * 2016-12-04 2017-04-26 深圳大学 Hash code based multiple access method and device of wireless network
CN106603199B (en) * 2016-12-04 2019-05-24 深圳大学 Wireless network multiple access method and device based on Hash coding
CN111061670A (en) * 2019-11-20 2020-04-24 福建北峰通信科技股份有限公司 Method for optimizing terminal program space through virtual serial port protocol conversion

Similar Documents

Publication Publication Date Title
WO2016187813A1 (en) Data transmission method and device for photoelectric hybrid network
CN108965484A (en) A kind of transmission method of internet of things data, system and terminal
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN103475655B (en) A kind of method realizing IPSecVPN main/slave link switching at runtime
CN105024861B (en) A kind of reliable remote communication means and its communicator based on big-dipper satellite
CN102571689B (en) Data transmission method and device
CN102859921A (en) System and method for achieving accelerated throughput
CN109905205B (en) Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system
CN108881302A (en) Industrial Ethernet and BLVDS bus bar communication device and industrial control system
CN104937896A (en) Method for processing address resolution protocol message, forwarder and controller
CN104426758A (en) Transmission control system, device and method
CN106487746A (en) A kind of method and device of BMP message authentication
CN103825822B (en) A kind of state information transmission method and device of the network equipment
CN109067796A (en) A kind of data transmission method and device
CN106850805A (en) A kind of data transmission method and device
CN102325084A (en) Method and system for realizing data exchange in IEC104 (international electrotechnical commission 104) communication protocol forwarding
CN104767590A (en) Reliable data transmission and control method for serial communication
CN105245470A (en) Data transmission method and device
CN107948217B (en) Switch system and communication method
CN107222403A (en) A kind of data transmission method, system and electronic equipment
CN106302213A (en) A kind of method and device of data transmission
CN101309169A (en) Network management method and network management system, network apparatus
CN104283716A (en) Data transmission method, equipment and system
CN105897665B (en) Method for realizing TCP transmission in satellite network environment and corresponding gateway
CN101827020A (en) Method and system for speeding up built persistent connection without disconnection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150708