CN104890703A - Motor train unit central control unit multithread processing method - Google Patents

Motor train unit central control unit multithread processing method Download PDF

Info

Publication number
CN104890703A
CN104890703A CN201510368418.2A CN201510368418A CN104890703A CN 104890703 A CN104890703 A CN 104890703A CN 201510368418 A CN201510368418 A CN 201510368418A CN 104890703 A CN104890703 A CN 104890703A
Authority
CN
China
Prior art keywords
thread
mvb
ccu
write
read
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
CN201510368418.2A
Other languages
Chinese (zh)
Other versions
CN104890703B (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 Rolling Stock Research Institute Co Ltd
Original Assignee
Qingdao Sifang Rolling Stock Research Institute
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 Qingdao Sifang Rolling Stock Research Institute filed Critical Qingdao Sifang Rolling Stock Research Institute
Priority to CN201510368418.2A priority Critical patent/CN104890703B/en
Publication of CN104890703A publication Critical patent/CN104890703A/en
Application granted granted Critical
Publication of CN104890703B publication Critical patent/CN104890703B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The invention relates to a train network control system, in particular to a motor train unit central control unit multithread processing method. A program is divided according to processes and threads to improve the executing efficiency and reliability of the program; the whole program is divided into two processes, namely a main CCU progress and an auxiliary CCU progress, the main CCU progress and the auxiliary CCU progress shares a memory to achieve data interaction, the phenomenon that the auxiliary CCU progress breaks down and accordingly program execution of the main CCU progress is influenced is avoided, and the thread executing reliability of a CCU is improved. An MVB information board card read-write thread and an MVB traction board card read-write thread which run synchronously are set in the main CCU progress, and a logic operation thread and a logic variable updating thread which run in a mutual exclusion mode are set, so that data reading seed and data operation real-timeliness of a central control unit are effectively improved.

Description

Motor train unit Central Processing Unit (CPU) multithread processing method
Technical field
The present invention relates to train network control system, specifically, relate to a kind of motor train unit Central Processing Unit (CPU) multithread processing method.
Background technology
As one of the core component of guideway vehicle, train network control system is a set of distributed computer control system, by the communication bus running through train, the mobile unit of network system equipment and each subscriber device is linked together, being the nerve center of each subsystem of contact guideway vehicle, is the basic platform coordinating each mobile unit collaborative work.
Network control system is made up of three parts usually: Central Processing Unit (CPU) (hereinafter referred to as CCU), controlled object and communication network.Wherein, CCU is the brain of network control system, and as bus management person in train network communication process, the functions such as primary responsibility Train Control, supervision and trouble diagnosing.The subsystem of all train network control systems is all carried out real-time communication by vehicle bus and CCU and is exchanged data.
In the CRH1/CRH 3/CRH 3/CRH 5 type motor train unit that China is existing, in CRH 5 type motor train unit, only realize production domesticization and the large-scale application of Central Processing Unit (CPU).
The Central Processing Unit (CPU) of the CRH 5 type motor train unit of production domesticization is divided into bottom communication software and application layer control logic software in software architecture.Wherein, bottom communication software radical function is: MVB Labcard driver, MVB communication, software scheduling, MPU Redundancy Management, MPU failed storage, the realization of MPU self-diagnostic function, communications protocol configuration etc.; Application layer control logic software radical function is: according to the computing of programming instruction control logic, judge incoming signal, provide logical action output signal, control, monitoring and protection train communication network Network Subsystem, complete every management work such as whole train control logic and trouble diagnosing.
At present, the CRH 5 type motor train unit of production domesticization pass through to be the different corresponding time slices of task matching in Software for Design aspect.But because existing train network control system lacks the support of operating system, all functions are all stored in same thread, cause the same time can only perform a task, other task is all in wait state, greatly reduces the real-time of CCU executing efficiency and network data transmitting-receiving.
Summary of the invention
The object of this invention is to provide a kind of motor train unit Central Processing Unit (CPU) multithread processing method, the quick accurately location of dowel bar sleeve pipe can be realized, improve installation effectiveness and the installation reliability of dowel bar sleeve pipe.
Technical scheme of the present invention is: motor train unit Central Processing Unit (CPU) multithread processing method, comprises CCU host process and CCU assisted process, comprises following methods step:
(1) CCU host process creates MVB task scheduling thread, MVB message word panel card initialization thread, MVB towing plate card initialization thread and logic operation thread;
(2) MVB task scheduling thread sends initializing signal to MVB message word panel card initialization thread and MVB towing plate card initialization thread, sends read-write to MVB information board read-write thread and MVB and draws board read-write thread;
(3) MVB message word panel card initialization thread waits initializing signal, once initializing signal receives successfully, then creates MVB information board read-write thread; MVB towing plate card initialization thread waits initializing signal, once initializing signal receives successfully, then create MVB and draw board read-write thread, and MVB information board read-write thread and MVB traction board read-write thread are two separate threads, and both can run simultaneously;
(4) MVB information board and MVB draw board and wait for read-write, once read-write receives successfully, send read-write settling signal, process variable and logical variable more new thread;
(5) logic operation thread and logical variable are more provided with mutual exclusion lock signal between new thread, and both mutual exclusions run;
(6) Sharing Memory Realization data interaction is passed through between CCU host process and CCU assisted process.
As preferably, described CCU host process comprises the logic operation thread be responsible for the MVB task scheduling thread relevant to MVB and be responsible for being correlated with train logic operation, and MVB task scheduling thread is realized by MVB and train unit and the information transmission that heavily joins between train unit.
As preferably, described MVB task scheduling thread comprises 5 sub-threads,
Thread (1): MVB message word panel card initialization thread, has been responsible for MVB message word panel card initialization task, has run once after powering on;
Thread (2): MVB towing plate card initialization thread, has been responsible for MVB towing plate card initialization task, has run once after powering on;
Thread (3): MVB information board read-write thread, has been responsible for the read-write operation of MVB information board;
Thread (4): MVB draws board read-write thread, has been responsible for the read-write operation that MVB draws board;
Thread (5): process variable and logical variable more new thread, has been responsible for the data interaction between MVB task scheduling thread and logic operation thread;
Thread (1), thread (3) and thread (5) are that order performs; The port read operation of thread (3) and thread (4) runs and can run simultaneously.
As preferably, for mutual exclusion runs between described logic operation thread and thread (5).
As preferably, described CCU assisted process realizes information interaction by Ethernet interface and CCU service software, in CCU assisted process, online updating 4 tasks of on-line monitoring that train network variable is correlated with, the online pressure of network variable, the amendment of train operation configuration file, upload and download and program are received and dispatched by Ethernet data by single thread.
The present invention's beneficial effect is compared with prior art:
The multithread processing method of motor train unit Central Processing Unit (CPU), according to process and thread dividing program, improves executing efficiency and performs reliability; By being two processes by whole procedure division, i.e. CCU host process and CCU assisted process, CCU host process and CCU assisted process, by Sharing Memory Realization data interaction, are avoided CCU assisted process to break down and the program that affects CCU host process performs, are improved the reliability of CCU thread execution; Arrange in CCU host process synchronized operation MVB information board read-write thread and MVB draw board read-write thread, and logic operation thread and the logical variable more new thread of mutual exclusion operation are set, effectively improve the data reading speed of Central Processing Unit (CPU) and the real-time of data manipulation.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of CCU host process of the present invention and CCU assisted process.
Fig. 2 is multithread processing method schematic diagram of the present invention.
Detailed description of the invention
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those skilled in the art obtain under the prerequisite of not making creative work, all belongs to protection scope of the present invention.
Embodiment 1
See Fig. 1, motor train unit Central Processing Unit (CPU) multithread processing method, based on QNX operating system, divides program according to process and thread.Be CCU host process and CCU assisted process according to process division, and by Sharing Memory Realization data interaction between CCU assisted process and CCU host process.
CCU host process, is divided into multiple thread execution according to thread by following task, comprises and is responsible for the MVB task scheduling thread relevant to MVB and is responsible for the logic operation thread relevant with train logic operation.
MVB task scheduling thread, it is the information transmission realized by MVB between train unit, namely realized by MVB and train unit and the information transmission that heavily joins between train unit, complete the function of the bus management of train network control system, Train Control, supervision and trouble diagnosing.
Above-mentioned MVB task scheduling thread comprises 5 sub-threads,
Thread (1): MVB message word panel card initialization thread, has been responsible for MVB message word panel card initialization task, has run once after powering on;
Thread (2): MVB towing plate card initialization thread, has been responsible for MVB towing plate card initialization task, has run once after powering on;
Thread (3): MVB information board read-write thread, has been responsible for the read-write operation of MVB information board;
Thread (4): MVB draws board read-write thread, has been responsible for the read-write operation that MVB draws board;
Thread (5): process variable and logical variable more new thread, has been responsible for the data interaction between MVB task scheduling thread and logic operation thread.
Wherein, thread (1), thread (3) and thread (5) are that order performs; The port read operation of thread (3) and thread (4) runs and can run simultaneously, solves the problem that single thread order reads, the performance period is long.
Logic operation thread, be responsible for realizing the thread relevant with train logic operation, in logic operation thread, mainly realize following functions:
Function (1): control logic computing, comprise incoming signal is judged, logical action provides output signal, realize the control to train communication network Network Subsystem, monitoring and protection, complete every management work such as whole train control logic and trouble diagnosing, train communication network Network Subsystem comprises the subsystems such as traction, braking, auxiliary, battery charger, illumination, passenger information, axle temperature, air-conditioning, door, pyrotechnics;
Function (2): failed storage function, fault trigger recording function and variable writing function, the storage of the key variables such as support unit running state and fault data, for failure analysis and location.
Be mutex relation between logic operation thread and thread (5), guarantee the alternative of thread to variable resource access, reach the protection to variable.
CCU assisted process realizes information interaction by Ethernet interface and CCU service software.In CCU assisted process, receive and dispatch following task by single thread by Ethernet data:
Task (1): the on-line monitoring that train network variable is relevant;
Task (2): the online pressure of network variable:
Task (3): the amendment of train operation configuration file, upload and download:
Task (4): the online updating of program.
Unlike the prior art, the CCU assisted process independent operating of this Central Processing Unit (CPU), and realize information interaction with CCU host process by the mode of shared drive, namely CCU assisted process will need monitoring and compulsory variable transferring to CCU host process by shared drive in CCU service software, the data of renewal are sent in shared drive by the timing of CCU host process, complete the data interaction between two processes.
See Fig. 2, thread in above-mentioned CCU host process and CCU assisted process and execution sequence are well defined, and based on QNX operating system, realize the Synchronous and Exclusive mechanism of thread, the CCU host process of motor train unit Central Processing Unit (CPU) and the multithread processing method of CCU assisted process are:
(1) CCU host process creates MVB task scheduling thread, MVB message word panel card initialization thread, MVB towing plate card initialization thread and logic operation thread;
(2) MVB task scheduling thread sends initializing signal to MVB message word panel card initialization thread and MVB towing plate card initialization thread, sends read-write to MVB information board read-write thread and MVB and draws board read-write thread;
(3) MVB message word panel card initialization thread waits initializing signal, once initializing signal receives successfully, then creates MVB information board read-write thread; MVB towing plate card initialization thread waits initializing signal, once initializing signal receives successfully, then create MVB and draw board read-write thread, and MVB information board read-write thread and MVB traction board read-write thread are two separate threads, and both can run simultaneously;
(4) MVB information board and MVB draw board and wait for read-write, once read-write receives successfully, send read-write settling signal, process variable and logical variable more new thread;
(5) logic operation thread and logical variable are more provided with mutual exclusion lock signal between new thread, guarantee that both mutual exclusions run;
(6) Sharing Memory Realization data interaction is passed through between CCU host process and CCU assisted process.
Wherein, in CCU host process, the MVB information board read-write thread and the MVB that arrange synchronized operation draw board read-write thread, and logic operation thread and the logical variable more new thread of mutual exclusion operation are set, both adopt synchronous operation, also comprised mutually exclusive operation, improve the reliability running variable, and the synchronous execution of thread, greatly improve the reading speed of network data and the real-time of data manipulation.
CCU host process and CCU assisted process are by Sharing Memory Realization data interaction, namely when CCU assisted process breaks down, the program not affecting CCU host process performs, compared with existing train network Ore-controlling Role, the execution of train CCU host process can not be affected because CCU service software breaks down, improve stability and the reliability of the execution of Central Processing Unit (CPU) program.

Claims (5)

1. motor train unit Central Processing Unit (CPU) multithread processing method, comprises CCU host process and CCU assisted process, it is characterized in that, comprise following methods step:
(1) CCU host process creates MVB task scheduling thread, MVB message word panel card initialization thread, MVB towing plate card initialization thread and logic operation thread;
(2) MVB task scheduling thread sends initializing signal to MVB message word panel card initialization thread and MVB towing plate card initialization thread, sends read-write to MVB information board read-write thread and MVB and draws board read-write thread;
(3) MVB message word panel card initialization thread waits initializing signal, once initializing signal receives successfully, then creates MVB information board read-write thread; MVB towing plate card initialization thread waits initializing signal, once initializing signal receives successfully, then create MVB and draw board read-write thread, and MVB information board read-write thread and MVB traction board read-write thread are two separate threads, and both can run simultaneously;
(4) MVB information board and MVB draw board and wait for read-write, once read-write receives successfully, send read-write settling signal, process variable and logical variable more new thread;
(5) logic operation thread and logical variable are more provided with mutual exclusion lock signal between new thread, and both mutual exclusions run;
(6) Sharing Memory Realization data interaction is passed through between CCU host process and CCU assisted process.
2. motor train unit Central Processing Unit (CPU) multithread processing method according to claim 1, it is characterized in that: described CCU host process comprises the logic operation thread be responsible for the MVB task scheduling thread relevant to MVB and be responsible for being correlated with train logic operation, MVB task scheduling thread is realized by MVB and train unit and the information transmission that heavily joins between train unit.
3. motor train unit Central Processing Unit (CPU) multithread processing method according to claim 2, is characterized in that:
Described MVB task scheduling thread comprises 5 sub-threads,
Thread (1): MVB message word panel card initialization thread, has been responsible for MVB message word panel card initialization task, has run once after powering on;
Thread (2): MVB towing plate card initialization thread, has been responsible for MVB towing plate card initialization task, has run once after powering on;
Thread (3): MVB information board read-write thread, has been responsible for the read-write operation of MVB information board;
Thread (4): MVB draws board read-write thread, has been responsible for the read-write operation that MVB draws board;
Thread (5): process variable and logical variable more new thread, has been responsible for the data interaction between MVB task scheduling thread and logic operation thread;
Thread (1), thread (3) and thread (5) are that order performs; The port read operation of thread (3) and thread (4) runs and can run simultaneously.
4. motor train unit Central Processing Unit (CPU) multithread processing method according to claim 3, is characterized in that: for mutual exclusion runs between described logic operation thread and thread (5).
5. motor train unit Central Processing Unit (CPU) multithread processing method according to claim 1, it is characterized in that: described CCU assisted process realizes information interaction by Ethernet interface and CCU service software, in CCU assisted process, online updating 4 tasks of on-line monitoring that train network variable is correlated with, the online pressure of network variable, the amendment of train operation configuration file, upload and download and program are received and dispatched by Ethernet data by single thread.
CN201510368418.2A 2015-06-29 2015-06-29 EMUs central control unit multithread processing method Active CN104890703B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510368418.2A CN104890703B (en) 2015-06-29 2015-06-29 EMUs central control unit multithread processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510368418.2A CN104890703B (en) 2015-06-29 2015-06-29 EMUs central control unit multithread processing method

Publications (2)

Publication Number Publication Date
CN104890703A true CN104890703A (en) 2015-09-09
CN104890703B CN104890703B (en) 2016-09-28

Family

ID=54023798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510368418.2A Active CN104890703B (en) 2015-06-29 2015-06-29 EMUs central control unit multithread processing method

Country Status (1)

Country Link
CN (1) CN104890703B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868448A (en) * 2019-09-29 2020-03-06 浙江合众新能源汽车有限公司 Vehicle-mounted data updating system and method
CN111884898A (en) * 2020-07-30 2020-11-03 中车青岛四方车辆研究所有限公司 Train network control system and fusion method based on software and hardware fusion
CN113641306A (en) * 2021-07-28 2021-11-12 通号城市轨道交通技术有限公司 Data interaction method and device for vehicle-mounted ATO and vehicle-mounted ATP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005067251A1 (en) * 2004-01-07 2005-07-21 Alstom Canada Inc. System and method for high-speed applications over a serial multi-drop communication network
AT505903A4 (en) * 2008-04-17 2009-05-15 Ct Comm Systems Gmbh Analog and digital train radio devices coupling method for railway station, involves delivering signal necessary for operation of analog train radio device to analog control device and/or analog train radio device via separate interface
CN102152806A (en) * 2011-03-04 2011-08-17 青岛四方车辆研究所有限公司 Control logic module library of train network control system
CN103043085A (en) * 2011-10-12 2013-04-17 中国北车股份有限公司大连电力牵引研发中心 Master control device and data transmission method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005067251A1 (en) * 2004-01-07 2005-07-21 Alstom Canada Inc. System and method for high-speed applications over a serial multi-drop communication network
AT505903A4 (en) * 2008-04-17 2009-05-15 Ct Comm Systems Gmbh Analog and digital train radio devices coupling method for railway station, involves delivering signal necessary for operation of analog train radio device to analog control device and/or analog train radio device via separate interface
CN102152806A (en) * 2011-03-04 2011-08-17 青岛四方车辆研究所有限公司 Control logic module library of train network control system
CN103043085A (en) * 2011-10-12 2013-04-17 中国北车股份有限公司大连电力牵引研发中心 Master control device and data transmission method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李常贤等: ""一种基于MVB网络通信的中央控制设备设计方案及其实现"", 《铁道学报》 *
杨子亮等: ""高速列车通信与控制网络的应用探讨"", 《机电产品开发与创新》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868448A (en) * 2019-09-29 2020-03-06 浙江合众新能源汽车有限公司 Vehicle-mounted data updating system and method
CN111884898A (en) * 2020-07-30 2020-11-03 中车青岛四方车辆研究所有限公司 Train network control system and fusion method based on software and hardware fusion
CN113641306A (en) * 2021-07-28 2021-11-12 通号城市轨道交通技术有限公司 Data interaction method and device for vehicle-mounted ATO and vehicle-mounted ATP

Also Published As

Publication number Publication date
CN104890703B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN106375072B (en) Redundancy control method for locomotive communication network
US20140082413A1 (en) System and method for using redundancy of controller operation
CN109507866A (en) A kind of double-machine redundancy system and method based on network address drift technology
CN105760241B (en) A kind of internal storage data deriving method and system
CN110784331B (en) Consensus process recovery method and related nodes
CN102708027B (en) A kind of method and system avoiding outage of communication device
CN108052371B (en) Railway TDCS/CTC system based on virtualization technology and application thereof
CN104890703A (en) Motor train unit central control unit multithread processing method
CN215835412U (en) Vehicle-mounted safety computer platform communication device
CN206178464U (en) Multi -protocols vehicle diagnostic system based on ARMCortex
CN107729190A (en) A kind of I/O path failure metastasis treating method and system
CN101960435B (en) Method and apparatus for performing a host enumeration process
CN111400086B (en) Method and system for realizing fault tolerance of virtual machine
CN112527647A (en) NS-3-based Raft consensus algorithm test system
CN108255123A (en) Train LCU control devices based on the voting of two from three software and hardware
CN102932118B (en) The method and system of the active and standby ruling of a kind of two-shipper
CN104951346A (en) Process management method for embedded system as well as system
CN206930983U (en) A kind of isomery design server mainboard
CN108382334A (en) A kind of intelligent driving automobile controller structure
CN202838467U (en) Monitoring recording plug-in unit
US20080077925A1 (en) Fault Tolerant System for Execution of Parallel Jobs
CN108616591A (en) Interface device and method for data exchange
CN113377404A (en) New energy domain controller safety monitoring chip program updating method and system
CN103454981A (en) Embedded multiple master-slave Modbus controller
CN113407472A (en) Embedded device and program parallel downloading method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 266000 Shandong province Qingdao City, Ruichang Road No. 231

Applicant after: CRRC QINGDAO SIFANG VEHICLE RESEARCH INSTITUTE CO., LTD.

Address before: 266000 Ruichang Road, Shandong, China, No. 231, No.

Applicant before: Qingdao Sifang Rolling Stock Research Institute Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant