WO2013078664A1 - Portable wtb data analysis card and working method thereof - Google Patents

Portable wtb data analysis card and working method thereof Download PDF

Info

Publication number
WO2013078664A1
WO2013078664A1 PCT/CN2011/083311 CN2011083311W WO2013078664A1 WO 2013078664 A1 WO2013078664 A1 WO 2013078664A1 CN 2011083311 W CN2011083311 W CN 2011083311W WO 2013078664 A1 WO2013078664 A1 WO 2013078664A1
Authority
WO
WIPO (PCT)
Prior art keywords
wtb
data
bus
redundant
codec
Prior art date
Application number
PCT/CN2011/083311
Other languages
French (fr)
Chinese (zh)
Inventor
于跃
郭建斌
姜悦礼
王晓鹏
Original Assignee
中国北车股份有限公司大连电力牵引研发中心
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 中国北车股份有限公司大连电力牵引研发中心 filed Critical 中国北车股份有限公司大连电力牵引研发中心
Priority to PCT/CN2011/083311 priority Critical patent/WO2013078664A1/en
Publication of WO2013078664A1 publication Critical patent/WO2013078664A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/427Loop networks with decentralised control
    • H04L12/43Loop networks with decentralised control with synchronous transmission, e.g. time division multiplex [TDM], slotted rings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40293Bus for use in transportation systems the transportation system being a train

Definitions

  • the present invention relates to a network control device for a locomotive, and more particularly to a portable WTB data analysis card for a locomotive based on a Wire Train Bus (WTB) network technology and a method for operating the same.
  • WTB Wire Train Bus
  • WTB technology is mainly used for locomotive communication, which can realize the transmission of process data and message data. Its biggest feature is to have the locomotive initial running function, that is, when the configuration of the locomotive vehicle changes, the vehicle can be automatically addressed to form a new one.
  • the locomotive topology is built without the need for human involvement.
  • the WTB network is a network specially designed for the rolling stock of the rolling stock. It has become a high-reliability fieldbus network widely used in foreign and domestic countries. It is an important part of the IEC61375-1 standard.
  • the WTB network is highly professional, and the external interface is not particularly convenient.
  • the portable WTB data analysis card is a data analysis device that is gradually widely used on rolling stock, which is convenient for maintenance personnel to analyze data online through a portable computer.
  • the maintenance personnel can analyze the faulty equipment on the vehicle online and use the relevant PC analysis software to make relevant judgments and analysis on the operation of the vehicle.
  • the present invention provides a portable WTB data analysis card and a working method thereof, which are used to solve the technical defects of high cost and low practicability of the portable WTB data analysis card in the prior art, thereby reducing the cost of the data card and improving the practicability.
  • the invention provides a portable WTB data analysis card, comprising:
  • the lines are sequentially bidirectionally connected, and the WTB driver and the external WTB bus are bidirectionally connected; the dual port RAM, the FPGA and the PCMCIA interface circuit; one end of the dual port RAM is bidirectionally connected to the MCU through the internal bus, and the other end
  • the FPGA is bidirectionally connected through the internal bus; one end of the PCMCIA interface circuit is connected to the FPGA, and the other end is used to connect to an external computer.
  • the WTB driver is responsible for converting the first WTB bus data input by the WTB bus into a first Manchester signal, and outputting to the WTB codec, and converting the second Manchester signal output by the WTB codec into Second WTB bus data and output via the WTB bus;
  • the WTB codec is responsible for decoding the first Manchester signal into a first HDLC digital signal, and outputting to the WTB protocol controller, and encoding the second HDLC digital signal output by the WTB protocol controller into a Said second Manchester signal;
  • the MCU is responsible for timing control of the WTB protocol controller, and processing data stored in the WTB protocol controller and the dual port RAM;
  • the WTB protocol controller is configured to parse the first HDLC digital signal into data that can be processed by the MCU, generate an interrupt signal, and generate a second HDLC digital signal according to the data to be transmitted by the MCU, and output the code to the WTB codec.
  • the FPGA is responsible for storing the first parallel bus data stored in the dual port RAM by the MCU, converting into first PCMCIA interface data, and outputting through the PCMCIA interface circuit; and inputting through the PCMCIA interface circuit
  • the second PCMCIA interface data is converted into second parallel bus data and stored in the dual port RAM.
  • the portable WTB data analysis card may further include: a redundant WTB codec and a redundant WTB driver; one end of the redundant WTB codec is bidirectionally connected to the WTB protocol controller through the internal bus, and the other end passes through the The internal bus and one end of the redundant WTB driver are bidirectionally connected; the other end of the redundant WTB driver is bidirectionally connected to the external WTB redundant bus.
  • the redundant WTB driver is responsible for demodulating third WTB bus data input via the redundant WTB bus into a third Manchester signal, and outputting to the redundant WTB codec, and compiling the redundant WTB Converting the second Manchester signal of the decoder to the second
  • WTB bus data data, and output via the redundant WTB bus
  • the redundant WTB codec is responsible for decoding the third Manchester signal into a third HDLC digital signal, and output to the WTB protocol controller, and encoding the second HDLC digital signal output by the WTB protocol controller to the second Manchester signal;
  • the WTB protocol controller is further responsible for parsing the third HDLC digital signal into data that the MCU can process and generating an interrupt signal; and outputting the second HDLC digital signal to the redundant WTB codec.
  • the MCU may be specifically a Z8S180 processor, and the FPGA may be specifically an XC2S100E chip.
  • the present invention further provides a working method of the portable WTB data analysis card, comprising: a WTB driver converting first WTB bus data input via a WTB bus into a first Manchester signal and outputting to a WTB codec;
  • the codec decodes the first Manchester signal into a first HDLC digital signal and outputs it to a WTB protocol controller;
  • the WTB protocol controller parses the first HDLC digital signal into data that can be processed by the MCU, and generates Interrupt signal;
  • the MCU receives the interrupt signal, processes the processable data, obtains first parallel bus data and stores the data in a dual port RAM;
  • the FPGA reads the first parallel bus data and converts it into The first PCMCIA interface data is outputted by the PCMCIA interface circuit;
  • the FPGA converts the second PCMCIA interface data input through the PCMCIA interface circuit into the second parallel bus data, and stores the data into the dual port RAM;
  • the MCU reads and processes the second parallel bus data to obtain data to be transmitted;
  • the method may further include: the WTB protocol controller outputting the second HDLC digital signal to a redundant WTB codec; the redundant WTB codec encoding the second HDLC digital signal to a second Manchester Signaling and outputting to a redundant WTB driver; the redundant WTB driver converting the second Manchester signal into second WTB bus data and outputting through a redundant WTB bus;
  • the redundant WTB driver converts the third WTB bus data input via the WTB redundant bus to a third Manchester signal and outputs to a redundant WTB codec; the redundant WTB codec will The third Manchester signal is converted into a third HDLC digital signal and output to the office
  • the above data to be transmitted may include: process data, message data, and/or monitoring data.
  • the invention combines the WTB bus mechanism dedicated to the field of rolling stock and the PCMCIA interface circuit with wide application basis, and creates a novel data analysis card based on the WTB interface, which has a very popular application for realizing the data analysis of the rolling stock. Important, reliability, flexibility, versatility, low cost, etc., easy to install, maintain and analyze data. In addition, the present invention becomes a part of the locomotive system, so that manufacturers who are unfamiliar with the locomotive field or have no WTB bus research and development capabilities can quickly push their products to the railway market.
  • FIG. 1 is a schematic structural diagram 1 of a portable WTB data analysis card provided by the present invention
  • FIG. 2 is a schematic structural diagram 2 of a portable WTB data analysis card provided by the present invention
  • FIG. 3 is a flowchart of a working method of a portable WTB data analysis card provided by the present invention
  • FIG. 4 is a second flowchart of a working method of a portable WTB data analysis card provided by the present invention.
  • FIG. 1 is a schematic structural diagram 1 of a portable WTB data analysis card provided by the present invention.
  • the portable WTB data analysis card provided in this embodiment includes: an MCU (Multi Controller Unit), a WTB protocol controller 2, a WTB codec 3, a WTB driver 4, and a dual port RAM. (Random Access Memory) 5.
  • MCU Multi Controller Unit
  • WTB protocol controller 2 a WTB protocol controller 2
  • WTB codec 3 a WTB driver 4
  • a dual port RAM Random Access Memory
  • FPGA Field-Programmable Gate Array
  • PCMCIA Personal Computer Memory Card International Association
  • the MCU1, the WTB protocol controller 2, the WTB codec 3, and the WTB driver 4 are sequentially bidirectionally connected through the internal bus, that is, the MCU1 is bidirectionally connected to the WTB protocol controller 2 via the internal bus, and the WTB protocol controller 2 is connected through the internal bus.
  • the WTB codec 3 is bidirectionally connected, and the WTB codec 3 is bidirectionally connected to the WTB driver 4 via an internal bus.
  • the WTB driver 4 is also bidirectionally connected to the external WTB bus.
  • one end of the dual-port RAM5 is bidirectionally connected to the MCU1 through the internal bus, and the other end is bidirectionally connected to the FPGA 6 through the internal bus;
  • the PCMCIA interface circuit 7 is connected to the FPGA 6 at one end and connected to an external computer, such as a portable computer, for It performs data analysis.
  • WTB driver 4 is responsible for the bus data input to the WTB bus (may be called: first
  • the WTB bus data is converted into a Manchester signal (may be called: the first Manchester signal), and output to the WTB codec 3, and the Manchester signal output from the WTB codec 3 (may be called: the second Manchester signal) ) Converted to WTB bus data (may be called: second WTB bus data) and output via the WTB bus.
  • the WTB codec 3 is responsible for decoding the first Manchester signal output by the WTB driver 4 into an HDLC digital signal (may be referred to as: the first HDLC digital signal), and outputting it to the WTB protocol controller 2, and the WTB protocol controller 2
  • the output HDLC digital signal encoding (which may be referred to as: the second HDLC digital signal) is encoded as a second Manchester signal.
  • MCU1 performs central control, such as timing control for WTB protocol controller 2, and processing data stored in WTB protocol controller 2 and dual port RAM5.
  • the WTB protocol controller 2 is responsible for parsing the first HDLC digital signal into data that can be processed by the MCU, generating an interrupt signal, and generating a second HDLC digital signal according to the data to be transmitted by the MCU1, and outputting it to the WTB codec 3.
  • the FPGA 6 is responsible for storing the parallel bus data of the MCU 1 in the dual port RAM 5 (may be referred to as: the first parallel bus data), converting to PCMCIA interface data (may be referred to as: the first PCMCIA interface data), and outputting through the PCMCIA interface circuit 7 And the PCMCIA interface data (which may be referred to as: the second PCMCIA interface data) input through the PCMCIA interface circuit 7 is converted into parallel bus data (referred to as: second parallel bus data) and stored in the dual port RAM 5.
  • FIG. 2 is a schematic structural diagram 2 of a portable WTB data analysis card provided by the present invention.
  • Figure 2 As shown, the difference between the embodiment and the corresponding embodiment of FIG. 1 includes:
  • the MCU can be a high speed microcontroller, preferably a Z8S180 processor 11 .
  • FPGA can choose FPGA chip with better expansion performance, preferably XC2S100E chip 61;
  • the portable WTB data analysis card of this embodiment is redundantly arranged, that is, may also include: redundant WTB codec 8 and redundant WTB driver 9; redundant WTB coding
  • redundant WTB codec 8 is bidirectionally connected to the WTB protocol controller 2 via the internal bus, and the other end is bidirectionally connected to one end of the redundant WTB driver 9 through the internal bus; the other end of the redundant WTB driver 9 is bidirectionally connected to the external WTB redundant bus.
  • the redundant WTB driver 9 is responsible for demodulating WTB bus data (referred to as: third WTB bus data) input via the redundant WTB bus into a Manchester signal (referred to as: a third Manchester signal), and outputs it to the redundant WTB.
  • the codec 8, and the second Manchester signal output from the redundant WTB codec 8, are converted to the second WTB bus data and output via the redundant WTB bus.
  • Redundant WTB codec 8 is responsible for decoding the third Manchester signal into HDLC digital signal
  • the third HDLC digital signal (may be called: the third HDLC digital signal), and output to the WTB protocol controller 2, and encode the second HDLC digital signal output from the WTB protocol controller 2 into the second Manchester signal.
  • the WTB protocol controller 2 is also responsible for parsing the third HDLC digital signal into data that the MCU can process and generating an interrupt signal; and outputting the second HDLC digital signal to the redundant WTB codec.
  • the redundant WTB codec 8 and the redundant WTB driver 9 can be connected to the WTB redundant bus as a set of redundant interfaces by using the same devices as the WTB codec 3 and the WTB driver 4, respectively.
  • FIG. 3 is a flow chart 1 of a working method of a portable WTB data analysis card provided by the present invention.
  • the flow shown in Figure 3 is the direction of the data flow from the WTB bus to the portable computer, describing how the portable WTB data analysis card works.
  • the method includes:
  • Step 31 The WTB driver converts the first WTB bus data input via the WTB bus into the first Manchester signal and outputs it to the WTB codec.
  • Step 32 The WTB codec decodes the first Manchester signal into the first HDLC digital signal No., and output to the WTB protocol controller.
  • Step 33 The WTB protocol controller parses the first HDLC digital signal into data that the MCU can process and generates an interrupt signal.
  • Step 34 The MCU receives the interrupt signal, and processes the processable data stored in the WTB protocol controller to obtain the first parallel bus data and stores it in the dual port RAM.
  • the first parallel bus data may be specifically 16-bit standard parallel bus data.
  • Step 35 The FPGA reads the first parallel bus data and converts it into the first PCMCIA interface data, and outputs the data through the PCMCIA interface circuit, and performs data analysis by using the portable computer.
  • the above step 31 may further include: the redundant WTB driver converts the third WTB bus data input via the WTB redundant bus into a third Manchester signal, And output to the redundant WTB codec.
  • the above step 32 may further include: the redundant WTB codec converting the third Manchester signal into a third HDLC digital signal and outputting to the WTB protocol controller.
  • the above step 33 may further include: the WTB protocol controller parses the third HDLC digital signal into data that the MCU can process, and generates an interrupt signal.
  • FIG. 4 is a second flowchart of a working method of a portable WTB data analysis card provided by the present invention.
  • the flow shown in Figure 4 is the direction of the data flow from the laptop to the WTB bus, describing how the portable WTB data analysis card works.
  • the method includes:
  • Step 41 The FPGA converts the second PCMCIA interface data input through the PCMCIA interface circuit into the second parallel bus data, and stores the data into the dual port RAM.
  • the second parallel bus data may be specifically 16-bit standard parallel bus data.
  • Step 42 The MCU reads and processes the second parallel bus data to obtain data to be transmitted.
  • Step 43 The WTB protocol controller generates a second HDLC digital signal according to the data to be transmitted by the MCU, and sends the signal to the WTB codec.
  • the data to be transmitted by the MCU may include: process data, message data, and/or monitoring data.
  • the process data is periodic data
  • the message data is aperiodic data
  • the monitoring data is periodic or sporadic data.
  • Step 44 The WTB codec encodes the second HDLC digital signal into a second Manchester signal and outputs it to the WTB driver.
  • Step 45 The WTB driver converts the second Manchester signal into the second WTB bus data. And output through the WTB bus.
  • the above step 43 may further include: the WTB protocol controller outputs the second HDLC digital signal to the redundant WTB codec;
  • the method may include: the redundant WTB codec encoding the second HDLC digital signal into a second Manchester signal and outputting to the redundant WTB driver;
  • the above step 45 may further include: the redundant WTB driver converting the second Manchester signal to the second WTB bus data, and output via redundant WTB bus.
  • the applicant of the present invention combines the bus technology dedicated to the locomotive vehicle with the special technology in the industrial control field through the self-developed technology, and the WTB analysis card dedicated to the locomotive vehicle has a wide application value.
  • the present invention has the following beneficial effects:
  • the present invention combines a PCMCIA interface circuit with a WTB bus technology to convert dedicated WTB bus data into general PCMCIA interface data.
  • the PCMCIA interface communication method adopted by the present invention is one of the widely used communication methods for portable computers, and has the advantages of simple interface, low price, convenient debugging, reliable performance, and completely matching the WTB network in communication rate.
  • the portable WTB data analysis card provided by the invention is applied to the fields of rolling stock, electric power plants and the like, and has the characteristics of high real-time data analysis and fast response time.
  • the invention adopts an FPGA card and has strong expansion performance, and can expand the function of the data analysis card according to different needs of customers.
  • the specific functions that can be implemented include: First, multiple PCMCIA interface extensions can be performed according to the characteristics of multiple users; Second, other interfaces can be extended according to user data collection, for example, the customer requests data collected on the WTB bus from Interfaces such as I2C and SPI are output.
  • the present invention combines a WTB bus mechanism dedicated to the field of rolling stock and a PCMCIA interface circuit with a wide application base to create a new data analysis card based on the WTB interface, which is beneficial to the data analysis of the rolling stock.
  • a WTB bus mechanism dedicated to the field of rolling stock
  • a PCMCIA interface circuit with a wide application base to create a new data analysis card based on the WTB interface, which is beneficial to the data analysis of the rolling stock.
  • Promote application, reliability, flexibility, versatility, low cost, etc. easy to install, maintain and analyze data.
  • the present invention has become a part of the locomotive system, so that manufacturers who are unfamiliar with the locomotive field or have no WTB bus research and development capabilities can quickly push their products to the railway market. Ming is very suitable for widespread application in the field of rolling stock.

Abstract

