CN107147657A - Suitable for the communication protocol of multimachine reliable communication, decoding method and communication apparatus - Google Patents
Suitable for the communication protocol of multimachine reliable communication, decoding method and communication apparatus Download PDFInfo
- Publication number
- CN107147657A CN107147657A CN201710399480.7A CN201710399480A CN107147657A CN 107147657 A CN107147657 A CN 107147657A CN 201710399480 A CN201710399480 A CN 201710399480A CN 107147657 A CN107147657 A CN 107147657A
- Authority
- CN
- China
- Prior art keywords
- frame
- field
- data
- load
- support structures
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0006—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
- H04L1/0007—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Abstract
The invention discloses a kind of communication protocol suitable for multimachine reliable communication, the frame that the frame format of described communications protocol includes being arranged in order according to order from front to back starts field, frame header fields, Load field, check field and trailer field;Wherein, described frame header fields include frame type field, source address field, DAF destination address field, payload length field and the function code field being arranged in order according to order from front to back;Described Load field is expressed as multiple continuous data type fields according to load contents, forms support structures model.Frame header fields of the present invention include source address field and DAF destination address field, it is adaptable to many communication between devices.Data framing and parsing efficiency are effectively improved using support structures model.Frame header fields include frame type field, can carry out classification parsing to load data by frame type when frame is parsed, effectively improve the readability and maintainability of code.
Description
Technical field
The present invention relates to the decoding method that relevant agreement in communication and control field is formulated, specially one kind is applied to many
The communication protocol decoding method of machine reliable communication.
Background technology
Communication protocol is to need to reach a kind of agreement between communication equipment, and it is to including data format, transfer rate, synchronization side
The problems such as formula, verification mode and function character functional character are defined makes Uniform provisions, must be observed jointly in communication between devices.In reality
In the communications applications of border, if lacking a reasonable, strict, communication protocol for specification, it will be unable to ensure the correctness of data transfer
With the reliability of communication.The form that the data content typically transmitted is defined as byte is organized in protocol frame, and in frame from
Front to back is arranged in order.Traditional frame coded format is simple, generally comprises:Start-stop marker bit, data length, function code, data,
Verification and end mark position, are adapted between host computer and slave computer more and communicate, it is impossible to meet the communication needs between many equipment.
In addition, only recognizing the frame function by function code in during traditional frame decoding, content frame is not classified, causes code readable
Property difference is unfavorable for code maintenance and upgrading.
The content of the invention
For the deficiency of conventional frame decoding method, the problem of present invention is intended to solve is to provide a kind of be applied between multimachine
The low error rate communication protocol decoding method for possessing content frame classification of reliable communication.This method frame head part is with including source
Frame data can be carried out classification solution by location, destination address and frame type, it is adaptable to multi-computer communication when being parsed with time frame by frame type
Analysis, code readability is easy to safeguard and upgraded by force.In addition, this method uses cyclic redundancy calibrating mode, it is ensured that data transfer is missed
Code check low communication process is reliable.
The present invention solve the technical problem the technical scheme adopted is that
A kind of communication protocol suitable for multimachine reliable communication, the frame format of described communications protocol is included according to the past extremely
The frame that order afterwards is arranged in order starts field, frame header fields, Load field, check field and trailer field;Wherein, it is described
Frame header fields include the frame type field being arranged in order according to order from front to back, source address field, DAF destination address field, negative
Carry length field and function code field;Described Load field is expressed as multiple continuous data type fields according to load contents,
Form support structures model.
The fixed value that frame starts field and trailer field is two to three bytes;Described check field is two bytes
Cyclic redundancy check value, participates in the data of verification from frame type field to Load field.
Described payload length field is the data of a byte length, is defined as payload length value, and the value is tied for load
The length of structure model;Function code field is the frame identification code transmission path different to identify of two byte lengths, direction and
Frame type.
Data type is char types, short types, fool types, int types or self-defined structure body type.
Frame type field is a byte length, to mark data frame type, command frame type or acknowledgement frame type.
The decoding method of the described communication protocol suitable for multimachine reliable communication, it is characterised in that including following step
Suddenly, framing cataloged procedure and frame resolving,
Described framing cataloged procedure includes,
Load step, by the load data of transmission according to support structures model successively assignment, payload length is continuous
The total length of type field is the length of support structures model;
Frame head packing step, data transmitting equipment, which creates byte arrays buffering area, to be used to store transmission data frame, is followed successively by
Each field contents assignment of frame header fields is simultaneously loaded into transmission data buffer area, completes frame head packing;
Complete transmission frame packing step, with reference to frame type field to Load field, calculating obtains cyclic redundancy check value, will
Load contents, check code and trailer field are loaded into transmission data buffer area, complete the packing of complete transmission frame;Finally load hair
Data buffer zone is sent, framing cataloged procedure is completed;
Frame resolving includes,
Lead code filtration step:Create and receive data byte array buffering area, lead code filtering, inspection are carried out to receiving data
Packet validity is surveyed,
Filtration step:Frame head data is extracted, destination address is filtered successively, frame type is filtered, abstraction function code,
Analyzing step:Carry out frame function code adaptation, the load data analytical function of entered function code matching, with reference to the function
In support structures model, complete load data parsing.
Also include support structures model definition step in described load step, it is defined for the load contents sent
Support structures model, the support structures model is multiple continuous data type fields that load contents are expressed as.
A kind of communication apparatus using described communication protocol, including data/address bus and multiple total by described data
The equipment of line communication connection, described equipment includes framing coding module and frame parsing module respectively,
Described framing coding module includes,
Load submodule, to by the load data of transmission according to support structures model successively assignment, payload length
For continuous type field total length be support structures model length;
Frame head packing submodule, creating byte arrays buffering area to data transmitting equipment is used to store transmission data frame,
It is followed successively by each field contents assignment of frame header fields and is loaded into transmission data buffer area, completes frame head packing;
Complete transmission frame packing submodule, to combine frame type field to Load field, calculating obtains cyclic redundancy school
Value is tested, load contents, check code and trailer field are loaded into transmission data buffer area, the packing of complete transmission frame is completed;Most
Load afterwards and send data buffer zone, complete framing cataloged procedure;
Frame parsing module includes,
Lead code filter submodule, data byte array buffering area is received to create, and lead code is carried out to receiving data
Filtering, detects packet validity,
Filter submodule, to extract frame head data, filters to destination address, frame type is filtered, abstraction function successively
Code,
Analyzing sub-module, to carry out frame function code adaptation, the load data analytical function of entered function code matching, with reference to
Support structures model in the function, completes load data parsing.
Also include support structures definition module in described load submodule, it is in the load for transmission
Hold and define support structures model, the support structures model is multiple continuous data type fields that load contents are expressed as.
Many equipment rooms are combined when being communicated between communication, Can buses using Can bus communications or Can buses with serial ports, Suo Youshe
Standby to be hung over by Can mouthfuls in Can buses, destination address and source address are used as the CanID in bus, communication between devices in Frame Protocol
When by CanID identify whether for oneself equipment processing data, if it is carry out data unpacking processing;
With reference to when communicating between serial ports and Can buses, serial ports receives and raw address and destination address is parsed after data, is formed
CanID, that is, be linked to the device address in Can buses, then transmits this data in Can buses, is identified whether by CanID
For the data of oneself equipment processing, data unpacking processing is if it is carried out.
Compared with prior art, good effect of the present invention suitable for the communication protocol decoding method of multimachine reliable communication
It is:
1st, frame header fields include source address field and DAF destination address field, it is adaptable to many communication between devices.
2nd, data framing and parsing efficiency are effectively improved using support structures model.
3rd, frame header fields include frame type field, and classification parsing can be carried out to load data by frame type when frame is parsed,
Effectively improve the readability and maintainability of code.
4th, using cyclic redundancy calibrating mode, it is ensured that the low error rate of data transmission high communication quality.
Brief description of the drawings
The frame format that Fig. 1 is used for the present invention suitable for the communication protocol decoding method of multimachine reliable communication, wherein A
Part is frame head part, and payload length value is support structures model length size.
Fig. 2 is communication protocol decoding method load contents and support structures mould of the present invention suitable for multimachine reliable communication
Type is for relation.
Fig. 3 is applied to the communication protocol decoding method multi-computer communication schematic diagram of multimachine reliable communication for the present invention.
Fig. 4 is communication protocol decoding method framing coding flow chart of the present invention suitable for multimachine reliable communication.
Fig. 5 is applied to the communication protocol decoding method frame process of analysis figure of multimachine reliable communication for the present invention.
Embodiment
Below with reference to the accompanying drawings embodiments of the invention are described.
A kind of communication protocol suitable for multimachine reliable communication, frame format is included and is arranged in order according to order from front to back
Frame start field, frame header fields, Load field, check field and trailer field;Wherein, frame starts field and trailer field is
The fixed value of two to three bytes;Frame header fields include the frame type field being arranged in order according to order from front to back, source
Location field, DAF destination address field, payload length field and function code field;
Wherein, Load field is expressed as multiple continuous data type fields according to load contents, forms support structures model,
Support structures model is generally each load class in the structure of user-defined multiple different types of data compositions, structure
Type-word section continuous arrangement.After support structures model is determined, data sender and recipient are required for defining support structures model, number
Assignment is carried out for each field contents of support structures model according to sender, data receiver is needed fully according to support structures mould
The order of type is parsed to load contents;The presence of support structures model can effectively improve data framing and parsing efficiency.
Described check field is the cyclic redundancy check value of two bytes, participate in the data of verification from frame type field to
Load field;Frame type field is the different frame types value of a byte, such as data frame, command frame or acknowledgement frame;Frame type
Field is different from frame identification code and destination address, and it is the classification to data loadtype, data parsing time frame type parsing position
After destination address parsing, before the parsing of frame identification code.The presence of frame type makes different type, such as order, data or response
Deng load carry out classification parsing, the readability and the maintenance iteration of code of data parsing are effectively increased with legacy protocol compared with
Property.
Source address field is the data of a byte length, is defined as sender device address mark, distinct device address
Mark is unique;DAF destination address field is the data of a byte length, is defined as receiver equipment address and identifies, distinct device
Location mark is unique;Payload length field is the data of a byte length, is defined as payload length value, and the value is support structures mould
The length of type;Function code field is the frame identification code of two byte lengths, the function code of same transmission path, direction and frame type
Can not be identical.
The frame header fields of the present invention include source address field and DAF destination address field, it is adaptable to many communication between devices.Using
Support structures model effectively improves data framing and parsing efficiency.Frame header fields include frame type field, and frame can pass through when parsing
Frame type carries out classification parsing to load data, effectively improves the readability and maintainability of code.Using cyclic redundancy calibration side
Formula, it is ensured that the low error rate of data transmission high communication quality.
The present invention is applied to the communication protocol decoding method of multimachine reliable communication, and referring to Fig. 1-5, it is comprised the concrete steps that:
Step S1, sets up Generic Frame Format:Frame format comprising start field, frame header fields, Load field, check field and
Trailer field, is arranged in order according to order from front to back, and such as frame format is as shown in Figure 1).
The beginning field and trailer field of the present embodiment are the fixed value of two bytes, and beginning field is 0x100x02, knot
Beam field is 0x31 0xaa.
Step S2, sets up frame header fields:The form of frame header fields includes frame type field, source address field, destination address
Field, payload length field and function code field, each field are arranged in order according to order from front to back, part A frame in such as Fig. 1
It is shown.
Load field is expressed as multiple continuous data type field formation support structures models according to load contents, wherein negative
It can be char types, short types, fool types, int types and self-defined structure body type etc. to carry content data type, such as Fig. 2 institutes
Show.
Check field is the cyclic redundancy check value of two bytes, and the data that participation is verified are since frame type field to negative
Field is carried to terminate.It is 0x35 0xdb that the check value in the present embodiment is calculated with reference to Fig. 1.
Frame type field is the different frame types value of byte length, such as data frame (0x01), command frame (0x02), should
Answer frame (0x03) etc.;Frame type is data frame in the present embodiment.
Source address field is the data of a byte length, data sender device address mark is defined as, such as Fig. 3 institutes
Show, distinct device address mark is unique, equipment 0x02 is data sender.
DAF destination address field is the data of a byte length, data receiver device address mark is defined as, such as Fig. 3 institutes
Show, distinct device address mark is unique, equipment 0x03 is data receiver.Different equipment rooms can be logical by data/address bus
Letter, distinct device identifies whether to issue the data of oneself by destination address field (DAF).
Payload length field is the data of a byte length, is defined as payload length value, and the size of the value depends on bearing
Carry structural model length.
Function code field is the frame identification code of two byte lengths, the unique mark for defining the frame function, for same
The function code of one transmission path, direction and frame type can not be identical, and data from device 0x02 is sent to equipment in the present embodiment
0x03, frame type is data frame, and function code 0x10 0x22 are used for the unique mark for representing the frame function.
Step S3 framing cataloged procedures:Load is completed first, then creates transmission data byte array buffering area complete
Into frame head packing, the packing of complete transmission frame is finally completed, and loads transmission data byte array buffering area, framing is completed encoded
Journey;
The step S3 is specifically as shown in Figure 4.
1st, the load contents for transmission define support structures model, and the model is multiple consecutive numbers that load contents are expressed as
According to type field.By the load data of transmission according to support structures model successively assignment.Payload length is continuous type field
Total length is the length of support structures model, completes load contents and loads.
2nd, data transmitting equipment 0x02 creates data and sends byte arrays buffering area SendBuf [], with reference to source address, sends
Address, frame type, payload length and function digital content packing frame head, and be loaded into transmission data buffer zone, complete frame head and beat
Packaging is carried.
3rd, cyclic redundancy check value is calculated with reference to header content and load contents, and by load contents, check code and end
Field is loaded into transmission data buffer zone by frame format order, is completed the packing of complete transmission data frame and is loaded.
Step S4, frame resolving:Create and receive data byte array buffering area, lead code mistake is carried out to receiving data
Filter, detects packet validity, extracts frame head data, and destination address is filtered, and frame type is filtered, abstraction function code, with reference to
Support structures model completes load data parsing.
The step S4 is specifically as shown in Figure 5.
1st, data receiver 0x03, which is created, receives data byte array buffering area ReceiveBuf [], storage equipment 0x02
The data sent.
2nd, with reference to the data progress lead code filtering that field information is received to buffering area is started, checking receives first character
Whether section content is to start field, if it is continues executing with resolving, otherwise abandons the frame from newly parsing the frame that newly receives
Content.
3rd, CRC is carried out with reference to frame format, participates in the data of verification from frame type field to Load field knot
Beam, verifies the validity of packet, if calculated, obtained check code is consistent with the check bit in frame format to represent the packet
Resolving effectively is continued executing with, the frame is otherwise abandoned from newly parsing the content frame that newly receives.
4th, remove and start the data message that field, trailer field and verification bit field are formed with effect, extracted with reference to frame format
Frame originating point information.
5th, to step 4) formed valid data message carry out destination address filtering, the destination address received be this address
(0x03), then continue executing with resolving, otherwise abandons the frame from newly parsing the content frame that newly receives.
6th, frame type adaptation is carried out, for different frame types (such as data frame type, command frame type, acknowledgement frame type)
Function is handled into different types of data.
7th, abstraction function code, carries out frame function code adaptation, the load data analytical function of entered function code matching, with reference to this
Support structures model in function, completes load data parsing.
Simultaneously the invention also discloses a kind of communication apparatus using described communication protocol, including data/address bus and many
The individual equipment that connection is communicated by described data/address bus, described equipment includes framing coding module and frame parsing mould respectively
Block,
Described framing coding module includes,
Load submodule, to by the load data of transmission according to support structures model successively assignment, payload length
For continuous type field total length be support structures model length;
Frame head packing submodule, creating byte arrays buffering area to data transmitting equipment is used to store transmission data frame,
It is followed successively by each field contents assignment of frame header fields and is loaded into transmission data buffer area, completes frame head packing;
Complete transmission frame packing submodule, to combine frame type field to Load field, calculating obtains cyclic redundancy school
Value is tested, load contents, check code and trailer field are loaded into transmission data buffer area, the packing of complete transmission frame is completed;Most
Load afterwards and send data buffer zone, complete framing cataloged procedure;
Frame parsing module includes,
Lead code filter submodule, data byte array buffering area is received to create, and lead code is carried out to receiving data
Filtering, detects packet validity,
Filter submodule, to extract frame head data, filters to destination address, frame type is filtered, abstraction function successively
Code,
Analyzing sub-module, to carry out frame function code adaptation, the load data analytical function of entered function code matching, with reference to
Support structures model in the function, completes load data parsing.
Wherein, support structures definition module is also included in described load submodule, it is to for transmission
Load contents define support structures model, and the support structures model is multiple continuous data class type-words that load contents are expressed as
Section.
Specifically, many equipment rooms are combined with serial ports using Can bus communications or Can buses and communicated between communication, Can buses
When, all devices are hung in Can buses by Can mouthfuls, in Frame Protocol destination address and source address as the CanID in bus,
The data for the processing of oneself equipment are identified whether by CanID during communication between devices, data unpacking processing is if it is carried out;
With reference to when communicating between serial ports and Can buses, serial ports receives and raw address and destination address is parsed after data, is formed
CanID, that is, be linked to the device address in Can buses, then transmits this data in Can buses, is identified whether by CanID
For the data of oneself equipment processing, data unpacking processing is if it is carried out.
The Heterosis of communication apparatus of the present invention is:1st, the reliable and stable communication of many equipment rooms is realized.2nd, Can bus communications
When, CanID be bus on device address, while in Frame Protocol include destination address, the two addresses be it is one-to-one,
CanID is addressed for bus apparatus, and destination address is verified available for data transfer in Frame Protocol, improves the reliable of data transfer
Property.3rd, data framing and parsing efficiency are effectively improved using support structures model in the agreement.4th, the frame frame header fields include frame
Type field, classification parsing can be carried out when frame is parsed by frame type to load data, effectively improve the readability and dimension of code
Shield property.
Described above is only the preferred embodiment of the present invention, it is noted that for the common skill of the art
For art personnel, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications
Also it should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of communication protocol suitable for multimachine reliable communication, it is characterised in that the frame format of described communications protocol includes
The frame being arranged in order according to order from front to back starts field, frame header fields, Load field, check field and trailer field;
Wherein, described frame header fields include frame type field, source address field, the target being arranged in order according to order from front to back
Address field, payload length field and function code field;Described Load field is expressed as multiple consecutive numbers according to load contents
According to type field, support structures model is formed.
2. communication protocol as claimed in claim 1, it is characterised in that frame starts field and trailer field is two to three bytes
Fixed value;Described check field is the cyclic redundancy check value of two bytes, participates in the data of verification from frame type field
To Load field.
3. communication protocol as claimed in claim 1, it is characterised in that described payload length field is a byte length
Data, are defined as payload length value, and the value is the length of support structures model;Function code field is that the frame of two byte lengths is known
The other code transmission path different to identify, direction and frame type.
4. communication protocol as claimed in claim 1, it is characterised in that data type be char types, short types, fool types,
Int types or self-defined structure body type.
5. communication protocol as claimed in claim 1, it is characterised in that frame type field is a byte length, to identify
Data frame type, command frame type or acknowledgement frame type.
6. the decoding method of the communication protocol suitable for multimachine reliable communication as described in claim any one of 1-5, it is special
Levy and be, comprise the following steps, framing cataloged procedure and frame resolving,
Described framing cataloged procedure includes,
Load step, by the load data of transmission according to support structures model successively assignment, payload length is continuous type
The total length of field is the length of support structures model;
Frame head packing step, data transmitting equipment, which creates byte arrays buffering area, to be used to store transmission data frame, is followed successively by frame head
Each field contents assignment of field is simultaneously loaded into transmission data buffer area, completes frame head packing;
Complete transmission frame packing step, with reference to frame type field to Load field, calculating obtains cyclic redundancy check value, will loaded
Content, check code and trailer field are loaded into transmission data buffer area, complete the packing of complete transmission frame;Finally load and send number
According to buffering area, framing cataloged procedure is completed;
Frame resolving includes,
Lead code filtration step:Create and receive data byte array buffering area, carry out lead code filtering to receiving data, detect number
According to bag validity,
Filtration step:Frame head data is extracted, destination address is filtered successively, frame type is filtered, abstraction function code,
Analyzing step:Carry out frame function code adaptation, the load data analytical function of entered function code matching, with reference in the function
Support structures model, completes load data parsing.
7. coding method as claimed in claim 6, its feature exists, also include support structures mould in described load step
Type definition step, it defines support structures model for the load contents sent, and the support structures model is expressed as load contents
Multiple continuous data type fields.
8. the communication apparatus of the communication protocol described in a kind of use claim any one of 1-5, it is characterised in that including data
Bus and multiple equipment that connection is communicated by described data/address bus, described equipment include framing coding module and frame respectively
Parsing module,
Described framing coding module includes,
Load submodule, to, according to support structures model successively assignment, payload length is company by the load data of transmission
The total length of continuous type field is the length of support structures model;
Frame head packing submodule, creating byte arrays buffering area to data transmitting equipment is used to store transmission data frame, successively
Each field contents assignment for frame header fields is simultaneously loaded into transmission data buffer area, completes frame head packing;
Complete transmission frame packing submodule, to combine frame type field to Load field, calculating obtains cyclic redundancy check value,
Load contents, check code and trailer field are loaded into transmission data buffer area, the packing of complete transmission frame is completed;Finally load
Data buffer zone is sent, framing cataloged procedure is completed;
Frame parsing module includes,
Lead code filter submodule, data byte array buffering area is received to create, and lead code filtering is carried out to receiving data,
Packet validity is detected,
Filter submodule, to extract frame head data, filters to destination address, frame type is filtered successively, abstraction function code,
Analyzing sub-module, to carry out frame function code adaptation, the load data analytical function of entered function code matching, with reference to the letter
Support structures model in number, completes load data parsing.
9. communication apparatus as claimed in claim 8, its feature exists, also include support structures in described load submodule
Definition module, it defines support structures model to the load contents for transmission, and the support structures model is load contents
The multiple continuous data type fields being expressed as.
10. communication apparatus as claimed in claim 8, its feature exists, many equipment rooms using Can bus communications or Can buses with
Serial ports, which is combined, to be communicated, and when being communicated between Can buses, all devices are hung in Can buses by Can mouthfuls, destination address in Frame Protocol
With source address as the CanID in bus, the data for the processing of oneself equipment are identified whether by CanID during communication between devices,
If it is data unpacking processing is carried out;
With reference to when communicating between serial ports and Can buses, serial ports receives and raw address and destination address is parsed after data, is formed
CanID, that is, be linked to the device address in Can buses, then transmits this data in Can buses, is identified whether by CanID
For the data of oneself equipment processing, data unpacking processing is if it is carried out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710399480.7A CN107147657B (en) | 2017-05-31 | 2017-05-31 | Coding and decoding method and communication equipment suitable for multi-machine reliable communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710399480.7A CN107147657B (en) | 2017-05-31 | 2017-05-31 | Coding and decoding method and communication equipment suitable for multi-machine reliable communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107147657A true CN107147657A (en) | 2017-09-08 |
CN107147657B CN107147657B (en) | 2020-06-02 |
Family
ID=59779391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710399480.7A Active CN107147657B (en) | 2017-05-31 | 2017-05-31 | Coding and decoding method and communication equipment suitable for multi-machine reliable communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107147657B (en) |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449426A (en) * | 2018-04-13 | 2018-08-24 | 郑州云海信息技术有限公司 | A kind of internet of things net controller and data center's communication means and system |
CN108521422A (en) * | 2018-04-09 | 2018-09-11 | 四川超影科技有限公司 | Common communication protocol based on intelligent inspection robot |
CN108833436A (en) * | 2018-07-03 | 2018-11-16 | 深圳第蓝筹科技有限公司 | A kind of communication control method for realizing equipment communication interconnection |
CN109660483A (en) * | 2017-10-10 | 2019-04-19 | 深圳市美好创亿医疗科技有限公司 | Embedded hardware communication protocol and communication system |
CN110198202A (en) * | 2019-06-03 | 2019-09-03 | 北京润科通用技术有限公司 | A kind of method of calibration and device of AFDX bus message data source |
CN110224887A (en) * | 2019-06-04 | 2019-09-10 | 北京挚友科技有限公司 | A kind of method and apparatus of Ethernet Y.1564 test frame automatic identification |
CN110417773A (en) * | 2019-07-26 | 2019-11-05 | 湖北三江航天红峰控制有限公司 | A kind of serial port protocol data acquisition analytic method, system and device |
CN110515744A (en) * | 2019-08-14 | 2019-11-29 | 北京邮电大学 | A kind of method of spacecraft software information interaction |
CN110704213A (en) * | 2019-10-10 | 2020-01-17 | 北京航空航天大学 | Virtual and real efficient real-time interaction method and system for digital twin data |
CN110719218A (en) * | 2019-10-31 | 2020-01-21 | 天津亚东智鑫科技有限公司 | Multi-node interconnection protocol standard method based on CAN bus |
CN111147463A (en) * | 2019-12-18 | 2020-05-12 | 北京电子工程总体研究所 | Asynchronous 422 bus-based variable-length frame high-reliability data receiving method |
CN111766618A (en) * | 2020-07-08 | 2020-10-13 | 福建省亿坤通信股份有限公司 | Fixed equipment positioning method, equipment and system |
CN111953674A (en) * | 2020-08-10 | 2020-11-17 | 深圳市航天泰瑞捷电子有限公司 | Power utilization information acquisition data isolation system and method |
CN112235302A (en) * | 2020-10-15 | 2021-01-15 | 天津津航计算技术研究所 | Protocol analysis method suitable for multiple buses |
CN112398780A (en) * | 2019-08-13 | 2021-02-23 | 南京智数科技有限公司 | Equipment self-identification communication method suitable for various networks |
CN112463706A (en) * | 2020-12-07 | 2021-03-09 | 上海电气集团股份有限公司 | Data sending and receiving method and communication terminal |
CN113177013A (en) * | 2021-05-24 | 2021-07-27 | 石家庄通合电子科技股份有限公司 | Baud rate-based serial communication method and multi-serial chip |
CN113364746A (en) * | 2021-05-24 | 2021-09-07 | 湖南华菱涟源钢铁有限公司 | Equipment identification method, device, equipment and computer storage medium |
CN114553919A (en) * | 2021-11-17 | 2022-05-27 | 武汉领普科技有限公司 | Data processing method, device and storage medium |
CN115002231A (en) * | 2022-05-27 | 2022-09-02 | 苏州联讯仪器有限公司 | Communication protocol based on HEX format, communication device and medium |
CN115347978A (en) * | 2022-08-03 | 2022-11-15 | 新诺北斗航科信息技术(厦门)股份有限公司 | Method, device and storage medium for identifying AIS frame header data |
CN115379020A (en) * | 2022-08-08 | 2022-11-22 | 南京信息工程大学 | Embedded-based multi-machine communication protocol design method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070091890A1 (en) * | 2005-10-25 | 2007-04-26 | Chandramouli Radhakrishnan | Constraining flooding of multicast traffic in Layer2 networks |
CN101374082A (en) * | 2007-08-24 | 2009-02-25 | 浙江工商大学 | Single bus sensor network protocol |
CN101854231A (en) * | 2010-05-27 | 2010-10-06 | 武汉虹信通信技术有限责任公司 | Protocol encoding and decoding method based on protocol model |
CN102332971A (en) * | 2010-07-14 | 2012-01-25 | 沈阳高精数控技术有限公司 | Field-bus full duplex reliable communication method for numerical control system |
CN103532998A (en) * | 2012-07-04 | 2014-01-22 | 中国科学院计算技术研究所 | Protocol/data conversion device and method |
-
2017
- 2017-05-31 CN CN201710399480.7A patent/CN107147657B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070091890A1 (en) * | 2005-10-25 | 2007-04-26 | Chandramouli Radhakrishnan | Constraining flooding of multicast traffic in Layer2 networks |
CN101374082A (en) * | 2007-08-24 | 2009-02-25 | 浙江工商大学 | Single bus sensor network protocol |
CN101854231A (en) * | 2010-05-27 | 2010-10-06 | 武汉虹信通信技术有限责任公司 | Protocol encoding and decoding method based on protocol model |
CN102332971A (en) * | 2010-07-14 | 2012-01-25 | 沈阳高精数控技术有限公司 | Field-bus full duplex reliable communication method for numerical control system |
CN103532998A (en) * | 2012-07-04 | 2014-01-22 | 中国科学院计算技术研究所 | Protocol/data conversion device and method |
Cited By (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660483A (en) * | 2017-10-10 | 2019-04-19 | 深圳市美好创亿医疗科技有限公司 | Embedded hardware communication protocol and communication system |
CN108521422A (en) * | 2018-04-09 | 2018-09-11 | 四川超影科技有限公司 | Common communication protocol based on intelligent inspection robot |
CN108449426B (en) * | 2018-04-13 | 2021-01-22 | 苏州浪潮智能科技有限公司 | Method and system for communication between Internet of things controller and data center |
CN108449426A (en) * | 2018-04-13 | 2018-08-24 | 郑州云海信息技术有限公司 | A kind of internet of things net controller and data center's communication means and system |
CN108833436A (en) * | 2018-07-03 | 2018-11-16 | 深圳第蓝筹科技有限公司 | A kind of communication control method for realizing equipment communication interconnection |
CN108833436B (en) * | 2018-07-03 | 2021-07-16 | 一重集团(黑龙江)专项装备科技有限公司 | Communication control method for realizing equipment communication interconnection |
CN110198202B (en) * | 2019-06-03 | 2022-01-28 | 北京润科通用技术有限公司 | Method and device for checking AFDX (avionics full Duplex switched Ethernet) bus message data source |
CN110198202A (en) * | 2019-06-03 | 2019-09-03 | 北京润科通用技术有限公司 | A kind of method of calibration and device of AFDX bus message data source |
CN110224887A (en) * | 2019-06-04 | 2019-09-10 | 北京挚友科技有限公司 | A kind of method and apparatus of Ethernet Y.1564 test frame automatic identification |
CN110417773A (en) * | 2019-07-26 | 2019-11-05 | 湖北三江航天红峰控制有限公司 | A kind of serial port protocol data acquisition analytic method, system and device |
CN112398780B (en) * | 2019-08-13 | 2023-08-08 | 南京智数科技有限公司 | Equipment self-identification communication method suitable for multiple networks |
CN112398780A (en) * | 2019-08-13 | 2021-02-23 | 南京智数科技有限公司 | Equipment self-identification communication method suitable for various networks |
CN110515744A (en) * | 2019-08-14 | 2019-11-29 | 北京邮电大学 | A kind of method of spacecraft software information interaction |
CN110704213A (en) * | 2019-10-10 | 2020-01-17 | 北京航空航天大学 | Virtual and real efficient real-time interaction method and system for digital twin data |
CN110704213B (en) * | 2019-10-10 | 2020-07-10 | 北京航空航天大学 | Virtual and real efficient real-time interaction method and system for digital twin data |
CN110719218A (en) * | 2019-10-31 | 2020-01-21 | 天津亚东智鑫科技有限公司 | Multi-node interconnection protocol standard method based on CAN bus |
CN110719218B (en) * | 2019-10-31 | 2021-07-30 | 天津亚东智鑫科技有限公司 | Multi-node interconnection protocol standard method based on CAN bus |
CN111147463A (en) * | 2019-12-18 | 2020-05-12 | 北京电子工程总体研究所 | Asynchronous 422 bus-based variable-length frame high-reliability data receiving method |
CN111147463B (en) * | 2019-12-18 | 2022-04-19 | 北京电子工程总体研究所 | Asynchronous 422 bus-based variable-length frame high-reliability data receiving method |
CN111766618A (en) * | 2020-07-08 | 2020-10-13 | 福建省亿坤通信股份有限公司 | Fixed equipment positioning method, equipment and system |
CN111953674A (en) * | 2020-08-10 | 2020-11-17 | 深圳市航天泰瑞捷电子有限公司 | Power utilization information acquisition data isolation system and method |
CN112235302B (en) * | 2020-10-15 | 2023-03-24 | 天津津航计算技术研究所 | Protocol analysis method suitable for multiple buses |
CN112235302A (en) * | 2020-10-15 | 2021-01-15 | 天津津航计算技术研究所 | Protocol analysis method suitable for multiple buses |
CN112463706A (en) * | 2020-12-07 | 2021-03-09 | 上海电气集团股份有限公司 | Data sending and receiving method and communication terminal |
CN113177013A (en) * | 2021-05-24 | 2021-07-27 | 石家庄通合电子科技股份有限公司 | Baud rate-based serial communication method and multi-serial chip |
CN113364746A (en) * | 2021-05-24 | 2021-09-07 | 湖南华菱涟源钢铁有限公司 | Equipment identification method, device, equipment and computer storage medium |
CN113177013B (en) * | 2021-05-24 | 2022-09-02 | 石家庄通合电子科技股份有限公司 | Baud rate-based serial communication method and multi-serial chip |
CN114553919A (en) * | 2021-11-17 | 2022-05-27 | 武汉领普科技有限公司 | Data processing method, device and storage medium |
CN115002231A (en) * | 2022-05-27 | 2022-09-02 | 苏州联讯仪器有限公司 | Communication protocol based on HEX format, communication device and medium |
CN115347978A (en) * | 2022-08-03 | 2022-11-15 | 新诺北斗航科信息技术(厦门)股份有限公司 | Method, device and storage medium for identifying AIS frame header data |
CN115347978B (en) * | 2022-08-03 | 2023-09-01 | 新诺北斗航科信息技术(厦门)股份有限公司 | Method, device and storage medium for identifying AIS frame header data |
CN115379020A (en) * | 2022-08-08 | 2022-11-22 | 南京信息工程大学 | Embedded-based multi-machine communication protocol design method |
CN115379020B (en) * | 2022-08-08 | 2023-06-09 | 南京信息工程大学 | Embedded multi-machine communication protocol design method |
Also Published As
Publication number | Publication date |
---|---|
CN107147657B (en) | 2020-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107147657A (en) | Suitable for the communication protocol of multimachine reliable communication, decoding method and communication apparatus | |
CN105015565B (en) | A kind of train fault information automatic displaying method | |
US6438128B1 (en) | Alternate use of data packet fields to convey information | |
CN106209812A (en) | A kind of method of internet-of-things terminal platform data encapsulation | |
CN102780705B (en) | Ethernet-(controller area network) CAN protocol converter | |
CN103530211B (en) | A kind of method of the PCIE winding Autonomous tests based on UVM platforms | |
CN103442250A (en) | System and method for debugging television | |
CN107948059A (en) | EtherCAT and Modbus protocol conversion gateways based on SPARC architecture microprocessors | |
CN110650066A (en) | Embedded bus communication detection system and reliability detection method thereof | |
CN107426770A (en) | Data communication method, data terminal and system based on data link layer | |
CN110213756A (en) | A kind of data transmission method, device and its relevant device | |
CN103200130A (en) | Safe storage and selection method and device for messages in LEU (Line-side Electronic Unit) | |
CN103081417A (en) | Frame concatenation device | |
CN106649186A (en) | Communication method and device for application program and serial port peripheral | |
CN101930362A (en) | Method for integrating TTCN language and data description language | |
CN104009982B (en) | File grouping group sending device and file grouping method for group sending based on ultrashort wave radio set | |
CN107748854A (en) | A kind of POE powers integrated RFID reader and its communication means | |
CN102957585B (en) | The data transmission method of a kind of Ethernet and data transmission device | |
CN104660470A (en) | Device and method for detecting Rapid IO bus protocol | |
CN105721402A (en) | Method and apparatus for analyzing SITA message | |
CN104009957B (en) | A kind of ethernet communication method and device based on serial ports | |
CN102510383A (en) | Middleware system with network traffic shaping function for aircraft electronic communication | |
CN109951458A (en) | A kind of RapidIO/FC protocol conversion system and method applied to analog IC P environment | |
CN107342920B (en) | Internet of things gateway access equipment and data interaction method thereof | |
CN104881386B (en) | A kind of device for solving the problems, such as BLVDS bus DC balances |
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 |