CN101127739A - TCN gateway communication device - Google Patents

TCN gateway communication device Download PDF

Info

Publication number
CN101127739A
CN101127739A CNA2007100110177A CN200710011017A CN101127739A CN 101127739 A CN101127739 A CN 101127739A CN A2007100110177 A CNA2007100110177 A CN A2007100110177A CN 200710011017 A CN200710011017 A CN 200710011017A CN 101127739 A CN101127739 A CN 101127739A
Authority
CN
China
Prior art keywords
wtb
module
task
communication
data
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.)
Pending
Application number
CNA2007100110177A
Other languages
Chinese (zh)
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 Dalian R&D Co Ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNA2007100110177A priority Critical patent/CN101127739A/en
Publication of CN101127739A publication Critical patent/CN101127739A/en
Pending legal-status Critical Current

Links

Images

Abstract

The utility model discloses a TCN gateway communication equipment, which is characterized in comprising a MCB module and a WTB module, wherein the MCB module comprises a 32-bit CPU, a MVB unit, a MVBCS01 protocol controller and an external periphery circuit. Supported by a Nucleus real-time operating system, a hardware platform is provided for operating a TCN net management software, a real-time protocol stack software and a MVB link protocol software. The WTB module comprises an 8-bit CPU processor, a WTBC protocol controller and an external periphery circuit, providing operating platform of the WTB link software. Data communication of process data of a destination port and a WTB source, monitoring data and/or message data of WTB is performed via the internal parallel bus between the MBC module and the WTB module. The utility model has the advantage of conformity to international train communication network TCN standard IEC61375-1, the most advanced equipment in TCN network and extensive application range in railway vehicle.

Description

