CN114248820A - Communication method of train control center and track circuit - Google Patents
Communication method of train control center and track circuit Download PDFInfo
- Publication number
- CN114248820A CN114248820A CN202111572587.XA CN202111572587A CN114248820A CN 114248820 A CN114248820 A CN 114248820A CN 202111572587 A CN202111572587 A CN 202111572587A CN 114248820 A CN114248820 A CN 114248820A
- Authority
- CN
- China
- Prior art keywords
- control center
- data
- data frame
- track circuit
- column control
- 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
Links
Images
Classifications
-
- 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
A communication method between train control center and track circuit is characterized by that the system of train control center can send data frame to track circuit, and can judge that the transmission is successful or not, if it is not successful, said frame data can be retransmitted, then the next frame data frame can be sent. The invention increases the communication availability, effectively avoids the problem of frame loss of the transmitted data under the conditions of hardware design defect, loop channel abnormity and the like, is convenient to maintain, can quickly solve the field problem and improves the field operation efficiency.
Description
Technical Field
The invention relates to a communication method of a train control center and a track circuit.
Background
With the continuous development of socioeconomic of China, the demand for railway transportation is increasing. The CTCS-2 train control system is a train control system widely applied in China at present, wherein a train control center and a track circuit are used as important components of the CTCS-2 train control system and are also the core of ground safety equipment, and play a vital role in the stability and safety of train operation.
The stable communication of the interface between the train control center and the track circuit is also an important factor for the safe running of the train, the train control center and the track circuit adopt CAN bus communication, the CAN bus communication conforms to the ISO11898 CAN2.0B standard protocol, the communication medium is a twisted pair, and the baud rate is 1 Mbps. The communication quality between the train control center and the track circuit is influenced by factors such as terminal resistance, baud rate, multiple nodes and arbitration, so that the communication quality is reduced, the packet loss problem caused by data transmission failure CAN occur in the communication process, and the CAN communication has a certain packet loss rate due to hardware design.
Disclosure of Invention
The invention aims to provide a communication method between a train control center and a track circuit, which solves the problem of data transmission frame loss through a software means under the condition of unchanging a hardware environment and enhances the usability of communication.
In order to achieve the above object, the present invention provides a method for communication between a train control center and a track circuit, wherein a train control center system transmits a data frame to the track circuit, and determines whether the transmission is successful, and if the transmission is unsuccessful, the data frame is retransmitted, and then the next data frame is transmitted.
The column control center sends data to the track circuit in a packed format of data frames.
The column control center uses a group processing function CanSendPacketTransfer (& t _ Packet, & t _ SndPacket) to group the data to be sent.
The column control center sends a data frame to the track circuit through a buffer write function write ().
And the column control center judges whether the data frame is successfully sent or not according to the return value of the write function write () of the buffer area.
When the data frame is unsuccessfully sent, the column control center clears the CAN channel sending data buffer area through an I/O device control function ioctl (zpw- > CanFD, CAN _ CLR _ TXBUF,0), and retransmits the data frame.
And when the data frame is unsuccessfully sent, the register reading function canchan- > ReadReg is used for acquiring the state data of the register, and the state data is sent to the row control center.
The state data at least comprises: arbitration domain, control domain, hardware error information.
And the train control center analyzes the error reason according to the state data and sends the error reason to the maintenance terminal.
And after the train control center retransmits the data frame for more than a preset number of times, stopping retransmitting the data frame and transmitting the next data frame.
The column control center records the number of times the data frame is retransmitted through the variable g _ sendCode _ Cnt flag.
And after the retransmission data frame of the train control center exceeds the preset number, outputting alarm information.
The invention increases the communication availability, effectively avoids the problem of frame loss of the transmitted data under the conditions of hardware design defect, loop channel abnormity and the like, is convenient to maintain, can quickly solve the field problem and improves the field operation efficiency.
Drawings
FIG. 1 is a diagram illustrating communication between a train control center and a track circuit interface according to an embodiment of the present invention.
Fig. 2 is a flowchart of a communication method between a train control center and a track circuit according to an embodiment of the present invention.
Detailed Description
The preferred embodiment of the present invention will be described in detail below with reference to fig. 1 and 2.
In order to prevent the train running from being influenced by the data transmission packet loss, the invention provides a realization method for optimizing the packet loss problem of the CAN communication transmission data frame, and avoids the influence on the running caused by the fact that the track circuit communication disc uses the forgiveness data after entering the forgiveness mechanism and cannot acquire the real-time track circuit coded data in time due to the failure of single-frame data transmission.
The communication interface protocol of the train control center and the track circuit is executed according to the specification of 'high-speed train control center interface temporary technical specification' iron total operation [2015]75, and the realization of the interface meets the specification requirement. When the train control center sends the coded data to the track circuit, a data frame retransmission mechanism is introduced to solve the problem of CAN data transmission packet loss.
The invention provides a communication method between a train control center and a track circuit, and the whole processing flow comprises the following steps: the train control center system is electrified and started, after the train control center system operates to enter a normal state, the train control center system establishes communication connection with the track circuit, normally sends data frames to the track circuit, judges whether the sending is successful, retransmits the frame data if the sending is unsuccessful, and then sends a new frame of data.
Fig. 1 shows a communication connection mode between a column control center and a track circuit, and a dual-CPU redundant connection is adopted. In an embodiment of the present invention, as shown in fig. 2, a method for implementing optimization of a packet loss problem in communication between a train control center and a track circuit is provided, which includes the following steps:
step S1, the CPU of the train control center is normally electrified and started, and establishes communication connection with the track circuit equipment;
step S2, the CPU of the column control center sends data to the track circuit in the packet format of the data frame;
step S3, every time the CPU of the train control center sends a frame of data, whether the sending is abnormal can be judged through the return value of the data frame sending function, whether the sending of the frame of data is successful is judged, if the sending is successful, the step S4 is carried out, and if the sending is failed, the step S5 is carried out;
step S4, the CPU of the train control center continues framing and sends the next frame data to the track circuit;
step S5, the CPU of the train control center analyzes each state data (including arbitration domain, control domain, hardware error information and the like) of the register returned by the detection of the driving hardware register of the current CPU, then sends the state data to the maintenance terminal of the train control center, records and prompts the repair suggestion on the maintenance terminal, and retransmits the frame data to the track circuit;
step S6, the CPU of the train control center judges whether the retransmission is successful, if the retransmission is successful, the CPU continues framing to send the next frame data; if the retransmission fails, judging the retransmission times of the frame, if the retransmission fails to exceed 3 times, not retransmitting the data frame, outputting alarm information, and manually detecting the abnormity of the physical connection channel; if the retransmission times is within 3, the data frame is retransmitted continuously until the retransmission is successful or the retransmission times exceeds 3, and then the next frame data is transmitted continuously.
The method comprises the steps that a group packing processing function CanSendPacketTransfer (& t _ Packet, & t _ SndPacket) is used for carrying out group packing, sending is carried out through a buffer area write function write (), whether sending is successful or not is judged through a return value of the write function write (), if sending is unsuccessful, a CAN channel sending data cache area is emptied through an I/O device control function ioctl (zpw- > CanFD, CAN _ CLR _ TXBUF,0), and data frames are retransmitted, so that repeated data are prevented from being sent. And simultaneously, reading the function canchan- > ReadReg by using a register to obtain each state data of the register, analyzing corresponding error reasons, sending and recording the error reasons to a maintenance terminal, and recording and prompting a repair suggestion by the maintenance terminal. And recording the retransmission times through a variable g _ sendCode _ Cnt mark, and stopping sending the data frame after the retransmission times exceed 3 times.
Step S7, loop step S2 to step S6.
The method is optimized based on the CAN communication transmission frame loss problem encountered in the early use process, based on an LKD2-KA column control center platform, one ten-thousandth of bit error rate and frame loss rate exist in the design of CAN communication hardware, factors such as the frame loss rate of CAN communication transmission caused by the difference of matching resistance of CAN buses when different types of track circuits are connected are considered, under the condition that the hardware environment is unchanged, the problem of frame loss of CAN data transmission of the column control center is solved through a software means, and the usability of CAN communication is enhanced.
Compared with the prior art, the invention has the following beneficial effects:
1. the data interaction processing of the CAN communication protocol provides a frame loss prevention thought, the communication availability is increased, and the problem of frame loss of data transmission under the conditions of hardware design defects, loop channel abnormity and the like is effectively solved.
2. When the data frame is sent in error, the register state data returned by the driving hardware register of the train control center can record the reason of the current sending error in detail, including whether bus arbitration occurs when the data is sent (the sending of the high-priority data frame blocks the sending of the low-priority data frame, etc.); errors occur in the control domain (errors in the packet format of the data frame, etc.); hardware errors (bus resistance mismatching and the like) and the like, the application layer can make clear the specific reason of the current sending errors by analyzing the state data of the register, and the maintenance terminal of the train control center records and gives a solution prompt, so that the maintenance is facilitated.
3. When the data frame is failed to be sent due to the defect of hardware design or the existence of an arbitration mechanism, the data frame retransmission mechanism can solve the problem of the data frame sending failure on the premise of not influencing the sending sequence, real-time performance and accuracy of other coded data frames, the data retransmission processing is controllable, and the existing interface processing is not influenced.
4. The failure of sending the data frame depends on special conditions such as hardware design defects, bus arbitration and the like, the probability of sending failure is low, when the data frame is sent to have continuous and repeated (more than 5 times) failure, an alarm elastic frame can be output in time, whether the physical connection channel is abnormal or not is prompted to be detected, the field problem is solved rapidly, and the field operation efficiency is improved.
5. When the train control center is connected with track circuits of different models, the problem of frame sending loss caused by the difference of matching resistance of the CAN bus is solved in a software mode on the premise of not modifying hardware equipment, and the usability and the reusability of the train control center are improved.
It should be noted that, in the embodiments of the present invention, the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate the orientation or positional relationship shown in the drawings, and are only for convenience of describing the embodiments, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.
Claims (12)
1. A communication method between a train control center and a track circuit is characterized in that a train control center system sends a data frame to the track circuit and judges whether the sending is successful or not, if the sending is unsuccessful, the data frame is retransmitted, and then the next data frame is sent.
2. The method of claim 1, wherein the column control center transmits data to the track circuit in a packed data frame format.
3. The method as claimed in claim 2, wherein the column control center performs the Packet processing on the data to be transmitted by using a Packet processing function CanSendPacketTransfer (& t _ Packet, & t _ SndPacket).
4. The method of claim 1, wherein the column control center sends the data frame to the track circuit via a buffer write function write ().
5. The method of claim 4, wherein the column control center determines whether the data frame is successfully transmitted according to a return value of the buffer write function write ().
6. The method as claimed in claim 5, wherein when the data frame transmission is unsuccessful, the column control center clears the CAN channel transmission data buffer through the I/O device control function ioctl (zpw- > CanFD, CAN _ CLR _ TXBUF,0), and retransmits the data frame.
7. The method as claimed in claim 6, wherein the status data of the register is obtained by using a register read function canchan- > ReadReg when the data frame is not transmitted successfully, and the status data is transmitted to the row control center.
8. The method of claim 7, wherein the status data comprises at least one of: arbitration domain, control domain, hardware error information.
9. The method as claimed in claim 7, wherein the column control center resolves the error cause according to the status data and sends the error cause to the maintenance terminal.
10. The method as claimed in claim 1, wherein the data frame is retransmitted more than a predetermined number of times by the column control center, and the retransmission of the data frame is stopped, and the next frame of data is transmitted.
11. The column control center-to-track circuit communication method as claimed in claim 10, wherein the column control center records the number of times the data frame is retransmitted through a variable g _ sendCode _ Cnt flag.
12. The column control center and track circuit communication method according to claim 10, wherein the column control center outputs alarm information after retransmitting the data frame more than a predetermined number of times.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111572587.XA CN114248820A (en) | 2021-12-21 | 2021-12-21 | Communication method of train control center and track circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111572587.XA CN114248820A (en) | 2021-12-21 | 2021-12-21 | Communication method of train control center and track circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114248820A true CN114248820A (en) | 2022-03-29 |
Family
ID=80796350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111572587.XA Pending CN114248820A (en) | 2021-12-21 | 2021-12-21 | Communication method of train control center and track circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114248820A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002027020A (en) * | 2000-07-07 | 2002-01-25 | Matsushita Electric Ind Co Ltd | Communication control method for wireless terminal |
CN101145988A (en) * | 2007-07-19 | 2008-03-19 | 中兴通讯股份有限公司 | A detection and recovery method for communication link failure |
CN102837718A (en) * | 2012-09-13 | 2012-12-26 | 北京全路通信信号研究设计院有限公司 | Scattered object control terminal system for CTCS |
CN103546250A (en) * | 2013-09-18 | 2014-01-29 | 中标软件有限公司 | Communication method and communication system for vehicular terminal |
CN104852976A (en) * | 2015-04-29 | 2015-08-19 | 中国铁道科学研究院 | Train-ground communication system response method, on-board monitoring terminal and ground communication node |
CN109981566A (en) * | 2019-02-01 | 2019-07-05 | 卡斯柯信号有限公司 | What it is for train control center system is a synchronous safety protocol communication method |
CN111030747A (en) * | 2019-11-22 | 2020-04-17 | 中国科学院国家空间科学中心 | FPGA-based SpaceFibre node IP core |
WO2021008248A1 (en) * | 2019-07-12 | 2021-01-21 | 天地融科技股份有限公司 | Data frame reception method and device and communication method and system |
CN112249088A (en) * | 2019-07-22 | 2021-01-22 | 中车株洲电力机车研究所有限公司 | Method for mutual diagnosis and data synchronization of double-display system, double-display system and train |
-
2021
- 2021-12-21 CN CN202111572587.XA patent/CN114248820A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002027020A (en) * | 2000-07-07 | 2002-01-25 | Matsushita Electric Ind Co Ltd | Communication control method for wireless terminal |
CN101145988A (en) * | 2007-07-19 | 2008-03-19 | 中兴通讯股份有限公司 | A detection and recovery method for communication link failure |
CN102837718A (en) * | 2012-09-13 | 2012-12-26 | 北京全路通信信号研究设计院有限公司 | Scattered object control terminal system for CTCS |
CN103546250A (en) * | 2013-09-18 | 2014-01-29 | 中标软件有限公司 | Communication method and communication system for vehicular terminal |
CN104852976A (en) * | 2015-04-29 | 2015-08-19 | 中国铁道科学研究院 | Train-ground communication system response method, on-board monitoring terminal and ground communication node |
CN109981566A (en) * | 2019-02-01 | 2019-07-05 | 卡斯柯信号有限公司 | What it is for train control center system is a synchronous safety protocol communication method |
WO2021008248A1 (en) * | 2019-07-12 | 2021-01-21 | 天地融科技股份有限公司 | Data frame reception method and device and communication method and system |
CN112249088A (en) * | 2019-07-22 | 2021-01-22 | 中车株洲电力机车研究所有限公司 | Method for mutual diagnosis and data synchronization of double-display system, double-display system and train |
CN111030747A (en) * | 2019-11-22 | 2020-04-17 | 中国科学院国家空间科学中心 | FPGA-based SpaceFibre node IP core |
Non-Patent Citations (1)
Title |
---|
AMWITF: "CAN报文打包解包公用函数", vol. 2, pages 191, Retrieved from the Internet <URL:https://blog.csdn.net/amwitf/article/details/121960073> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101636844B1 (en) | Network system configured for resolving forward error correction during a data mode | |
US7047475B2 (en) | CRC encoding scheme for conveying status information | |
JP4407752B2 (en) | FAILURE LOCATION DETECTION DEVICE, COMMUNICATION DEVICE, AND FAILURE LOCATION DETECTION METHOD | |
US8509257B2 (en) | CAN node, and communication method of communication system including CAN node | |
JP4195272B2 (en) | Method for recognizing error in data transmission inside CAN-controller, CAN-controller, program, recording medium, and control device | |
CA2194619C (en) | Communication system where the receiving station requests retransmission of an erroneous portion of a data signal | |
JP2700843B2 (en) | Multiplex communication controller | |
US20110035180A1 (en) | Diagnostic apparatus and system adapted to diagnose occurrence of communication error | |
CN109379264B (en) | Multi-board card communication equipment, method and system based on CAN2.0 | |
CN113341906B (en) | Fault processing method, device and equipment and automobile | |
CN114248820A (en) | Communication method of train control center and track circuit | |
US10484280B2 (en) | Operation method of a communication node in network | |
WO2023131073A1 (en) | Self-checking method and apparatus for head unit testing | |
CN105634894A (en) | Enhanced type CAN bus data resending method and device | |
CN114051182A (en) | Current data acquisition, analysis and transmission system and method based on can protocol | |
CN115801183A (en) | Safety coding transmission device for track signal system | |
CN114124745B (en) | Method and system for diagnosing MVB communication faults | |
US10515039B2 (en) | Vehicle USB hub system | |
CN111713074B (en) | Subscriber station for a serial bus system and method for signaling errors for messages received in a serial bus system | |
CN114339765B (en) | Differential protection data interactive chain type verification method and system based on 5G communication | |
JP3217397B2 (en) | Data transmission method of communication control device | |
CN115230772B (en) | Urban rail train speed and distance measurement redundancy protection method | |
JP2655099B2 (en) | Serial communication method | |
CN114866321B (en) | Chip mac layer verification system and method | |
CN115913468A (en) | Integrated circuit, communication method and communication system |
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 |