CN103685275A - HDLC communication module of Compact RIO - Google Patents
HDLC communication module of Compact RIO Download PDFInfo
- Publication number
- CN103685275A CN103685275A CN201310692882.8A CN201310692882A CN103685275A CN 103685275 A CN103685275 A CN 103685275A CN 201310692882 A CN201310692882 A CN 201310692882A CN 103685275 A CN103685275 A CN 103685275A
- Authority
- CN
- China
- Prior art keywords
- hdlc
- chip
- compactrio
- communication module
- communication
- 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.)
- Granted
Links
Images
Landscapes
- Communication Control (AREA)
Abstract
The invention relates to an HDLC communication module of a Compact RIO. The HDLC communication module of the Compact RIO comprises an HDLC communication module body and a Compact RIO real-time controller. The HDLC communication module body is composed of a bridging chip which is developed through an FPGA, an EERPOM with a memory function, a serial port conversion chip with a memory function and an R485 interface chip. An RS485 protocol is used as a communication physical layer, data exchange is achieved through a user-defined SPI bus, two ways of communication interfaces are arranged externally, so that the communication function of two ways of HDLC protocols is achieved, and the adjustable range of the communication Baud rate is at most 10M. According to the HDLC communication module of the Compact RIO, the controller is combined with an embedded measurement and control system, so that communication interconnection between an urban rail transit train monitoring system and a subsystem with an HDLC port is achieved. The HDLC communication module of the Compact RIO can be widely applied to the control field of railway trains, urban rail transit vehicles and the like and has the advantages of being simple in design, simple to use, high in functional pertinence and reliable in performance.
Description
Technical field
The present invention relates to a kind of for the self-defined communication module of urban railway transit train, the particularly HDLC communication module of a kind of CompactRIO for CompactRIO controller exploitation.Can be widely used in the control fields such as railroad train, urban rail transit vehicles.
Background technology
Last century, the seventies started, HDLC (control of High-Level Data Link Control high-level data chain agreement road) starts to be applied to the logical transport field of industrial technology data, in current application, train is urban railway transit train especially, due to long-term mobile operation, it is more and more higher to efficiency and the reliability requirement of signal transmission that running environment faces the factors such as various electromagnetic interference, tradition HDLC communication module technology needs to improve constantly transmittability under the fast-developing background of track traffic at home, meeting various control, when hommization functional requirement increases, more to guarantee efficiency and the reliability of signal transmission.
CompactRIO is a kind of small and exquisite and firm control of industrialization and acquisition system, adopt reconfigurable I/O (reconfigurable I/O, be abbreviated as RIO) and FPGA(Field-Programmable Gate Array, field programmable gate array) technology realizes very-high performance and custom feature.CompactRIO comprises a real-time controller and reconfigurable fpga chip.
In City Rail Transit System, have some import equipments as trailer system at present, the HDLC of providing interface is mostly provided the equipment such as auxiliary system.In order to complete the exchanges data with these systems, just require to possess in train monitoring system the communication interface of HDLC, in the middle of the existing module of CompactRIO, do not support at present the module of HDLC agreement.Of the present invention research and development successfully, indicates and in the middle of the module of CompactRIO, realizes the function of supporting HDLC agreement.Filled up the blank of domestic this this technical field.
Summary of the invention
Main purpose of the present invention is to address the above problem and is not enough, and a kind of HDLC communication module that can support the CompactRIO of HDLC protocol function is provided.
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 respectively described HDLC chip and CompactRIO, for the exchanges data of HDLC chip and CompactRIO;
Described RS485 interface chip connects respectively described HDLC chip and communication interface, for the system communication with having HDLC interface;
On described fpga chip, be provided with HDLC chip control module, HDLC communication data pretreatment module, described CompactRIO sends to data in the data buffer storage of fpga chip, described fpga chip is controlled HDLC chip enable, and the data after processing are sent to HDLC chip, described HDLC chip sends data by described RS485 interface chip.
Further, also comprise eeprom chip, described eeprom chip is connected with CompactRIO, for CompactRIO, identifies described HDLC communication module.
Further, described fpga chip is connected by SPI communication bus with CompactRIO, is provided with SPI communication module on described fpga chip.
Further, described RS485 interface chip arranges two, connects respectively described HDLC chip.
Further, described RS485 interface chip connects described fpga chip, RS485 transmitting-receiving control module is set on described fpga chip, 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, for CompactRIO, support the function of self-defined exploitation, by SPI communication module is set on fpga chip, HDLC chip control module, RS485 receives and dispatches control module, HDLC communication data pretreatment module, thus realized high efficiency exchanges data between HDLC chip and CompactRIO.By serving as bridging chip with fpga chip, design more flexibly, integrated transmission and deal with data are more reliable, 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 rail vehicle system, particularly has the rail vehicle system equipment of HDLC interface and the exchanges data between 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 NI CompactRIO.
RS485 interface chip connects respectively described HDLC chip and communication interface, for the system communication with having HDLC interface.And RS485 interface chip is also connected with fpga chip, fpga chip is controlled the transmitting-receiving of 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 railway vehicle device for the requirement of signal transmission.And use RS485 agreement as the physical layer of communication, improved efficiency of transmission.
Eeprom chip is connected with CompactRIO, for CompactRIO, identifies described HDLC communication module.During design, in eeprom chip, store the information such as vendor ID, product ID, and serial number, in this information conforms CompactRIO series of products about the code requirement of the information such as vendor ID, product ID and serial number, 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.
On described fpga chip, be provided with SPI communication module, HDLC chip control module, HDLC communication data pretreatment module, RS485 and receive and dispatch control module.In the present embodiment, use VHDL language to develop in fpga chip and realized SPI communication function, HDLC protocol chip is controlled function, and RS485 receives and dispatches control, HDLC communication data preprocessing function.
By SPI communication module, fpga chip has been realized the communication with CompactRIO; By HDLC chip control module, fpga chip has been realized the control to HDLC chip; By HDLC communication data pretreatment module, realized the function that information that CompactRIO is sent is processed; By RS485, receive and dispatch control module, fpga chip sends and enables to control RS485 interface chip, thereby controls the transmitting-receiving of RS485 interface chip.
In the present embodiment, RS485 interface chip arranges two, connects respectively described HDLC chip.The communication interface that RS485 interface chip connects is DB9 communication interface.
Exchanges data between communication module of the present invention and CompactRIO realizes by self-defining spi bus, and the main contents of exchanges data are:
CompactRIO reads the information being stored in EEPROM by spi bus, the content of information comprises vendor ID, product ID, and serial number.This information is 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 of HDLC verification etc.
CompactRIO by spi bus send, receiving data frames.
Between this HDLC communication module and CompactRIO, by SPI communication bus, link, externally have 2 tunnel communication interfaces, i.e. HDLC agreement communication interface.Need the data of communication to send to fpga chip by SPI communication bus, fpga chip is controlled the function transmitting-receiving that complete data separated with processing capacity by transmission.
As shown in Figure 2, workflow of the present invention is:
When 1, CompactRIO powers on, bsp driver on CompactRIO is automatically read and is arranged in eeprom chip and stores the information such as vendor ID, product ID and serial number by SPI communication bus, as the foundation of this module identification.If identification is correct, can on CompactRIO, show the model of this correct module.
2, the initialize routine on CompactRIO will be carried 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 etc. of frame head and postamble in the parameter setting 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 that the data of needs communication are sent by SPI communication bus, fpga chip starts HDLC chip, after data are rearranged, send to HDLC chip, HDLC chip completes the transmission of data by RS485 interface chip and DB9 communication interface.When fpga chip reads HDLC chip and has data to receive, immediately by data retransmission to CompactRIO, so just completed data transmit-receive one time.The data that CompactRIO constantly update to need sends, fpga chip is according to the communication cycle transceiving data that constantly circulates is set in step 2.
4,, when CompactRIO finds this module data mistake, CompactRIO can send instructions and reinitialize this functions of modules to fpga chip, and it is restarted, and from fault, recovers.
Known by said structure and workflow, this HDLC communication module, has self-defined configuration feature, before module is started working, first want configuration module parameter, comprise communication baud rate setting, CRC check initial value arranges, and the number of beginning synchronizing frame head arranges etc.This HDLC communication module can realize the communication baud rate of maximum 10M, and inside has DPLL clock regeneration function, even if can guarantee to greatest extent that certain error appears in communication baud rate, still can receive correct data, guarantees reliability.This HDLC communication module has completely independently HDLC passage of two-way, and two paths can arrange respectively the parameters such as communication baud rate, CRC check.And two paths can be used 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 communication module is to be applied in embedded system, be convenient to shielding, improved interference free performance.
In sum, the HDLC communication module of a kind of CompactRIO of the present invention, for CompactRIO, support the function of self-defined exploitation, by SPI communication module is set on fpga chip, HDLC chip control module, RS485 receives and dispatches control module, HDLC communication data pretreatment module, thus realized high efficiency exchanges data between HDLC chip and CompactRIO.By serving as bridging chip with fpga chip, design more flexibly, integrated transmission and deal with data are more reliable, there is simplicity of design, use simple and easy, function is with strong points, the feature of dependable performance.
As mentioned above, given scheme content, can derive similar technical scheme by reference to the accompanying drawings.In every case be the content that does not depart from technical solution of the present invention, any simple modification, equivalent variations and the modification above embodiment done according to technical spirit of the present invention, 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 respectively described HDLC chip and CompactRIO, for the exchanges data of HDLC chip and CompactRIO;
Described RS485 interface chip connects respectively described HDLC chip and communication interface, for the system communication with having HDLC interface;
On described fpga chip, be provided with HDLC chip control module, HDLC communication data pretreatment module, described CompactRIO sends to data in the data buffer storage of fpga chip, described fpga chip is controlled HDLC chip enable, and the data after processing are sent to HDLC chip, described HDLC chip sends data by described RS485 interface chip.
2. the HDLC communication module of a kind of CompactRIO according to claim 1, is characterized in that: also comprise eeprom chip, described eeprom chip is connected with CompactRIO, for CompactRIO, identifies described HDLC communication module.
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, is provided with SPI communication module on described fpga chip.
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 respectively described HDLC chip.
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, RS485 transmitting-receiving control module is set on described fpga chip, 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 true CN103685275A (en) | 2014-03-26 |
CN103685275B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016046361A1 (en) * | 2014-09-26 | 2016-03-31 | Valeo Systemes Thermiques | Transmission of synchronous data via a serial data bus, in particular a spi bus |
CN110412973A (en) * | 2019-07-01 | 2019-11-05 | 东南大学 | A kind of bench test electric car drive robot system based on virtual instrument |
CN111224801A (en) * | 2018-11-23 | 2020-06-02 | 中车大连电力牵引研发中心有限公司 | Vehicle-mounted HDLC recording method and device |
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 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016046361A1 (en) * | 2014-09-26 | 2016-03-31 | Valeo Systemes Thermiques | Transmission of synchronous data via a serial data bus, in particular a spi bus |
FR3026515A1 (en) * | 2014-09-26 | 2016-04-01 | Valeo Systemes Thermiques | TRANSMITTING SYNCHRONOUS DATA THROUGH A SERIAL DATA BUS, IN PARTICULAR A SPI BUS |
US11106619B2 (en) | 2014-09-26 | 2021-08-31 | Valeo Systemes Thermiques | Transmission of synchronous data via a serial data bus, in particular a SPI bus |
CN111224801A (en) * | 2018-11-23 | 2020-06-02 | 中车大连电力牵引研发中心有限公司 | Vehicle-mounted HDLC recording method and device |
CN110412973A (en) * | 2019-07-01 | 2019-11-05 | 东南大学 | A kind of bench test electric car drive robot system based on virtual instrument |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103685275B (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102081585B (en) | RS485 dual-bus communication method used for test satellite | |
CN103685275A (en) | HDLC communication module of Compact RIO | |
CN102238087B (en) | Responder message transmission method, device and system | |
CN103164721B (en) | A kind of car networking trackside information data sampling and processing method | |
CN102857366B (en) | Trackside electronic device for transparent transmission of information of high-speed railway responder | |
CN105539522A (en) | Train operation monitoring device based on double 2-vote-2 safety computer structure and method for train operation monitoring device | |
CN103685003A (en) | Gateway equipment for train | |
CN105667548B (en) | Railway freight-car train communication system | |
CN102237891A (en) | Transponder ground equipment | |
CN104375484A (en) | Distributed control system based on CAN open protocol | |
CN103401955B (en) | A kind of vehicle bus device address collocation method and device | |
CN101707629A (en) | Synchronous communication method of mirror images for self organization information of safety and stability control device of electric network | |
CN103200130A (en) | Safe storage and selection method and device for messages in LEU (Line-side Electronic Unit) | |
CN101877868A (en) | The circuit of transponder and the method that is used for test circuit | |
CN203618021U (en) | HDLC communication module for CompactRIO | |
CN102923165B (en) | Integrated train overspeed protection vehicle-mounted equipment | |
CN204392275U (en) | A kind of MVB data interception system with Ethernet interface | |
RU2626430C2 (en) | Operation method for automatic system of railway traffic and automatic control system of railway traffic | |
CN209521698U (en) | The vehicle-mounted monitoring information transmission radio station of railway | |
CN115320673B (en) | Train operation control method, device, equipment and storage medium | |
CN206196065U (en) | GYK remote maintenance monitoring system's car -mounted device | |
CN104601189A (en) | Mobile phone-type intelligent vehicle-mounted terminal | |
CN205092880U (en) | HDLC protocol controller based on FPGA chip | |
CN107888228A (en) | Interface circuit, integrated circuit, method, system and program product for a transponder | |
CN203158029U (en) | Device for acquiring and transmitting messages of faults of subway train |
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. |