CN103684891A - MVB protocol analyzer and working method thereof - Google Patents

MVB protocol analyzer and working method thereof Download PDF

Info

Publication number
CN103684891A
CN103684891A CN201210316757.2A CN201210316757A CN103684891A CN 103684891 A CN103684891 A CN 103684891A CN 201210316757 A CN201210316757 A CN 201210316757A CN 103684891 A CN103684891 A CN 103684891A
Authority
CN
China
Prior art keywords
data
mvb
interface
arm core
core
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
Application number
CN201210316757.2A
Other languages
Chinese (zh)
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.)
Nfs China Software Co ltd
Institute of Software of CAS
Original Assignee
Nfs China Software Co ltd
Institute of Software of CAS
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 Nfs China Software Co ltd, Institute of Software of CAS filed Critical Nfs China Software Co ltd
Priority to CN201210316757.2A priority Critical patent/CN103684891A/en
Publication of CN103684891A publication Critical patent/CN103684891A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses an MVB protocol analyzer and a working method thereof, and belongs to the field of train network communication. The MVB protocol analyzer provided by the invention comprises an ARM core, an FPGA core, an MVB interface and an LED touch screen, wherein the ARM core is in communication connection with the FPGA core, the FPGA core acquires data after receiving a data acquisition instruction sent by the ARM core,, and transmits the acquired data to the ARM core after decoding the acquired data, and stops data acquisition when receiving a data acquisition stopping instruction sent by the ARM core; the ARM core carries out data analysis on train MVB network data according to a TCN (Train Communication Network) protocol; the LED touch screen is connected with the ARM core, responsible for a function of man-machine interaction, and used for protocol analyzing software operation and relevant data display. The MVB protocol analyzer provided by the invention is convenient to carry, does not require to build a software running environment, not only can be used by debugging personnel before train delivery, but also can be used in running at delivery, and does not have high specialty requirements to operating personnel.

Description

