CN108900596B - WTB physical layer data frame acquisition device and data frame acquisition method - Google Patents

WTB physical layer data frame acquisition device and data frame acquisition method Download PDF

Info

Publication number
CN108900596B
CN108900596B CN201810662242.5A CN201810662242A CN108900596B CN 108900596 B CN108900596 B CN 108900596B CN 201810662242 A CN201810662242 A CN 201810662242A CN 108900596 B CN108900596 B CN 108900596B
Authority
CN
China
Prior art keywords
data
physical layer
wtb
wtb physical
frame acquisition
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
CN201810662242.5A
Other languages
Chinese (zh)
Other versions
CN108900596A (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.)
CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Original Assignee
CRRC Qingdao Sifang Rolling Stock Research Institute 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 CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd filed Critical CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Priority to CN201810662242.5A priority Critical patent/CN108900596B/en
Publication of CN108900596A publication Critical patent/CN108900596A/en
Application granted granted Critical
Publication of CN108900596B publication Critical patent/CN108900596B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention provides a WTB physical layer data frame acquisition device, which is used for synchronously acquiring multi-node data and comprises a plurality of WTB physical layer interfaces, a data processing unit and a control unit; the data processing unit acquires data acquired by the interface and comprises a communication controller; the control unit comprises a communication control module used for generating a control signal to the communication controller so as to control the plurality of WTB physical layer interfaces to synchronously acquire data. Controlling a plurality of WTB physical layer interfaces to start working under the same clock beat; the method comprises the steps that a plurality of WTB physical layer interfaces synchronously acquire WTB physical layer data of a plurality of nodes; synchronous acquisition of data of a multi-node WTB physical layer can be realized. The WTB physical layer data acquisition device and the WTB physical layer data acquisition method can synchronously acquire physical layer data among all WTB nodes, thereby providing comprehensive data for analyzing the initial running process of the train WTB.

Description

WTB physical layer data frame acquisition device and data frame acquisition method
Technical Field
The invention relates to the technical field of communication, in particular to a data frame acquisition device and a data frame acquisition method for a WTB physical layer.
Background
The TCN train communication network specified by the IEC61375-1 standard is the most widely applied train communication standard at present, and the standard is introduced in China as a recommendation standard of the Chinese train communication network. The TCN standard stipulates a two-stage bus structure of WTB and MVB to realize the control of the train, when the train is marshalled or decompiled according to the operation requirement, the WTB bus can identify the topological change of the train, and the bus is reconfigured when the WTB is initially operated, so that the interconnection and intercommunication among WTB nodes are realized.
After the initial operation is finished, all the nodes are electrically connected with the cable sections to form a single bus with end connectors at two ends; all nodes receive a unique node address, identifying their position and orientation relative to the bus master; all nodes receive bus topology information including other node addresses, locations, node descriptors, etc. A typical bus that has completed its initial operation is shown in fig. 1, where all nodes have been named, node 01 is the bus master and the bus master is the end node in the figure, but it could also be an intermediate node. All WTB nodes have dedicated media connection components, which have two setting states: end settings and intermediate settings. In fig. 1, the two end nodes are end-set, their bus switches are open, the two end connectors are plugged in, and the main and auxiliary channels are connected in opposite directions; the other intermediate nodes are set according to the middle, the bus switches of the intermediate nodes are closed, the two end connectors are disconnected, and the auxiliary channel is closed.
According to the initial operation protocol, the initial operation is to complete the naming of unknown nodes by monitoring data and performing handshake, and during the initial operation, the bus switch needs to be opened and closed until a single bus with terminators at both ends is formed, so that all the initial operation data cannot be acquired at a single position during the initial operation.
The existing WTB protocol analysis device at home and abroad mainly works on a WTB link layer, acquires process data, message data and monitoring data transmitted on a bus, and records and analyzes events on a network based on the data. However, the initial operation process analysis of the WTB cannot be satisfied, and the initial operation data among all nodes is required for performing the comprehensive initial operation process analysis of the WTB, and particularly, all the initial operation data should be time-synchronized. For example, according to the standard initial operation time definition, the initial operation time in most scenes cannot be tested by the conventional test means since the first "name removal _ request" of the initial operation of the TCN is started, but the WTB bus cannot acquire all the initial operation data at a single position before the initial operation is completed. But the standards require that in all cases the initial operating time is not less than 25ms and not more than 1 s; if the initial operation protocol must be repeated due to an error, the maximum total initial operation time does not exceed 1.4s, and therefore the problem of testing the initial operation time needs to be solved. In addition, acquiring data transmitted on the WTB physical layer is the most true response to the link status. Therefore, it is necessary to provide a WTB physical layer data acquisition device to synchronously acquire physical layer initial operation data between all WTB nodes.
There is currently a problem 1: initial operation data among all nodes cannot be synchronously acquired;
there is currently a problem 2: the data of the WTB physical layer cannot be acquired, and the collision frame condition under the collision scene cannot be identified and detected.
If the analysis of the initial operation of train recombination is to be realized, the problem of synchronous acquisition and analysis of physical layer data between WTB nodes needs to be solved.
Disclosure of Invention
The invention provides a synchronous acquisition system and a method capable of realizing data of multi-node WTB physical layers, aiming at the technical problem that data cannot be synchronously acquired among WTB nodes.
In order to achieve the purpose, the invention adopts the technical scheme that:
a WTB physical layer data frame acquisition device is used for acquiring multi-node data and comprises a plurality of WTB physical layer interfaces, a data processing unit and a control unit;
the data processing unit acquires data acquired by the interface and comprises a communication controller;
the control unit comprises a communication control module used for generating a control signal to the communication controller so as to control the plurality of WTB physical layer interfaces to synchronously acquire data.
Preferably, the data processing unit further comprises a decoding module: the system comprises a WTB physical layer interface, a data acquisition module, a data processing module and a data processing module, wherein the WTB physical layer interface is used for acquiring data; a time marking module: a timestamp marker for recording the acquired data; a data packing module: for packing the decoded data and its corresponding time stamp.
Preferably, the data processing unit further includes a data caching unit: for caching the packed data.
Preferably, the control unit further comprises a data storage unit for acquiring the data of the data processing unit and storing the data in a classified manner.
A WTB physical layer data frame acquisition system comprises the WTB physical layer data frame acquisition device
Preferably, the data node comprises a plurality of data nodes, each data node comprises a data channel, and a WTB physical layer interface is connected between any two adjacent data nodes in series.
Preferably, the data channel includes a primary channel and a secondary channel, and the nth WTB physical layer interface is connected between the data channel of the nth data node and the data channel of the (n + 1) th data node.
The data frame acquisition method is used for synchronous data acquisition of multi-node data and comprises the following steps:
controlling a plurality of WTB physical layer interfaces to start working under the same clock beat;
and the WTB physical layer interfaces synchronously acquire WTB physical layer data of a plurality of nodes.
Preferably, the data frame acquisition method further comprises the steps of:
and decoding the collected multi-node WTB physical layer data under the same clock, synchronously recording a time stamp of the collection of the decoded data, and packaging the decoded data and the corresponding time stamp.
Preferably, the data frame acquisition method further comprises the steps of: the control unit carries out periodic polling on the data processing unit, and when the data of the data processing unit reaches the flag bit, the control unit acquires the data packed by the data processing unit and carries out classified storage.
Compared with the prior art, the invention has the advantages and positive effects that:
the invention designs a WTB physical layer data acquisition device and a WTB physical layer data acquisition method, which can synchronously acquire physical layer data among all WTB nodes, thereby providing comprehensive data for analyzing the initial running process of a train WTB.
Drawings
FIG. 1 is a schematic diagram of a connection structure of train nodes in the prior art;
FIG. 2 is a schematic structural diagram of a WTB physical layer data frame acquisition device according to the present invention;
FIG. 3 is a schematic diagram of a data frame acquisition system according to the present invention
Fig. 4 is a flow chart of WTB physical layer data acquisition.
Detailed Description
The invention is described in detail below by way of exemplary embodiments. It should be understood, however, that elements, structures and features of one embodiment may be beneficially incorporated in other embodiments without further recitation.
In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The WTB bus structure is a bus structure applied to train control, and when a train is recombined, the WTB bus can identify the change of train topology. The initial operation is a remarkable characteristic of the WTB bus, and the comprehensive initial operation analysis is a necessary condition for realizing interconnection and intercommunication of the WTB equipment.
The invention firstly provides a WTB physical layer data frame acquisition device which can be used for data acquisition of multiple network nodes. The structure of the WTB physical layer data frame acquisition device is shown in fig. 2, and includes a plurality of WTB physical layer interfaces, a data processing unit, and a control unit. Each WTB physical layer interface is connected with an external WTB bus segment, and each bus segment feeds back data of different data nodes. The WTB physical layer interface has a data conversion function, can convert the received differential bus signal into a single-ended signal and then sends the single-ended signal to the data processing unit for processing. In this embodiment, the data processing unit is an FPGA, and the control unit is an ARM.
The data processing unit acquires data acquired by a WTB physical layer interface and comprises a communication controller; the communication controller is used for controlling the enablement of the WTB physical layer interface and controlling whether the WTB physical layer interface can execute data acquisition work.
The control unit comprises a communication control module used for generating a control signal to the communication controller so as to control the plurality of WTB physical layer interfaces to synchronously acquire data. The control unit communicates with the data processing unit through an external expansion bus, in the embodiment, the ARM processor is connected with an expansion bus interface of the FPGA module through an ARM external expansion bus to realize communication between the ARM and the FPGA, and the communication control module of the ARM realizes control and management of the communication controller to control each WTB physical layer interface to start data acquisition.
Further, in order to perform the deep processing on the acquired data, the data processing unit further includes a decoding unit: the system comprises a WTB physical layer interface, a data acquisition module, a data processing module and a data processing module, wherein the WTB physical layer interface is used for acquiring data; a time marking unit: the time stamp is used for carrying out time stamp marking on the acquired data; a data packing module: the time stamp is used for packing the decoded data and the corresponding time stamp; a data caching unit: for buffering the decoded packed data. Because the WTB physical layer interfaces are started at the same time, each interface can start the data acquisition work of each node at the same time and synchronously acquire the data of each node.
In order to perform the data application processing subsequently, further, the control unit further includes a data storage unit, which acquires the data of the data processing unit and stores the data in a classified manner. Meanwhile, the control unit also comprises various external ports, so that data can be copied and uploaded conveniently, and the use is convenient.
Based on the WTB physical layer data frame acquisition device, a WTB physical layer data frame acquisition system is further provided.
The data acquisition system comprises a plurality of data nodes, each data node comprises a data channel, and a WTB physical layer interface is connected between any two adjacent data nodes in series.
Further provided is a structure in which each data node includes two data channels to illustrate the serial connection relationship of the interface and the node. The data channel comprises a main channel and an auxiliary channel, and the nth WTB physical layer interface is connected between the nth data node and the data channel of the (n + 1) th data node. Here, the main channel of the nth data node and the auxiliary channel of the (n + 1) th data channel may be provided, or the main channels of two data nodes or the auxiliary channels of two nodes may be provided.
Specifically referring to fig. 3, the present embodiment takes a four-node train system as an example to illustrate the structure and data acquisition principle of the WTB physical layer data frame acquisition system.
The four nodes are end node 01, intermediate node 02, intermediate node 03 and end node 04, respectively. With end node 01 being the bus master. Each node has two data channels, a primary channel and a secondary channel. The WTB data acquisition system of the four-node structure comprises three WTB physical layer interfaces, namely a first WTB physical layer interface, a second WTB physical layer interface and a third WTB physical layer interface. Wherein the first WTB physical layer interface can obtain at least data of the end node 01 and the intermediate node 02; the second WTB physical layer interface may obtain at least data of the intermediate node 02 and the intermediate node 03; the third WTB physical layer interface can obtain at least the data of the intermediate node 03 and the end node 04.
And the three WTB physical layer interfaces synchronously start data acquisition work and finally upload the acquired data to the ARM. The WTB physical layer data frame acquisition system acquires a complete WTB physical layer data frame, namely complete initial operation data, and a user can perform complete initial operation process analysis and initial operation key parameter test.
Based on the WTB physical layer data frame acquisition device or the WTB physical layer data frame acquisition system, the present invention further provides a WTB physical layer data frame acquisition method for synchronous data acquisition of multiple nodes, and the specific flow refers to fig. 4, including the following steps:
(1) and a WTB physical layer interface of the data frame acquisition device is connected in series among all WTB nodes. Specifically, in this embodiment, the first WTB physical layer interface, the second WTB physical layer interface, and the third WTB physical layer interface are respectively connected between four train nodes.
(2) And controlling a plurality of WTB physical layer interfaces to start working under the same clock beat.
The controller unit (CPU) sends out a signal for starting acquisition through a CPU module service interface or an Ethernet interface, the ARM completes self initialization work, and controls the FPGA to complete initialization through an expansion bus interface.
(3) And the WTB physical layer interfaces synchronously acquire WTB physical layer data of a plurality of nodes.
After data acquisition is started, the three WTB physical layer interfaces start to work under the same clock beat, respectively acquire data of each node, convert acquired differential bus signals into single-ended signals and send the single-ended signals to the FPGA.
(4) The data processing unit performs data processing.
And decoding the collected multi-node WTB physical layer data under the same clock, synchronously recording a time stamp of the collection of the decoded data, and packaging the decoded data and the corresponding time stamp.
Specifically, in this embodiment, the FPGA decoders 1 to 3 respectively convert the corresponding single-ended bus signals into data frames, respectively record current timestamp information, and uniformly package the data frame information and the timestamp information into data packets; because the decoders 1-3 operate at the same clock, the data collected is synchronized.
(5) And storing the controller data.
The control unit carries out periodic polling on the data processing unit, and when the data of the data processing unit reaches the flag bit, the control unit acquires the data packed by the data processing unit and carries out classified storage.
And after the complete data packet caching is finished, setting data arrival marks corresponding to the three WTB physical layer interfaces. The buffer size is reasonably set to avoid data overflow of the data buffer unit through parameters such as bus bandwidth, ARM polling period and the like; the ARM periodically polls the internal data of the FPGA through an expansion bus interface, the data of the interfaces 1-3 reach a flag bit, and when the data of the interfaces reach the flag bit, a corresponding interface data packet is read; and the ARM performs data classification storage on the received data packets of all the interfaces 1-3 and stores the data packets into a local storage unit FLASH.
The WTB physical layer data frame acquisition method is used for data acquisition during the initial operation period of the WTB, can realize synchronous acquisition of multi-node data and synchronously acquire physical layer data among all WTB nodes. The acquired data can be used for analysis of initial operation of the WTB. Whether the initial operation process is normal can be analyzed through complete initial operation data, key parameters such as initial operation time can be calculated through a data frame timestamp provided by a physical layer, whether frame collision occurs during the initial operation can be judged through collision information provided by the physical layer, and whether collision avoidance is reasonable is detected; whether the master-slave frame response interval is reasonable can be calculated through the data frame time stamp provided by the physical layer.
The above description is only a preferred embodiment of the present invention, and not intended to limit the present invention in other forms, and any person skilled in the art may apply the above modifications or changes to the equivalent embodiments with equivalent changes, without departing from the technical spirit of the present invention, and any simple modification, equivalent change and change made to the above embodiments according to the technical spirit of the present invention still belong to the protection scope of the technical spirit of the present invention.

