CN103685275A - HDLC communication module of Compact RIO - Google Patents

HDLC communication module of Compact RIO Download PDF

Info

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
Application number
CN201310692882.8A
Other languages
Chinese (zh)
Other versions
CN103685275B (en
Inventor
田照耀
焦京海
马云双
彭云龙
车聪聪
龚明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Qingdao Sifang Co Ltd
Original Assignee
CSR Qingdao Sifang Locomotive and Rolling Stock Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CSR Qingdao Sifang Locomotive and Rolling Stock Co Ltd filed Critical CSR Qingdao Sifang Locomotive and Rolling Stock Co Ltd
Priority to CN201310692882.8A priority Critical patent/CN103685275B/en
Publication of CN103685275A publication Critical patent/CN103685275A/en
Application granted granted Critical
Publication of CN103685275B publication Critical patent/CN103685275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

The HDLC communication module of a kind of CompactRIO
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.
CN201310692882.8A 2013-12-17 2013-12-17 The HDLC communication module of a kind of CompactRIO Active CN103685275B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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
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
CN102316020A (en) Method for generating and sending transponder messages in real time, as well as train control center device and system
CN103685003A (en) Gateway equipment for train
CN102237891A (en) Transponder ground equipment
CN104375484A (en) Distributed control system based on CAN open protocol
CN109353378B (en) Railway vehicle-mounted monitoring information transmission equipment and implementation method thereof
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
CN101877868A (en) The circuit of transponder and the method that is used for test circuit
CN102795246B (en) A kind of high safe LEU and improve the method for its fail safe
CN204392275U (en) A kind of MVB data interception system with Ethernet interface
CN102923165A (en) Integrated train overspeed protection vehicle-mounted equipment
CN210191499U (en) LTE positioner suitable for track 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
CN109451440A (en) Vehicle data transmission equipment, vehicle and data transmission system
CN104601189A (en) Mobile phone-type intelligent vehicle-mounted terminal
CN101700780A (en) Providing method, receiving method and speed limit sign of train operation speed limit
CN205092880U (en) HDLC protocol controller based on FPGA chip

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.