A kind of MVB protocol analyzer and method of work thereof
Technical field
The invention belongs to the train network communications field, relate to a kind of MVB protocol analyzer and method of work thereof, it is applied in TCN multifunction vehicle bus.
Background technology
TCN (TCN-Train Communication Network) is between railroad train vehicle and the data communication network of the interconnected transfer control of vehicle interior programmable device, monitoring and diagnosis information.Intellectuality along with contemporary train, in TCN, comprise more information, such as state, control, failure diagnosis, passenger information etc., the risk existing while how thereby train operation data analysis being found to train operation in early days location train defect, to guarantee that the safety traffic of train becomes a critical problem.
The mode that the equipment using due at present main engine plants' debugging train adopts host computer protocal analysis software and slave computer equipment to combine, the software installation etc. of building of the various and debugging enironment of equipment has brought inconvenience to train debugging work.Therefore, provide a MVB protocol analyzer efficient, reliable, simple operation to there is vast potential for future development.
Summary of the invention
For the technical problem existing in prior art, the object of the invention is to propose a kind of MVB protocol analyzer and method of work thereof, provide to MVB bus data catch in real time, analyze, process, inquire about, add up, the application service such as diagnosis, the function with man-machine interaction all-in-one, it finally can be applied to the aspects such as MVB network state detection, failure diagnosis, for the analysis of train network ruuning situation provides reference frame.
Protocol analyzer equipment is connected with MVB bus by MVB interface, the instruction acquisition train network MVB bus data that fpga core sends according to protocol analyzer software, and transfer data to ARM core by spi bus, the data that protocol analyzer software just can collect equipment are resolved, and the application services such as inquiry, Classified statistics are provided.
Technical scheme of the present invention is:
A MVB protocol analyzer, is characterized in that comprising ARM core, fpga core, MVB interface, LCD touch-screen; Wherein, ARM core and fpga core communication connection, fpga core is carried out data acquisition and will after the decoding data collecting, be transferred to ARM core by MVB interface after receiving the data acquisition instruction that ARM core sends, receive that ARM core sends stop data acquisition instruction time, stop data acquisition; ARM core is responsible for, according to TCN agreement, train MVB network data is carried out to Data Analysis; LCD touch-screen and the communication connection of ARM core, be responsible for human-computer interaction function, for protocal analysis software operation and related data, shows.
Further, described ARM core comprises following peripheral interface: network interface, SD card interface, power interface, USB interface, serial interface; Wherein, described network interface is used for providing network communicating function, and described SD card interface is used for providing data storage function, and described power interface is used for providing Power supply function, and described serial interface is used for providing AccessPort function.
Further, described ARM core adopts multithread processing method to carry out Data Analysis to train MVB network data.
Further, described ARM core and fpga core communicate to connect by spi bus; Described MVB interface is connected with one end of MVB bus cable, and the other end of MVB bus cable is connected to the MVB service interface of train control system.
Further, the legitimacy of the described ARM core data file frame format that first judgement receives according to TCN agreement, resolves frame data bag if legal again, obtains the detailed content of process data, message data, supervision data; Then with the frame format of stipulating in TCN agreement, show, comprise MVB process data frame, MVB message data frame, MVB supervisory frame.
Further, described frame format is followed IEC-61375 standard, and ARM core parses the detailed content of process data, message data, supervision data according to the frame format definition of IEC-61375 standard, for data query, statistics, diagnosis provide data source.
A method of work for MVB protocol analyzer, the steps include: as claimed in claim 1
1) the ARM nucleus module of protocol analyzer sends data acquisition instruction to fpga core;
2) fpga core gathers train network data by MVB interface from MVB bus after receiving data acquisition instruction, and to sending to ARM core after the data decode gathering; When FPGA receive that ARM core sends stop data acquisition instruction time, stop data acquisition;
3) the decoded data that ARM core preservation FPGA sends over are also carried out Data Analysis according to TCN agreement;
4) ARM core can show the data after resolving with the frame format of stipulating in TCN agreement.
Further, described ARM core comprises following peripheral interface: network interface, SD card interface, power interface, USB interface, serial interface; Wherein, described network interface is used for providing network communicating function, and described SD card interface is used for providing data storage function, and described power interface is used for providing Power supply function, and described serial interface is used for providing AccessPort function.
Further, the legitimacy of the described ARM core data file frame format that first judgement receives according to TCN agreement, resolves frame data bag if legal, obtains the detailed content of process data, message data, supervision data; Then with the frame format of stipulating in TCN agreement, show, comprise MVB process data frame, MVB message data frame, MVB supervisory frame.
Further, described ARM core adopts multithread processing method to carry out Data Analysis to train MVB network data.
Technical Architecture of the present invention is to research and develop design based on ARM platform, adopts embedded development thought, and it is comprised of a protocal analysis equipment and Airborne Software.Technical Architecture as shown in Figure 1.
Protocol analyzer equipment is the embedded device based on ARM platform, mainly comprises ARM core, fpga core, MVB interface, LCD touch-screen, network interface, SD card interface, power interface, USB interface, serial interface.Wherein ARM core is connected with fpga core, and FPGA will be transferred to ARM core by MVB interface after the decoding data receiving, and ARM core is responsible for carrying out Data Analysis; LCD touch-screen is connected with ARM core, is used for showing the graphical interfaces software (MVB protocal analysis software) moving in ARM core; Network interface, SD card interface, power interface, USB interface, serial interface all belong to the peripheral interface of ARM core, and network communicating function, data storage function, Power supply function, USB function, AccessPort function are provided respectively.
Airborne Software is comprised of equipment firmware and protocal analysis software, wherein equipment firmware comprises hardware driving, BootLoader, Linux Embedded operating system, root file system and FPGA firmware, the initial work that has been used for protocol analyzer hardware equipment function, make hardware device in normal operating conditions, wherein hardware driving, BootLoader, Linux Embedded operating system, root file system are positioned at ARM core, and FPGA firmware is positioned at fpga core; Protocal analysis software application C++, QT language carry out code Design, visual analyzing for MVB bus data, data based TCN (TCN) agreement that protocol analyzer equipment is gathered is resolved, can to MVB network data, inquire about diagnosis statistics according to analysis result and wait operation, for the analysis of train network ruuning situation provides reference frame.
The method of work of MVB protocol analyzer of the present invention, comprises the following steps:
1) protocol analyzer equipment is connected with MVB bus by MVB interface, and fpga core gathers train network data, and data transaction is become to the MVB data stream format of TCN network protocol specifies.
2) ARM core is carried out high-speed data communication according to protocol analyzer software data acquisition instructions and fpga core by spi bus.Data acquisition instruction is sent by ARM core, mainly for FPGA being carried out to control operation by ARM, program on ARM is sent " start gather " (0x01) during instruction, FPGA just starts to receive the data (train network data) of MVB interface after receiving this instruction, and will after the decoding data gathering (being about to the MVB data stream format that data transaction becomes TCN network protocol specifies), be transferred to ARM core.
3) ARM core protocol analyzer software is saved in the data of collection in SD card.
4) ARM core is resolved the process data, message data, the supervision data that gather.Data based TCN (TCN) consensus standard gathering is resolved, and the data after parsing can show with the frame format of stipulating in agreement, comprise MVB process data frame, MVB message data frame, MVB supervisory frame.
5) according to analysis result inquire about, add up, diagnosis etc.
With prior art to, beneficial effect of the present invention is:
1, because the present invention integrates traditional upper computer software and slave computer functions of the equipments, therefore not only easy to carry but also not need user be that software runtime environment is built, both can be when train has dispatched from the factory for commissioning staff uses also, can when dispatching from the factory operation, use, start equipment can move professional less demanding to operating personnel.
2,, because the present invention uses LCD touch-screen, therefore there is good interactive capability and visual analyzing ability.
3, store data in SD equipment, when existing place capacity full, can change memory device, and can do off-line analysis to the historical data of storage.
4, because the present invention can carry out protocol analyzer configuration according to the configuration of universal port register in train, so be applicable to the train of different manufacturers, there is versatility.
Accompanying drawing explanation
Fig. 1 is MVB protocol analyzer Technical Architecture figure;
Fig. 2 is protocol analyzer device structure schematic diagram;
Fig. 3 protocol analyzer equipment and bus connection diagram;
Fig. 4 data acquisition flow schematic diagram;
Fig. 5 Data Analysis schematic flow sheet.
Embodiment
Protocol analyzer device structure schematic diagram as shown in Figure 2.Mainly comprise ARM core 1, fpga core 2, power module 3, resetting system 4, real-time clock 5, watchdog module 6, MVB interface 7, USB interface 8, LCD touch-screen 9, SD card interface 10, network interface 11, serial interface 12 and power interface 13.Main being responsible for of ARM core 1 resolved the main collection train network data of being responsible for of (according to TCN agreement) fpga core 2 to train MVB network data, both carry out high-speed data communication by spi bus, power module 3 is the power supply of protocol analyzer equipment, and provide power interface 13, MVB interface 7 is for connecting the MVB service interface on train, and by this interface transmission image data.USB interface 8 comprises main interface and from interface, main interface is mainly used in the auxiliary power supply function of equipment, from interface, is used for accessing the memory device that possesses USB interface.LCD touch-screen 9 chief leading cadre's machine interactive functions, show for protocal analysis software operation and related data, LCD touch-screen is to be connected with the LCD interface of ARM core.SD card interface 10 is mainly used in data file storage.Serial interface 12 is mainly used in maintenance and the debugging of equipment; SD interface, serial interface all belong to the peripheral interface of ARM core, and SD interface, serial interface are provided in ARM core.
Illustrated in fig. 3 is protocol analyzer equipment and bus connection diagram.One end of MVB bus cable is connected to the MVB service interface of train control system, and (MVB service interface is the MVB interface externally providing on train, for train network debugging or monitoring etc.), the other end of MVB bus cable is connected with a MVB bus interface of MVB protocal analysis equipment.
Illustrated in fig. 4 is MVB protocol analyzer data acquisition schematic diagram.When MVB protocol analyzer connects ready according to the method for attachment of Fig. 2.MVB protocol analyzer software (operating in ARM core) sends start command of acquisition, and ARM is from fpga core reading out data, and opens data file, data are saved in motion file, MVB protocol analyzer software sends and stops acquisition instructions, and closes data file, and data acquisition is complete.
After data acquisition, MVB protocol analyzer resolves by ARM core that (analysis result is in internal memory, directly be shown on interface, do not preserve), as shown in Figure 5, in resolving, adopt multithread processing method, to improve the operating efficiency of MVB protocol analyzer.First MVB protocol analyzer judges the legitimacy of data file frame format, if legal, again it is torn open to frame bag and resolve (frame data bag being resolved), frame format is followed IEC-61375 standard, frame format definition according to IEC-61375 standard deposits the details of content frame in internal storage structure, for the modules such as data query, statistics, analysis provide data source.
According to the result of resolving, can inquire about process data, message data, equipment state, subsystem is diagnosed etc.MVB protocol analyzer adopts the mode read process variables configuration file greatly to strengthen the versatility of MVB protocol analyzer.
In sum, this MVB protocol analyzer of the present invention, integrate traditional protocol analyzer host computer and slave computer function, have to MVB bus data gather, resolve, inquire about, add up, the function such as diagnosis, use LCD touch-screen, made it have good interactive capability and visualization function.The present invention has utilized multitask multi-threading in the effect of various hardware interfaces and Software for Design efficiently, has designed MVB protocol analyzer, make it have simple to operate, be easy to carry, multiple functional, highly versatile, the features such as advanced technology.

Claims (10)

1. a MVB protocol analyzer, is characterized in that comprising ARM core, fpga core, MVB interface, LCD touch-screen; Wherein, ARM core and fpga core communication connection, fpga core is carried out data acquisition and will after the decoding data collecting, be transferred to ARM core by MVB interface after receiving the data acquisition instruction that ARM core sends, receive that ARM core sends stop data acquisition instruction time, stop data acquisition; ARM core is responsible for, according to TCN agreement, train MVB network data is carried out to Data Analysis; LCD touch-screen and the communication connection of ARM core, be responsible for human-computer interaction function, for protocal analysis software operation and related data, shows.
2. MVB protocol analyzer as claimed in claim 1, is characterized in that described ARM core comprises following peripheral interface: network interface, SD card interface, power interface, USB interface, serial interface; Wherein, described network interface is used for providing network communicating function, and described SD card interface is used for providing data storage function, and described power interface is used for providing Power supply function, and described serial interface is used for providing AccessPort function.
3. MVB protocol analyzer as claimed in claim 1, is characterized in that described ARM core adopts multithread processing method to carry out Data Analysis to train MVB network data.
4. MVB protocol analyzer as claimed in claim 1, is characterized in that described ARM core and fpga core communicate to connect by spi bus; Described MVB interface is connected with one end of MVB bus cable, and the other end of MVB bus cable is connected to the MVB service interface of train control system.
5. MVB protocol analyzer as claimed in claim 1, the legitimacy that it is characterized in that the described ARM core data file frame format that first judgement receives according to TCN agreement, if legal, again frame data bag is resolved, obtain the detailed content of process data, message data, supervision data; Then with the frame format of stipulating in TCN agreement, show, comprise MVB process data frame, MVB message data frame, MVB supervisory frame.
6. MVB protocol analyzer as claimed in claim 5, it is characterized in that described frame format follows IEC-61375 standard, ARM core parses the detailed content of process data, message data, supervision data according to the frame format definition of IEC-61375 standard, for data query, statistics, diagnosis provide data source.
7. a method of work for MVB protocol analyzer as claimed in claim 1, the steps include:
1) the ARM nucleus module of protocol analyzer sends data acquisition instruction to fpga core;
2) fpga core gathers train network data by MVB interface from MVB bus after receiving data acquisition instruction, and to sending to ARM core after the data decode gathering; When FPGA receive that ARM core sends stop data acquisition instruction time, stop data acquisition;
3) the decoded data that ARM core preservation FPGA sends over are also carried out Data Analysis according to TCN agreement;
4) ARM core can show the data after resolving with the frame format of stipulating in TCN agreement.
8. method of work as claimed in claim 7, is characterized in that described ARM core comprises following peripheral interface: network interface, SD card interface, power interface, USB interface, serial interface; Wherein, described network interface is used for providing network communicating function, and described SD card interface is used for providing data storage function, and described power interface is used for providing Power supply function, and described serial interface is used for providing AccessPort function.
9. method of work as claimed in claim 7, the legitimacy that it is characterized in that the described ARM core data file frame format that first judgement receives according to TCN agreement, if legal, frame data bag is resolved, obtain the detailed content of process data, message data, supervision data; Then with the frame format of stipulating in TCN agreement, show, comprise MVB process data frame, MVB message data frame, MVB supervisory frame.
10. the method for work as described in claim 7 or 9, is characterized in that described ARM core adopts multithread processing method to carry out Data Analysis to train MVB network data.
CN201210316757.2A 2012-08-30 2012-08-30 MVB protocol analyzer and working method thereof Pending CN103684891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210316757.2A CN103684891A (en) 2012-08-30 2012-08-30 MVB protocol analyzer and working method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210316757.2A CN103684891A (en) 2012-08-30 2012-08-30 MVB protocol analyzer and working method thereof