Claims (10)

1. A WTB physical layer data frame acquisition device is used for synchronous acquisition of multi-node data and is characterized in that: the system comprises a plurality of WTB physical layer interfaces, a data processing unit and a control unit;
the data processing unit acquires data acquired by the interface, and comprises a communication controller;
the control unit comprises a communication control module used for generating a control signal to the communication controller so as to control the plurality of WTB physical layer interfaces to synchronously acquire data.
2. The WTB physical layer data frame acquisition device according to claim 1, wherein: the data processing unit further comprises a decoding module: the system comprises a WTB physical layer interface, a data acquisition module, a data processing module and a data processing module, wherein the WTB physical layer interface is used for acquiring data; a time marking module: a timestamp marker for recording the acquired data; a data packing module: for packing the decoded data and its corresponding time stamp.
3. The WTB physical layer data frame acquisition device according to claim 2, wherein: the data processing unit further comprises a data caching unit: for caching the packed data.
4. The WTB physical layer data frame acquisition device according to claim 1, wherein: the control unit further comprises a data storage unit which acquires the data of the data processing unit and stores the data in a classified manner.
5. A WTB physical layer data frame acquisition system is characterized in that: further comprising a WTB physical layer data frame acquisition device according to any one of claims 1 to 4.
6. The WTB physical layer data frame acquisition system of claim 5, wherein: the data transmission method comprises a plurality of data nodes, each data node comprises a data channel, and a WTB physical layer interface is connected between any two adjacent data nodes in series.
7. The WTB physical layer data frame acquisition system of claim 6, wherein: the data channel comprises a main channel and an auxiliary channel, and the nth WTB physical layer interface is connected between the nth data node and the data channel of the (n + 1) th data node.
8. A data frame acquisition method, which adopts the WTB physical layer data frame acquisition system of any claim 1 to 4, and is used for the synchronous acquisition of multi-node data, and is characterized by comprising the following steps:
controlling a plurality of WTB physical layer interfaces to start working under the same clock beat;
and the WTB physical layer interfaces synchronously acquire WTB physical layer data of a plurality of nodes.
9. The data frame acquisition method of claim 8, further comprising the steps of:
and decoding the collected multi-node WTB physical layer data under the same clock, synchronously recording a time stamp of the collection of the decoded data, and packaging the decoded data and the corresponding time stamp.
10. The data frame acquisition method of claim 8, further comprising the steps of: the control unit carries out periodic polling on the data processing unit, and when the data of the data processing unit reaches the flag bit, the control unit acquires the data packed by the data processing unit and carries out classified storage.
CN201810662242.5A 2018-06-25 2018-06-25 WTB physical layer data frame acquisition device and data frame acquisition method Active CN108900596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810662242.5A CN108900596B (en) 2018-06-25 2018-06-25 WTB physical layer data frame acquisition device and data frame acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810662242.5A CN108900596B (en) 2018-06-25 2018-06-25 WTB physical layer data frame acquisition device and data frame acquisition method

Publications (2)

Publication Number Publication Date
CN108900596A CN108900596A (en) 2018-11-27
CN108900596B true CN108900596B (en) 2020-11-24

Family

ID=64345982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810662242.5A Active CN108900596B (en) 2018-06-25 2018-06-25 WTB physical layer data frame acquisition device and data frame acquisition method

Country Status (1)

Country Link
CN (1) CN108900596B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187559B (en) * 2019-07-05 2022-05-31 中车株洲电力机车研究所有限公司 Automatic testing device and method for initial running time of train backbone network switch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002342494A (en) * 2001-05-16 2002-11-29 Jma Management Center Inc System and method for remote education
CN101083590A (en) * 2007-05-24 2007-12-05 谢步明 TCN railway engine network control experiment platform
CN102514576A (en) * 2011-11-28 2012-06-27 浙江网新技术有限公司 On-board intelligent equipment of high-speed train
CN103684999A (en) * 2012-09-06 2014-03-26 中国科学院软件研究所 MVB-WTB gateway based on MPC860
CN107707526A (en) * 2017-08-31 2018-02-16 中车大连电力牵引研发中心有限公司 A kind of data processing equipment and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200959606Y (en) * 2006-06-12 2007-10-10 谢步明 WTB telecommunication equipment based on FPGA

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002342494A (en) * 2001-05-16 2002-11-29 Jma Management Center Inc System and method for remote education
CN101083590A (en) * 2007-05-24 2007-12-05 谢步明 TCN railway engine network control experiment platform
CN102514576A (en) * 2011-11-28 2012-06-27 浙江网新技术有限公司 On-board intelligent equipment of high-speed train
CN103684999A (en) * 2012-09-06 2014-03-26 中国科学院软件研究所 MVB-WTB gateway based on MPC860
CN107707526A (en) * 2017-08-31 2018-02-16 中车大连电力牵引研发中心有限公司 A kind of data processing equipment and method

Also Published As

Publication number Publication date
CN108900596A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN112866075B (en) In-band network telemetering method, system and related device for Overlay network
CN105262555B (en) Time synchronization method, programmable logic device, single board and network element
CN101267363A (en) Loop testing method, system and device
KR101565345B1 (en) Method and apparatus for providing black-box for vehicle diagnosis using in-vehicle time synchronization message
CN103715766B (en) A kind of looped network decentralized bus protection synchronous method
WO2015196685A1 (en) Clock synchronization method and apparatus
WO2020038191A1 (en) Time delay measuring method and network device
CN108900596B (en) WTB physical layer data frame acquisition device and data frame acquisition method
JP2016533099A (en) Link performance test method, apparatus, logical processor and network processor
US7251703B1 (en) Method of time stamping to enable device bridging over dissimilar buses
CN112671598B (en) Special algorithm hardware module for electric power suitable for electric power system control protection device
CN203327033U (en) EtherCAT-based data acquisition device for flight test
CN103701847A (en) Onboard network data acquisition and synchronous transmission system
CN109274763B (en) Information synchronization method and dual-computer hot standby equipment
WO2019167415A1 (en) Communication control device and communication control system
US20220182182A1 (en) Frame processing method and apparatus
CN214627023U (en) Switching equipment compatible with definable deterministic communication Ethernet
WO2018014688A1 (en) Frame stream control method and device, and computer storage medium
CN101895560A (en) Fieldbus DP-NET with open two-stage topological structure
CN102081383B (en) Device and method for secure network protocol for field control
CN114726674A (en) FPGA-based PROFIBUS bus process data extraction method
CN115360677A (en) Differential protection system of power distribution network and power distribution network
KR101156097B1 (en) Master redundancy method in Ethernet powerlink
KR100605985B1 (en) Initial Contection Signaling Method for Synchro-Ethernet Device
CN210578589U (en) Reliability test system for synchronous wireless channel of wireless expander

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