Disclosed are a portable WTB data analysis card and a working method thereof. The portable WTB data analysis card comprises: an MCU, a WTB protocol controller, a WTB codec, and a WTB drive that are connected through an internal bus in a two-way manner sequentially, the WTB drive being connected to an external TWB bus in a two-way manner; and a dual-port RAM, an FPGA, and a PCMCIA interface circuit, one end of the dual-port RAM being connected to the MCU through the internal bus in a two-way manner, the other end of the dual-port RAM being connected to the FPGA through the internal bus in a two-way manner, one end of the PCMCIA interface circuit being connected to the FPGA, and the other end of the PCMCIA interface circuit being connected to an external computer. The present invention has advantages of reliability, flexibility, universality, and low cost.

Description

便携式 WTB数据分析卡及其工作方法  Portable WTB data analysis card and its working method
技术领域 本发明涉及一种用于机车的网络控制装置, 特别是一种基于绞线式列车 总线( Wire Train Bus , 简称 WTB ) 网络技术、 用于机车的便携式 WTB数据 分析卡及其工作方法。 背景技术 BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a network control device for a locomotive, and more particularly to a portable WTB data analysis card for a locomotive based on a Wire Train Bus (WTB) network technology and a method for operating the same. Background technique
WTB技术主要用于机车的通信, 可实现过程数据和消息数据的传输, 其 最大特点就是具有机车初运行功能, 即当机车车辆的配置发生变化后, 能够 自动地对车辆进行编址,构成新的机车拓朴结构,而不需要人为的参与。 WTB 网络基于 WTB技术组网, 是一种专门为机车车辆总线设计的网络, 目前已 成为一种在国外和国内大量使用的高可靠性现场总线网络,是 IEC61375-1标 准的一个重要组成部分, WTB网络专业性强, 对外接口还不是特别方便。  WTB technology is mainly used for locomotive communication, which can realize the transmission of process data and message data. Its biggest feature is to have the locomotive initial running function, that is, when the configuration of the locomotive vehicle changes, the vehicle can be automatically addressed to form a new one. The locomotive topology is built without the need for human involvement. Based on the WTB technology network, the WTB network is a network specially designed for the rolling stock of the rolling stock. It has become a high-reliability fieldbus network widely used in foreign and domestic countries. It is an important part of the IEC61375-1 standard. The WTB network is highly professional, and the external interface is not particularly convenient.
便携式 WTB数据分析卡是目前机车车辆上逐渐广泛应用的一个数据分 析设备, 方便维护人员通过便携式计算机对数据进行在线分析。 当车辆出现 故障时, 维护人员可以在线分析车辆上的故障设备, 并借助相关的上位机分 析软件对整车的运行情况进行相关的判断和分析。  The portable WTB data analysis card is a data analysis device that is gradually widely used on rolling stock, which is convenient for maintenance personnel to analyze data online through a portable computer. When the vehicle fails, the maintenance personnel can analyze the faulty equipment on the vehicle online and use the relevant PC analysis software to make relevant judgments and analysis on the operation of the vehicle.
由于机车车辆的特殊应用性, 很多便携式 WTB数据分析卡的核心技术 被国外垄断, 国内还处于空白, 这使得国外的便携式数据分析卡价格十分昂 贵。 此外, 国外的便携式数据分析卡结构和功能上, 不能艮好地满足国内用 户的需求, 其实用性较低。 发明内容 本发明提供一种便携式 WTB数据分析卡及其工作方法, 用以解决现有 技术中便携式 WTB数据分析卡成本高、 实用性低的技术缺陷, 从而达到降 低数据卡成本、 提高实用性的技术效果。  Due to the special application of rolling stock, the core technology of many portable WTB data analysis cards has been monopolized by foreign countries, and the domestic market is still blank, which makes the price of portable data analysis cards abroad very expensive. In addition, the structure and function of portable data analysis cards in foreign countries cannot meet the needs of domestic users, and their practicability is low. SUMMARY OF THE INVENTION The present invention provides a portable WTB data analysis card and a working method thereof, which are used to solve the technical defects of high cost and low practicability of the portable WTB data analysis card in the prior art, thereby reducing the cost of the data card and improving the practicability. Technical effects.
本发明提供一种便携式 WTB数据分析卡, 包括:  The invention provides a portable WTB data analysis card, comprising:
MCU、 WTB协议控制器、 WTB编解码器和 WTB驱动器, 通过内部总 线顺次双向连接 , 且所述 WTB驱动器和外部 WTB总线双向连接; 双口 RAM、 FPGA和 PCMCIA接口电路; 所述双口 RAM的一端通过所 述内部总线与所述 MCU双向连接、且另一端通过所述内部总线与所述 FPGA 双向连接; 所述 PCMCIA接口电路一端与所述 FPGA连接、 且另一端用于连 接外部计算机。 MCU, WTB protocol controller, WTB codec and WTB driver, through internal total The lines are sequentially bidirectionally connected, and the WTB driver and the external WTB bus are bidirectionally connected; the dual port RAM, the FPGA and the PCMCIA interface circuit; one end of the dual port RAM is bidirectionally connected to the MCU through the internal bus, and the other end The FPGA is bidirectionally connected through the internal bus; one end of the PCMCIA interface circuit is connected to the FPGA, and the other end is used to connect to an external computer.
所述 WTB驱动器负责将所述 WTB总线输入的第一 WTB总线数据转换 为第一曼彻斯特信号、 并输出到所述 WTB编解码器, 以及将所述 WTB编解 码器输出的第二曼彻斯特信号转换为第二 WTB总线数据并经所述 WTB总线 输出;  The WTB driver is responsible for converting the first WTB bus data input by the WTB bus into a first Manchester signal, and outputting to the WTB codec, and converting the second Manchester signal output by the WTB codec into Second WTB bus data and output via the WTB bus;
所述 WTB编解码器负责将所述第一曼彻斯特信号解码为第一 HDLC数 字信号、 并输出到所述 WTB协议控制器, 以及将所述 WTB协议控制器输出 的第二 HDLC数字信号编码为所述第二曼彻斯特信号;  The WTB codec is responsible for decoding the first Manchester signal into a first HDLC digital signal, and outputting to the WTB protocol controller, and encoding the second HDLC digital signal output by the WTB protocol controller into a Said second Manchester signal;
所述 MCU负责所述 WTB协议控制器的时序控制, 以及处理所述 WTB 协议控制器和所述双口 RAM中存储的数据;  The MCU is responsible for timing control of the WTB protocol controller, and processing data stored in the WTB protocol controller and the dual port RAM;
所述 WTB协议控制器负责将所述第一 HDLC数字信号解析为 MCU可 处理的数据、并产生中断信号,以及依据 MCU待传输的数据生成第二 HDLC 数字信号, 并输出到所述 WTB编解码器;  The WTB protocol controller is configured to parse the first HDLC digital signal into data that can be processed by the MCU, generate an interrupt signal, and generate a second HDLC digital signal according to the data to be transmitted by the MCU, and output the code to the WTB codec. Device
所述 FPGA负责将所述 MCU存放到所述双口 RAM中的第一并行总线数 据, 转换为第一 PCMCIA接口数据, 并经由所述 PCMCIA接口电路输出; 以 及将经所述 PCMCIA接口电路输入的第二 PCMCIA接口数据,转换为第二并 行总线数据, 并存放到所述双口 RAM。  The FPGA is responsible for storing the first parallel bus data stored in the dual port RAM by the MCU, converting into first PCMCIA interface data, and outputting through the PCMCIA interface circuit; and inputting through the PCMCIA interface circuit The second PCMCIA interface data is converted into second parallel bus data and stored in the dual port RAM.
上述便携式 WTB数据分析卡还可包括:冗余 WTB编解码器和冗余 WTB 驱动器; 所述冗余 WTB编解码的一端通过所述内部总线和所述 WTB协议控 制器双向连接, 另一端通过所述内部总线和所述冗余 WTB驱动器的一端双 向连接; 所述冗余 WTB驱动器的另一端和外部 WTB冗余总线双向连接。  The portable WTB data analysis card may further include: a redundant WTB codec and a redundant WTB driver; one end of the redundant WTB codec is bidirectionally connected to the WTB protocol controller through the internal bus, and the other end passes through the The internal bus and one end of the redundant WTB driver are bidirectionally connected; the other end of the redundant WTB driver is bidirectionally connected to the external WTB redundant bus.
所述冗余 WTB驱动器负责将经所述冗余 WTB总线输入的第三 WTB总 线数据解调为第三曼彻斯特信号、 并输出到所述冗余 WTB 编解码器, 以及 将所述冗余 WTB 编解码器输出的所述第二曼彻斯特信号, 转换为所述第二 The redundant WTB driver is responsible for demodulating third WTB bus data input via the redundant WTB bus into a third Manchester signal, and outputting to the redundant WTB codec, and compiling the redundant WTB Converting the second Manchester signal of the decoder to the second
WTB总线数据, 并经所述冗余 WTB总线输出; WTB bus data, and output via the redundant WTB bus;
所述冗余 WTB 编解码器负责将所述第三曼彻斯特信号解码为第三 HDLC数字信号、 并输出到所述 WTB协议控制器, 以及将所述 WTB协议控 制器输出的所述第二 HDLC数字信号编码为所述第二曼彻斯特信号; The redundant WTB codec is responsible for decoding the third Manchester signal into a third HDLC digital signal, and output to the WTB protocol controller, and encoding the second HDLC digital signal output by the WTB protocol controller to the second Manchester signal;
所述 WTB协议控制器还负责将所述第三 HDLC数字信号解析为 MCU 可处理的数据, 并产生中断信号; 以及将所述第二 HDLC数字信号输出到所 述冗余 WTB编解码器。  The WTB protocol controller is further responsible for parsing the third HDLC digital signal into data that the MCU can process and generating an interrupt signal; and outputting the second HDLC digital signal to the redundant WTB codec.
所述 MCU可具体为 Z8S180处理器,所述 FPGA可具体为 XC2S100E芯 片。  The MCU may be specifically a Z8S180 processor, and the FPGA may be specifically an XC2S100E chip.
本发明还提供的一种上述便携式 WTB数据分析卡的工作方法, 包括: WTB驱动器将经 WTB总线输入的第一 WTB总线数据转换为第一曼彻斯特 信号、 并输出到 WTB编解码器; 所述 WTB编解码器将所述第一曼彻斯特信 号解码为第一 HDLC数字信号、并输出到 WTB协议控制器; 所述 WTB协议 控制器将所述第一 HDLC数字信号解析为 MCU可处理的数据, 并产生中断 信号; 所述 MCU接收所述中断信号, 对所述可处理的数据进行处理, 得到 第一并行总线数据并存放到双口 RAM;所述 FPGA读取所述第一并行总线数 据并转换为第一 PCMCIA接口数据, 并经所述 PCMCIA接口电路输出; 所述 FPGA将经所述 PCMCIA接口电路输入的第二 PCMCIA接口数据, 转换为第二并行总线数据, 并存放到所述双口 RAM; 所述 MCU读取和处理 所述第二并行总线数据, 得到待传输的数据; 所述 WTB协议控制器依据所 述待传输的数据生成第二 HDLC数字信号, 并发送给所述 WTB编解码器; 所述 WTB编解码器将所述第二 HDLC数字信号编码为第二曼彻斯特信号, 并输出到所述 WTB驱动器; 所述 WTB驱动器将所述第二曼彻斯特信号转换 为第二 WTB总线数据, 并经所述 WTB总线输出。  The present invention further provides a working method of the portable WTB data analysis card, comprising: a WTB driver converting first WTB bus data input via a WTB bus into a first Manchester signal and outputting to a WTB codec; The codec decodes the first Manchester signal into a first HDLC digital signal and outputs it to a WTB protocol controller; the WTB protocol controller parses the first HDLC digital signal into data that can be processed by the MCU, and generates Interrupt signal; the MCU receives the interrupt signal, processes the processable data, obtains first parallel bus data and stores the data in a dual port RAM; the FPGA reads the first parallel bus data and converts it into The first PCMCIA interface data is outputted by the PCMCIA interface circuit; the FPGA converts the second PCMCIA interface data input through the PCMCIA interface circuit into the second parallel bus data, and stores the data into the dual port RAM; The MCU reads and processes the second parallel bus data to obtain data to be transmitted; the WTB protocol controller is based on The data to be transmitted generates a second HDLC digital signal, and is sent to the WTB codec; the WTB codec encodes the second HDLC digital signal into a second Manchester signal, and outputs the same to the WTB driver; The WTB driver converts the second Manchester signal into second WTB bus data and outputs it via the WTB bus.
上述方法还可包括: 所述 WTB协议控制器将所述第二 HDLC数字信号 输出到冗余 WTB编解码器;所述冗余 WTB编解码器将所述第二 HDLC数字 信号编码为第二曼彻斯特信号, 并输出到冗余 WTB驱动器; 所述冗余 WTB 驱动器将所述第二曼彻斯特信号转换为第二 WTB总线数据, 并经冗余 WTB 总线输出;  The method may further include: the WTB protocol controller outputting the second HDLC digital signal to a redundant WTB codec; the redundant WTB codec encoding the second HDLC digital signal to a second Manchester Signaling and outputting to a redundant WTB driver; the redundant WTB driver converting the second Manchester signal into second WTB bus data and outputting through a redundant WTB bus;
所述冗余 WTB驱动器将经所述 WTB冗余总线输入的第三 WTB总线数 据其转换为第三曼彻斯特信号,并输出到冗余 WTB编解码器;所述冗余 WTB 编解码器将所述第三曼彻斯特信号转换为第三 HDLC数字信号, 并输出到所 述 WTB协议控制器;所述 WTB协议控制器将所述第三 HDLC数字信号解析 为 MCU可处理的数据, 并产生中断信号。 The redundant WTB driver converts the third WTB bus data input via the WTB redundant bus to a third Manchester signal and outputs to a redundant WTB codec; the redundant WTB codec will The third Manchester signal is converted into a third HDLC digital signal and output to the office The WTB protocol controller; the WTB protocol controller parses the third HDLC digital signal into data that can be processed by the MCU, and generates an interrupt signal.
上述待传输的数据可包括: 过程数据、 消息数据和 /或监视数据。  The above data to be transmitted may include: process data, message data, and/or monitoring data.
本发明将机车车辆领域专用的 WTB 总线机制, 和有着广泛应用基础的 PCMCIA接口电路相结合, 创造出了一种新型的基于 WTB接口的数据分析 卡, 对于实现机车车辆数据分析的推广应用具有十分重要的意义, 具有可靠 性、 灵活性、 通用性、 成本低等优点, 方便安装、 维护和数据分析。 此外, 本发明将所需要实现的功能成为机车系统的一个部分, 使对机车领域不熟悉 或不具备 WTB总线研发能力的厂商, 能将自己的产品快速的推向铁路市场, 因. 附图说明  The invention combines the WTB bus mechanism dedicated to the field of rolling stock and the PCMCIA interface circuit with wide application basis, and creates a novel data analysis card based on the WTB interface, which has a very popular application for realizing the data analysis of the rolling stock. Important, reliability, flexibility, versatility, low cost, etc., easy to install, maintain and analyze data. In addition, the present invention becomes a part of the locomotive system, so that manufacturers who are unfamiliar with the locomotive field or have no WTB bus research and development capabilities can quickly push their products to the railway market.
图 1为本发明提供的便携式 WTB数据分析卡的结构示意图一; 图 2为本发明提供的便携式 WTB数据分析卡的结构示意图二; 图 3为本发明提供的便携式 WTB数据分析卡工作方法流程图一; 图 4为本发明提供的便携式 WTB数据分析卡工作方法流程图二。  1 is a schematic structural diagram 1 of a portable WTB data analysis card provided by the present invention; FIG. 2 is a schematic structural diagram 2 of a portable WTB data analysis card provided by the present invention; FIG. 3 is a flowchart of a working method of a portable WTB data analysis card provided by the present invention. FIG. 4 is a second flowchart of a working method of a portable WTB data analysis card provided by the present invention.
附图标记:  Reference mark:
1-MCU; 2- WTB协议控制器; 3-WTB编解码器; 1-MCU; 2- WTB protocol controller; 3-WTB codec;
4-WTB驱动器; 5—双口 RAM; 6-FPGA; 4-WTB driver; 5—dual port RAM; 6-FPGA;
7- PCMCIA接口电路; 11-Z8S180处理器; 61-XC2S100E芯片; 7- PCMCIA interface circuit; 11-Z8S180 processor; 61-XC2S100E chip;
8-冗余 WTB编解码 H 9-冗余 WTB驱动器。 具体实施方式 实施例一 8-redundant WTB codec H 9-redundant WTB driver. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
图 1 为本发明提供的便携式 WTB数据分析卡的结构示意图一。 如图 1 所示, 本实施例提供的便携式 WTB数据分析卡包括: MCU (多点控制单元, Micro Controller Unit ) 1、 WTB协议控制器 2、 WTB编解码器 3、 WTB驱动 器 4、 双口 RAM (随机存取存储器, Random Access Memory ) 5、 FPGA (现 场可编程门阵列, Field - Programmable Gate Array)6和 PCMCIA (个人电脑 存诸卡国际十办会, Personal Computer Memory Card International Association ) 接口电路 7。 FIG. 1 is a schematic structural diagram 1 of a portable WTB data analysis card provided by the present invention. As shown in FIG. 1 , the portable WTB data analysis card provided in this embodiment includes: an MCU (Multi Controller Unit), a WTB protocol controller 2, a WTB codec 3, a WTB driver 4, and a dual port RAM. (Random Access Memory) 5. FPGA (Field-Programmable Gate Array) 6 and PCMCIA (Personal Computer Memory Card International Association) Interface circuit 7.
MCU1、 WTB协议控制器 2、 WTB编解码器 3和 WTB驱动器 4, 通过 内部总线顺次双向连接, 即: MCU1通过内部总线与 WTB协议控制器 2双 向连接, WTB协议控制器 2通过内部总线与 WTB编解码器 3双向连接, WTB 编解码器 3通过内部总线与 WTB驱动器 4双向连接。 WTB驱动器 4还与外 部 WTB总线双向连接。 此外, 双口 RAM5的一端通过内部总线与 MCU1双 向连接、 且另一端通过内部总线与 FPGA6双向连接; PCMCIA接口电路 7 一端与 FPGA6连接、 且另一端用于连接外部计算机, 如连接便携式计算机, 供其进行数据分析。  The MCU1, the WTB protocol controller 2, the WTB codec 3, and the WTB driver 4 are sequentially bidirectionally connected through the internal bus, that is, the MCU1 is bidirectionally connected to the WTB protocol controller 2 via the internal bus, and the WTB protocol controller 2 is connected through the internal bus. The WTB codec 3 is bidirectionally connected, and the WTB codec 3 is bidirectionally connected to the WTB driver 4 via an internal bus. The WTB driver 4 is also bidirectionally connected to the external WTB bus. In addition, one end of the dual-port RAM5 is bidirectionally connected to the MCU1 through the internal bus, and the other end is bidirectionally connected to the FPGA 6 through the internal bus; the PCMCIA interface circuit 7 is connected to the FPGA 6 at one end and connected to an external computer, such as a portable computer, for It performs data analysis.
WTB驱动器 4 负责将 WTB 总线输入的总线数据(不妨称之为: 第一 WTB driver 4 is responsible for the bus data input to the WTB bus (may be called: first
WTB总线数据)转换为曼彻斯特信号 (不妨称之为: 第一曼彻斯特信号) 、 并输出到 WTB编解码器 3 ,以及将 WTB编解码器 3输出的曼彻斯特信号(不 妨称之为: 第二曼彻斯特信号)转换为 WTB 总线数据(不妨称之为: 第二 WTB总线数据 )并经 WTB总线输出。 The WTB bus data is converted into a Manchester signal (may be called: the first Manchester signal), and output to the WTB codec 3, and the Manchester signal output from the WTB codec 3 (may be called: the second Manchester signal) ) Converted to WTB bus data (may be called: second WTB bus data) and output via the WTB bus.
WTB编解码器 3负责将 WTB驱动器 4输出的第一曼彻斯特信号, 解码 为 HDLC数字信号 (不妨称为: 第一 HDLC数字信号) 、 并输出到 WTB协 议控制器 2,以及将 WTB协议控制器 2输出的 HDLC数字信号编码(不妨称 为: 第二 HDLC数字信号)编码为第二曼彻斯特信号。  The WTB codec 3 is responsible for decoding the first Manchester signal output by the WTB driver 4 into an HDLC digital signal (may be referred to as: the first HDLC digital signal), and outputting it to the WTB protocol controller 2, and the WTB protocol controller 2 The output HDLC digital signal encoding (which may be referred to as: the second HDLC digital signal) is encoded as a second Manchester signal.
MCU1进行中央控制, 如负责 WTB协议控制器 2的时序控制, 以及处 理 WTB协议控制器 2和双口 RAM5中存储的数据。  MCU1 performs central control, such as timing control for WTB protocol controller 2, and processing data stored in WTB protocol controller 2 and dual port RAM5.
WTB协议控制器 2负责将第一 HDLC数字信号解析为 MCU可处理的数 据、 并产生中断信号, 以及依据 MCU1待传输的数据生成第二 HDLC数字信 号, 并输出到 WTB编解码器 3。  The WTB protocol controller 2 is responsible for parsing the first HDLC digital signal into data that can be processed by the MCU, generating an interrupt signal, and generating a second HDLC digital signal according to the data to be transmitted by the MCU1, and outputting it to the WTB codec 3.
FPGA6负责将 MCU1存放到双口 RAM5中的并行总线数据 (不妨称为: 第一并行总线数据) , 转换为 PCMCIA接口数据(不妨称为: 第一 PCMCIA 接口数据), 并经由 PCMCIA接口电路 7输出; 以及将经 PCMCIA接口电路 7输入的 PCMCIA接口数据(不妨称为: 第二 PCMCIA接口数据) , 转换为 并行总线数据(不妨称为: 第二并行总线数据) , 并存放到双口 RAM5。  The FPGA 6 is responsible for storing the parallel bus data of the MCU 1 in the dual port RAM 5 (may be referred to as: the first parallel bus data), converting to PCMCIA interface data (may be referred to as: the first PCMCIA interface data), and outputting through the PCMCIA interface circuit 7 And the PCMCIA interface data (which may be referred to as: the second PCMCIA interface data) input through the PCMCIA interface circuit 7 is converted into parallel bus data (referred to as: second parallel bus data) and stored in the dual port RAM 5.
实施例二  Embodiment 2
图 2为本发明提供的便携式 WTB数据分析卡的结构示意图二。 如图 2 所示, 本实施例与图 1对应实施例的区别在包括: FIG. 2 is a schematic structural diagram 2 of a portable WTB data analysis card provided by the present invention. Figure 2 As shown, the difference between the embodiment and the corresponding embodiment of FIG. 1 includes:
提高数据处理速度, MCU可为高速单片机, 优选为 Z8S180处理器 11。 为了满足用户的不同需求, FPGA可选用扩展性能较好的 FPGA芯片, 优选 为 XC2S100E芯片 61 ;  To improve data processing speed, the MCU can be a high speed microcontroller, preferably a Z8S180 processor 11 . In order to meet the different needs of users, FPGA can choose FPGA chip with better expansion performance, preferably XC2S100E chip 61;
为了提高设备的扩展性能, 满足用户的不同需求, 本实施例便携式 WTB 数据分析卡进行了冗余布置,即还可包括:冗余 WTB编解码器 8和冗余 WTB 驱动器 9; 冗余 WTB编解码器 8的一端通过内部总线和 WTB协议控制器 2 双向连接, 另一端通过内部总线和冗余 WTB驱动器 9的一端双向连接; 冗 余 WTB驱动器 9的另一端和外部 WTB冗余总线双向连接。  In order to improve the expansion performance of the device and meet the different needs of the user, the portable WTB data analysis card of this embodiment is redundantly arranged, that is, may also include: redundant WTB codec 8 and redundant WTB driver 9; redundant WTB coding One end of the decoder 8 is bidirectionally connected to the WTB protocol controller 2 via the internal bus, and the other end is bidirectionally connected to one end of the redundant WTB driver 9 through the internal bus; the other end of the redundant WTB driver 9 is bidirectionally connected to the external WTB redundant bus.
冗余 WTB驱动器 9负责将经冗余 WTB总线输入的 WTB总线数据 (不 妨称为: 第三 WTB 总线数据)解调为曼彻斯特信号 (不妨称为: 第三曼彻 斯特信号) 、 并输出到冗余 WTB编解码器 8, 以及将冗余 WTB编解码器 8 输出的第二曼彻斯特信号, 转换为第二 WTB总线数据, 并经冗余 WTB总线 输出。  The redundant WTB driver 9 is responsible for demodulating WTB bus data (referred to as: third WTB bus data) input via the redundant WTB bus into a Manchester signal (referred to as: a third Manchester signal), and outputs it to the redundant WTB. The codec 8, and the second Manchester signal output from the redundant WTB codec 8, are converted to the second WTB bus data and output via the redundant WTB bus.
冗余 WTB编解码器 8负责将第三曼彻斯特信号解码为 HDLC数字信号 Redundant WTB codec 8 is responsible for decoding the third Manchester signal into HDLC digital signal
(不妨称为: 第三 HDLC数字信号)、 并输出到 WTB协议控制器 2, 以及将 WTB协议控制器 2输出的第二 HDLC数字信号编码为第二曼彻斯特信号。 (may be called: the third HDLC digital signal), and output to the WTB protocol controller 2, and encode the second HDLC digital signal output from the WTB protocol controller 2 into the second Manchester signal.
相应的, WTB协议控制器 2还负责将第三 HDLC数字信号解析为 MCU 可处理的数据, 并产生中断信号; 以及将第二 HDLC数字信号输出到冗余 WTB编解码器。  Correspondingly, the WTB protocol controller 2 is also responsible for parsing the third HDLC digital signal into data that the MCU can process and generating an interrupt signal; and outputting the second HDLC digital signal to the redundant WTB codec.
上述技术方案中, 冗余 WTB编解码器 8和冗余 WTB驱动器 9, 可分别 采用与 WTB编解码器 3和 WTB驱动器 4相同的设备,作为一组冗余接口连 接到 WTB冗余总线上。  In the above technical solution, the redundant WTB codec 8 and the redundant WTB driver 9 can be connected to the WTB redundant bus as a set of redundant interfaces by using the same devices as the WTB codec 3 and the WTB driver 4, respectively.
实施例三  Embodiment 3
图 3为本发明提供的便携式 WTB数据分析卡工作方法流程图一。如图 3 所示的流程, 是从 WTB 总线流入便携式计算机的数据流方向, 描述便携式 WTB数据分析卡的工作方法。 请参见图 1和图 3所示, 该方法包括:  FIG. 3 is a flow chart 1 of a working method of a portable WTB data analysis card provided by the present invention. The flow shown in Figure 3 is the direction of the data flow from the WTB bus to the portable computer, describing how the portable WTB data analysis card works. Referring to Figure 1 and Figure 3, the method includes:
步骤 31: WTB驱动器将经 WTB总线输入的第一 WTB总线数据转换为 第一曼彻斯特信号、 并输出到 WTB编解码器。  Step 31: The WTB driver converts the first WTB bus data input via the WTB bus into the first Manchester signal and outputs it to the WTB codec.
步骤 32: WTB编解码器将第一曼彻斯特信号解码为第一 HDLC数字信 号、 并输出到 WTB协议控制器。 Step 32: The WTB codec decodes the first Manchester signal into the first HDLC digital signal No., and output to the WTB protocol controller.
步骤 33: WTB协议控制器将第一 HDLC数字信号解析为 MCU可处理 的数据, 并产生中断信号。  Step 33: The WTB protocol controller parses the first HDLC digital signal into data that the MCU can process and generates an interrupt signal.
步骤 34: MCU接收中断信号, 对 WTB协议控制器中存储的可处理的数 据进行处理, 得到第一并行总线数据并存放到双口 RAM。  Step 34: The MCU receives the interrupt signal, and processes the processable data stored in the WTB protocol controller to obtain the first parallel bus data and stores it in the dual port RAM.
第一并行总线数据可具体为 16位标准并行总线数据。  The first parallel bus data may be specifically 16-bit standard parallel bus data.
步骤 35: FPGA读取第一并行总线数据并转换为第一 PCMCIA接口数据, 并经 PCMCIA接口电路输出, 以^ ί更携式计算机进行数据分析。  Step 35: The FPGA reads the first parallel bus data and converts it into the first PCMCIA interface data, and outputs the data through the PCMCIA interface circuit, and performs data analysis by using the portable computer.
如果便携式 WTB数据分析卡采用如图 2所示的冗余布置, 则上述步骤 31还可包括: 冗余 WTB驱动器将经 WTB冗余总线输入的第三 WTB总线数 据其转换为第三曼彻斯特信号, 并输出到冗余 WTB编解码器。 上述步骤 32 还可包括: 冗余 WTB编解码器将第三曼彻斯特信号转换为第三 HDLC数字 信号, 并输出到 WTB协议控制器。 上述步骤 33还可包括: WTB协议控制 器将第三 HDLC数字信号解析为 MCU可处理的数据, 并产生中断信号。  If the portable WTB data analysis card adopts a redundant arrangement as shown in FIG. 2, the above step 31 may further include: the redundant WTB driver converts the third WTB bus data input via the WTB redundant bus into a third Manchester signal, And output to the redundant WTB codec. The above step 32 may further include: the redundant WTB codec converting the third Manchester signal into a third HDLC digital signal and outputting to the WTB protocol controller. The above step 33 may further include: the WTB protocol controller parses the third HDLC digital signal into data that the MCU can process, and generates an interrupt signal.
实施例四  Embodiment 4
图 4为本发明提供的便携式 WTB数据分析卡工作方法流程图二。如图 4 所示的流程, 是从便携式计算机流入 WTB 总线的数据流方向, 描述便携式 WTB数据分析卡的工作方法。 请参见图 1和图 4所示, 该方法包括:  FIG. 4 is a second flowchart of a working method of a portable WTB data analysis card provided by the present invention. The flow shown in Figure 4 is the direction of the data flow from the laptop to the WTB bus, describing how the portable WTB data analysis card works. Referring to Figures 1 and 4, the method includes:
步骤 41: FPGA将经 PCMCIA接口电路输入的第二 PCMCIA接口数据, 转换为第二并行总线数据, 并存放到双口 RAM。  Step 41: The FPGA converts the second PCMCIA interface data input through the PCMCIA interface circuit into the second parallel bus data, and stores the data into the dual port RAM.
第二并行总线数据可具体为 16位标准并行总线数据。  The second parallel bus data may be specifically 16-bit standard parallel bus data.
步骤 42: MCU读取和处理第二并行总线数据, 得到待传输的数据。 步骤 43: WTB协议控制器依据 MCU待传输的数据生成第二 HDLC数 字信号, 并发送给 WTB编解码器。  Step 42: The MCU reads and processes the second parallel bus data to obtain data to be transmitted. Step 43: The WTB protocol controller generates a second HDLC digital signal according to the data to be transmitted by the MCU, and sends the signal to the WTB codec.
MCU待传输的数据可包括: 过程数据、 消息数据和 /或监控数据。 其中, 过程数据为周期性数据, 消息数据为非周期性数据, 监控数据为周期性或偶 发性数据。  The data to be transmitted by the MCU may include: process data, message data, and/or monitoring data. The process data is periodic data, the message data is aperiodic data, and the monitoring data is periodic or sporadic data.
步骤 44: WTB编解码器将第二 HDLC数字信号编码为第二曼彻斯特信 号, 并输出到 WTB驱动器。  Step 44: The WTB codec encodes the second HDLC digital signal into a second Manchester signal and outputs it to the WTB driver.
步骤 45: WTB驱动器将第二曼彻斯特信号转换为第二 WTB总线数据, 并经 WTB总线输出。 Step 45: The WTB driver converts the second Manchester signal into the second WTB bus data. And output through the WTB bus.
如果便携式 WTB数据分析卡采用如图 2所示的冗余布置, 则上述步骤 43还可包括: WTB协议控制器将所述第二 HDLC数字信号输出到冗余 WTB 编解码器; 上述步骤 44还可包括: 冗余 WTB编解码器将第二 HDLC数字信 号编码为第二曼彻斯特信号, 并输出到冗余 WTB驱动器; 上述步骤 45还可 包括: 冗余 WTB驱动器将第二曼彻斯特信号转换为第二 WTB总线数据, 并 经冗余 WTB总线输出。  If the portable WTB data analysis card adopts a redundant arrangement as shown in FIG. 2, the above step 43 may further include: the WTB protocol controller outputs the second HDLC digital signal to the redundant WTB codec; The method may include: the redundant WTB codec encoding the second HDLC digital signal into a second Manchester signal and outputting to the redundant WTB driver; the above step 45 may further include: the redundant WTB driver converting the second Manchester signal to the second WTB bus data, and output via redundant WTB bus.
需要说明的是, 目前由于 WTB 总线的专用性, 很多厂家不能提供具有 WTB接口的数据分析卡,而且该项技术被国外一直垄断,设备成本居高不下, 通用性也不如人意。 基于此, 本发明申请人通过自制研制的技术, 将机车车 辆专用的总线技术与工业控制领域的专用技术相互结合, 研制出的机车车辆 专用的 WTB分析卡具有广泛的推广应用价值。  It should be noted that due to the specificity of the WTB bus, many manufacturers cannot provide data analysis cards with WTB interfaces, and this technology has been monopolized by foreign countries. The equipment cost is high and the versatility is not satisfactory. Based on this, the applicant of the present invention combines the bus technology dedicated to the locomotive vehicle with the special technology in the industrial control field through the self-developed technology, and the WTB analysis card dedicated to the locomotive vehicle has a wide application value.
通过上述技术方案的具体分析可知, 本发明具有以下有益效果:  According to the specific analysis of the above technical solutions, the present invention has the following beneficial effects:
1、 本发明将 PCMCIA接口电路与 WTB总线技术结合起来, 将专用的 WTB总线数据转换为通用的 PCMCIA接口数据。由于本发明采用的 PCMCIA 接口通讯方式, 是目前便携式计算机应用广泛的通讯方式之一, 具有接口简 单、 价格低廉、 调试方便、 性能可靠、 而且在通信速率上完全和 WTB 网络 匹配等优点。 将本发明提供的便携式 WTB数据分析卡应用于机车车辆、 电 厂等领域, 具有数据分析的实时性高、 响应时间快等特点。  1. The present invention combines a PCMCIA interface circuit with a WTB bus technology to convert dedicated WTB bus data into general PCMCIA interface data. The PCMCIA interface communication method adopted by the present invention is one of the widely used communication methods for portable computers, and has the advantages of simple interface, low price, convenient debugging, reliable performance, and completely matching the WTB network in communication rate. The portable WTB data analysis card provided by the invention is applied to the fields of rolling stock, electric power plants and the like, and has the characteristics of high real-time data analysis and fast response time.
2、 本发明采用 FPGA卡, 具有很强的扩展性能, 可根据客户的不同需求 进行数据分析卡的功能扩展。 具体可以实现的功能包括: 第一, 可以根据多 用户的特点进行多个 PCMCIA接口扩展; 第二, 可以根据用户对数据的采集 进行其它接口的扩展, 比如客户要求将 WTB总线上采集的数据从 I2C、 SPI 等接口进行输出。  2. The invention adopts an FPGA card and has strong expansion performance, and can expand the function of the data analysis card according to different needs of customers. The specific functions that can be implemented include: First, multiple PCMCIA interface extensions can be performed according to the characteristics of multiple users; Second, other interfaces can be extended according to user data collection, for example, the customer requests data collected on the WTB bus from Interfaces such as I2C and SPI are output.
综上, 本发明将机车车辆领域专用的 WTB 总线机制, 和有着广泛应用 基础的 PCMCIA接口电路相结合, 创造出了一种新型的基于 WTB接口的数 据分析卡, 有利于实现机车车辆数据分析的推广应用, 并具有可靠性、 灵活 性、 通用性、 成本低等优点, 方便安装、 维护和数据分析。 此外, 本发明将 所需要实现的功能成为机车系统的一个部分, 使对机车领域不熟悉或不具备 WTB总线研发能力的厂商, 能将自己的产品快速的推向铁路市场, 因此本发 明非常适合于机车车辆的应用领域中广泛推广。 In summary, the present invention combines a WTB bus mechanism dedicated to the field of rolling stock and a PCMCIA interface circuit with a wide application base to create a new data analysis card based on the WTB interface, which is beneficial to the data analysis of the rolling stock. Promote application, reliability, flexibility, versatility, low cost, etc., easy to install, maintain and analyze data. In addition, the present invention has become a part of the locomotive system, so that manufacturers who are unfamiliar with the locomotive field or have no WTB bus research and development capabilities can quickly push their products to the railway market. Ming is very suitable for widespread application in the field of rolling stock.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 Claim
1、 一种便携式 WTB数据分析卡, 其特征在于, 包括: 1. A portable WTB data analysis card, comprising:
MCU、 WTB协议控制器、 WTB编解码器和 WTB驱动器, 通过内部总 线顺次双向连接 , 且所述 WTB驱动器和外部 WTB总线双向连接;  The MCU, the WTB protocol controller, the WTB codec, and the WTB driver are sequentially bidirectionally connected by an internal bus, and the WTB driver is bidirectionally connected to the external WTB bus;
双口 RAM、 FPGA和 PCMCIA接口电路; 所述双口 RAM的一端通过所 述内部总线与所述 MCU双向连接、且另一端通过所述内部总线与所述 FPGA 双向连接; 所述 PCMCIA接口电路一端与所述 FPGA连接、 且另一端用于连 接外部计算机。  a dual port RAM, an FPGA and a PCMCIA interface circuit; one end of the dual port RAM is bidirectionally connected to the MCU through the internal bus, and the other end is bidirectionally connected to the FPGA through the internal bus; one end of the PCMCIA interface circuit Connected to the FPGA and the other end is used to connect to an external computer.
2、 根据权利要求 1所述的便携式 WTB数据分析卡, 其特征在于, 所述 WTB驱动器负责将所述 WTB总线输入的第一 WTB总线数据转换 为第一曼彻斯特信号、 并输出到所述 WTB编解码器, 以及将所述 WTB编解 码器输出的第二曼彻斯特信号转换为第二 WTB总线数据并经所述 WTB总线 输出;  2. The portable WTB data analysis card according to claim 1, wherein the WTB driver is responsible for converting the first WTB bus data input by the WTB bus into a first Manchester signal and outputting to the WTB series. a decoder, and converting a second Manchester signal output by the WTB codec into second WTB bus data and outputting through the WTB bus;
所述 WTB编解码器负责将所述第一曼彻斯特信号解码为第一 HDLC数 字信号、 并输出到所述 WTB协议控制器, 以及将所述 WTB协议控制器输出 的第二 HDLC数字信号编码为所述第二曼彻斯特信号;  The WTB codec is responsible for decoding the first Manchester signal into a first HDLC digital signal, and outputting to the WTB protocol controller, and encoding the second HDLC digital signal output by the WTB protocol controller into a Said second Manchester signal;
所述 MCU负责所述 WTB协议控制器的时序控制, 以及处理所述 WTB 协议控制器和所述双口 RAM中存储的数据;  The MCU is responsible for timing control of the WTB protocol controller, and processing data stored in the WTB protocol controller and the dual port RAM;
所述 WTB协议控制器负责将所述第一 HDLC数字信号解析为 MCU可 处理的数据、并产生中断信号,以及依据 MCU待传输的数据生成第二 HDLC 数字信号, 并输出到所述 WTB编解码器;  The WTB protocol controller is configured to parse the first HDLC digital signal into data that can be processed by the MCU, generate an interrupt signal, and generate a second HDLC digital signal according to the data to be transmitted by the MCU, and output the code to the WTB codec. Device
所述 FPGA负责将所述 MCU存放到所述双口 RAM中的第一并行总线数 据, 转换为第一 PCMCIA接口数据, 并经由所述 PCMCIA接口电路输出; 以 及将经所述 PCMCIA接口电路输入的第二 PCMCIA接口数据,转换为第二并 行总线数据, 并存放到所述双口 RAM。  The FPGA is responsible for storing the first parallel bus data stored in the dual port RAM by the MCU, converting into first PCMCIA interface data, and outputting through the PCMCIA interface circuit; and inputting through the PCMCIA interface circuit The second PCMCIA interface data is converted into second parallel bus data and stored in the dual port RAM.
3、 根据权利要求 1所述的便携式 WTB数据分析卡, 其特征在于, 还包 括: 冗余 WTB编解码器和冗余 WTB驱动器;  3. The portable WTB data analysis card of claim 1, further comprising: a redundant WTB codec and a redundant WTB driver;
所述冗余 WTB编解码的一端通过所述内部总线和所述 WTB协议控制器 双向连接, 另一端通过所述内部总线和所述冗余 WTB驱动器的一端双向连 接; 所述冗余 WTB驱动器的另一端和外部 WTB冗余总线双向连接。 One end of the redundant WTB codec is bidirectionally connected to the WTB protocol controller through the internal bus, and the other end is bidirectionally connected to one end of the redundant WTB driver through the internal bus; the redundant WTB driver The other end is bidirectionally connected to the external WTB redundant bus.
4、 根据权利要求 3所述的便携式 WTB数据分析卡, 其特征在于, 所述冗余 WTB驱动器负责将经所述冗余 WTB总线输入的第三 WTB总 线数据解调为第三曼彻斯特信号、 并输出到所述冗余 WTB 编解码器, 以及 将所述冗余 WTB编解码器输出的第二曼彻斯特信号,转换为第二 WTB总线 数据, 并经所述冗余 WTB总线输出; 4. The portable WTB data analysis card according to claim 3, wherein said redundant WTB driver is responsible for demodulating third WTB bus data input via said redundant WTB bus into a third Manchester signal, and Outputting to the redundant WTB codec, and converting a second Manchester signal output by the redundant WTB codec into second WTB bus data, and outputting through the redundant WTB bus;
所述冗余 WTB 编解码器负责将所述第三曼彻斯特信号解码为第三 HDLC数字信号、 并输出到所述 WTB协议控制器, 以及将所述 WTB协议控 制器输出的第二 HDLC数字信号编码为所述第二曼彻斯特信号;  The redundant WTB codec is responsible for decoding the third Manchester signal into a third HDLC digital signal, and outputting to the WTB protocol controller, and encoding the second HDLC digital signal output by the WTB protocol controller For the second Manchester signal;
所述 WTB协议控制器还负责将所述第三 HDLC数字信号解析为 MCU 可处理的数据, 并产生中断信号; 以及将所述第二 HDLC数字信号输出到所 述冗余 WTB编解码器。  The WTB protocol controller is further responsible for parsing the third HDLC digital signal into data that the MCU can process and generating an interrupt signal; and outputting the second HDLC digital signal to the redundant WTB codec.
5、根据权利要求 1〜4任一所述的便携式 WTB数据分析卡,其特征在于, 所述 MCU具体为 Z8S180处理器, 所述 FPGA具体为 XC2S100E芯片。  The portable WTB data analysis card according to any one of claims 1 to 4, wherein the MCU is specifically a Z8S180 processor, and the FPGA is specifically an XC2S100E chip.
6、 一种权利要求 1〜5任一所述的便携式 WTB数据分析卡的工作方法, 其特征在于, 包括:  The working method of the portable WTB data analysis card according to any one of claims 1 to 5, characterized in that it comprises:
WTB驱动器将经 WTB总线输入的第一 WTB总线数据转换为第一曼彻 斯特信号、 并输出到 WTB编解码器; 所述 WTB编解码器将所述第一曼彻斯 特信号解码为第一 HDLC数字信号、 并输出到 WTB协议控制器; 所述 WTB 协议控制器将所述第一 HDLC数字信号解析为 MCU可处理的数据, 并产生 中断信号; 所述 MCU接收所述中断信号, 对所述可处理的数据进行处理, 得到第一并行总线数据并存放到双口 RAM;所述 FPGA读取所述第一并行总 线数据并转换为第一 PCMCIA接口数据, 并经所述 PCMCIA接口电路输出; 所述 FPGA将经所述 PCMCIA接口电路输入的第二 PCMCIA接口数据, 转换为第二并行总线数据, 并存放到所述双口 RAM; 所述 MCU读取和处理 所述第二并行总线数据, 得到待传输的数据; 所述 WTB协议控制器依据所 述待传输的数据生成第二 HDLC数字信号, 并发送给所述 WTB编解码器; 所述 WTB编解码器将所述第二 HDLC数字信号编码为第二曼彻斯特信号, 并输出到所述 WTB驱动器; 所述 WTB驱动器将所述第二曼彻斯特信号转换 为第二 WTB总线数据, 并经所述 WTB总线输出。  The WTB driver converts the first WTB bus data input via the WTB bus into a first Manchester signal and outputs to the WTB codec; the WTB codec decodes the first Manchester signal into a first HDLC digital signal, and Outputting to a WTB protocol controller; the WTB protocol controller parses the first HDLC digital signal into data that can be processed by the MCU, and generates an interrupt signal; the MCU receives the interrupt signal, and the processable data Processing, obtaining first parallel bus data and storing to the dual port RAM; the FPGA reads the first parallel bus data and converts it into first PCMCIA interface data, and outputs the data through the PCMCIA interface circuit; The second PCMCIA interface data input through the PCMCIA interface circuit is converted into second parallel bus data and stored in the dual port RAM; the MCU reads and processes the second parallel bus data to obtain a to-be-transmitted Data; the WTB protocol controller generates a second HDLC digital signal according to the data to be transmitted, and sends the second HDLC digital signal to the WTB codec; The WTB codec encodes the second HDLC digital signal into a second Manchester signal and outputs to the WTB driver; the WTB driver converts the second Manchester signal into a second WTB bus data, and The WTB bus is output.
7、 根据权利要求 6所述的工作方法, 其特征在于, 还包括: 所述 WTB协议控制器将所述第二 HDLC数字信号输出到冗余 WTB编解 码器; 所述冗余 WTB编解码器将所述第二 HDLC数字信号编码为第二曼彻 斯特信号, 并输出到冗余 WTB驱动器; 所述冗余 WTB驱动器将所述第二曼 彻斯特信号转换为第二 WTB总线数据, 并经冗余 WTB总线输出; 7. The working method according to claim 6, further comprising: The WTB protocol controller outputs the second HDLC digital signal to a redundant WTB codec; the redundant WTB codec encodes the second HDLC digital signal into a second Manchester signal, and outputs the redundancy a redundant WTB driver; the redundant Manchester driver converts the second Manchester signal into second WTB bus data and outputs it via a redundant WTB bus;
所述冗余 WTB驱动器将经所述 WTB冗余总线输入的第三 WTB总线数 据其转换为第三曼彻斯特信号,并输出到冗余 WTB编解码器;所述冗余 WTB 编解码器将所述第三曼彻斯特信号转换为第三 HDLC数字信号, 并输出到所 述 WTB协议控制器;所述 WTB协议控制器将所述第三 HDLC数字信号解析 为 MCU可处理的数据, 并产生中断信号。  The redundant WTB driver converts the third WTB bus data input via the WTB redundant bus to a third Manchester signal and outputs to a redundant WTB codec; the redundant WTB codec will The third Manchester signal is converted to a third HDLC digital signal and output to the WTB protocol controller; the WTB protocol controller parses the third HDLC digital signal into data that can be processed by the MCU and generates an interrupt signal.
8、 根据权利要求 6或 7所述的工作方法, 其特征在于, 所述待传输的数 据包括: 过程数据、 消息数据和 /或监视数据。  8. The working method according to claim 6 or 7, wherein the data to be transmitted comprises: process data, message data and/or monitoring data.
PCT/CN2011/083311 2011-12-01 2011-12-01 Portable wtb data analysis card and working method thereof WO2013078664A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/083311 WO2013078664A1 (en) 2011-12-01 2011-12-01 Portable wtb data analysis card and working method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/083311 WO2013078664A1 (en) 2011-12-01 2011-12-01 Portable wtb data analysis card and working method thereof

