CN109286549B - 1553 bus function safety communication method - Google Patents

1553 bus function safety communication method Download PDF

Info

Publication number
CN109286549B
CN109286549B CN201811210440.4A CN201811210440A CN109286549B CN 109286549 B CN109286549 B CN 109286549B CN 201811210440 A CN201811210440 A CN 201811210440A CN 109286549 B CN109286549 B CN 109286549B
Authority
CN
China
Prior art keywords
word
words
data
state
check
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
CN201811210440.4A
Other languages
Chinese (zh)
Other versions
CN109286549A (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.)
Tianjin Jinhang Computing Technology Research Institute
Original Assignee
Tianjin Jinhang Computing Technology Research Institute
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 Tianjin Jinhang Computing Technology Research Institute filed Critical Tianjin Jinhang Computing Technology Research Institute
Priority to CN201811210440.4A priority Critical patent/CN109286549B/en
Publication of CN109286549A publication Critical patent/CN109286549A/en
Application granted granted Critical
Publication of CN109286549B publication Critical patent/CN109286549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Systems (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention relates to a 1553 bus function safety communication method, and belongs to the technical field of computer communication 1553 buses. According to the functional safety communication method of the 1553 bus, fault detection such as state word loss, disorder and the like is realized through a state word sequence number checking function, fault detection such as wrong number, disguise and the like is realized through a message data safety checking function, response overtime fault detection is realized through a response time checking function, the functional safety level of the 1553 bus is improved, and the functional safety communication method is particularly suitable for application in severe environments.

Description

1553 bus function safety communication method
Technical Field
The invention belongs to the technical field of computer communication 1553 buses, and particularly relates to a function safety communication method of a 1553 bus.
Background
At present, the research on the Ethernet function safety in the industrial Ethernet is hot, and the method is used for ensuring the adaptability, reliability and maintainability of the Ethernet under various severe environment interferences such as electromagnetism, high temperature, humidity, noise, vibration and the like. For example, PROFIsafe security protocol, CIPSafety protocol, EPASafety protocol, etc. are developed for ethernet.
1553 the bus physical layer adopts Manchester coding, which is the same as the coding algorithm adopted by the Ethernet (10BASE-T) physical layer; 1553 the basic unit (word) of the logical link layer of the bus adopts a parity check method, can only realize single-bit error correction, and is much weaker than the CRC32 check method adopted by the basic unit (frame) of the logical link layer of the Ethernet. Therefore, the 1553 bus is weaker than the ethernet in terms of protocol coding design.
At present, the research on 1553 bus security protocol is still blank. Therefore, a communication method which is simple and efficient and improves 1553 bus function safety is urgently needed.
Disclosure of Invention
Technical problem to be solved
The technical problem to be solved by the invention is as follows: how to design a communication method which is simple and efficient and improves 1553 bus function safety.
(II) technical scheme
In order to solve the technical problem, the invention provides a 1553 bus function safety communication method, which is used for realizing BC-to-RT and RT-to-BC function safety communication, wherein the 1553 bus BC-to-RT function safety communication method comprises the following steps:
s1: BC sends 1553 receiving command words, a specified number of 1553 data words and message data check words to RT;
s2: an RT receives 1553 and receives a command word, a specified number of 1553 data words and a message data check word, and message data check is carried out;
s3: the RT sends 1553 state words carrying the serial numbers of the RT state words to the BC;
s4: and the BC receives 1553 state words carrying the RT state word sequence numbers and carries out response time check and state word sequence number check.
Preferably, in the 1553 bus BC-to-RT function safety communication method, step S1 specifically includes:
s101: performing CRC-16 calculation on data to be transmitted;
s102: generating a message data check word according to the calculation result of the CRC-16 in a 1553 data word format;
s103: sending 1553 received command words, sending 1553 data words of a specified number, and continuing sending message data check words in a word interval-free manner;
s104: the command and response message interval timing begins.
Preferably, in the 1553 bus BC-to-RT function safety communication method, step S2 specifically includes:
s201: receiving 1553 a command word, receiving 1553 a specified number of data words, and continuing to receive message data check words in a word interval free manner;
s202: and performing CRC-16 calculation on the received valid data, comparing the valid data with CRC-16 data in a message data check word, if the valid data is consistent with the CRC-16 data in the message data check word, successfully checking the message data, and otherwise, failing to check the message data.
Preferably, in the 1553 bus BC-to-RT function safety communication method, step S3 specifically includes:
s301: if the message data is successfully verified, executing S302, otherwise, executing S303;
s302: setting a message error bit in the 1553 state word;
s303: writing the sequence number of the RT state word into a reserved bit of the state word;
s304: sending 1553 status words;
s305: the RT status word sequence number is incremented by 1.
Preferably, in the 1553 bus BC-to-RT function safety communication method, step S4 specifically includes:
s401: receiving 1553 a status word;
s402: stopping interval timing of the command and the response message, if the timing value is within the range of the allowable interval time value of the command and the response message, successfully verifying the response time, and otherwise, failing to verify the response time;
s403: extracting a status word reserved bit as a sequence number of the RT status word;
s404: comparing with the expected value of the sequence number of the RT state word, if the expected value is equal, considering that the sequence number of the state word is successfully verified, and continuing to execute the step S405, otherwise, considering that the sequence number of the state word is failed to be verified, and directly executing the step S406;
s405: adding 1 to the expected value of the word sequence number in the RT state;
s406: the BC to RT function secure communication ends.
Preferably, the method for the function safety communication of 1553 buses RT to BC is characterized by comprising the following steps:
s1': BC sends 1553 command words to RT;
s2': RT receives 1553 and sends command words;
s3': the RT sends 1553 state words carrying the serial numbers of the RT state words, a specified number of 1553 data words and message data check words to the BC;
s4': and the BC receives 1553 state words carrying the RT state word sequence numbers, a specified number of 1553 data words and message data check words, and performs response time check, state word sequence number check and message data check.
Preferably, in the 1553 bus RT-BC function secure communication method, step S1' specifically includes:
s101': sending 1553 a send command word;
s102': command and response message interval timing begins;
preferably, in the 1553 bus RT-BC function secure communication method, step S3' specifically includes:
s301': performing CRC-16 calculation on data to be transmitted;
s302': generating a message data check word according to the calculation result of the CRC-16 in a 1553 data word format;
s303': writing the sequence number of the RT state word into a reserved bit of the state word;
s304': sending 1553 status words, sending 1553 data words with a specified number, and continuing sending message data check words in a manner without word intervals;
s305': the RT status word sequence number is incremented by 1.
Preferably, in the 1553 bus RT-BC function secure communication method, the step S4' specifically includes:
s401': receiving 1553 status words, receiving a specified number of 1553 data words, and continuing to receive message data check words in a word interval free manner;
s402': stopping interval timing of the command and the response message, if the timing value is within the range of the allowable interval time value of the command and the response message, successfully verifying the response time, and otherwise, failing to verify the response time;
s403': extracting a status word reserved bit as a sequence number of the RT status word;
s404': comparing with the expected value of the RT state word sequence number, if the expected value is equal, the checking of the state word sequence number is successful, executing the step S405 ', otherwise, the checking of the state word sequence number is failed, executing the step S407';
s405': adding 1 to the expected value of the word sequence number in the RT state;
s406': performing CRC-16 calculation on the received effective data and comparing the effective data with CRC-16 data in a message data check word, if the effective data is consistent with the CRC-16 data in the message data check word, successfully checking the message data, and otherwise, failing to check the message data;
s407': the RT to BC function secure communication ends.
(III) advantageous effects
According to the functional safety communication method of the 1553 bus, fault detection such as state word loss, disorder and the like is realized through a state word sequence number checking function, fault detection such as wrong number, disguise and the like is realized through a message data safety checking function, response overtime fault detection is realized through a response time checking function, the functional safety level of the 1553 bus is improved, and the functional safety communication method is particularly suitable for application in severe environments.
Drawings
FIG. 1 is a schematic diagram of a message format of a method designed in the present invention;
FIG. 2 is a schematic diagram of the BC to RT function safety communication flow in the present invention;
FIG. 3 is a schematic diagram of the safe communication flow from RT to BC function in the present invention;
FIG. 4 is a diagram of a status word format used in the present invention.
Detailed Description
In order to make the objects, contents, and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
The function safety communication method of the 1553 bus can realize the function safety communication from BC to RT and from RT to BC.
As shown in fig. 1 to 4, a 1553 bus BC-to-RT function safety communication method includes the following steps:
s1: BC sends 1553 receiving command words, a specified number of 1553 data words and message data check words to RT;
wherein, step S1 specifically includes:
s101: performing CRC-16 calculation on data to be transmitted;
s102: generating a message data check word according to the calculation result of the CRC-16 in a 1553 data word format;
s103: sending 1553 received command words, sending 1553 data words of a specified number, and continuing sending message data check words in a word interval-free manner;
s104: command and response message interval timing begins;
s2: an RT receives 1553 and receives a command word, a specified number of 1553 data words and a message data check word, and message data check is carried out;
wherein, step S2 specifically includes:
s201: receiving 1553 a command word, receiving 1553 a specified number of data words, and continuing to receive message data check words in a word interval free manner;
s202: performing CRC-16 calculation on the received effective data, comparing the effective data with CRC-16 data in a message data check word, if the effective data is consistent with the CRC-16 data in the message data check word, successfully checking the message data, and otherwise, failing to check the message data;
s3: the RT sends 1553 state words carrying the serial numbers of the RT state words to the BC;
wherein, step S3 specifically includes:
s301: if the message data is successfully verified, executing S302, otherwise, executing S303;
s302: setting a message error bit (bit 9) in the 1553 state word;
s303: writing the RT status word sequence number (initial value 0) into the reserved bits (bits 12 to 14) of the status word;
s304: sending 1553 status words;
s305: adding 1 to the sequence number of the RT state word;
s4: BC receives 1553 state words carrying RT state word sequence numbers, and carries out response time check and state word sequence number check;
wherein, step S4 specifically includes:
s401: receiving 1553 a status word;
s402: stopping interval timing of the command and the response message, if the timing value is within the range of the allowable interval time value of the command and the response message, successfully verifying the response time, and otherwise, failing to verify the response time;
s403: extracting the status word reserved bits (bits 12 to 14) as the RT status word sequence number;
s404: comparing with the expected value (initial value is 0) of the RT state word sequence number, if the expected value is equal to the expected value, considering that the state word sequence number is verified successfully, executing the step S405 (then executing the step 406), otherwise, considering that the state word sequence number is verified unsuccessfully, and directly executing the step S406;
s405: adding 1 to the expected value of the word sequence number in the RT state;
s406: the BC-to-RT function secure communication ends (then it may return to step S1 again to perform the next round of operation);
1553A function safety communication method of RT to BC bus comprises the following steps:
s1': BC sends 1553 command words to RT;
wherein, step S1' specifically includes:
s101': sending 1553 a send command word;
s102': command and response message interval timing begins;
s2': RT receives 1553 and sends command words;
s3': the RT sends 1553 state words carrying the serial numbers of the RT state words, a specified number of 1553 data words and message data check words to the BC;
wherein, step S3' specifically includes:
s301': performing CRC-16 calculation on data to be transmitted;
s302': generating a message data check word according to the calculation result of the CRC-16 in a 1553 data word format;
s303': writing the RT status word sequence number (initial value 0) into the reserved bits (bits 12 to 14) of the status word;
s304: sending 1553 status words, sending 1553 data words with a specified number, and continuing sending message data check words in a manner without word intervals;
s305': adding 1 to the sequence number of the RT state word;
s4': the BC receives 1553 state words carrying RT state word serial numbers, a specified number of 1553 data words and message data check words, and performs response time check, state word serial number check and message data check;
wherein, step S4' specifically includes:
s401': receiving 1553 status words, receiving a specified number of 1553 data words, and continuing to receive message data check words in a word interval free manner;
s402': stopping interval timing of the command and the response message, if the timing value is within the range of the allowable interval time value of the command and the response message, successfully verifying the response time, and otherwise, failing to verify the response time;
s403': extracting the status word reserved bits (bits 12 to 14) as the RT status word sequence number;
s404': comparing with the expected value (initial value is 0) of the RT state word sequence number, if equal, the state word sequence number is successfully verified, continuing to execute the step S405 ', otherwise, the state word sequence number is failed to be verified, and directly executing the step S407';
s405': adding 1 to the expected value of the word sequence number in the RT state;
s406': performing CRC-16 calculation on the received effective data and comparing the effective data with CRC-16 data in a message data check word, if the effective data is consistent with the CRC-16 data in the message data check word, successfully checking the message data, and otherwise, failing to check the message data;
s407': the RT-to-BC function secure communication ends (then it may return to step S1' again to perform the next round of operation).
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (5)

