CN104890703B - EMUs central control unit multithread processing method - Google Patents
EMUs central control unit multithread processing method Download PDFInfo
- Publication number
- CN104890703B CN104890703B CN201510368418.2A CN201510368418A CN104890703B CN 104890703 B CN104890703 B CN 104890703B CN 201510368418 A CN201510368418 A CN 201510368418A CN 104890703 B CN104890703 B CN 104890703B
- 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.)
- Active
Links
Landscapes
- Train Traffic Observation, Control, And Security (AREA)
Abstract
The present invention relates to train network control system, specifically, relate to a kind of EMUs central control unit multithread processing method, according to process and thread dividing program, improve executing efficiency and perform 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 are by Sharing Memory Realization data interaction, it is to avoid CCU assisted process breaks down and affects the program execution of CCU host process, improves the reliability that CCU thread performs;MVB information board read-write thread and the MVB traction board read-write thread of synchronous operation are set in CCU host process, and logical operations thread and the logical variable more new thread that mutual exclusion runs is set, it is effectively improved the data reading speed of central control unit and the real-time of data manipulation.
Description
Technical field
The present invention relates to train network control system, specifically, relate to a kind of EMUs central control unit multiple threads side
Method.
Background technology
One of core component as rail vehicle, train network control system is a set of distributed computer control system, passes through
The mobile unit of network system equipment and each subscriber device is linked together by the communication bus running through train, is contact railcar
The nerve centre of each subsystem, is the basic platform coordinating each mobile unit collaborative work.
Network control system is generally made up of three parts: central control unit (hereinafter referred to as CCU), controlled device and communication network.
Wherein, CCU is the brain of network control system, and as bus management person in train network communication process, is mainly responsible for row
The functions such as car control, supervision and fault diagnosis.The subsystem of all train network control systems is all entered with CCU by vehicle bus
Row real-time communication also exchanges data.
In the CRH1/CRH 3/CRH 3/CRH 5 type EMUs that China is existing, in CRH 5 type EMUs, only realize central authorities
The production domesticization of control unit and large-scale application.
The central control unit of the CRH 5 type EMUs of production domesticization is divided into bottom communication software and application layer to control in software architecture
Logic software.Wherein, bottom communication software major 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 controls logic software master
The function is wanted to be: to control logical operations according to programming instruction, judge input signal, provide logical operation output signal, control, supervise
Control and protect train communication network Network Subsystem, complete whole train control every management work such as logic and fault diagnosis.
At present, the CRH 5 type EMUs of production domesticization are by being the different task corresponding timeslices of distribution in software design aspect.
But owing to existing train network control system lacks the support of operating system, all functions are all stored in same thread, cause same
One time can only perform a task, and other task is in waiting state, is substantially reduced CCU executing efficiency and network number
Real-time according to transmitting-receiving.
Summary of the invention
It is an object of the invention to provide a kind of EMUs central control unit multithread processing method, the fast of dowel steel sleeve pipe can be realized
Victory is accurately positioned, and improves installation effectiveness and the installation reliability of dowel steel sleeve pipe.
The technical scheme is that EMUs central control unit multithread processing method, auxiliary including CCU host process and CCU
Help process, including following methods step:
(1) CCU host process create MVB task scheduling thread, MVB information board card initialization thread, MVB traction board initial
Change thread and logical operations thread;
(2) MVB task scheduling thread transmission initializing signal is initial to MVB information board card initialization thread and MVB traction board
Change thread, send read-write to MVB information board read-write thread and MVB traction board read-write thread;
(3) MVB information board card initialization thread waits initializing signal, and once initializing signal receives successfully, then create MVB
Information board read-write thread;MVB towing plate card initialization thread waits initializing signal, and once initializing signal receives successfully,
Then create MVB traction board read-write thread, and MVB information board read-write thread and MVB traction board read-write thread be two solely
Found thread, and both can run simultaneously;
(4) MVB information board and MVB traction board wait read-write, and once read-write receives successfully, sends and has read and write
Become signal, process variable and logical variable more new thread;
(5) being provided with mutual exclusion lock signal between logical operations thread and logical variable more new thread, both mutual exclusions run;
(6) by Sharing Memory Realization data interaction between CCU host process and CCU assisted process.
As preferably, described CCU host process includes being responsible for the MVB task scheduling thread relevant to MVB and being responsible for and train logic
The logical operations thread that computing is relevant, MVB task scheduling thread is by MVB realization and train unit and heavily joins row
Information transmission between car unit.
As preferably, described MVB task scheduling thread comprises 5 sub-threads,
Thread (1): MVB information board card initialization thread, has been responsible for MVB information board card initialization task, runs after powering on
Once;
Thread (2): MVB towing plate card initialization thread, has been responsible for MVB towing plate card initialization task, runs after powering on
Once;
Thread (3): MVB information board read-write thread, has been responsible for the read-write operation of MVB information board;
Thread (4): MVB traction board read-write thread, has been responsible for the read-write operation of MVB traction board;
Thread (5): process variable and logical variable more new thread, has been responsible for MVB task scheduling thread and logical operations thread
Between data interaction;
Thread (1), thread (3) and thread (5) are that order performs;Thread (3) and the port read operation of thread (4)
Operation can run simultaneously.
As preferably, run for mutual exclusion between described logical operations thread and thread (5).
As preferably, it is mutual that described CCU assisted process realizes information by Ethernet interface and CCU service software, auxiliary at CCU
Help in process, single thread receive and dispatch, by Ethernet data, on-line monitoring, the network variable that train network variable is correlated with
Online pressure, the amendment of train operation configuration file, upload and download and 4 tasks of online updating of program.
The present invention having the beneficial effect that compared with prior art
The multithread processing method of EMUs central control unit according to process and thread dividing program, improve executing efficiency and
Perform reliability;By being two processes, i.e. CCU host process and CCU assisted process by whole procedure division, CCU host process
With CCU assisted process by Sharing Memory Realization data interaction, it is to avoid CCU assisted process breaks down and affects CCU host process
Program perform, improve CCU thread perform reliability;CCU host process is arranged synchronous operation MVB information board
Read-write thread and MVB traction board read-write thread, and logical operations thread and the logical variable more new thread that mutual exclusion runs is set,
It is effectively improved the data reading speed of central control unit and the real-time of data manipulation.
Accompanying drawing explanation
Fig. 1 is CCU host process of the present invention and the schematic diagram of CCU assisted process.
Fig. 2 is multithread processing method schematic diagram of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, attached below in conjunction with in the embodiment of the present invention
Figure, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment is the present invention
The embodiment of a part rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making
The every other embodiment obtained on the premise of going out creative work, belongs to protection scope of the present invention.
Embodiment 1
Seeing Fig. 1, EMUs central control unit multithread processing method, based on QNX operating system, by program according to process
Divide with thread.It is divided into CCU host process and CCU assisted process according to process, and CCU assisted process is entered with CCU master
By Sharing Memory Realization data interaction between journey.
CCU host process, is divided into multiple thread to perform following task according to thread, including being responsible for the MVB task relevant to MVB
Scheduling thread and the responsible logical operations thread relevant to train logical operations.
MVB task scheduling thread, is to be realized the information transmission between train unit by MVB, i.e. passes through MVB
Bus realize and train unit and heavily connection train unit between information transmission, complete train network control system
The function of bus management, Train Control, supervision and fault diagnosis.
Above-mentioned MVB task scheduling thread comprises 5 sub-threads,
Thread (1): MVB information board card initialization thread, has been responsible for MVB information board card initialization task, runs after powering on
Once;
Thread (2): MVB towing plate card initialization thread, has been responsible for MVB towing plate card initialization task, runs after powering on
Once;
Thread (3): MVB information board read-write thread, has been responsible for the read-write operation of MVB information board;
Thread (4): MVB traction board read-write thread, has been responsible for the read-write operation of MVB traction board;
Thread (5): process variable and logical variable more new thread, has been responsible for MVB task scheduling thread and logical operations thread
Between data interaction.
Wherein, thread (1), thread (3) and thread (5) are that order performs;The port of thread (3) and thread (4) is read
Extract operation runs and can run simultaneously, solves the problem that single thread order reads, performs cycle length.
Logical operations thread, is responsible for realizing the thread relevant with train logical operations, in logical operations thread, main realization with
Lower function:
Function (1): control logical operations, including judging input signal, logical operation provides output signal, it is achieved right
The control of train communication network Network Subsystem, monitor and protect, completing whole train and control every management such as logic and fault diagnosis
Work, train communication network Network Subsystem includes drawing, brakes, assists, charger, illumination, passenger information, axle temperature, air-conditioning,
The subsystems such as door, pyrotechnics;
Function (2): failed storage function, fault trigger recording function and variable writing function, supports that travel condition of vehicle etc. closes
Key variable and the storage of fault data, for accident analysis and location.
It is mutex relation between logical operations thread and thread (5), it is ensured that the alternative that variable resource is accessed by thread, reaches right
The protection of variable.
It is mutual that CCU assisted process realizes information by Ethernet interface and CCU service software.In CCU assisted process, by list
One thread has received and dispatched following task 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 control unit, and with CCU host process by sharing
It is mutual that the mode of internal memory realizes information, i.e. CCU assisted process will be needed monitoring by shared drive and forces in CCU service software
Variable transferring to CCU host process, the data of renewal are sent in shared drive by the timing of CCU host process, complete two processes it
Between data interaction.
Seeing Fig. 2, thread and execution sequence in above-mentioned CCU host process and CCU assisted process are well defined, and based on QNX
Operating system, it is achieved the synchronization of thread and mutual exclusion mechanism, the CCU host process of EMUs central control unit and CCU assisted process
Multithread processing method be:
(1) CCU host process create MVB task scheduling thread, MVB information board card initialization thread, MVB traction board initial
Change thread and logical operations thread;
(2) MVB task scheduling thread transmission initializing signal is initial to MVB information board card initialization thread and MVB traction board
Change thread, send read-write to MVB information board read-write thread and MVB traction board read-write thread;
(3) MVB information board card initialization thread waits initializing signal, and once initializing signal receives successfully, then create MVB
Information board read-write thread;MVB towing plate card initialization thread waits initializing signal, and once initializing signal receives successfully,
Then create MVB traction board read-write thread, and MVB information board read-write thread and MVB traction board read-write thread be two solely
Found thread, and both can run simultaneously;
(4) MVB information board and MVB traction board wait read-write, and once read-write receives successfully, sends and has read and write
Become signal, process variable and logical variable more new thread;
(5) it is provided with mutual exclusion lock signal between logical operations thread and logical variable more new thread, it is ensured that both mutual exclusions run;
(6) by Sharing Memory Realization data interaction between CCU host process and CCU assisted process.
Wherein, in CCU host process, MVB information board read-write thread and the MVB traction board read-write thread of synchronous operation is set,
And logical operations thread and the logical variable more new thread that mutual exclusion runs is set, both use simultaneously operating, also include mutually exclusive operation,
Improve the reliability running variable, and the synchronization of thread performs, and is greatly improved the reading speed of network data and the reality of data manipulation
Shi Xing.
CCU host process and CCU assisted process are by Sharing Memory Realization data interaction, i.e. when CCU assisted process breaks down,
Do not affect CCU host process program perform, compared with existing train network Ore-controlling Role, will not because of CCU service software occur therefore
Hinder and affect the execution of train CCU host process, improve stability and reliability that central control unit program performs.
Claims (5)
1. EMUs central control unit multithread processing method, including CCU host process and CCU assisted process, it is characterised in that bag
Include following methods step:
(1) CCU host process create MVB task scheduling thread, MVB information board card initialization thread, MVB traction board initial
Change thread and logical operations thread;
(2) MVB task scheduling thread transmission initializing signal is initial to MVB information board card initialization thread and MVB traction board
Change thread, send read-write to MVB information board read-write thread and MVB traction board read-write thread;
(3) MVB information board card initialization thread waits initializing signal, and once initializing signal receives successfully, then create MVB
Information board read-write thread;MVB towing plate card initialization thread waits initializing signal, and once initializing signal receives successfully,
Then create MVB traction board read-write thread, and MVB information board read-write thread and MVB traction board read-write thread be two solely
Found thread, and both can run simultaneously;
(4) MVB information board read-write thread and MVB traction board read-write thread wait read-write, and once read-write receives
Success, sends read-write and completes signal, process variable and logical variable more new thread;
(5) being provided with mutual exclusion lock signal between logical operations thread and process variable and logical variable more new thread, both mutual exclusions run;
(6) by Sharing Memory Realization data interaction between CCU host process and CCU assisted process.
EMUs central control unit multithread processing method the most according to claim 1, it is characterised in that: described CCU master enters
Journey includes being responsible for the MVB task scheduling thread relevant to MVB and being responsible for the logical operations thread relevant with train logical operations, MVB
Task scheduling thread realized by MVB and train unit and heavily connection train unit between information transmission.
EMUs central control unit multithread processing method the most according to claim 2, it is characterised in that:
Described MVB task scheduling thread comprises 5 sub-threads,
Thread (1): MVB information board card initialization thread, has been responsible for MVB information board card initialization task, runs after powering on
Once;
Thread (2): MVB towing plate card initialization thread, has been responsible for MVB towing plate card initialization task, runs after powering on
Once;
Thread (3): MVB information board read-write thread, has been responsible for the read-write operation of MVB information board;
Thread (4): MVB traction board read-write thread, has been responsible for the read-write operation of MVB traction board;
Thread (5): process variable and logical variable more new thread, has been responsible for MVB task scheduling thread and logical operations thread
Between data interaction;
Thread (1), thread (3) and thread (5) are that order performs;Thread (3) and the port read operation of thread (4)
Operation can run simultaneously.
EMUs central control unit multithread processing method the most according to claim 3, it is characterised in that: described logical operations
Run for mutual exclusion between thread and thread (5).
EMUs central control unit multithread processing method the most according to claim 1, it is characterised in that: described CCU assists
It is mutual that process realizes information by Ethernet interface and CCU service software, in CCU assisted process, by single thread by with
Too network data has received and dispatched the relevant on-line monitoring of train network variable, the online pressure of network variable, train operation configuration file
Amendment, upload and download and 4 tasks of online updating of program.
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 CN104890703A (en) | 2015-09-09 |
CN104890703B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110868448A (en) * | 2019-09-29 | 2020-03-06 | 浙江合众新能源汽车有限公司 | Vehicle-mounted data updating system and method |
CN111884898B (en) * | 2020-07-30 | 2021-09-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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2454983A1 (en) * | 2004-01-07 | 2005-07-07 | Jean Beaucage | System for high-speed applications over serial multi-drop communication networks |
AT505903B1 (en) * | 2008-04-17 | 2009-05-15 | Ct Comm Systems Gmbh | METHOD AND SYSTEM FOR COUPLING AN ANALOG RADIO ELEMENT AND A DIGITAL RADIO EQUIPMENT |
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 |
-
2015
- 2015-06-29 CN CN201510368418.2A patent/CN104890703B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104890703A (en) | 2015-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107054255A (en) | A kind of vehicle-mounted complex control system of land equipment vehicle | |
CN102001348A (en) | Realization method based on CPCI bus technology of dual module hot spare system switching | |
CN104890703B (en) | EMUs central control unit multithread processing method | |
CN109507866A (en) | A kind of double-machine redundancy system and method based on network address drift technology | |
DE3884579T2 (en) | Boot control system in a multiprocessor system. | |
CN109383568A (en) | High-speed magnetic floating operation control system | |
CN107577185A (en) | A kind of task executing method and the controller based on polycaryon processor | |
CN103529711B (en) | Automatic testing method and system for ATC vehicle-mounted equipment | |
CN106527971B (en) | A method of promoting SSD reading performance during garbage reclamation | |
CN103738369B (en) | Based on the ATS equipment and system of OPC UA technology | |
EP4414242A1 (en) | Tacs and tbtc integrated signaling system and switching method thereof | |
CN105760241B (en) | A kind of internal storage data deriving method and system | |
CN113240907A (en) | Vehicle scheduling method, system, electronic device and storage medium based on C-V2X | |
CN109946956A (en) | Device main and standby system synchronization and hot standby method | |
CN110758489A (en) | Automatic protection system of train | |
CN109733301A (en) | Vehicle redundant bus system and its control method | |
CN113219855A (en) | Simulation verification method and device for TACS (terminal-to-terminal Security System) | |
CN108255123A (en) | Train LCU control devices based on the voting of two from three software and hardware | |
CN113665630B (en) | VOBC and TCMS integrated train control equipment | |
CN116360244A (en) | Control method and control system for high redundancy based on intensive vehicle controller | |
Wang et al. | Cloud-based simulated automated testing platform for virtual coupling system | |
CN102779221A (en) | System and method for monitoring and analyzing traction and braking real-time information of railway vehicles | |
CN106250277A (en) | A kind of multipath server system and the method being used for improving its stability | |
CN102193539B (en) | Brake control network interface device for rail transit vehicles | |
CN202886964U (en) | Device capable of enabling setting information of controllers at both ends of vehicle to be consistent |
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 |