Publications (1)

Publication Number Publication Date
WO2013078664A1 true WO2013078664A1 (en) 2013-06-06

Family

ID=48534642

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/083311 WO2013078664A1 (en) 2011-12-01 2011-12-01 Portable wtb data analysis card and working method thereof

Country Status (1)

Country Link
WO (1) WO2013078664A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428797A (en) * 2017-08-21 2019-03-05 株洲中车时代电气股份有限公司 Train data Transmission system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5765027A (en) * 1994-09-26 1998-06-09 Toshiba American Information Systems, Inc. Network controller which enables the local processor to have greater access to at least one memory device than the host computer in response to a control signal
CN2899305Y (en) * 2006-02-20 2007-05-09 南京联创通信科技有限公司 Universal extended cheap special network router of wireless virtual
CN200959606Y (en) * 2006-06-12 2007-10-10 谢步明 WTB telecommunication equipment based on FPGA
CN201274496Y (en) * 2008-09-24 2009-07-15 中国北车股份有限公司大连电力牵引研发中心 WTB-Ethernet gateway device
CN102231751A (en) * 2011-05-24 2011-11-02 中国北车股份有限公司大连电力牵引研发中心 Wire train bus (WTB) data recorder and working method thereof
CN102325068A (en) * 2011-05-24 2012-01-18 中国北车股份有限公司大连电力牵引研发中心 Portable WTB (Wire Train Bus) data analysis card and working method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5765027A (en) * 1994-09-26 1998-06-09 Toshiba American Information Systems, Inc. Network controller which enables the local processor to have greater access to at least one memory device than the host computer in response to a control signal
CN2899305Y (en) * 2006-02-20 2007-05-09 南京联创通信科技有限公司 Universal extended cheap special network router of wireless virtual
CN200959606Y (en) * 2006-06-12 2007-10-10 谢步明 WTB telecommunication equipment based on FPGA
CN201274496Y (en) * 2008-09-24 2009-07-15 中国北车股份有限公司大连电力牵引研发中心 WTB-Ethernet gateway device
CN102231751A (en) * 2011-05-24 2011-11-02 中国北车股份有限公司大连电力牵引研发中心 Wire train bus (WTB) data recorder and working method thereof
CN102325068A (en) * 2011-05-24 2012-01-18 中国北车股份有限公司大连电力牵引研发中心 Portable WTB (Wire Train Bus) data analysis card and working method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428797A (en) * 2017-08-21 2019-03-05 株洲中车时代电气股份有限公司 Train data Transmission system and method
CN109428797B (en) * 2017-08-21 2020-08-14 株洲中车时代电气股份有限公司 Train data transmission system and method