Publications (1)

Publication Number Publication Date
CN103684891A true CN103684891A (en) 2014-03-26

Family

ID=50321272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210316757.2A Pending CN103684891A (en) 2012-08-30 2012-08-30 MVB protocol analyzer and working method thereof

Country Status (1)

Country Link
CN (1) CN103684891A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209509A (en) * 2016-07-05 2016-12-07 北京轩宇空间科技有限公司 A kind of MVB monitor
CN106341294A (en) * 2016-09-29 2017-01-18 中车唐山机车车辆有限公司 Portable MVB (Multifunction Vehicle Bus) protocol analysis apparatus and MVB (Multifunction Vehicle Bus) data processing method
CN106650006A (en) * 2016-11-17 2017-05-10 深圳市紫光同创电子有限公司 Programmable logic device debugging method and system, and electronic design automation terminal
CN106696995A (en) * 2016-12-27 2017-05-24 中车唐山机车车辆有限公司 Train control unit monitoring device and system
CN106781796A (en) * 2016-12-22 2017-05-31 国网浙江省电力公司培训中心 The communication protocol Training Methodology of connected applications scene, system and scene relating method
CN115277297A (en) * 2022-08-01 2022-11-01 中车青岛四方车辆研究所有限公司 Portable MVB bus analyzer and bus debugging method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000253048A (en) * 1999-02-26 2000-09-14 Nec Corp Data communication method, terminal, router, data communication system and its recording medium
CN101290513A (en) * 2008-05-30 2008-10-22 株洲南车时代电气股份有限公司 Alternating-current actuating system management and communication controller
CN101477716A (en) * 2009-01-19 2009-07-08 中国北车股份有限公司大连电力牵引研发中心 Energy consumption recording instrument for MVB interface type locomotive and controlling method thereof
CN201341149Y (en) * 2009-01-19 2009-11-04 中国北车股份有限公司大连电力牵引研发中心 Hand-held portable MVB network data analyzer for locomotive
CN101969389A (en) * 2010-09-21 2011-02-09 中国北车股份有限公司大连电力牵引研发中心 MVB network-based data record analyzer and working method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000253048A (en) * 1999-02-26 2000-09-14 Nec Corp Data communication method, terminal, router, data communication system and its recording medium
CN101290513A (en) * 2008-05-30 2008-10-22 株洲南车时代电气股份有限公司 Alternating-current actuating system management and communication controller
CN101477716A (en) * 2009-01-19 2009-07-08 中国北车股份有限公司大连电力牵引研发中心 Energy consumption recording instrument for MVB interface type locomotive and controlling method thereof
CN201341149Y (en) * 2009-01-19 2009-11-04 中国北车股份有限公司大连电力牵引研发中心 Hand-held portable MVB network data analyzer for locomotive
CN101969389A (en) * 2010-09-21 2011-02-09 中国北车股份有限公司大连电力牵引研发中心 MVB network-based data record analyzer and working method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209509A (en) * 2016-07-05 2016-12-07 北京轩宇空间科技有限公司 A kind of MVB monitor
CN106209509B (en) * 2016-07-05 2019-04-09 北京轩宇空间科技有限公司 A kind of MVB bus monitor
CN106341294A (en) * 2016-09-29 2017-01-18 中车唐山机车车辆有限公司 Portable MVB (Multifunction Vehicle Bus) protocol analysis apparatus and MVB (Multifunction Vehicle Bus) data processing method
CN106341294B (en) * 2016-09-29 2020-03-13 中车唐山机车车辆有限公司 Portable MVB protocol analysis equipment and MVB data processing method
CN106650006A (en) * 2016-11-17 2017-05-10 深圳市紫光同创电子有限公司 Programmable logic device debugging method and system, and electronic design automation terminal
CN106781796A (en) * 2016-12-22 2017-05-31 国网浙江省电力公司培训中心 The communication protocol Training Methodology of connected applications scene, system and scene relating method
CN106781796B (en) * 2016-12-22 2022-10-21 国网浙江省电力公司培训中心 Communication protocol training method and system combined with application scene and scene association method
CN106696995A (en) * 2016-12-27 2017-05-24 中车唐山机车车辆有限公司 Train control unit monitoring device and system
CN115277297A (en) * 2022-08-01 2022-11-01 中车青岛四方车辆研究所有限公司 Portable MVB bus analyzer and bus debugging method

