CN102307078B - Method for realizing MVB/WTB frame data real-time decoding by utilizing oscilloscope - Google Patents

Method for realizing MVB/WTB frame data real-time decoding by utilizing oscilloscope Download PDF

Info

Publication number
CN102307078B
CN102307078B CN 201110241439 CN201110241439A CN102307078B CN 102307078 B CN102307078 B CN 102307078B CN 201110241439 CN201110241439 CN 201110241439 CN 201110241439 A CN201110241439 A CN 201110241439A CN 102307078 B CN102307078 B CN 102307078B
Authority
CN
China
Prior art keywords
frame
data
point
wtb
mvb
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
CN 201110241439
Other languages
Chinese (zh)
Other versions
CN102307078A (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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CSR Times Electric 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 Zhuzhou CSR Times Electric Co Ltd filed Critical Zhuzhou CSR Times Electric Co Ltd
Priority to CN 201110241439 priority Critical patent/CN102307078B/en
Publication of CN102307078A publication Critical patent/CN102307078A/en
Application granted granted Critical
Publication of CN102307078B publication Critical patent/CN102307078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a method for realizing MVB/WTB frame data real-time decoding by utilizing an oscilloscope. The method comprises the following steps: setting a decoding type; collecting data with an oscilloscope; transmitting collected data to an industrial control computer with the oscilloscope; searching a start point; carrying out 1/2 period sampling; determining a prime frame and an accessory frame; decoding; displaying hexadecimal frame data; quitting a decoding program manually. According to the invention, a disadvantage that an oscilloscope can not decode MVB/WTB frame data is solved.

Description

A kind of method of utilizing oscilloscope to realize MVB and WTB frame data real-time decoding
Technical field
The present invention relates to the communications field, specifically is a kind of method of utilizing oscilloscope to realize MVB and WTB frame data real-time decoding.
Background technology
At present oscilloscope is not supported MVB and the decoding of WTB frame data, and we can only see the waveform of MVB and WTB data by oscilloscope, can not monitor frame data content that the MVB/WTB devices communicating sends and the transmitter test of MVB/WTB equipment in real time.
Summary of the invention
Technical problem to be solved by this invention is, at the prior art deficiency, a kind of method of utilizing oscilloscope to realize MVB and WTB frame data real-time decoding is provided, remedy oscilloscope and can not monitor the frame data content of MVB/WTB devices communicating transmission and the transmitter test of MVB/WTB equipment in real time to the shortcoming of MVB/WTB frame data decoding.
For solving the problems of the technologies described above, the technical solution adopted in the present invention is: a kind of method of utilizing oscilloscope to realize MVB and WTB frame data real-time decoding is characterized in that this method is:
1) sets the decoding type;
2) oscilloscope image data;
3) oscilloscope with the transfer of data of gathering in industrial computer;
4) look for starting point;
5) 1/2 periodic sampling obtains array a;
6) judge prime frame, from frame,, then report an error, return 2 if a) preceding 18 of array do not match with frame head); If coupling jumps to 7);
7) decoding if Frame Check Sequence does not match, then reports an error, and returns 2); If the Frame Check Sequence coupling jumps to 8);
8) show 16 system frame data, return 2);
9) manually withdraw from decoding program.
Look for the step of starting point to be:
1) the data amplitude that oscilloscope is gathered and set point compare, and first position greater than the point of set point is designated as n1;
2) compare with set point from n1, first position less than the point of set point is designated as n2 backward;
3) computing formula of initial point position is: initial point position=(n1+n2)/2.
The step of 1/2 periodic sampling is:
1) begins to gather a point every 1/2 of the MVB signal period from initial sampled point, (WTB is different with the MVB signal period perhaps to begin to gather a point every 1/2 of the WTB signal period from initial sampled point, when selected MVB decodes type, 1/2 cycle was 1/2 of MVB pulsewidth, when selected WTB decoded type, 1/2 cycle was 1/2 of WTB pulsewidth.);
2) opposite number of the point of Cai Jiing and set point and set point is 1 (height) greater than the point of set point relatively, be-1 (low) less than the point of set point opposite number, and the point between set point and set point opposite number is 0, then representative frame end when being 0;
3) 1 and-1 of above-mentioned conversion is kept among the array a.
Judge prime frame, from the step of frame be:
1) 18 of fronts among the peek group a and prime frame and from the frame head encoding ratio of frame;
2) equate it then is prime frame with the prime frame frame head, and equate it then is from frame from the frame frame head;
3) be kept among the array b after removing frame head data.
The step of decoding is:
1) according to the Manchester's code principle, data among the array b are reconfigured, for the MBV frame, 1 to-1 is 1 ,-1 to 1 to be 0, for the WTB frame, 1 to-1 is 0 ,-1 to 1 to be 1;
2) reconfigure data, and these data are kept among the array c;
3) for MVB decoding, according to prime frame with from the data frame format of frame, remove CRC check sign indicating number, stop bit among the array c, remaining data transaction is become 16 systems and show; For WTB decoding, by the WTB frame format remove that 16 lead codes, two 8 flag bit, 32 link control field, position are filled, 16 Frame Check Sequence FCS, stop bit, the data that obtain at last are desired datas.
Described set point is 0.4~4.5.
The present invention can real-time monitored MVB equipment and the frame type that sends of WTB equipment, and frame data, and having remedied oscilloscope can not be to the shortcoming of MVB/WTB frame data decoding.
Description of drawings
Fig. 1 is MVB prime frame form schematic diagram;
Fig. 2 is that MVB is from the frame format schematic diagram;
Fig. 3 is WTB frame format schematic diagram;
Fig. 4 is the invention process decoding process figure;
Fig. 5 is for looking for the starting point schematic diagram;
Fig. 6 is 1/2 periodic sampling schematic diagram;
Fig. 7 is the EMD prime frame waveform that oscilloscope is gathered in the embodiment of the invention;
Fig. 8 is the layout of putting behind 1/2 periodic sampling in the embodiment of the invention.
Embodiment
MVB device signal transmission digit rate is 1.5Mbit/s, and then the cycle is 667ns (definition 667ns is 1BT in the IEC61375-1 standard), and frame is divided into ESD and EMD frame, ESD and EMD frame data all adopt Manchester's code, start delimiter be one by { start bit, " NH ", " NL ", " 0 ", " NH ", " NL ", " 0 ", " 0 ", " 0 " } fixed sequence program formed, " NH " is 1BT high level coding in the sequence, and " NL " is 1BT low level coding, and " 0 " is the 1BT Manchester's code.The length of prime frame is fixed as 33, comprising: 9 main start delimiters; 4 F-code, 12 address or parameter; 8 verification sequence.From frame five kinds of length may be arranged: 33,49,81,153 or 297, comprising: 9 from start delimiter; 16~256 data; Each 64 bit sequence has 8 bit check sequences.WTB device signal transmission digit rate is 1Mbit/s, and then the cycle is 500ns.The WTB frame comprises: 16 lead codes, two 8 flag bit, 32 link control field, 0~1024 link data (for filling not included), 16 Frame Check Sequence FCS, stop bit, the MVB/WTB Wave data of oscilloscope collection is made of 2 parameters, the one, waveforms amplitude, the 2nd, the time interval between points.
Coding/decoding method of the present invention mainly may further comprise the steps:
(1) looks for starting point, as shown in Figure 5
1) the data amplitude that oscilloscope is gathered and X (the X value is between 0.4 to 4.5) compare, and first some position greater than X is designated as n1.As Fig. 1
2) compare with X from n1, first position less than the point of X is designated as n2 backward.
3) initial point position=(n1+n2)/2 so.
Annotate: the Wave data of oscilloscope collection all is that data point is formed one by one, and just sample rate is than higher, and distance between points is very short, and naked eyes can't be identified, and the waveform of seeing from figure is continuous waveform.
(2) 1/2 periodic samplings, as shown in Figure 6
1) begins to gather a point every the MVB signal period 1/2 from initial sampled point.
2) point of Cai Jiing and X and-X relatively, be 1 (height) greater than X, less than-X be-1 (low), between be 0, then representative frame end when being 0.
3) 1 and-1 of above-mentioned conversion is kept among the array a.
(3) judge prime frame, from frame
1) 18 of fronts among the peek group a and prime frame and from the frame head encoding ratio of frame.
2) equate it then is prime frame with the prime frame frame head, and equate it then is from frame from the frame frame head.
3) be kept among the array b after removing frame head data.
(4) decoding
1) according to the Manchester's code principle, data among the array b are reconfigured, 1 to-1 is 1 ,-1 to 1 to be 0.
2) reconfiguring data is kept among the array c.
3) according to prime frame with from the data frame format of frame, remove CRC check sign indicating number, stop bit among the array c, remaining data transaction is become 16 systems and show.
By just Wave data can be converted to the numerical data of 16 systems that we want with upper type.What so just can know transmission in the MVB communication is any data.Decoding process figure such as figure six.
The principle of WTB frame data real-time decoding is identical with MVB's, and difference exists:
1) 1/2 periodic sampling be the WTB signal cycle 1/2.
2) decoding step 1) in 1 to-1 be 0 ,-1 to 1 to be 1.
3) decoding step 3) in, WTB decoding be by the WTB frame format remove that 16 lead codes, two 8 flag bit, 32 link control field, position are filled, 16 Frame Check Sequence FCS, stop bit, the data that obtain at last are only desired data.
Referring to Fig. 7, the EMD waveform that the MVB equipment that oscilloscope is gathered sends is told about concrete decoded instance by this waveform.
1) look for starting point, starting point is that label is 1/2 position of 1 pulsewidth;
2) gather a point every 1/2 cycle then, namely second point is that label is 2 pulsewidth 1/2 position; Because label is 3 pulsewidth is 1 cycle, be in 1/4 position that label is 3 pulsewidth apart from the 3rd point in second 1/2 cycle of point; The 4th point is in 3/4 position that label is 3 pulsewidth; Follow-up point all is place of previous 1/2 cycle of point of distance.(pulsewidth is divided three kinds: 1/2 doubling time width, 1 doubling time width, 3/2 doubling time width);
3) label is that sampled point on 1 to 51 the pulsewidth obtains after by above-mentioned two steps in the accompanying drawing eight, with sampled point and X (set point is 1.5) and-the X comparison, be 1 (height) greater than X, less than-X is-1 (low), can form this sequence: (1 ,-1,1,1,-1 ,-1 ,-1,1,1,1 ,-1 ,-1,-1,1 ,-1,1 ,-1,1,1 ,-1,-1,1 ,-1,1,1 ,-1 ,-1,1,-1,1 ,-1,1,1 ,-1 ,-1,1,-1,1 ,-1,1,1 ,-1 ,-1,1 ,-1,1 ,-1,1 ,-1,1,-1,1,1 ,-1,1 ,-1,1,-1,1 ,-1,1 ,-1,1 ,-1,-1,1 ,-1 ,-1,1,1), this sequence is kept in the array;
4) preceding 18 numbers in the sequence are taken out with the MVB start delimiter relatively and judge it is prime frame or from frame, judge that herein this frame is prime frame, if relatively do not match with the MVB start delimiter, then report an error, lose this section sequence, image data is handled again;
5) from sequence 19 begin to take out 32 numbers, this 32 number is exactly frame data, because frame data are Manchester's codes, and what adopt is 1/2 periodic sampling, and Manchester's code is formed (1 to-1 be 1 ,-1 to 1 be 0) by two numbers, so 32 numbers will be converted to 16 data, data after the conversion are: 1001000100010000, and be converted to 16 systems and be shown as 9110, this moment, we knew that MVB equipment sent out one 9110 Frame.But whether these data are whether correct will seeing by 8 CRC check sequences of 16 number conversions of 51 beginnings in the 1001000100010000 CRC check sign indicating numbers of calculating and the sequence mates, mate then correct, otherwise mistake;
6) from sequence 51 begin to take out 16 numbers, these data are verification sequence of frame data, and 16 numbers are converted to 8 bit data in 5 set by step, are the CRC checking sequence;
7) from sequence 67 begin to take out 4 numbers and MVB and stop delimiter relatively, as the newspaper that do not match then stops delimiter and makes mistakes.