Similar Documents

Publication Publication Date Title
CN101083590B (en) TCN railway engine network control experiment platform
CN112799992B (en) Fieldbus chip architecture
JP2017533601A (en) Protocol converter between CPCI bus and ISA bus and conversion method thereof
CN207200759U (en) A kind of coder transitions device of EPA interface
CN109905375B (en) Audio and video network coding and decoding equipment with telephone function
CN102088444A (en) PROFIBUS DP and PROFIBUS PA protocol conversion gateway module
CN115866081B (en) SOC-based industrial Ethernet protocol conversion method
CN101470937A (en) Access machine of urban monitoring alarm networking system and its monitoring method
CN107579894B (en) FPGA-based EBR1553 bus protocol implementation device
CN202111737U (en) Network management enhanced E1/ETH protocol converter
WO2013078664A1 (en) Portable wtb data analysis card and working method thereof
CN114237091A (en) Power electronic converter state data acquisition device
CN102881146A (en) Industrial on-site equipment data acquirer of multiple industrial buses
CN102231751A (en) Wire train bus (WTB) data recorder and working method thereof
US9112736B2 (en) Data transfer apparatus, data transfer method, and inter-chip communication system
CN102325068B (en) Portable WTB (Wire Train Bus) data analysis card and working method thereof
TWI504215B (en) Data transmission system and method
CN102307162A (en) Gateway based on MVB (multifunction vehicle bus) network
CN106201965A (en) A kind of interior external clock source switching device based on IRIG B and changing method
WO2013082741A1 (en) Wtb data recorder and operating method thereof
CN104618676A (en) Wireless video transmission method
CN202218257U (en) Gateway based on multifunction vehicle bus (MVB) network
CN204993440U (en) Can protocol conversion device
WO2018129852A1 (en) Hardware system for data conversion, and memory
CN114866733A (en) Low-delay video processing method, system and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11876847

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11876847

Country of ref document: EP

Kind code of ref document: A1