CN103685275B - The HDLC communication module of a kind of CompactRIO - Google Patents
The HDLC communication module of a kind of CompactRIO Download PDFInfo
- Publication number
- CN103685275B CN103685275B CN201310692882.8A CN201310692882A CN103685275B CN 103685275 B CN103685275 B CN 103685275B CN 201310692882 A CN201310692882 A CN 201310692882A CN 103685275 B CN103685275 B CN 103685275B
- Authority
- CN
- China
- Prior art keywords
- hdlc
- chip
- compactrio
- communication
- interface
- 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
Links
Landscapes
- Communication Control (AREA)
Abstract
The present invention relates to the HDLC communication module of a kind of CompactRIO, comprise HDLC communication module, CompactRIO real-time controller two parts, be made up of the EERPOM of a bridging chip developed with FPGA, store-memory function and serial ports conversion chip, R485 interface chip in HDLC communication module.Application RS485 agreement is as the physical layer of communication, and exchanges data is realized by self-defining spi bus, externally has two-way communication interface, realizes two-way HDLC protocol communication function, and supports that communication baud rate maximum 10M scope is adjustable.This module be controller in conjunction with embedded Webserver, interconnected for the communication realized between urban railway transit train supervisory control system and the subsystem with HDLC interface.The present invention can be widely used in the control field such as railroad train, urban rail transit vehicles.There is simplicity of design, use simple and easy, function is with strong points, the feature of dependable performance.
Description
Technical field
The present invention relates to a kind of for the self-defined communication module of urban railway transit train, particularly the HDLC communication module of a kind of CompactRIO for the exploitation of CompactRIO controller.The control field such as railroad train, urban rail transit vehicles can be widely used in.
Background technology
Last century, the seventies started, HDLC (control of High-LevelDataLinkControl high-level data chain agreement road) starts the logical transport field being applied to industrial technology data, in current application, train is urban railway transit train especially, run due to mobile for a long time, running environment face the factors such as various electromagnetic interference to the efficiency of Signal transmissions and reliability requirement more and more higher, tradition HDLC communication module technology needs to improve constantly transmittability under the fast-developing background of track traffic at home, meeting various control, while hommization functional requirement increases, more to guarantee efficiency and the reliability of Signal transmissions.
CompactRIO is a kind of small and exquisite and firm control of industrialization and acquisition system, adopt reconfigurable I/O (reconfigurableI/O, be abbreviated as RIO) and FPGA (Field-ProgrammableGateArray, field programmable gate array) technology realize very-high performance and custom feature.CompactRIO comprises a real-time controller and reconfigurable fpga chip.
Have some import equipments in current City Rail Transit System as trailer system, the equipment such as auxiliary system mostly possess provides HDLC interface.In order to complete the exchanges data with these systems, just requiring the communication interface possessing HDLC in train monitoring system, in the middle of the existing module of current CompactRIO, not supporting the module of HDLC agreement.Of the present inventionly research and develop successfully, indicate the function realizing supporting HDLC agreement in the middle of the module of CompactRIO.Fill up the blank of this this technical field domestic.
Summary of the invention
Main purpose of the present invention is to solve the problem and deficiency, provides a kind of HDLC communication module can supporting the CompactRIO of HDLC protocol function.
For achieving the above object, technical scheme of the present invention is:
A HDLC communication module of CompactRIO, comprises fpga chip, HDLC chip, RS485 interface chip;
Described fpga chip connects described HDLC chip and CompactRIO respectively, for the exchanges data of HDLC chip and CompactRIO;
Described RS485 interface chip connects described HDLC chip and communication interface respectively, for the system communication with HDLC interface;
Described fpga chip is provided with HDLC chip control module, HDLC communication data pretreatment module, data are sent in the data buffer storage of fpga chip by described CompactRIO, described fpga chip control HDLC chip enable, and the data after process are sent to HDLC chip, data are sent by described RS485 interface chip by described HDLC chip.
Further, also comprise eeprom chip, described eeprom chip is connected with CompactRIO, identifies described HDLC communication module for CompactRIO.
Further, described fpga chip is connected by SPI communication bus with CompactRIO, and described fpga chip is provided with SPI communication module.
Further, described RS485 interface chip arranges two, connects described HDLC chip respectively.
Further, described RS485 interface chip connects described fpga chip, described fpga chip arranges RS485 and receives and dispatches control module, for controlling the transmitting-receiving of described RS485 interface chip.
In sum, the HDLC communication module of a kind of CompactRIO of the present invention, the function of self-defined exploitation is supported for CompactRIO, by arranging SPI communication module on fpga chip, HDLC chip control module, RS485 receives and dispatches control module, HDLC communication data pretreatment module, thus achieves high efficiency exchanges data between HDLC chip and CompactRIO.By using fpga chip to serve as bridging chip, design is more flexible, integrated transmission and deal with data more reliably, there is simplicity of design, use simple and easy, function is with strong points, the feature of dependable performance.
Accompanying drawing explanation
Fig. 1 HDLC communication module of the present invention schematic diagram;
The workflow diagram of Fig. 2 communication module of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the present invention is described in further detail:
As shown in Figure 1, the HDLC communication module of a kind of CompactRIO, is mainly used in, in rail vehicle system, particularly having the exchanges data between the rail vehicle system equipment of HDLC interface and wheel supervisory control system.
A HDLC communication module of CompactRIO, comprises fpga chip, HDLC chip, RS485 interface chip and eeprom chip.
Fpga chip is connected by SPI communication bus with CompactRIO, is separately connected with HDLC chip, for the exchanges data of HDLC chip and NICompactRIO.
RS485 interface chip connects described HDLC chip and communication interface respectively, for the system communication with HDLC interface.And RS485 interface chip is also connected with fpga chip, the transmitting-receiving of fpga chip control RS485 interface chip.By using RS485 chip, the Transistor-Transistor Logic level signal of HDLC is converted to the level signal of difference, to meet the requirement of railway vehicle device for signal transmission.And use RS485 agreement as the physical layer of communication, improve efficiency of transmission.
Eeprom chip is connected with CompactRIO, identifies described HDLC communication module for CompactRIO.In eeprom chip, the information such as vendorID, productID, andserialnumber are stored during design, about the code requirement of the information such as vendorID, productIDandserialnumber in these information conforms CompactRIO series of products, can be completely compatible with existing system, when each CompactRIO powers on, CompactRIO reads these state informations by spi bus, in order to identification module identity, display module state.
Described fpga chip is provided with SPI communication module, HDLC chip control module, HDLC communication data pretreatment module, RS485 receive and dispatch control module.In the present embodiment, use VHDL language to develop in fpga chip and achieve SPI communication function, HDLC protocol chip controlling functions, RS485 receives and dispatches control, HDLC communication data preprocessing function.
By SPI communication module, fpga chip achieves the communication with CompactRIO; By HDLC chip control module, fpga chip achieves the control to HDLC chip; By HDLC communication data pretreatment module, achieve the function that the information that sends CompactRIO processes; Receive and dispatch control module by RS485, fpga chip sends enable control to RS485 interface chip, thus the transmitting-receiving of control RS485 interface chip.
In the present embodiment, RS485 interface chip arranges two, connects described HDLC chip respectively.The communication interface that RS485 interface chip connects is DB9 communication interface.
Exchanges data between communication module of the present invention and CompactRIO is realized by self-defining spi bus, and the main contents of exchanges data are:
CompactRIO reads the information be stored in EEPROM by spi bus, the content of information comprises vendorID, productID, andserialnumber.This information is used for CompactRIO identification module identity.
CompactRIO carries out initialized setting by spi bus to this HDLC communication module, mainly contains the communication baud rate of HDLC, the form of HDLC frame head and postamble, the parameter etc. of HDLC verification.
CompactRIO is sent by spi bus, receiving data frames.
Linked by SPI communication bus between this HDLC communication module and CompactRIO, externally have 2 tunnel communication interfaces, i.e. HDLC protocol interface.Need the data of communication to send to fpga chip by SPI communication bus, transmission controlling functions has been separated the transmitting-receiving of data by fpga chip with processing capacity.
As shown in Figure 2, workflow of the present invention is:
1, when CompactRIO powers on, the bsp driver on CompactRIO is automatically read by SPI communication bus and is arranged in eeprom chip and stores the information such as vendorID, productIDandserialnumber, as the foundation of this module identification.If identification is correct, the model of this correct module can be shown on CompactRIO.
2, the initialize routine on CompactRIO will carry out initial configuration to this HDLC communication module, the content of configuration comprises the cycle of HDLC communication, the baud rate of HDLC communication, the arranging of frame head and postamble in the optimum configurations of CRC check and HDLC communication in HDLC communication.
3, after initialization completes, CompactRIO sends HDLC communication enabled signal, and in the data buffer storage of the fpga chip needing the data of communication to be sent by SPI communication bus, fpga chip starts HDLC chip, send to HDLC chip after data being rearranged, HDLC chip completes the transmission of data by RS485 interface chip and DB9 communication interface.Fpga chip reads HDLC chip when having data to send, immediately by data retransmission to CompactRIO, this completes a data transmit-receive.CompactRIO constantly updates the data needing to send, and fpga chip constantly to circulate transceiving data according to arranging communication cycle in step 2.
4, when CompactRIO finds this module data mistake, CompactRIO can send instructions and reinitialize this functions of modules to fpga chip, makes it restart, recovers from fault.
By said structure and workflow known, this HDLC communication module, has self-defined configuration feature, before module is started working, first want configuration module parameter, comprise communication baud rate and arrange, CRC check initial value is arranged, and the number of beginning synchronizing frame head is arranged.This HDLC communication module can realize the communication baud rate of maximum 10M, and inside has DPLL clock regeneration function, even if can ensure that certain error appears in communication baud rate, still can receive correct data, guarantee reliability to greatest extent.This HDLC communication module has two-way completely independently HDLC passage, and two paths can arrange the parameter such as communication baud rate, CRC check respectively.And two paths can use together, realize and single subsystem communication two-way redundancy feature.This HDLC communication module also has overvoltage protection and excess current protective function, and the fault of its external circuit can not cause module damage.And this communication module applies in embedded systems, be convenient to shielding, improve interference free performance.
In sum, the HDLC communication module of a kind of CompactRIO of the present invention, the function of self-defined exploitation is supported for CompactRIO, by arranging SPI communication module on fpga chip, HDLC chip control module, RS485 receives and dispatches control module, HDLC communication data pretreatment module, thus achieves high efficiency exchanges data between HDLC chip and CompactRIO.By using fpga chip to serve as bridging chip, design is more flexible, integrated transmission and deal with data more reliably, there is simplicity of design, use simple and easy, function is with strong points, the feature of dependable performance.
As mentioned above, plan content given by reference to the accompanying drawings, can derive similar technical scheme.In every case be the content not departing from technical solution of the present invention, any simple modification done above embodiment according to technical spirit of the present invention, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.
Claims (5)
1. a HDLC communication module of CompactRIO, is characterized in that: comprise fpga chip, HDLC chip, RS485 interface chip;
Described fpga chip connects described HDLC chip and CompactRIO respectively, for the exchanges data of HDLC chip and CompactRIO;
Described RS485 interface chip connects described HDLC chip and communication interface respectively, for the system communication with HDLC interface;
Described fpga chip is provided with HDLC chip control module, HDLC communication data pretreatment module, data are sent in the data buffer storage of fpga chip by described CompactRIO, described fpga chip control HDLC chip enable, and the data after process are sent to HDLC chip, data are sent by described RS485 interface chip by described HDLC chip.
2. the HDLC communication module of a kind of CompactRIO according to claim 1, is characterized in that: also comprise eeprom chip, and described eeprom chip is connected with CompactRIO, identifies described HDLC communication module for CompactRIO.
3. the HDLC communication module of a kind of CompactRIO according to claim 1, is characterized in that: described fpga chip is connected by SPI communication bus with CompactRIO, described fpga chip is provided with SPI communication module.
4. the HDLC communication module of a kind of CompactRIO according to claim 1, is characterized in that: described RS485 interface chip arranges two, connects described HDLC chip respectively.
5. the HDLC communication module of a kind of CompactRIO according to claim 1, it is characterized in that: described RS485 interface chip connects described fpga chip, described fpga chip arranges RS485 and receives and dispatches control module, for controlling the transmitting-receiving of described RS485 interface chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310692882.8A CN103685275B (en) | 2013-12-17 | 2013-12-17 | The HDLC communication module of a kind of CompactRIO |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310692882.8A CN103685275B (en) | 2013-12-17 | 2013-12-17 | The HDLC communication module of a kind of CompactRIO |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103685275A CN103685275A (en) | 2014-03-26 |
CN103685275B true CN103685275B (en) | 2016-03-23 |
Family
ID=50321589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310692882.8A Active CN103685275B (en) | 2013-12-17 | 2013-12-17 | The HDLC communication module of a kind of CompactRIO |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103685275B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR3026515B1 (en) * | 2014-09-26 | 2017-12-01 | Valeo Systemes Thermiques | TRANSMITTING SYNCHRONOUS DATA THROUGH A SERIAL DATA BUS, IN PARTICULAR A SPI BUS |
CN111224801A (en) * | 2018-11-23 | 2020-06-02 | 中车大连电力牵引研发中心有限公司 | Vehicle-mounted HDLC recording method and device |
CN110412973B (en) * | 2019-07-01 | 2022-03-29 | 东南大学 | Bench test electric automobile driving robot system based on virtual instrument |
CN114124296A (en) * | 2021-09-30 | 2022-03-01 | 许昌许继软件技术有限公司 | Anti-interference serial inter-board communication method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083590A (en) * | 2007-05-24 | 2007-12-05 | 谢步明 | TCN railway engine network control experiment platform |
CN102316113A (en) * | 2011-09-22 | 2012-01-11 | 大连交通大学 | POWERLINK and HDLC protocol conversion equipment and realization method thereof |
CN103347023A (en) * | 2013-07-04 | 2013-10-09 | 北京新航智科技有限公司 | HDLC communication controller under industrial field environment |
CN203618021U (en) * | 2013-12-17 | 2014-05-28 | 南车青岛四方机车车辆股份有限公司 | HDLC communication module for CompactRIO |
-
2013
- 2013-12-17 CN CN201310692882.8A patent/CN103685275B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083590A (en) * | 2007-05-24 | 2007-12-05 | 谢步明 | TCN railway engine network control experiment platform |
CN102316113A (en) * | 2011-09-22 | 2012-01-11 | 大连交通大学 | POWERLINK and HDLC protocol conversion equipment and realization method thereof |
CN103347023A (en) * | 2013-07-04 | 2013-10-09 | 北京新航智科技有限公司 | HDLC communication controller under industrial field environment |
CN203618021U (en) * | 2013-12-17 | 2014-05-28 | 南车青岛四方机车车辆股份有限公司 | HDLC communication module for CompactRIO |
Also Published As
Publication number | Publication date |
---|---|
CN103685275A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103685275B (en) | The HDLC communication module of a kind of CompactRIO | |
CN102019944B (en) | Train operation control method, automatic train protection (ATP) system and China train control system 3 (CTCS-3) control unit | |
CN102316020A (en) | Method for generating and sending transponder messages in real time, as well as train control center device and system | |
CN102237891A (en) | Transponder ground equipment | |
CN103067238B (en) | A kind of collecting method being compatible with MODBUS bus | |
CN105083332A (en) | Train control vehicle-mounted system | |
CN109353378B (en) | Railway vehicle-mounted monitoring information transmission equipment and implementation method thereof | |
CN104796356A (en) | Vehicle-mounted Ethernet switch and signal transceiving and train reconnecting method for railway vehicles | |
CN103685003A (en) | Gateway equipment for train | |
CN101707629A (en) | Synchronous communication method of mirror images for self organization information of safety and stability control device of electric network | |
CN103401955A (en) | Device and method for configuring address of vehicle bus equipment | |
CN203618021U (en) | HDLC communication module for CompactRIO | |
CN204392275U (en) | A kind of MVB data interception system with Ethernet interface | |
CN109743709A (en) | A kind of wireless communication server based on train-ground communication | |
CN204481852U (en) | Vehicle-mounted Ethernet switch used for rail vehicle | |
CN102923165A (en) | Integrated train overspeed protection vehicle-mounted equipment | |
CN102795246A (en) | High-safety ground electronic unit and method for improving safety of high-safety ground electronic unit | |
CN209521698U (en) | The vehicle-mounted monitoring information transmission radio station of railway | |
CN108111517A (en) | A kind of protocol converter and control method | |
CN106776434A (en) | A kind of safe level DCS products point-to-point communication circuit | |
CN105523064A (en) | Interlocking host and trackside equipment communication device | |
CN107888228A (en) | Interface circuit, integrated circuit, method, system and program product for a transponder | |
CN206196065U (en) | GYK remote maintenance monitoring system's car -mounted device | |
CN210822295U (en) | Vehicle-mounted safety maintenance communication platform based on LTE-R network | |
CN105501260A (en) | Emergency communication device for train and train control center |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 | ||
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: Jihongtan town Chengyang District Shandong city Qingdao province Jinhong road 266111 No. 88 Patentee after: CRRC QINGDAO SIFANG CO., LTD. Address before: Jihongtan town Chengyang District Shandong city Qingdao province Jinhong road 266111 No. 88 Patentee before: CSR Qingdao Sifang Locomotive and Rolling Stock Co., Ltd. |