Similar Documents

Publication Publication Date Title
CN103684891A (en) MVB protocol analyzer and working method thereof
CN101782755B (en) Embedded type integrated monitoring and maintenance system of concrete block forming production line
CN103123485B (en) Intelligent data acquisition and control terminal and Internet of Things system with same
CN102692896B (en) System for remotely maintaining printer in real time based on virtual reality technology
CN103427489A (en) Intelligent substation comprehensive monitoring system
CN106027351B (en) A kind of embedded web server fieldbus fault diagnosis communication module
CN103390936A (en) Remote restarting system of secondary equipment in transformer substation
CN202837985U (en) GPRS-communication based remote online monitoring system for sewage treatment equipment
CN106341294A (en) Portable MVB (Multifunction Vehicle Bus) protocol analysis apparatus and MVB (Multifunction Vehicle Bus) data processing method
CN103926899A (en) Multifunctional remote data monitoring system based on Internet of Things oil field
CN112087731B (en) Edge processing host, system and method for information acquisition, processing and transmission of Internet of things
CN103399573B (en) The data analysis facilities of portable MVB and analytical approach
CN102411539A (en) Method and system for online debugging external device of mobile phone
CN102521087A (en) System and method for remotely obtaining real-time graded debugging information of kernel module
CN104300676A (en) On-line monitoring system suitable for capacitive device of intelligent substation
CN103345952B (en) A kind of operator's auxiliary computing system based on model
CN103684892A (en) WTB protocol analyzer and working method thereof
CN104516839B (en) A kind of built-in applied system
CN101106559A (en) ATP-ATO debugging method based on packet parsing
CN203673657U (en) Low voltage table area meter reading collection terminal fault diagnosis tester
CN214799590U (en) Communication terminal online debugging system
CN108491221A (en) Update, fault detection system and the method for embedded system
CN210491072U (en) Wireless display unit and switch machine gap monitoring system
CN102937793A (en) Method and apparatus for achieving device monitoring
CN210623057U (en) Secondary water supply intelligent control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140326