CN111314888B - Communication method of C1 wireless transmission unit and main control unit - Google Patents

Communication method of C1 wireless transmission unit and main control unit Download PDF

Info

Publication number
CN111314888B
CN111314888B CN202010409909.8A CN202010409909A CN111314888B CN 111314888 B CN111314888 B CN 111314888B CN 202010409909 A CN202010409909 A CN 202010409909A CN 111314888 B CN111314888 B CN 111314888B
Authority
CN
China
Prior art keywords
data
port
wireless transmission
transmission unit
message
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
CN202010409909.8A
Other languages
Chinese (zh)
Other versions
CN111314888A (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.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202010409909.8A priority Critical patent/CN111314888B/en
Publication of CN111314888A publication Critical patent/CN111314888A/en
Application granted granted Critical
Publication of CN111314888B publication Critical patent/CN111314888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/42Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for mass transport vehicles, e.g. buses, trains or aircraft
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a communication method of a C1 wireless transmission unit and a main control unit, wherein the C1 wireless transmission unit and the main control unit interact through an MVB bus, the ports of the MVB bus comprise a command port and a plurality of data ports, and the communication method comprises the following steps: reading corresponding route data of the relevant transponder; c1 wireless transmission unit divides each complete message in the route data into sending buffer area queue of data port according to MVB bus port definition; c1 wireless transmission unit reads data from the sending buffer queue and writes into the corresponding data port, the route data of the data port is updated; the main control unit reads data from the data port and stores the data into a receiving buffer queue of the data port; and taking out the data in the receiving buffer queues of the plurality of data ports, splicing the data into a complete message, and finishing data receiving. The invention improves the interaction efficiency of the C1 wireless transmission unit and the main control unit.

Description

Communication method of C1 wireless transmission unit and main control unit
Technical Field
The invention belongs to the field of train communication, and particularly relates to a communication method of a C1 wireless transmission unit and a main control unit.
Background
In 2004, the former ministry of railways released "summary of the CTCS technical specifications (temporary)", indicated the frame structure of the Chinese train operation control system (CTCS) technical system, and determined 5 levels in total of 0 to 4 in the Chinese train operation control system. The system mainly comprises a common speed railway train control system, a common speed railway train control system and a common speed railway train control system, wherein the common speed railway train control system is mainly applied to a CTCS-0 level train control system, a special high-speed railway passenger line with the speed of 200km per hour adopts the CTCS-2 level train control system, and a special high-speed railway passenger line with the speed of 300km per hour adopts the CTCS-3 level train control system (the CTCS-2 level train control system is used as. In the 5-level CTCS system of the train control system, a complete CTCS-1 level is still lacked.
The CTCS-0 level train control system is composed of a general locomotive signal and a train operation monitoring and recording device (LKJ), the CTCS-0 level train control system is not an SIL4 level train control system, and potential safety hazards exist when LKJ equipment is used in a large area of locomotive leaders and traffic routes, locomotives are frequently deployed, existing line data changes and operation scenes with frequent construction and reconstruction.
The equipment meeting the CTCS-2 level train control system can be interconnected and intercommunicated with the equipment meeting the CTCS-3 level train control system, but can not be interconnected and intercommunicated with the equipment of the CTCS-0 system. This results in that a high-speed motor train unit equipped with the CTCS-3/2 level train control system cannot be switched from a high-speed passenger line to an existing line for operation. In actual railway operation, if a fault exists in a station or a short line in a section of a special high-speed passenger line, the high-speed motor train unit can bypass the fault section through the common speed line, and the influence of single-point faults on the whole-line operation order can be reduced as much as possible.
Based on the three points, the overall design scheme of the CTCS-1-level train control system is provided, and the CTCS-1-level train control system meets the SIL4 grade and simultaneously meets the requirement that a high-speed motor train unit provided with CTCS-3/2-grade train control vehicle-mounted equipment runs on a common-speed railway on the premise of reducing the reconstruction of the existing equipment as far as possible.
The CTCS-1 level train control system is composed of ground equipment and vehicle-mounted equipment, route data are broadcasted and sent to the vehicle-mounted equipment from the ground equipment through 400MHz wireless communication, and the vehicle-mounted equipment completes train positioning through a ground responder and screens corresponding route data for use. The vehicle-mounted device receives the route data by using the C1 wireless transmission unit and then transmits the route data to the main control unit through the MVB bus. In order to reduce the reconstruction of the existing equipment of the ordinary speed railway as much as possible and reduce the reconstruction cost.
The overall design scheme of the CTCS-1 level train control system adopts a wireless transmission mode of unidirectional broadcasting from ground equipment to vehicle-mounted equipment. The transmission mode of the unidirectional broadcast causes that the ground equipment cannot provide accurate route data for each vehicle point to point like bidirectional communication, the ground equipment can only send all possible route data to all vehicles within a wireless coverage range, and the vehicle-mounted equipment selects the corresponding route data according to the ground transponder which the vehicle-mounted equipment passes through. The data volume of the route data received by the C1 wireless transmission unit is large and cannot be transmitted to the main control unit through the MVB bus in a short time. Therefore, on the premise of satisfying the transmission bandwidth of the MVB bus, how to improve the interaction efficiency between the C1 wireless transmission unit and the main control unit is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the above problems, the present invention provides a communication method between a C1 wireless transmission unit and a master control unit.
A communication method of a C1 wireless transmission unit and a master control unit, wherein the C1 wireless transmission unit and the master control unit interact through an MVB bus, and ports of the MVB bus comprise a command port and a plurality of data ports, and the communication method comprises the following steps:
the C1 wireless transmission unit searches the route data corresponding to the serial number of the relevant transponder group from the stored route data;
reading the route data corresponding to the serial number of the relevant transponder group;
the C1 wireless transmission unit divides each complete message in the route data corresponding to the relevant transponder group number according to the port definition of the MVB bus and fills the complete message into the sending buffer area queue of the data port;
the C1 wireless transmission unit reads out data from the sending buffer queue and writes the data into the corresponding data port, and the route data of the data port is updated;
the main control unit reads data from the data port, and stores the data into a receiving buffer queue of the data port;
and if the receiving cache queues of the data ports all contain data containing the serial numbers of the expected messages, taking out the data in the receiving cache queues of the data ports, splicing the data into complete messages, and finishing data receiving.
Preferably, the communication method between the C1 wireless transmission unit and the main control unit further includes:
feeding back the acknowledgement result of the data reception to the C1 wireless transmission unit.
Preferably, the communication method between the C1 wireless transmission unit and the main control unit further includes:
the C1 wireless transmission unit receives the route data from the wireless broadcast and stores the route data from the wireless broadcast according to the number of the relevant transponder group;
and the main control unit sends the related transponder group number to the C1 wireless transmission unit through a command port.
Preferably, the cycle of reading the route data corresponding to the relevant transponder group number is T1,
the period for fetching the data in the receiving buffer queues of a plurality of the data ports is T2,
the shortest cycle of the route data updating of the data port is T3, T3= m T1, m is an integer not less than T2/T1,
and T1 < T2 < T3.
Preferably, the sending buffer queue is a circular queue provided with N queue units, and each queue unit is used for storing a sending serial number ID1, a message serial number ID2 and message DATA.
Preferably, the sending buffer queue is further provided with a sending data pointer Z1, a write port pointer Z2 and an ACK pointer Z3,
the sending data pointer Z1 is used to point to a queue element available at the tail of the sending buffer queue;
the write port pointer Z2 is used for pointing to the queue unit to be written into the MVB bus port;
the ACK pointer Z3 points to the queue element to receive an acknowledgement;
wherein Z1+1= Z3 indicates that the transmit buffer queue is full and that no queue element is available,
z2= Z1, indicating that no new data needs to be written to the port,
when Z3= Z1, it indicates that no data needs to be received.
Preferably, the communication method of the C1 wireless transmission unit and the master control unit further includes a timeout retransmission mechanism.
Preferably, the command port communication data format includes: 24 bits of the most recent associated transponder group number information and 5 8 bits of said data port receipt acknowledgement information, wherein,
and the data port receives confirmation information, and is used for feeding back the message splicing result of the expected message serial number to the C1 wireless transmission unit.
Preferably, the data ports include 1 first data port and 4 second data ports.
Preferably, the communication format of the first data port includes: an 8-bit transmission stream number ID1, an 8-bit message stream number ID2, and the 1 st segment of the message DATA, the 1 st segment of the message DATA having a length of 30bits, wherein,
the sending serial numbers of the same data port are all different,
different segments of the same message have the same message serial number.
Preferably, the communication format of the second data port includes: an 8-bit transmission sequence number ID1, an 8-bit message sequence number ID2, and any one of 2 th to 5 th segments of the message DATA DATA, the length of any one of the 2 nd to 5 th segments of the message DATA DATA being 200bits, wherein,
the sending serial numbers of the same data port are all different,
different segments of the same message have the same message serial number.
A communication system of a C1 wireless transmission unit and a master unit, the communication system comprising a C1 wireless transmission unit, a master unit and an MVB bus, the MVB bus comprising a command port and a plurality of data ports,
the C1 wireless transmission unit is configured to search for route data corresponding to a relevant transponder group number from stored route data, read the route data corresponding to the relevant transponder group number, divide and fill each complete packet in the route data corresponding to the relevant transponder group number into a sending buffer queue of the data port according to MVB bus port definition, and read out data from the sending buffer queue and write into the corresponding data port, thereby implementing route data update of the data port;
the main control unit is configured to read data from the data ports, store the data in receiving buffer queues of the data ports, determine whether the receiving buffer queues of the data ports all have data including serial numbers of expected messages, and take out the data in the receiving buffer queues of the data ports to be spliced into a complete message;
and the MVB is used for information interaction between the C1 wireless transmission unit and the main control unit.
Preferably, the MVB bus is further configured to feed back a result of the confirmation of the receipt of the data to the C1 wireless transmission unit, and is further configured to send a relevant transponder group number to the C1 wireless transmission unit through the command port.
Preferably, the C1 wireless transmission unit is further configured to receive route data from a wireless broadcast, and further configured to store the route data from the wireless broadcast according to the associated transponder group number.
According to the communication method, the link of screening the route data according to the LRBG number is moved from the main control unit to the C1 wireless transmission unit, the data sending amount of the C1 wireless transmission unit is reduced, and the interaction efficiency of the C1 wireless transmission unit and the main control unit is improved. Meanwhile, when the C1 wireless transmission unit transmits 830bits of route data, the data is divided into 5 parts and distributed to 5 data ports, and the data is transmitted to the main control unit in a parallel mode in a mode of 'splicing' message serial numbers, so that the interaction efficiency of the C1 wireless transmission unit and the main control unit is improved under the condition of fully utilizing the MVB bus transmission bandwidth. The C1 wireless transmission unit can continuously send data before receiving the receiving confirmation of the main control unit when the receiving buffer is set at both interacting sides. Because the same buffer amount is set by the two transceivers, when the transmission buffer of the C1 wireless transmission unit is full, the transmission is stopped, and at this time, the receiving buffer of the main control unit is also full, and the C1 wireless transmission unit is expected to stop transmitting, so that the flow control is realized, and the interaction efficiency is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a communication system of a C1 wireless transmission unit and a main control unit based on MVB bus according to the present invention;
FIG. 2 is a diagram of a transmit buffer queue according to the present invention;
FIG. 3 is a diagram illustrating a timeout retransmission mechanism according to the present invention;
fig. 4 is a flowchart illustrating operation of the C1 wireless transmission unit of the present invention;
FIG. 5 is a flow chart of the operation of the master control unit of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present embodiment discloses a communication method between a C1 wireless transmission unit and a main control unit, in which the C1 wireless transmission unit and the main control unit interact with each other through an MVB bus, where ports of the MVB bus include a command port and a plurality of data ports. In this embodiment, the C1 wireless transmission unit receives the broadcasted route data through the wireless interface, screens the route data required by the main control unit from the broadcasted route data according to the command information sent by the main control unit, and sends the route data to the main control unit through the MVB bus. And after receiving the screened route data, the main control unit performs vehicle control logic calculation according to the screened route data. Specifically, the communication method between the C1 wireless transmission unit and the main control unit includes the following steps:
a: c1 wireless transmission unit searches the route data corresponding to the relative transponder group number from the stored route data;
b: reading corresponding route data of the relevant transponder;
c: c1 wireless transmission unit divides each complete message in the route data corresponding to the relevant responder according to MVB bus port definition and fills in the sending buffer queue of the data port;
d: c1 wireless transmission unit reads data from the sending buffer queue and writes into the corresponding data port, the route data of the data port is updated;
e: the main control unit reads data from the data port and stores the data into a receiving buffer queue of the data port;
f: judging whether the receiving buffer queues of a plurality of data ports all have data containing expected message serial numbers,
and if so, taking out the data in the receiving buffer queues of the plurality of data ports, splicing the data into a complete message, and finishing data receiving.
Wherein the cycle of reading the route data corresponding to the relevant transponder group number is T1,
the period for fetching the data in the receiving buffer queues of the plurality of data ports is T2,
the period of the route data update of the data port is at least T3,
note that T3= m × T1, m is an integer not less than T2/T1, and T1 < T2 < T3.
Specifically, the step C includes the following steps:
c1: determining whether the sending buffer queue is not full,
if so, go to step C2,
if not, executing the step D;
c2: and dividing each complete message in the route data corresponding to the wireless relevant responder according to the MVB bus port definition and filling the complete message into a sending buffer area queue of the data port, and updating the route data of the data port.
Specifically, the step D includes:
d1: it is determined whether the time since the last time the data port was updated is greater than T3,
if so, the process proceeds to D2,
if not, executing the step A;
d2: judging whether the sending buffer queue has data to be sent or not,
if yes, go to step D3;
if not, executing the step A;
d3: and reading the data of the sending buffer area queue, writing the data into the corresponding data port, and updating the data of the data port.
The main control unit reads data from the data port and stores the data into a receiving buffer queue of the data port
The step E comprises the following steps:
e1: it is determined whether the data of the data port is updated,
if yes, execute E2;
e2: determining whether the receive buffer queue is not full,
if yes, go to step E3;
if not, executing the step F;
e3: and reading data from the data port, and storing the data into a receiving buffer area queue of the corresponding data port.
The step F comprises the following steps:
f1: judging whether the receiving buffer area queues are all not empty or not,
if yes, go to step F2;
if not, executing the step E;
f2: judging whether the receiving buffer queues of a plurality of data ports all have data containing expected message serial numbers,
if so, go to step F3,
if not, executing the step E;
f3: and taking out the data in the receiving buffer pair queues of the plurality of data ports, splicing the data into a complete message, and finishing data receiving.
Specifically, the communication method between the C1 wireless transmission unit and the main control unit further includes:
feeding back the data reception confirmation result to the C1 wireless transmission unit.
Specifically, the communication method between the C1 wireless transmission unit and the main control unit further includes:
c1 wireless transmission unit receives route data from wireless broadcast, and stores the route data according to relative responder group number;
the master unit sends the relevant transponder group numbers to the C1 wireless transmission unit through the command port.
Wherein, the command port communication data format comprises: the most recent associated transponder group number information of 22 bits and the 5 data ports of 8 bits receive the acknowledgement information, wherein,
and the data port receives confirmation information and is used for feeding back the message splicing result of the expected message serial number to the C1 wireless transmission unit.
Wherein the data ports include 1 first data port and 4 second data ports. Specifically, the communication format of the first data port includes: an 8-bit transmission sequence number ID1, an 8-bit message sequence number ID2, and a 1 st segment of message data, wherein the length of the first segment of message data is 30bits, and the communication format of the second data port includes: an 8-bit transmission serial number ID1, an 8-bit message serial number ID2, and any of the 2 nd to 5 th segments of the message DATA, where the length of any of the 2 nd to 5 th segments of the message DATA is 200bits, where the transmission serial numbers of each DATA port are different, and different segments of the same message have the same message serial number, and the following description is given to an exemplary communication format of each port of the MVB bus by combining 830 bytes of message DATA:
the C1 wireless transmission unit and the main control unit interact through 6 ports of the MVB bus. For the master control unit, port 1 is a command port, the master control unit sends a command through write port 1, and the C1 wireless transmission unit receives a command through read port 1. The total 5 ports from the port 2 to the port 6 are data ports, the C1 wireless transmission unit sends the route data through the write port, and the main control unit receives the route data through the read port.
For port 1, at least the following fields are included:
Figure 840965DEST_PATH_IMAGE001
for port 2, at least the following fields are included:
Figure 584799DEST_PATH_IMAGE002
for ports 3-6, at least the following fields are included:
Figure 789515DEST_PATH_IMAGE003
the period for reading the corresponding route data of the relevant transponder is T1, namely the task execution period of the C1 wireless transmission unit is T1, namely the port 1 is read once every T1, and the ports 2-5 can be written once every T1; the period for taking out the data in the receiving buffer queues of the multiple data ports is T2, namely the task execution period of the main control unit is T2, namely, the ports 2-5 are read once every T2, the port 1 can be written once every T2, and T1 is less than T2, namely, the quick sender and the slow receiver are provided, so that the main control unit is ensured not to read the data of the ports 2-5. The period of the route data of the updated data port is at least T3, wherein T3= m T1> T2.
Referring to fig. 2, the sending buffer queue is a circular queue having N queue units, and each queue unit is used for storing a sending serial number ID1, a message serial number ID2, and message DATA.
Wherein the sending buffer queue is also provided with a sending data pointer Z1, a write port pointer Z2 and an ACK pointer Z3,
the sending data pointer Z1 is used for pointing to a unit available at the tail of the queue;
the writing port pointer Z2 is used for pointing to a unit needing to be written into an MVB bus port;
the ACK pointer Z3 points to the element that is to receive an acknowledgement;
wherein, Z1+1= Z3, it means that the queue is full and there are no available cells,
z2= Z1, indicating that no new data needs to be written to the port,
when Z3= Z1, it indicates that no data needs to be received.
The following describes an exemplary communication method between the C1 wireless transmission unit and the main control unit according to this embodiment, where the communication method includes:
(1) the C1 wireless transmission unit receives and stores route data from the wireless broadcast in the form of:
Figure 972104DEST_PATH_IMAGE004
(2) when the train passes through a certain transponder group, the main control unit sends the LRBG number to the C1 wireless transmission unit through the command port.
(3) After the C1 wireless transmission unit receives the LRBG number, according to the LRBG number, the route data corresponding to the LRBG number is searched and taken out from the stored route data, and each 830bits message of the route data is divided and filled into the sending buffer queue of each data port according to the MVB bus port definition every T1 time.
The data structure and the operation principle of the transmission buffer queue of each data port are similar, and port 2 is taken as an example for description.
As shown in fig. 2, a transmit buffer queue, which is a circular queue, is maintained in the C1 wtru software for each data port. The queue length is N, and each queue unit stores messages of ID1, ID2 and 30 bits. It should be noted that the ports 3 to 6 are messages of 200 bits. Three pointers are set, a send data pointer Z1, a write port pointer Z2, and an ACK pointer Z3, and function as follows:
and the sending data pointer points to an available unit at the tail of the queue, when a message needs to be sent, the message is written into the unit, and then the pointer moves backwards. When the fire is Z1+1= Z3, it indicates that the queue is full and there are no available cells;
the port pointer points to a unit needing to be written into the MVB bus port, and the C1 wireless transmission unit reads route data from the unit every T3 time and updates the ports 2-5. When Z2= Z1, it indicates that no new data needs to be written to the port;
the ACK pointer points to the unit to receive the acknowledgment and moves backward when reading the acknowledgment data for the unit to receive the acknowledgment from port 1. When Z3= Z1, it indicates that no data requires reception confirmation.
After monitoring that the ID1 field of the port 2 is updated, the main control unit reads the port data and stores the port data into a receiving buffer queue of the corresponding port, where the length of the buffer queue is the same as the length of the sending buffer queue, and is N.
The main control unit searches DATA containing the serial number of the expected message from the receiving cache of the ports 2-6, when the DATA can be searched at the ports 2-6, the DATA can be taken out from the receiving cache area, and the DATA field is spliced into a complete message with the length of 830 bits. And updates ACK2 field value equal to ID1 through port 1.
When the C1 wireless transmission unit detects that the ACK2 field value of port 1 is ID1, the main control unit is considered to have received the routing data with the transmission flow number of ID1, and the ACK pointer is moved backwards.
Since the update periods of the ports 1 to 6 are all fixed time, in order to prevent data transmission or reception failure within the fixed time, a timeout retransmission mechanism is set in the C1 wireless transmission unit. As shown in FIG. 3, if the C1 WTRU sent ID1 and started a timer, and if the ACK1 was not received after T4, the C1 WTRU will retransmit ID1 and restart the timer, the timeout time is still T4 until ACK1 is received.
Specifically, the following describes, with reference to fig. 4, an exemplary workflow of the C1 wireless transmission unit in the communication process between the C1 wireless transmission unit and the main control unit:
the work flow of the C1 wireless transmission unit comprises the following steps:
s1: receiving wireless data and storing the wireless data according to the LRBG number;
s2: a read port 1;
s3: searching stored wireless data according to the LRBG number;
s4: judging whether the sending buffer area queues are not full,
if so, the process proceeds to S5,
if not, executing S6;
s5: storing the wireless data into a sending buffer area queue of a corresponding port;
s6: it is determined whether the time since last port data update is greater than T3,
if so, the process proceeds to S7,
if not, executing S9;
s7: judging whether the sending buffer area has data to be sent or not,
if so, the process proceeds to S8,
if not, executing S9;
s8: writing data to be sent into ports 2-6;
s9: judges whether the ACK of the port 1 is the data to be confirmed in the sending buffer area,
if so, the process proceeds to S10,
if not, executing S11;
s10: moving back an ACK pointer;
s11: judging whether the data to be confirmed in the sending buffer area is overtime or not,
if so, the process proceeds to S12,
if not, executing S1;
s12: the data to be acknowledged is retransmitted and then S1 is performed.
Specifically, the following describes, with reference to fig. 5, an exemplary workflow of the main control unit in a communication process between the C1 wireless transmission unit and the main control unit:
the work flow of the main control unit comprises the following steps:
s1: initializing an expected message serial number;
s2: judging whether the data of the port data 2-6 are updated, if so, executing S3;
s3: determining whether the receiving buffer is not full,
if so, the process proceeds to S4,
if not, executing S5;
s4: reading data of the ports 2-6 and storing the data into corresponding receiving cache regions;
s5: judging whether the receiving buffer areas are all not empty or not,
if so, the process proceeds to S6,
if not, executing S1;
s6: judging whether the port 2-6 receives the data containing the serial number of the expected message in the buffer queue,
if so, the process proceeds to S7,
if not, executing S1;
s7: reading data from the receiving buffer area and splicing the data into a complete message;
s8: recovering the ACK through port 1;
s9: the expected message serial number is incremented by 1.
In order to implement the above communication method, this embodiment further discloses a communication system of a C1 wireless transmission unit and a main control unit based on an MVB bus, where the communication system includes a C1 wireless transmission unit, a main control unit and an MVB bus, the MVB bus includes a command port and a plurality of data ports,
the C1 wireless transmission unit is configured to search, from stored route data, route data corresponding to a relevant transponder group number, read route data corresponding to the relevant transponder, divide and fill each complete packet in the route data corresponding to the relevant transponder into a sending buffer queue of the data port according to MVB bus port definition, and update route data of the data port;
the main control unit is used for judging whether the data of the data ports are updated or not, reading the messages of the sending buffer area queue, storing the messages of the sending buffer area queue into the receiving buffer area queue of the corresponding data port, judging whether the receiving buffer queues of the plurality of data ports all contain the data in the serial number of the expected message, and taking out the data in the receiving buffer queues of the plurality of data ports to splice the data into a complete message;
and the MVB is used for information interaction between the C1 wireless transmission unit and the main control unit.
The MVB is further used for feeding back the data receiving confirmation result to the C1 wireless transmission unit, and is further used for sending the relevant transponder group number to the C1 wireless transmission unit through a command port.
Wherein the C1 wireless transmission unit is further configured to receive route data from a wireless broadcast and further configured to store the route data from the wireless broadcast by an associated transponder group number.
In the communication method described in this embodiment, the link of screening the route data according to the LRBG number is moved from the main control unit to the C1 wireless transmission unit, so that the data sending amount of the C1 wireless transmission unit is reduced, and the interaction efficiency between the C1 wireless transmission unit and the main control unit is improved. Meanwhile, when the C1 wireless transmission unit transmits 830bits of route data, the data is divided into 5 parts and distributed to 5 data ports, and the data is transmitted to the main control unit in a parallel mode in a mode of 'splicing' message serial numbers, so that the interaction efficiency of the C1 wireless transmission unit and the main control unit is improved under the condition of fully utilizing the MVB bus transmission bandwidth. The C1 wireless transmission unit can continuously send data before receiving the receiving confirmation of the main control unit when the receiving buffer is set at both interacting sides. Because the same buffer amount is set by the two transceivers, when the transmission buffer of the C1 wireless transmission unit is full, the transmission is stopped, and at this time, the receiving buffer of the main control unit is also full, and the C1 wireless transmission unit is expected to stop transmitting, so that the flow control is realized, and the interaction efficiency is improved.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A communication method of a C1 wireless transmission unit and a main control unit is characterized in that in the communication method, the C1 wireless transmission unit and the main control unit interact through an MVB bus, and ports of the MVB bus comprise a command port and a plurality of data ports, and the communication method comprises the following steps:
the C1 wireless transmission unit searches the route data corresponding to the serial number of the relevant transponder group from the stored route data;
reading the route data corresponding to the serial number of the relevant transponder group;
the C1 wireless transmission unit divides each complete message in the route data corresponding to the relevant transponder group number according to the port definition of the MVB bus and fills the complete message into the sending buffer area queue of the data port;
the data ports comprise 1 first data port and 4 second data ports;
the communication format of the first data port comprises: sending the serial number ID1, the message serial number ID2 and the 1 st segment of the message DATA DATA;
the communication format of the second data port comprises: sending any one of the serial number ID1, the message serial number ID2 and the 2 nd to 5 th segments of the message DATA DATA;
different segments of the same message have the same message serial number;
the C1 wireless transmission unit reads out data from the sending buffer queue and writes the data into the corresponding data port, and the route data of the data port is updated;
the main control unit reads data from the data port, and stores the data into a receiving buffer queue of the data port;
and if the receiving cache queues of the data ports all contain data containing the serial numbers of the expected messages, taking out the data in the receiving cache queues of the data ports, splicing the data into complete messages, and finishing data receiving.
2. The C1 method for communicating between a wireless transmission unit and a master unit, according to claim 1, wherein the method further comprises:
feeding back the acknowledgement result of the data reception to the C1 wireless transmission unit.
3. The C1 method for communicating between a wireless transmission unit and a master unit, according to claim 1, wherein the method further comprises:
the C1 wireless transmission unit receives the route data from the wireless broadcast and stores the route data from the wireless broadcast according to the number of the relevant transponder group;
and the main control unit sends the related transponder group number to the C1 wireless transmission unit through a command port.
4. The C1 method of communication between a wireless transmission unit and a master unit of claim 1,
the period for reading the route data corresponding to the relevant transponder group number is T1,
the period for fetching the data in the receiving buffer queues of a plurality of the data ports is T2,
the shortest cycle of the route data updating of the data port is T3, T3= m T1, m is an integer not less than T2/T1,
and T1 < T2 < T3.
5. The C1 wireless transmission unit and master control unit communication method as claimed in claim 1, wherein said transmit buffer queue is a circular queue with N queue elements, each of said queue elements is used to store transmit serial number ID1, message serial number ID2 and message DATA.
6. The C1 communication method of wireless transmission unit and master unit, according to claim 5, wherein the transmission buffer queue is further provided with a transmission data pointer Z1, a write port pointer Z2 and an ACK pointer Z3,
the sending data pointer Z1 is used to point to a queue element available at the tail of the sending buffer queue;
the write port pointer Z2 is used for pointing to the queue unit to be written into the MVB bus port;
the ACK pointer Z3 points to the queue element to receive an acknowledgement;
wherein Z1+1= Z3 indicates that the transmit buffer queue is full and that no queue element is available,
z2= Z1, indicating that no new data needs to be written to the port,
when Z3= Z1, it indicates that no data needs to be received.
7. The C1 method of communicating between a wireless transmission unit and a master unit, according to claim 1, wherein the method further comprises a timeout retransmission mechanism.
8. The C1 method for communicating between a wireless transmission unit and a master control unit according to claim 1, wherein the command port communication data format comprises: 24 bits of the most recent associated transponder group number information and 5 data ports of 8 bits of the reception acknowledgement information, wherein,
and the data port receives confirmation information, and is used for feeding back the message splicing result of the expected message serial number to the C1 wireless transmission unit.
9. The C1 method for communicating between a wireless transmission unit and a master control unit according to claim 1, wherein the first data port comprises: an 8-bit transmission stream number ID1, an 8-bit message stream number ID2, and the 1 st segment of the message DATA, the 1 st segment of the message DATA having a length of 30bits, wherein,
and the sending serial numbers of the same data port are all different.
10. The C1 method for communicating between a wireless transmission unit and a master control unit according to claim 1, wherein the communication format of the second data port includes: an 8-bit transmission sequence number ID1, an 8-bit message sequence number ID2, and any one of 2 th to 5 th segments of the message DATA DATA, the length of any one of the 2 nd to 5 th segments of the message DATA DATA being 200bits, wherein,
the sending serial numbers of the same data port are all different.
11. A communication system of a C1 wireless transmission unit and a master control unit, the communication system comprising the C1 wireless transmission unit, a master control unit and an MVB bus, the MVB bus comprising a command port and a plurality of data ports,
the C1 wireless transmission unit is configured to search for route data corresponding to a relevant transponder group number from stored route data, read the route data corresponding to the relevant transponder group number, divide and fill each complete packet in the route data corresponding to the relevant transponder group number into a sending buffer queue of the data port according to MVB bus port definition, and read out data from the sending buffer queue and write into the corresponding data port, thereby implementing route data update of the data port;
the data ports comprise 1 first data port and 4 second data ports;
the communication format of the first data port comprises: sending the serial number ID1, the message serial number ID2 and the 1 st segment of the message DATA DATA;
the communication format of the second data port comprises: sending any one of the serial number ID1, the message serial number ID2 and the 2 nd to 5 th segments of the message DATA DATA;
the transmission serial number of each data port is different,
different segments of the same message have the same message serial number;
the main control unit is configured to read data from the data ports, store the data in receiving buffer queues of the data ports, determine whether the receiving buffer queues of the data ports all have data including serial numbers of expected messages, and take out the data in the receiving buffer queues of the data ports to be spliced into a complete message;
and the MVB is used for information interaction between the C1 wireless transmission unit and the main control unit.
12. The C1 communication system of claim 11, wherein the MVB bus is further configured to feed back the data reception confirmation result to the C1 wireless transmission unit, and further configured to send the relevant transponder group number to the C1 wireless transmission unit through the command port.
13. The C1 wireless transmission unit and master unit communication system according to claim 11, wherein the C1 wireless transmission unit is further adapted to receive route data from a wireless broadcast and further adapted to store the route data from the wireless broadcast by the associated transponder group number.
CN202010409909.8A 2020-05-15 2020-05-15 Communication method of C1 wireless transmission unit and main control unit Active CN111314888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010409909.8A CN111314888B (en) 2020-05-15 2020-05-15 Communication method of C1 wireless transmission unit and main control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010409909.8A CN111314888B (en) 2020-05-15 2020-05-15 Communication method of C1 wireless transmission unit and main control unit

Publications (2)

Publication Number Publication Date
CN111314888A CN111314888A (en) 2020-06-19
CN111314888B true CN111314888B (en) 2020-09-08

Family

ID=71148254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010409909.8A Active CN111314888B (en) 2020-05-15 2020-05-15 Communication method of C1 wireless transmission unit and main control unit

Country Status (1)

Country Link
CN (1) CN111314888B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738921A (en) * 2021-01-04 2021-04-30 北京全路通信信号研究设计院集团有限公司 Base station of communication system
CN112839317B (en) * 2021-01-04 2023-05-12 北京全路通信信号研究设计院集团有限公司 Vehicle-mounted terminal of communication system
CN113022643B (en) * 2021-03-23 2022-09-27 上海电气泰雷兹交通自动化系统有限公司 Fault-oriented safety transponder detection system and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107244338B (en) * 2017-05-25 2019-04-19 中国铁路总公司 CTCS-1 grades of region column control data center apparatus
CN107161179A (en) * 2017-05-25 2017-09-15 中国铁道科学研究院通信信号研究所 Suitable for the running control system of general fast railway
CN107995079B (en) * 2017-11-27 2020-09-29 中国铁道科学研究院通信信号研究所 Hot standby vehicle-mounted ATP (automatic train protection) equipment based on MVB (multifunction vehicle bus)
CN108189860B (en) * 2017-12-18 2020-06-05 中国铁道科学研究院通信信号研究所 Driving permission control system suitable for general speed railway
CN110789584B (en) * 2019-10-12 2022-05-24 北京全路通信信号研究设计院集团有限公司 Processing method for preventing misuse of line data and CTCS-1 level train control system
CN110789570B (en) * 2019-10-17 2022-01-25 北京全路通信信号研究设计院集团有限公司 Train-mounted equipment and control method thereof
CN110901694B (en) * 2019-11-08 2021-11-02 北京全路通信信号研究设计院集团有限公司 Method and system for processing CTCS-1 level wireless data

Also Published As

Publication number Publication date
CN111314888A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN111314888B (en) Communication method of C1 wireless transmission unit and main control unit
KR100308719B1 (en) Method and device for using multiple fifo enhancing flow control and routing in communication receiver
WO2010103608A1 (en) Train information display system and train information display device
CN109300325A (en) A kind of lane prediction technique and system based on V2X
JP4642052B2 (en) Train information display system and train information display device
CN103890823A (en) Method for transmitting route data for traffic telematics
CN108320551A (en) Traffic signal display system for prompting based on car networking network and its display alarm method
CN109649437B (en) Railway station computer interlocking information transmission method and system
CN115503786B (en) Processing method and system for improving usability of vehicle-mounted equipment
CN102480421A (en) Vehicle network data transmission method and system thereof
CN115257887A (en) Method for determining train moving authorization terminal
CN102158829A (en) Train tail information transmission system for train
KR20030096111A (en) Traffic Information Exchange Scheme using Inter-vehicle Wireless Communication
CN108111576A (en) A kind of car-ground radio transmission method and device
CN104900082A (en) Data transmission method and device for traffic situation sensing
CN115871743B (en) Line data processing method, control method and device in common-speed line
DE112016000578B4 (en) Vehicle communication device
JP2012199816A (en) Data reception device and data reception program
CN102265531A (en) Communication method, vehicle equipment, wireless blocking center and system in travelling process of train
JP2022116614A (en) Vehicle communication system, communication control method and vehicle communication device
JP2021170356A (en) Communication data processing system
JP6229519B2 (en) Road-to-vehicle communication system
CN113765742B (en) Method and system for storing vehicle-mounted data of rail vehicle
JP4381079B2 (en) Wireless communication system, wireless communication device, and wireless communication method
JP3313563B2 (en) Data transmission control 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