1. A1553 bus functional safety communication method is characterized in that the method is used for realizing BC-to-RT and RT-to-BC functional safety communication, wherein the 1553 bus BC-to-RT functional safety communication method comprises the following steps:
s1: BC sends 1553 receiving command words, a specified number of 1553 data words and message data check words to RT;
s2: an RT receives 1553 and receives a command word, a specified number of 1553 data words and a message data check word, and message data check is carried out;
s3: the RT sends 1553 state words carrying the serial numbers of the RT state words to the BC;
s4: BC receives 1553 state words carrying RT state word sequence numbers, and carries out response time check and state word sequence number check;
in the 1553 functional safety communication method for the buses BC to RT, step S1 specifically includes:
s101: performing CRC-16 calculation on data to be transmitted;
s102: generating a message data check word according to the calculation result of the CRC-16 in a 1553 data word format;
s103: sending 1553 received command words, sending 1553 data words of a specified number, and continuing sending message data check words in a word interval-free manner;
s104: command and response message interval timing begins;
in the 1553 functional safety communication method for the buses BC to RT, step S2 specifically includes:
s201: receiving 1553 a command word, receiving 1553 a specified number of data words, and continuing to receive message data check words in a word interval free manner;
s202: performing CRC-16 calculation on the received effective data, comparing the effective data with CRC-16 data in a message data check word, if the effective data is consistent with the CRC-16 data in the message data check word, successfully checking the message data, and otherwise, failing to check the message data;
in the 1553 functional safety communication method for the buses BC to RT, step S3 specifically includes:
s301: if the message data is successfully verified, executing S302, otherwise, executing S303;
s302: setting a message error bit in the 1553 state word;
s303: writing the sequence number of the RT state word into a reserved bit of the state word;
s304: sending 1553 status words;
s305: adding 1 to the sequence number of the RT state word;
in the 1553 functional safety communication method for the buses BC to RT, step S4 specifically includes:
s401: receiving 1553 a status word;
s402: stopping interval timing of the command and the response message, if the timing value is within the range of the allowable interval time value of the command and the response message, successfully verifying the response time, and otherwise, failing to verify the response time;
s403: extracting a status word reserved bit as a sequence number of the RT status word;
s404: comparing with the expected value of the sequence number of the RT state word, if the expected value is equal, considering that the sequence number of the state word is successfully verified, and continuing to execute the step S405, otherwise, considering that the sequence number of the state word is failed to be verified, and directly executing the step S406;
s405: adding 1 to the expected value of the word sequence number in the RT state;
s406: the BC to RT function secure communication ends.
2. The method of claim 1, wherein the 1553 bus RT to BC function secure communication method comprises the steps of:
s1': BC sends 1553 command words to RT;
s2': RT receives 1553 and sends command words;
s3': the RT sends 1553 state words carrying the serial numbers of the RT state words, a specified number of 1553 data words and message data check words to the BC;
s4': and the BC receives 1553 state words carrying the RT state word sequence numbers, a specified number of 1553 data words and message data check words, and performs response time check, state word sequence number check and message data check.
3. The method according to claim 2, wherein in the 1553 bus RT-BC function security communication method, the step S1' specifically includes:
s101': sending 1553 a send command word;
s102': the command and response message interval timing begins.
4. The method according to claim 2, wherein in the 1553 bus RT-BC function security communication method, the step S3' specifically includes:
s301': performing CRC-16 calculation on data to be transmitted;
s302': generating a message data check word according to the calculation result of the CRC-16 in a 1553 data word format;
s303': writing the sequence number of the RT state word into a reserved bit of the state word;
s304': sending 1553 status words, sending 1553 data words with a specified number, and continuing sending message data check words in a manner without word intervals;
s305': the RT status word sequence number is incremented by 1.
5. The method according to claim 2, wherein in the 1553 bus RT to BC function security communication method, the step S4' specifically includes:
s401': receiving 1553 status words, receiving a specified number of 1553 data words, and continuing to receive message data check words in a word interval free manner;
s402': stopping interval timing of the command and the response message, if the timing value is within the range of the allowable interval time value of the command and the response message, successfully verifying the response time, and otherwise, failing to verify the response time;
s403': extracting a status word reserved bit as a sequence number of the RT status word;
s404': comparing with the expected value of the RT state word sequence number, if the expected value is equal, the checking of the state word sequence number is successful, executing the step S405 ', otherwise, the checking of the state word sequence number is failed, executing the step S407';
s405': adding 1 to the expected value of the word sequence number in the RT state;
s406': performing CRC-16 calculation on the received effective data and comparing the effective data with CRC-16 data in a message data check word, if the effective data is consistent with the CRC-16 data in the message data check word, successfully checking the message data, and otherwise, failing to check the message data;
s407': the RT to BC function secure communication ends.
CN201811210440.4A 2018-10-17 2018-10-17 1553 bus function safety communication method Active CN109286549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811210440.4A CN109286549B (en) 2018-10-17 2018-10-17 1553 bus function safety communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811210440.4A CN109286549B (en) 2018-10-17 2018-10-17 1553 bus function safety communication method