The TCN gateway communication device
Technical field
The present invention relates to international train communication network TCN standard IEC 61375-1, communication apparatus for highest level in the TCN train communication network, backward compatible MVB vehicle bus and WTB train bus-line are widely used in comprising various rail vehicles such as bullet train, EMU motor train unit, DMU motor train unit, tramcar, subway, passenger vehicle.
Technical background
International train communication network TCN standard IEC 61375-1 is taking into full account the application request of train, on the basis of extensively soliciting consumers' opinions such as countries in the world railway manufacturer, operator, formulate at rail vehicle specially, being the main flow of current domestic and international train network mechanics of communication, also is the network communication standard that present Chinese Railway is recommended use.At present domestic backward external a lot of in the research and development of the basis of TCN technical elements, particularly for the so high-end nucleus equipment of TCN gateway, because of technical difficulty is big, the R﹠D cycle is long, dependence on import always, the disappearance of this equipment are the key factors of restriction production domesticization TCN network communications technology.
Summary of the invention
TCN network using MVB+WTB two-stage bus network, network topology as shown in Figure 1.Wherein MVB is responsible for the data communication of vehicle interior, and WTB is responsible for the data communication between rail vehicle.Divide according to the network communication function, the TCN network mainly comprises 0~5 kind equipment, and wherein class 0 equipment is a repeater, 1,2,3,4 classes are MVB equipment, the TCN gateway is 5 kind equipments, is high, the most most crucial equipment of rank in the TCN network, technical backward compatible 0~5 grade of various kinds of equipment.The various kinds of equipment performance is as shown in the table:
Class 0 equipment Regeneration and amplifying power with bus data are used to extend transmission distance or connect the network of two different physical mediums.
1 kind equipment Have process data communication and equipment state polling ability
2 kind equipments Have equipment state polling, process data communication and message data ability to communicate
3 kind equipments Have equipment state polling, process data communication, message data communication and user-programmable ability.
4 kind equipments Have equipment state polling, process data communication, message data communication and bus management ability
5 kind equipments Have equipment state polling, process data communication, message data communication, bus management and gateway routing function.
The object of the present invention is to provide the means of communication of a kind of TCN gateway and TCN gateway.This gateway comprises the full content of TCN network communications technology, is responsible for the data route transmission between MVB and WTB data/address bus in network control system.
Technical solution of the present invention is achieved in that
A kind of TCN gateway communication device, it is characterized in that comprising MCB module and WTB module, wherein said MCB module is that central processing unit, MVB unit, MVBCS01 protocol controller and peripheral circuit are formed by 32, under the Nucleus real time operating system is supported, provide the hardware platform of the operation TCN network management software, real-time protocol (RTP) stack software and MVB link protocol software; Described WTB module is made up of 8 bit CPU processors, WTBC protocol controller and peripheral circuit, and the operation platform of WTB link software is provided; Carry out the process data of WTB source, place port, the monitoring data of WTB and/or the data communication of message data by inner parallel bus circuit between MCB module and the WTB module.
32 central processing units in the described MCB module are made of chip Net+50, its peripheral circuit comprises perpetual calendar and mainboard supervisory circuit, watchdog circuit, 232 serial communication interfaces and ethernet communication mouth circuit and memory circuitry, the temperature and the perpetual calendar time of CPU board are provided, the normal operation of monitor system software, the serial communication function of Target Board and host computer is provided and supports two kinds of communication modes of 10M/100M and/or provide data run and memory space for system by ether abortive haul communication interface.
Described MVBCS01 protocol controller is made of MVBCS01 communication controller chip, and its interface circuit is supported MVB low layer chain circuit function, supports MAU to realize the MVB physical layer function, is responsible for the transmitting-receiving of MVB data.Described inner parallel bus circuit is responsible for the data buffering and the level conversion of address wire, data wire and control line between WTB plate and MCB plate, and the passage of the parallel data communication between two plates is provided.
Described WTB module is made up of 8 bit CPU processors, external memory storage circuit, MAU interface and hdlc controller, wherein said hdlc controller is responsible for converting the serial data from the WTB bus to parallel data that CPU needs, and carries out the high-speed data exchange by dma mode and CPU.
The software section of TCN gateway communication device is made up of WTB module software and MCB module software two parts, be a kind of means of communication of described TCN gateway, comprise: the step with WTB module software and MCB software are packed the TCN gateway into and powered on or reset is characterized in that also comprising:
The treatment step of MCB module gateway self diagnosis,
The initialization process step of MCB module application,
The initialized treatment step of MCB modular system,
The treatment step of WTB and MCB message between different boards data communication,
The treatment step of MCB module and the marshalling of WTB intermodule process data,
MCB module real-time protocol (RTP) stack task handling step,
MCB module gateway is realized management protocol stack manager task handling step,
MCB module gateway is realized management protocol stack succedaneum task handling step,
Serial ports monitors the treatment step of communication task, and/or
Send the step of self-detection result to the peripheral hardware self check of CPU configuration in the WTB module and to the WVB module,
The step of call function initialization backboard communication and/or WTB link software process,
Enter the step of major cycle and recursive call BP_Process () process and WTB_Process () process.
The step of described MCB module gateway self diagnosis comprises that at first the important register to central processing unit Net+50 is configured, then DS1639 chip, Ethernet chip and MVBC chip are carried out initial configuration, and above-mentioned each module diagnosed, behind self diagnosis, program enters the Applieation_Init () module of implementation and operation system and/or the step that faulty indication is reported to the police.
Call function was created memory pool after the initialized step of described MCB module application was included in and enters this task module, storage allocation and create system initiation task, serial ports monitor task, gateway management protocol stack manager task then, real-time protocol (RTP) stack task, flashing light task, WTB message between different boards data communications task and MCB module and WTB intermodule process data are organized into groups the step of task.
The initialized step of described MCB modular system comprises the step that realizes serial initialization, the definition of arbitration binary tree, the establishment of message link time, senior MVBC interruption Communications service program creation and MVB link initialization.
Described WTB and MCB message between different boards tree are according to the step of communication task, the data communication that is intended to realize the application message between WTB plate and MCB plate and monitors message, its process comprises and enters duty cycle, judge whether the SM shared memory has application message, have then and from SM, to take out application message and send to real-time protocol (RTP) stack task; Whether in SM have control messages, have then to send the step of network management messages in the OAMAgent person task if judging then.
The step of described MCB module and WTB intermodule process data marshalling task, be intended to realize the process data route communication between MVB and WTB, after its process comprises that entering the intermodule process data organizes into groups duty cycle, take out from the communication memory block of MVB or WTB earlier and will organize into groups immigration or situation, promptly mail to the MVB bus or mail to the process data of WTB bus, then the process variables that obtains is carried out preliminary treatment, check its validity, the actuating logic computing, and its operation result is write the step of the communication memory block of corresponding MVB or WTB.
The step of described MCB module real-time protocol (RTP) stack task, be intended to realize the function of RTP real-time protocol (RTP), its process comprises at first initialization real-time protocol (RTP) stack task and starts the protocol stack timer, enter recurrent state then, whether check has link event or timer event to arrive, if MVB overall process message event, at this moment this task call function S end MSG Network (), message tree certificate is sent to the network layer of real-time protocol (RTP) stack, then begin to call network layer, transport layer, a series of function processing procedures of session layer and application layer, the function of realization real-time protocol (RTP) stack; If the real-time protocol (RTP) timer event, then call function is handled session layer and transport layer timer, is used for the step of timeout treatment.
Described MCB module gateway management protocol stack manager task, be intended to realize administrator function, its process comprises states that at first function variable and minuend call, enter recurrent state then, after having recorded network management command, resolve this order, and generation needs the network management messages data of transmission, call function sends administrative messag to the real-time protocol (RTP) stack, application layer-session layer-transport layer-network layer in the real-time protocol (RTP) sends a message to the step that MVB and/or WTB bus get on to the path of WTB link layer.
Described MCB module network management protocol stack succedaneum's step, be intended to finish the preparation of receiving network managing message, its process comprises the function variable of at first stating this process, and resolve the network management command message receive by the function that is called, carry out related command, generate command response message, enter the step of duty cycle then.
Described serial ports monitors the step of communication task, and 232 mouthfuls that are intended to finish from PC receive configuration information and network management command, and its process comprises to be done parameter configuration and send the step of webmaster order to manager's task the TCN gateway.
Compared with prior art, the invention has the advantages that the key that has broken through restriction China train communication network technique, filled up the blank of domestic TCN gateway communication device, for the standardization that realizes multiple rail vehicle network communication is laid a good foundation.
Description of drawings
Drawings attached 12 width of cloth of the present invention, wherein:
Fig. 1 is a TCN network topological diagram of the present invention
Fig. 2, MCB module hardware structured flowchart
Fig. 3, WTB module hardware structured flowchart
Fig. 4, MCB inside modules parallel bus interface circuit diagram
Fig. 5, WTB inside modules parallel bus interface circuit diagram
Fig. 6, MCB module software system global structure schematic diagram
Fig. 7, MCB module real-time protocol (RTP) stack task task _ messenger () flow chart
Fig. 8, MCB module gateway management protocol stack manager task task _ manager () flow chart
Fig. 9, MCB module network management protocol stack succedaneum task task _ agent () flow chart
Figure 10, WTB modular program flow chart
Figure 11 data communication network topological diagram
Figure 12 Data Communication in Computer Networks flow chart.
Embodiment
As Fig. 1~shown in Figure 12.A kind of TCN gateway and the means of communication thereof.Comprising:
1, gateway hardware system
The gateway hardware system is the operation platform of TCN protocol stack sofeware, is made up of MCB module, WTB module, PW power module.Wherein the MCB module is made up of CPU and MVB unit, CPU is operation TCN protocol stack sofeware and user class application software under the Nucleus real time operating system is supported, MVB is responsible for the unit transmitting-receiving of MVB data and supports the bottom function of link layer.WTB module operation WTB link software is responsible for the transmitting-receiving of WTB data and the bottom function of support WTB link.Wherein the WTB module is connected by inner parallel bus with the MCB module, in order to the exchanges data of two intermodules.
1.1MCB module
The host CPU chip of this module is the Net+50 microcontroller, this controller adopts the ARM7TDMI kernel, be 32 high-performance embedded risc processors, high primary frequency is 130MHz, adopt 3 grades of instruction pipelines, use single 32 bit data bus move instruction and data, the data access of memory is supported 8,16,32.And have a following resource: the dma controller of 10/100BaseT Ethernet interface, 10 passages, 2 be HDLC/UART/SPI serial port etc. fully independently.
1) general peripheral circuit comprises:
A, perpetual calendar and mainboard monitoring are responsible for by chip DS1629, and the temperature and the perpetual calendar time of CPU board is provided.Watchdog circuit realized by chip I MP706 and peripheral circuit, when systems soft ware normally moves, and the periodic refreshing house dog.If the systems soft ware fault does not refresh house dog in official hour, then watchdog circuit sends reset signal, and system reset is also reruned.
B, 232 serial communication interfaces provide the serial communication service function of Target Board and host computer.The ethernet communication mouth provides the standard ethernet communication interface, supports two kinds of communication modes of 10M/100M.
C, memory module comprise the SDRAM of 16M, are program running after powering on and data space, the Flash of 8M, and wherein 4M is the system program memory space, 4M is syscon and user program memory space.
2) the internal bus interface circuit is responsible for the data buffering and the level conversion of address wire, data wire and control line between WTB plate and MCB plate, and two parallel data communication passages between plate are provided.
3) MVBCS01 interface circuit
The protocol controller chip of this module is the MVBCS01 communication controller, is the special chip at rolling stock level network communication design, is responsible for the following function of link layer in the MVB agreement, has following main feature:
The transmission of a, supporting process data, message data, monitoring data (incident arbitration, equipment state polling, forwarding function with sovereign right), and have bus management and function for monitoring;
B, employing Manchester's code mode, message transmission rate is 1.5MHZ, has signal quality, collision, chat monitoring function, and 4095 logic ports and device port are arranged;
C, support bit pattern data are forced the automaticdata comparison mechanism;
D, supporting bus management function are supported multiple prime frame send mode, can send single prime frame by MFS prime frame groove register, also can be by setting up the automatic or timed sending prime frame of prime frame table.
In addition, MVBCS01 also has the place port to refresh overtime detectability, and two general purpose timers are arranged, and a plurality of interrupt vectors can be provided, and realizes such as functions such as equipment state polling, sovereignty transfers with convenient.
4) MAU dielectric circuit
The MVB-MAU channel circuit is responsible for the MVB data transmit-receive and is driven, and supports the featuring diplonema redundancy function, can adopt ESD+ according to actual needs, the EMD twisted-pair feeder.
1.2WTB module
The WTB module is the hardware platform of operation WTB link software, and its hardware structure diagram as shown in Figure 3.
Wherein CPU is 8 bit processors, is responsible for operation WTB link software, because WTB link software configuration is more clear, need not the real time operating system support herein.Wherein, external memory storage is configured to the SRAM of 128K and the flash of 128K; Hdlc controller is responsible for the serial data from the WTB bus is changed into the parallel data that CPU needs, and carries out the high-speed data exchange by dma mode and CPU; WTB MAU interface transmitting-receiving WTB bus data adopts featuring diplonema redundancy to strengthen the reliability of network data exchange; Fpga chip is responsible for realizing WTB communication controller function, comprises Manchester's code decoding function (communication speed is 1Mbit/sec), major-minor passage handoff functionality, signal quality function for monitoring, redundant channels handoff functionality etc.
1.3 inner parallel bus communication
Inner parallel bus is used for the data communication of MCB module and WTB intermodule, and the data type of communication comprises monitoring data, process data and message data, sees Fig. 4, Fig. 5.
Inner parallel bus is defined as follows table
Signal name The signal implication
VD00~VD15 16 position datawire CPU<-FPGA
VA01~VA23 23 address wires, (implicit 24 position datawires) MCB-〉WTB
VSYSFAIL0 Thrashing, MCB-〉WTB
VSYSRESET System reset, MCB-〉WTB
VCS4 Chip selection signal, MCB-〉WTB
VOE Read signal, MCB-〉WTB
VW Write signal, MCB-〉WTB
VIACK Interrupt acknowledge signal, MCB-〉WTB
VAM0~VAM1 Access module is selected signal, MCB-〉WTB
VIRQ Interrupt request singal, WTB-MCB
VDTACK The transfer of data answer signal, WTB-〉MCB
VSYSFAIL1 Thrashing, WTB-〉MCB
VCC The 5V power supply signal
GND Ground
Net50 (CPU of MCB plate) adopts the asynchronous bus access module that the shared memory SM of WTB plate is conducted interviews, at first VOE read/the VW write signal is effective, VA01~VA23 is effective for the address wire signal, and access module signal VAM0~VAM1 has been set to the SM access module, and chip selection signal VCS4 is effective, the last data of data wire VD00~VD15 are effective, the FPGA of application WTB module arbitrates, if FPGA arbitrates the visit to Net50, access path is opened, data among the Net50 read/write SM, otherwise VDTACK *Invalidating signal, Net50 insert latent period automatically up to obtaining access right.
Signal VSYSFAIL0 is a MCB modular system fault-signal in addition, is used to notify the WTB module.VSYSFAIL1 is a WTB modular system fault-signal, is used to notify the MCB module.
VIRQ is the interruption application signal from the WTB module, and VIACK knows signal from the interruption of MCB module, as expanded function.
2 software systems
Net TCN gateway software system comprises WTB module software and MCB module software two parts.After system powered on, MCB module software and WTB module software moved simultaneously, and wherein the MCB module realizes under the Nucleus real time operating system is supported, function is very complicated, and the WTB module software is simple relatively.
2.1MCB module software design and operation principle
2.1.1MCB module software general structure design
See Fig. 6, this module software mainly monitors that by gateway self diagnosis module, application initializes modules A pplication_Init (), system initiation task Task_Sysinit (), serial ports communication task Task_Supervision (), gateway management protocol stack manager task task _ manager (), NMP stack succedaneum task task _ agent (), real-time protocol (RTP) stack task task _ messenger (), WTB message between different boards data communications task Task_WTBPoll (), MCB module and WTB intermodule process data marshalling task task _ PDM () etc. form.
After (resetting), at first enter gateway self diagnosis module after system powers on, this module is to each hardware of gateway
Peripheral hardware is diagnosed, and whether check has hardware fault.Enter real time operating system then, in Application_Init (), create each task, and carry out dispatching management.Wherein Application_Init () and Task_Sysinit () only carry out once, and other task is then according to timeslice and the management of priority round-robin scheduling.
2.1.2MCB module gateway self diagnosis modular design
This is the module of at first carrying out after system powers on.This module is configured the important register of Net50 earlier after powering on, it is started working, then DS1639 chip, Ethernet chip, MVBC chip are carried out initial configuration, and each module diagnosed, after self diagnosis passes through, program enters the Application_Init () module of real time operating system, if fault is arranged, lights malfunction indicator lamp and reports to the police.
2.1.3MCB module application initialization module Application_Init () design
In Nucleus operating system, at first enter Application_Init (), transfer NU_Create_Memory_Pool () function creation Installed System Memory pond, call NU_Allocate_Memory () and NU_Create_Task () storage allocation and creation task Task_Sysinit (), Task_Supervision (), Task_manager (), Task_agent (), Task_messenger (), Task_led (), Task_WTBPoll (), Task_PDM () then respectively successively.
After above-mentioned each task creation success, will under the scheduling of Nucleus real time operating system, finish every function of MCB module.
2.1.4MCB modular system initialization task Task_Sysinit ()
System initiation task is the task that operating system is at first called, and this task is only carried out once, for other task is carried out the necessary preliminary examination work of doing.
Finish following work in system's preliminary examination task in order: serial ports preliminary examinationization, the definition of arbitration binary tree, the establishment of message link time, senior MVBC interrupt work such as Communications service program creation, MVB link preliminary examinationization.
2.1.5WTB and MCB message between different boards data communications task Task_WTBPoll ()
This task is responsible for realizing the application message between WTB plate and MCB plate and is monitored the message data communication.
Enter duty cycle, judge whether the SM shared memory has application message, send to real-time protocol (RTP) stack task task _ messenger () if having then from SM, take out application message.Whether in SM have control messages, if having then send network management messages in Task_agent () OAMAgent person task if judging then.
2.1.6MCB module and WTB intermodule process data marshalling task task _ PDM ()
This task is responsible for the process data route communication between MVB and WTB.Enter after the Task_PDM () task after the circulation, task is taken out the process data that will organize into groups immigration (mailing to the MVB bus) or departure (mailing to the WTB bus) from the communication memory block of MVB or WTB earlier, then, the process variables that obtains is carried out preliminary treatment, whether the checkout procedure data are valid data, the actuating logic computing, and operation result write corresponding MVB or the communication memory block of WTB.
2.1.7MCB module real-time protocol (RTP) stack task task _ messenger () design
Program flow diagram is seen Fig. 7.This task realizes the function of RTP real-time protocol (RTP).Initialization real-time protocol (RTP) stack task at first, and start the protocol stack timer by Control_Timer ().Task enters recurrent state then, and whether check has MVB link event or timer event to arrive.If MVB chain circuit message Event Description MVB link is received message data, at this moment this task call function S end_MSG_NetWork (), this function sends message data to the real-time protocol (RTP) network layer, and begin to call a series of function processing procedures of network layer, transport layer, session layer and application layer, realize the function (seeing the IEC61375 agreement for details) of real-time protocol (RTP) stack.Judge then whether this communication network topology changes, if topology change, then cancellation comprises the session layer and the transport layer example of invalid topology counter, loses the message bag that this is received.
If the real-time protocol (RTP) timer event, then call function Mod_Session_Timer () and Mod_Transport_Timer () handle the timer of session layer and transport layer, are used for timeout treatment.
2.1.8MCB module gateway management protocol stack manager task task _ manager () design
Program flow diagram is seen Fig. 8.This task realizes the network manager function, generates and sends network management control message and gives real-time protocol (RTP) task task _ messeger ().After entering task, at first the function variable of Manager_call_confirm () process is pointed in statement, and this function is called by Task_messenger () when call request finishes, and is used to return webmaster information order execution result.Task enters recurrent state then, after having monitored network management command, resolve network management command, and generation needs the network management messages data of transmission, call function am_call_request () sends network management messages to real-time protocol (RTP), in real-time protocol (RTP) software, from application layer, through session layer, transport layer, network layer to the WTB link layer, send a message to TCN (MVB or WTB) bus and get on.
2.1.9MCB module network management protocol stack succedaneum task task _ agent () design
Program flow diagram is seen Fig. 9.This task mainly is to do homework for Task_messenger () receiving network managing message, do not do the execution of network management messages order, concrete execution then in task Task_messenger () recessive call function agent_receive_confirm () realize.
After entering task task _ agent (), at first the function variable of agent_receive_confirm () process is pointed in statement, this function is resolved the network management command message of receiving, carry out related command, and generation command response message, the function variable of agent_reply_confirm () process is pointed in statement, this function calls after replying finishing one, notice Task_Agent () can receive another one webmaster message, calls am_bind_replier () binding network management and is replying function.Enter duty cycle then.In duty cycle, if whether the detection that does not stop can receive the webmaster message flag, if can show a gateway commands message disposes, succedaneum's call function am_receive_request () binding network management respondent example prepares to receive next network management command message.
2.1.10 serial ports monitors communication task Task_Sup () design
This task is responsible for receiving configuration information and network management command from 232 mouthfuls of PC, and the TCN gateway is done parameter configuration and sent the webmaster order to Task_manager ().
2.2WTB module software design and operation principle
WTB module function comparatively speaking is simpler, does not have the operating system support, mainly moves WTB link software, finishes to enter conventional host node or conventional from node state after WTB just moves, and sees Figure 10.
After system powers on or resets, carry out CPU configuration and peripheral hardware self check earlier, and to MCB module transmission self-detection result.Call function BP_Init () initialization backboard communication process is called WTB_Init () initialization WTB link software process then.
Then enter major cycle, beginning recursive call BP_Process () process and WTB_Process () process.Wherein BP_Process () process realizes message data, process data and the monitoring data communication in WTB plate and RAM Shared district.WTB_Process () process is used to realize the WTB link layer functionality, comprises host process, assisted process and WTBC protocol controller interrupt service routine.
2.3 gateway software system works principle explanation
Gateway supporting process data, monitoring data and three kinds of data communication patterns of message data, wherein the Remote Management of Network order in transmission over networks, comprises the communication process of monitoring data and message data as the application message data.
Show the situation of carrying out process data, message and monitoring data communication between two gateways by network topology structure shown in Figure 11 herein, and its operation principle is described, the data communication flow process as shown in figure 12.
At first, behind gateway GW1 and the GW2 electrification reset, the Executive Module self check of MCB elder generation enters application initializes modules A pplication_Init () then and creates each task.After task creation finished, the Nucleus real time operating system began according to task priority and each task of time slice scheduling, and each task module normally moves.The WTB module is finished WTB self check process simultaneously, enters the major cycle of WTB link, round-robin scheduling process BP_Process () and WTB_Process ().At this moment, two gateways all enter normal operating conditions, wait for transmitting-receiving process data or message data.
Suppose to send the MVB process data port of a process data to gateway GW2 by the MVB process data port of gateway GW1 this moment, then communication process is as follows:
For gateway GW1,
The first step, suppose that the MCB module receives the process data that needs transmission from the MVB bus;
Second step, MCB module design task the Task_PDM () execution that circulate, and call MVB link process from the process data that the process data place port taking-up of MVB will send, carry out the process variables preliminary treatment, then the result is write the SM shared memory;
The 3rd step, WTB module obtain data by calling BP_Process () process from the SM shared memory, and by WTB_Process () process this process data are write the WTB memory block, and send on the WTB bus by the WTB source port;
At this moment, gateway 2 is received the WTB process data from gateway 1, therefore for gateway 2,
The 4th step, WTB module receive process data from gateway 1 from the WTB bus, and by WTB_Process () process this process data are write the SM shared memory;
The 5th step, MCB module design task the Task_PDM () execution that circulate from the process data that the shared memory taking-up will send, are carried out the process variables preliminary treatment, call the source port that MVB link process is write the result MVB communication memory block then;
The 6th the step, when the bus master on the MVB bus is polled to this source port, these data will be sent on the MVB bus.
So just finished whole process data communication process.
Suppose to produce a MVB equipment state order (for the TCN gateway, it is a WTB equipment, is again MVB equipment) of reading gateway GW2 by gateway GW1 this moment, its communication process is as follows:
For gateway GW1,, read the MVB equipment state of gateway GW2 by 232 mouthfuls of network monitoring orders that receive from host computer.So, on the GW1 gateway device
The first step, GW1 call serial ports and monitor communication task Task_Sup (), and it is the network monitoring order that this task is judged, and then this order is passed to network management task Task_manager () by formation.
Task task _ manager () that second step, circulation are carried out, detect network management command after, resolve this order, and generate the network management messages data that need transmission.
The 3rd goes on foot, calls Applied layer interface function am_call_request () sends network management messages to real-time protocol (RTP), is sent to the shared memory SM of control messages to MCB module and WTB module through session layer, transport layer, network layer.
The 4th step, in the WTB module, from SM, take out the message data that comprises network management command that will send by BP_Process () process, and send this message data by WTB_Process () process and on the WTB bus, go.
At this moment, GW2 receives telecommunication network control messages from GW1 from network, therefore for GW2,
The WTB module of the 5th step, GW2 receives the message data from the WTB link, operation WTB_rocess () process receiving network managing command messages data, and call BP_rocess () process, this message data is write the shared memory SM of MCB module and WTB module.
Message data communication task the Task_WTBPoll () circulation of the 6th step, MCB module is carried out, and detecting the SM shared memory has network management command message, calls the network layer that Send_MSG_NetWork () function sends to real-time protocol (RTP);
The 7th the step, begin sequence call transport layer, session layer function from the real-time protocol (RTP) network layer, be invoked at the application layer function agent_receive_confirm () of appointment in the Task_Agent () task at last, this function is resolved the network management command message of receiving, the MVB equipment state of reader node, and the state encoding one-tenth order response message of reading;
The 8th step, real-time protocol (RTP) call session layer, transport layer, network layer function write order successively and acknowledge message to shared memory SM;
The 9th the step, in the WTB module, call BP_Process () process and from SM, take the response message data away, call WTB_Process () process and send a message on the WTB bus;
At this moment, response message turns back to the GW1 gateway, therefore for for GW1,
The WTB_Process () process of the WTB module of the tenth step, gateway GW1 is received the response message from GW2, has comprised the response message of this remote network management command request in this response message;
The 11 step, WTB module invokes BP_Process () process are write the SM shared memory with response message;
The 12 step, take out response message, send to the network layer of real-time protocol (RTP) by the Task_WTBPoll () task of MCB module;
The 13 step, real-time protocol (RTP) successively call from network layer, through transport layer, session layer, are invoked at the function Manager_call_confirm () that states in the Task_Manager () task at last, return webmaster information order execution result.
So far, a whole network administration order finishes by the communication of calling-answering.
Above-mentioned two communication processs are executed in parallel, and are separate, and finish by the real time operating system scheduling.