Claims (5)

1. method of utilizing oscilloscope to realize MVB and WTB frame data real-time decoding is characterized in that this method is:
1) sets the decoding type;
2) oscilloscope image data;
3) oscilloscope with the transfer of data of gathering in industrial computer;
4) look for starting point;
5) 1/2 periodic sampling obtains array a; Wherein the step of 1/2 periodic sampling is:
1. for the MVB frame data, begin to gather a point every 1/2 of the MVB signal period from initial sampled point; For the WTB frame data, begin to gather a point every 1/2 of the WTB signal period from initial sampled point;
2. the opposite number of the point of Cai Jiing and set point and set point is 1 greater than the point of set point relatively, be-1 less than the point of set point opposite number, and the point between set point and set point opposite number is 0, then representative frame end when being 0;
3. 1 and-1 of above-mentioned conversion is kept among the array a;
6) judge prime frame, from frame,, then report an error, return 2 if preceding 18 of array a do not match with frame head); If coupling jumps to 7);
7) decoding if Frame Check Sequence does not match, then reports an error, and returns 2); If the Frame Check Sequence coupling jumps to 8);
8) show 16 system frame data, return 2);
9) manually withdraw from decoding program.
2. the method for utilizing oscilloscope to realize MVB and WTB frame data real-time decoding according to claim 1 is characterized in that, looks for the step of starting point to be:
1) the data amplitude that oscilloscope is gathered and set point compare, and first position greater than the point of set point is designated as n1;
2) will compare from n1 data amplitude and set point backward, first position less than the point of set point is designated as n2;
3) computing formula of initial point position is: initial point position=(n1+n2)/2.
3. the method for utilizing oscilloscope to realize MVB and WTB frame data real-time decoding according to claim 1 is characterized in that, judges prime frame, from the step of frame is:
1) 18 of fronts among the peek group a and prime frame and from the frame head encoding ratio of frame;
2) equate it then is prime frame with the prime frame frame head, and equate it then is from frame from the frame frame head;
3) be kept among the array b after removing frame head data.
4. the method for utilizing oscilloscope to realize MVB and WTB frame data real-time decoding according to claim 1 is characterized in that the step of decoding is:
1) according to the Manchester's code principle, data among the array b are reconfigured, for the MBV frame, 1 to-1 is 1 ,-1 to 1 to be 0, for the WTB frame, 1 to-1 is 0 ,-1 to 1 to be 1;
2) reconfigure data, and these data are kept among the array c;
3) for MVB decoding, according to prime frame with from the data frame format of frame, remove CRC check sign indicating number, stop bit among the array c, remaining data transaction is become 16 systems; For WTB decoding, by the WTB frame format remove that 16 lead codes, two 8 flag bit, 32 link control field, position are filled, 16 Frame Check Sequence FCS, stop bit, the data transaction that obtains is at last become 16 systems.
5. the method for utilizing oscilloscope to realize MVB and WTB frame data real-time decoding according to claim 1 and 2 is characterized in that described set point is 0.4~4.5.
CN 201110241439 2011-08-22 2011-08-22 Method for realizing MVB/WTB frame data real-time decoding by utilizing oscilloscope Active CN102307078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110241439 CN102307078B (en) 2011-08-22 2011-08-22 Method for realizing MVB/WTB frame data real-time decoding by utilizing oscilloscope

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110241439 CN102307078B (en) 2011-08-22 2011-08-22 Method for realizing MVB/WTB frame data real-time decoding by utilizing oscilloscope

Publications (2)

Publication Number Publication Date
CN102307078A CN102307078A (en) 2012-01-04
CN102307078B true CN102307078B (en) 2013-08-14

Family

ID=45380894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110241439 Active CN102307078B (en) 2011-08-22 2011-08-22 Method for realizing MVB/WTB frame data real-time decoding by utilizing oscilloscope

Country Status (1)

Country Link
CN (1) CN102307078B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591774A (en) * 2014-10-23 2016-05-18 中车大连电力牵引研发中心有限公司 Data processing method, TCN (Train Communication Network) standby gateway device and data processing system
CN106549804B (en) * 2016-11-02 2019-08-16 中车株洲电力机车研究所有限公司 A kind of method and system for realizing that MVB is configured and communicated based on backboard
CN108418655A (en) * 2018-01-16 2018-08-17 四川安迪科技实业有限公司 A kind of efficient HDLC base band frame packaging method
CN110365342B (en) * 2019-06-06 2023-05-12 中车青岛四方机车车辆股份有限公司 Waveform decoding method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860467A (en) * 2010-05-26 2010-10-13 株洲南车时代电气股份有限公司 Special wired train bus control device
WO2010123054A1 (en) * 2009-04-24 2010-10-28 ソニー株式会社 Image processing apparatus and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010123054A1 (en) * 2009-04-24 2010-10-28 ソニー株式会社 Image processing apparatus and method
CN101860467A (en) * 2010-05-26 2010-10-13 株洲南车时代电气股份有限公司 Special wired train bus control device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
叶敏.基于MVB网络的磁悬浮列车速度信息采集传输***设计.《中国优秀硕士学位论文全文数据库 信息科技辑》.2010,(第08期),
基于MVB网络的磁悬浮列车速度信息采集传输***设计;叶敏;《中国优秀硕士学位论文全文数据库 信息科技辑》;20100831(第08期);正文第29页第1段至第33页第2段,图4.2,图4.3 *

Also Published As

Publication number Publication date
CN102307078A (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN102307078B (en) Method for realizing MVB/WTB frame data real-time decoding by utilizing oscilloscope
CN104954096B (en) A kind of high-speed synchronous serial communication data transmission method of one master and multiple slaves
CN103503382B (en) Controller area network with flexible data-rate
CN105871623B (en) A kind of sporadic method for diagnosing faults of fieldbus
CN102355382A (en) Method for analyzing and triggering controller area network (CAN) bus
CN102833132B (en) Detection method of onboard data multiplexer
CN101651683B (en) Method for generating analysis source code of signaling message
CN103175566B (en) A kind of system of calibrating sensors, device and method
CN102546625A (en) Semi-supervised clustering integrated protocol identification system
CN102375437A (en) Device and method for data acquisition and transmission during wireless production process based on IEEE802.15.4 protocol and PLCs (programmable logic controllers)
CN102820959A (en) Method for performing large data volume communication between Modbus master station and Modbus slave station
KR20190086711A (en) Method for transmitting and receiving network management information, transceiver, transmitter and receiver
CN102684943A (en) Textile industrial ethernet monitoring system and method thereof
CN107276053B (en) A kind of equipment for protecting optical fibre longitudinal difference and method of data synchronization
CN102566460B (en) SOE (sequence of event) acquisition card and acquisition method thereof
CN103812610A (en) Data communication method, terminal and information safety equipment
CN102394655A (en) Manchester code converting method on MIC bus
CN104660470A (en) Device and method for detecting Rapid IO bus protocol
CN107102637A (en) A kind of method that bus signals failure simulation device based on CAN produces fault-signal
CN1119884C (en) Error detection method for high speed data transmission
CN105653207B (en) A kind of real time parsing method and system of flash interface information
CN106341107B (en) Pulse-modulated signal calibration method and device
CN102737208B (en) Method for decoding MMC type data by ultrahigh frequency electronic tag
CN104517082A (en) Power data collection device and method
CN112637011B (en) Data transmission method, data transmission device, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road No. 169

Patentee after: ZHUZHOU CRRC TIMES ELECTRIC Co.,Ltd.

Address before: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road

Patentee before: ZHUZH CSR TIMES ELECTRIC Co.,Ltd.

CP03 Change of name, title or address