Publications (2)

Publication Number Publication Date
CN109286549A CN109286549A (en) 2019-01-29
CN109286549B true CN109286549B (en) 2021-01-08

Family

ID=65178011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811210440.4A Active CN109286549B (en) 2018-10-17 2018-10-17 1553 bus function safety communication method

Country Status (1)

Country Link
CN (1) CN109286549B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320224A (en) * 2014-10-13 2015-01-28 北京航天自动控制研究所 Reliable communication method based on 1553B bus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8549389B2 (en) * 2011-05-24 2013-10-01 Honeywell International Inc. Systems and methods for 1553 bus operation self checking

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320224A (en) * 2014-10-13 2015-01-28 北京航天自动控制研究所 Reliable communication method based on 1553B bus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Protecting Military Avionics Platforms from Attacks on MIL-STD-1553 Communication Bus;Orly Stan, Yuval Elovici,等;《arXiv》;20170717;全文 *
提高1553B总线通信完整性的编码设计;王文萱,等;《测控技术》;20160430;第35卷(第4期);第101-105页 *

Also Published As

Publication number Publication date
CN109286549A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
US7712010B2 (en) Systems, methods and computer program products for utilizing a spare lane for additional checkbits
CN107534592B (en) Method for protecting configuration data of a data bus transceiver, data bus transceiver and data bus system
CN111130689B (en) System and method for transmitting data and data check fields
CN107306185B (en) Method and device for avoiding manipulation of data transmission
US8949606B2 (en) Prevention of masquerade by using identification sequences
CN107038391B (en) Method and apparatus for protecting data integrity by embedded systems
TW201714097A (en) Communication device, communication method, program, and communication system
CN101938331B (en) Data communication method, device and system
WO2019026077A1 (en) System and method for preventing malicious can bus attacks
JP2015130668A (en) Transmission system error detection and correction system and method
CN114144997A (en) Error detection test device for a subscriber station of a serial bus system and method for testing a mechanism for error detection in communication in a serial bus system
JP2003229875A (en) Method for recognizing data transmission error in can controller, can controller, program, recording medium, and control device
CN112564863A (en) Communication timeliness error detection system and detection method
US20100050062A1 (en) Sending device, receiving device, communication control device, communication system, and communication control method
CN106372026B (en) link detection method and receiving equipment
US20060187932A1 (en) Method and system for transmitting telegrams
CN109286549B (en) 1553 bus function safety communication method
CN109361583B (en) 1553 bus function safety communication system
CN104967504A (en) Method and apparatus for link data protection
CN110351012B (en) Method for detecting data corruption during data transmission via a fail-safe communication link
CN102884744B (en) For protecting up for the method and apparatus of the packet transmitted by interface
JP3866708B2 (en) Remote input / output device
CN114545888A (en) End-to-end fault diagnosis method and device
JP2014082578A (en) Full duplex communication device using communication packet and having transmitter and receiver and communication method thereof
CN101477507B (en) USB error correction encoding/decoding device and method, USB transmission system and method

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