Claims (15)

1. TCN gateway communication device, it is characterized in that comprising: MCB module and WTB module, wherein said MCB module is made up of 32 central processing units, MVB unit, MVBCS01 protocol controller and peripheral circuit, under the Nucleus real time operating system is supported, provide the hardware platform of the operation TCN network management software, real-time protocol (RTP) stack software and MVB link protocol software; Described WTB module is made up of 8 bit CPU processors, WTBC protocol controller and peripheral circuit, and the operation platform of WTB link software is provided; Carry out the process data of WTB source, place port, the monitoring data of WTB and/or the data communication of message data by inner parallel bus circuit between MCB module and the WTB module.
2. a kind of TCN gateway communication device according to claim 1, it is characterized in that 32 central processing units in the described MCB module are made of chip Net+50, its peripheral circuit comprises perpetual calendar and mainboard supervisory circuit, watchdog circuit, 232 serial communication interfaces and ethernet communication mouth circuit and memory circuitry, provide the temperature and the perpetual calendar time of CPU board, the normal operation of monitor system software, the serial communication function of Target Board and host computer is provided and supports two kinds of communication modes of 10M/100M and/or provide data run and memory space for system by the ethernet communication interface.
3. a kind of TCN gateway communication device according to claim 1, it is characterized in that described MVBCS01 protocol controller is made of MVBCS01 communication controller chip, its interface circuit is supported MVB bottom chain circuit function, supports MAU to realize the MVB physical layer function, is responsible for the transmitting-receiving of MVB data.
4. a kind of TCN gateway communication device according to claim 1, it is characterized in that described inner parallel bus circuit is responsible for the data buffering and the level conversion of address wire, data wire and control line between WTB plate and MCB plate, the passage of the parallel data communication between two plates is provided.
5. a kind of TCN gateway communication device according to claim 1, it is characterized in that described WTB module is made up of 8 bit CPU processors, external memory storage circuit, MAU interface and hdlc controller, wherein said hdlc controller is responsible for converting the serial data from the WTB bus to parallel data that CPU needs, and carries out the high-speed data exchange by dma mode and CPU.
6. the means of communication of a TCN gateway as claimed in claim 1 comprise: the step with WTB module software and MVB software are packed the TCN gateway into and powered on or reset is characterized in that also comprising:
The treatment step of MCB module gateway self diagnosis,
The initialized treatment step of MCB module application,
The initialized treatment step of MCB modular system,
The treatment step of WTB and MCB message between different boards data communication,
The treatment step of MCB module and the marshalling of WTB intermodule process data,
MCB module real-time protocol (RTP) stack task handling step,
MCB module gateway management protocol stack manager task handling step,
MCB module network management protocol stack succedaneum task handling step,
Serial ports monitors the treatment step of communication task, and/or
Send the step of self-detection result to the peripheral hardware self check of CPU configuration in the WTB module and to the MVB module,
The step of call function initialization backboard communication process and initialization link software process,
Enter major cycle, the step of beginning recursive call BP_Pvocess () process and WTB_Process () process.
7. the means of communication of TCN gateway according to claim 6, the step that it is characterized in that described MCB module gateway self diagnosis comprises that at first the important register to central processing unit Net+50 is configured, then DS1639 chip, Ethernet chip and MVBC chip are carried out initial configuration, and above-mentioned each module diagnosed, behind self diagnosis, program enters the Applieation_Init () module of implementation and operation system and/or the step that faulty indication is reported to the police.
8. the means of communication of TCN gateway according to claim 7, it is characterized in that the initialized step of described MCB module application is included in enters behind this task module call function and creates memory pool, then storage allocation and create the step that system initiation task, serial ports monitor task, gateway management protocol stack manager task, real-time protocol (RTP) stack task, flashing light task, WTB message between different boards data communications task and MCB module and WTB intermodule process data are organized into groups task.
9. the means of communication of TCN gateway according to claim 8 is characterized in that the initialized step of described MCB modular system comprises the step that realizes serial initialization, the definition of arbitration binary tree, the establishment of message link time, senior MVBC interruption Communications service program creation and MVB link initialization.
10. the means of communication of TCN gateway according to claim 9, it is characterized in that described WTB and MCB message between different boards step according to communication task, the data communication that is intended to realize the application message between WTB plate and MCB plate and monitors message, its process comprises and enters duty cycle, judge whether the SM shared memory has application message, have then and from SM, to take out application message and send to real-time protocol (RTP) stack task; Whether in SM have control messages, have then to send the step of network management messages in the OAMAgent person task if judging then.
11. the means of communication of TCN gateway according to claim 10, the step that it is characterized in that described MCB module and WTB intermodule process data marshalling task, be intended to realize the process data route communication between MVB and WTB, after its process comprises that entering the intermodule process data organizes into groups duty cycle, take out from the communication memory block of MVB or WTB earlier and will organize into groups immigration or departure, promptly mail to the MVB bus or mail to the process data of WTB bus, then the process variables that obtains is carried out preliminary treatment, check its validity, the actuating logic computing, and its operation result is write the step of the communication memory block of corresponding MVB or WTB.
12. the means of communication of TCN gateway according to claim 11, the step that it is characterized in that described MCB module real-time protocol (RTP) stack task, be intended to realize the function of real-time protocol (RTP), its process comprises at first initialization real-time protocol (RTP) stack task and starts the protocol stack timer, enter recurrent state then, whether check has link event or timer event to arrive, if MVB chain circuit message incident, at this moment this task call function S end MSG Network (), message tree certificate is sent to the network layer of real-time protocol (RTP) stack, and begin to call network layer, transport layer, a series of function processing procedures of session layer and application layer, the function of realization real-time protocol (RTP) stack; If the real-time protocol (RTP) timer event, then call function is handled session layer and transport layer timer, is used for the step of timeout treatment.
13. the means of communication of TCN gateway according to claim 12, it is characterized in that tasks such as described MCB module gateway management protocol stack management, be intended to realize administrator function, its process comprises states that at first function variable and minuend call, enter recurrent state then, after having recorded network management command, resolve this order, and generation needs the network management messages data of transmission, call function sends administrative messag to the real-time protocol (RTP) stack, application layer-session layer-transport layer-network layer in the real-time protocol (RTP) sends a message to the step that MVB and/or WTB bus get on to the path of WTB link layer.
14. the means of communication of TCN gateway according to claim 13, the step that it is characterized in that described MCB module network management protocol stack succedaneum, be intended to finish the preparation of receiving network managing message, its process comprises the function variable of at first stating this process, and resolve the network management command receive by the function that is called, carry out related command, and generate command response message, enter the step of duty cycle then.
15. the means of communication of TCN gateway according to claim 14, it is characterized in that described serial ports monitors the step of communication task, 232 mouthfuls that are intended to finish from PC receive configuration information and network management command, and its process comprises to be done parameter configuration and send the step of webmaster order to manager's task the TCN gateway.
CNA2007100110177A 2007-04-18 2007-04-18 TCN gateway communication device Pending CN101127739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100110177A CN101127739A (en) 2007-04-18 2007-04-18 TCN gateway communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100110177A CN101127739A (en) 2007-04-18 2007-04-18 TCN gateway communication device

Publications (1)

Publication Number Publication Date
CN101127739A true CN101127739A (en) 2008-02-20

Family

ID=39095663

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100110177A Pending CN101127739A (en) 2007-04-18 2007-04-18 TCN gateway communication device

Country Status (1)

Country Link
CN (1) CN101127739A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290513B (en) * 2008-05-30 2010-06-09 株洲南车时代电气股份有限公司 Alternating-current actuating system management and communication controller
CN101895549A (en) * 2010-07-21 2010-11-24 中国北车股份有限公司大连电力牵引研发中心 Conversion gateway and conversion method of vehicle communication network data
CN102081402A (en) * 2011-01-25 2011-06-01 中国人民解放军国防科学技术大学 Vehicle-mounted control and diagnosis system for medium-low speed maglev train
CN102801597A (en) * 2012-08-30 2012-11-28 北京交通大学 Ethernet-based train communication network implementation method
CN101409727B (en) * 2008-11-24 2012-12-12 株洲南车时代电气股份有限公司 Document transmission method and apparatus
CN103152250A (en) * 2011-12-07 2013-06-12 中国北车股份有限公司大连电力牵引研发中心 Train communication network (TCN) gateway application configuration method and TCN gateway application configuration system
CN103684999A (en) * 2012-09-06 2014-03-26 中国科学院软件研究所 MVB-WTB gateway based on MPC860
CN103699091A (en) * 2013-12-23 2014-04-02 南车青岛四方机车车辆股份有限公司 Railway vehicle communication network
CN103731343A (en) * 2012-10-11 2014-04-16 中国科学院软件研究所 MVB-WTB gateway based on LPC2468 and working method thereof
CN104144026A (en) * 2013-05-06 2014-11-12 中国科学院软件研究所 MVB network card module based on embedded processor and data transmission method
CN104468340A (en) * 2013-11-08 2015-03-25 成都万创科技有限责任公司 Method for utilizing computer program for controlling gateway equipment of Internet of Things to operate
CN106375072A (en) * 2016-08-29 2017-02-01 中车大连机车车辆有限公司 Redundancy control method for locomotive communication network
CN106941484A (en) * 2017-01-23 2017-07-11 斑马信息科技有限公司 The multi-chip communication protocol system and its method of internet automobile
CN107135102A (en) * 2017-05-05 2017-09-05 中车信息技术有限公司 A kind of train UIC gateway redundancys switching device and its control method
CN107181657A (en) * 2017-05-31 2017-09-19 中车信息技术有限公司 A kind of WTB link layer interfaces adapter and its implementation
CN109862034A (en) * 2019-03-18 2019-06-07 中车青岛四方车辆研究所有限公司 Data transmission processing system, gateway and data transmission processing method
CN109981370A (en) * 2019-03-29 2019-07-05 烽火通信科技股份有限公司 Business management method, the apparatus and system of the cell tray of different bus and agreement

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290513B (en) * 2008-05-30 2010-06-09 株洲南车时代电气股份有限公司 Alternating-current actuating system management and communication controller
CN101409727B (en) * 2008-11-24 2012-12-12 株洲南车时代电气股份有限公司 Document transmission method and apparatus
CN101895549B (en) * 2010-07-21 2014-06-11 中国北车股份有限公司大连电力牵引研发中心 Conversion gateway and conversion method of vehicle communication network data
CN101895549A (en) * 2010-07-21 2010-11-24 中国北车股份有限公司大连电力牵引研发中心 Conversion gateway and conversion method of vehicle communication network data
CN102081402A (en) * 2011-01-25 2011-06-01 中国人民解放军国防科学技术大学 Vehicle-mounted control and diagnosis system for medium-low speed maglev train
CN102081402B (en) * 2011-01-25 2012-11-14 中国人民解放军国防科学技术大学 Vehicle-mounted control and diagnosis system for medium-low speed maglev train
CN103152250A (en) * 2011-12-07 2013-06-12 中国北车股份有限公司大连电力牵引研发中心 Train communication network (TCN) gateway application configuration method and TCN gateway application configuration system
CN103152250B (en) * 2011-12-07 2016-01-27 中国北车股份有限公司 TCN gateway application collocation method and system
CN102801597B (en) * 2012-08-30 2014-11-05 北京交通大学 Ethernet-based train communication network implementation method
CN102801597A (en) * 2012-08-30 2012-11-28 北京交通大学 Ethernet-based train communication network implementation method
CN103684999A (en) * 2012-09-06 2014-03-26 中国科学院软件研究所 MVB-WTB gateway based on MPC860
CN103684999B (en) * 2012-09-06 2016-12-21 中国科学院软件研究所 A kind of MVB-WTB gateway based on MPC860
CN103731343B (en) * 2012-10-11 2016-12-21 中国科学院软件研究所 MVB WTB gateway based on LPC2468 and method of work thereof
CN103731343A (en) * 2012-10-11 2014-04-16 中国科学院软件研究所 MVB-WTB gateway based on LPC2468 and working method thereof
CN104144026A (en) * 2013-05-06 2014-11-12 中国科学院软件研究所 MVB network card module based on embedded processor and data transmission method
CN104468340A (en) * 2013-11-08 2015-03-25 成都万创科技有限责任公司 Method for utilizing computer program for controlling gateway equipment of Internet of Things to operate
CN103699091B (en) * 2013-12-23 2016-03-23 中车青岛四方机车车辆股份有限公司 A kind of railway vehicle communication network
CN103699091A (en) * 2013-12-23 2014-04-02 南车青岛四方机车车辆股份有限公司 Railway vehicle communication network
CN106375072A (en) * 2016-08-29 2017-02-01 中车大连机车车辆有限公司 Redundancy control method for locomotive communication network
CN106375072B (en) * 2016-08-29 2021-05-25 中车大连机车车辆有限公司 Redundancy control method for locomotive communication network
CN106941484A (en) * 2017-01-23 2017-07-11 斑马信息科技有限公司 The multi-chip communication protocol system and its method of internet automobile
CN107135102A (en) * 2017-05-05 2017-09-05 中车信息技术有限公司 A kind of train UIC gateway redundancys switching device and its control method
CN107181657A (en) * 2017-05-31 2017-09-19 中车信息技术有限公司 A kind of WTB link layer interfaces adapter and its implementation
CN107181657B (en) * 2017-05-31 2020-07-17 中车信息技术有限公司 WTB link layer interface adapter and implementation method thereof
CN109862034A (en) * 2019-03-18 2019-06-07 中车青岛四方车辆研究所有限公司 Data transmission processing system, gateway and data transmission processing method
CN109981370A (en) * 2019-03-29 2019-07-05 烽火通信科技股份有限公司 Business management method, the apparatus and system of the cell tray of different bus and agreement
CN109981370B (en) * 2019-03-29 2022-01-11 烽火通信科技股份有限公司 Service management method, device and system for unit disks with different buses and protocols

Similar Documents

Publication Publication Date Title
CN101127739A (en) TCN gateway communication device
CN103731343B (en) MVB WTB gateway based on LPC2468 and method of work thereof
US6160795A (en) Network communication
JP2510606B2 (en) Local Area Data Distribution System
CN108156244A (en) Medium-and low-speed maglev train multibus hybrid network Train Control and management system
CN106776436B (en) A kind of communication means of the high-speed serial bus suitable for multiple spot interconnection
CN100535814C (en) Autonomous system with redundant configuration and its configuration method
CN201146536Y (en) MVB-WORLDFIP gateway based on ARM7CPU nucleus
CN102355507B (en) Serial communication interface with functions of self-detection and conflict detection
CN101937412B (en) System on chip and access method thereof
CN102035688B (en) Design method for rapidly controlling network link access
CN101394301A (en) Micro general hardware platform system, apparatus for telecommunication and computer, and communication method thereof
CN107689914A (en) A kind of communication means for the Multifunctional gateway for supporting TRDP agreements
CN208143246U (en) A kind of train multi-internet integration equipment
CN104243536A (en) Semi-physical simulation system of high-speed train control network
CN1812362B (en) Gateway unit
JPS6273897A (en) Remote communication exchange construction
CN110505168B (en) NI interface controller and data transmission method
CN2819315Y (en) MVB four-kind apparatus based on ARM7 kernel microprocessor
CN201813394U (en) Vehicle-mounted gateway device based on FlexRay bus
CN101464686B (en) Embedded sub-station based on CPCI bus
CN111865551B (en) Device and method for coordinated management of multistage system based on fast bus
CN201111326Y (en) TCN gateway
CN115657646B (en) Test method and device of CAN controller
US7480832B2 (en) Centralized error signaling and logging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: NORTH CHINA CO.

Free format text: FORMER OWNER: XIE BUMING

Effective date: 20080912

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20080912

Address after: Beijing Fengtai District city park is a district 15 building post encoding: 100076

Applicant after: China CNR Corporation Limited

Address before: R & D center, Dalian Locomotive & Rolling Stock Co., Ltd., No. 51, middle The Strip, Shahekou District, Liaoning, Dalian 116022, China

Applicant before: Xie Buming

ASS Succession or assignment of patent right

Owner name: CHINA CNR CORPORATION LIMITED DALIAN ELECTRIC TRAC

Free format text: FORMER OWNER: NORTH CHINA CO.

Effective date: 20090410

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20090410

Address after: Postal code 51, middle The Strip, Shahekou District, Liaoning, Dalian Province, China: 116022

Applicant after: Dalian Electric Traction Research & Development Center of China North Locomotive Co., Ltd.

Address before: Beijing Fengtai District city park is a district 15 building post encoding: 100076

Applicant before: China CNR Corporation Limited

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080220