CN102717805A - Train video monitoring system and monitoring program operation detection method thereof - Google Patents

Train video monitoring system and monitoring program operation detection method thereof Download PDF

Info

Publication number
CN102717805A
CN102717805A CN2012101610744A CN201210161074A CN102717805A CN 102717805 A CN102717805 A CN 102717805A CN 2012101610744 A CN2012101610744 A CN 2012101610744A CN 201210161074 A CN201210161074 A CN 201210161074A CN 102717805 A CN102717805 A CN 102717805A
Authority
CN
China
Prior art keywords
train
house dog
trace routine
monitor program
video monitor
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
CN2012101610744A
Other languages
Chinese (zh)
Other versions
CN102717805B (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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CSR Times Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuzhou CSR Times Electric Co Ltd filed Critical Zhuzhou CSR Times Electric Co Ltd
Priority to CN201210161074.4A priority Critical patent/CN102717805B/en
Publication of CN102717805A publication Critical patent/CN102717805A/en
Application granted granted Critical
Publication of CN102717805B publication Critical patent/CN102717805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a train video monitoring system and a monitoring program operation detection method thereof. Each driver cab and passenger compartment of a train both comprise video encoders and power supplies. The driver cab further comprises a driver cab monitor screen, a video memory, a video monitoring server, and a driver cab camera. The driver cab monitor screen and the video memory of the driver cab are separately connected to the video monitoring server. The driver cab camera is connected to the video encoder which is arranged in the driver cab. The passenger compartment further comprises a switch and at least two passenger compartment cameras, wherein the passenger compartment cameras are connected to the video encoders. The switches among passenger compartments are in cascade connection one by one, and are finally connected to the video encoder of the driver cab. The power supplies provide power for the driver cab monitor screen, the video memory, the video monitoring server, the driver cab camera, the switches, the passenger compartment cameras, and the video encoders. According to the invention, the reliability of the operation of train video monitoring software is guaranteed in time sequence, fault-tolerance processing of the software is realized, and the high reliability required by the train is realized.

Description

A kind of train video monitoring system and monitor program operation detecting method thereof
Technical field
The present invention relates to a kind of train supervisory system and method thereof, especially relate to a kind of train video monitoring system of field of track traffic such as station, subway, train and method of inspection of video monitor software watchdog thereof of being applied to.
Background technology
At present, video monitor CCTV is widely used in carrying out on station, subway, the train real-time pictures monitoring, is train safe operation and the favourable technical guarantee of tackling urgent accident.The train video monitoring system is in order to satisfy the demand for security of vehicles such as train, locomotive and subway; Based on TCN whole subway train is monitored in real time; Be transferred to the vehicle-mounted monitoring chamber to the video monitoring data in every joint compartment; Under the situation of not leaving driver's cab, be well understood to the situation of all guest room situation of this train and two ends driver's cab to satisfy the train operator, so that in time prevent the generation of relevant accident through monitored picture.
Because the train video monitor is very high to server performance and network requirement, the reliability that how to guarantee train video monitor software with avoid software to make mistakes into an outstanding and critical problem.The reliability of software is meant that under environment provided, software does not cause the probability of thrashing in specific time.This probability is the function of system input and system's use, also is the function of the defective that exists in the software.System input will determine whether to run into already present defective (if defective existence), specific time in the cycle under the said condition program carry out the ability of the function that requires.
Because the environment very special (like vibrations, power supply etc.) on the train; The monitoring image blank screen often appears in the video monitor software of existing running train; Network data is lost, thus the most serious be to cause the monitoring of train video monitor software paralysis can't carrying out picture to produce software failure.What produce when software failure is meant running software does not a kind ofly hope or unacceptable external behavior, failure event be ccasual, can't know definitely when they take place.The driver was according to the monitoring image requirement of reply in time when power-off restarting server artificially when fault takes place, this processing can't satisfy train and urgent accident occurs, thereby can cause serious consequence.
Existing do not have processing method power-off restarting server artificially to train video monitor software fault, and the video monitor software fault can't recover automatically, and fault still exists.In addition, the technical matters that also has the following aspects:
(1) software fault can't recover automatically.Because train video monitor software can't recover when breaking down automatically, need the people for restarting server, when the driver is busy with other work and does not find that video monitor software breaks down and can't restart server, fault can't be recovered automatically.
(2) it is dumb artificially to start the server reset mode.
(3) failure recovery time is long.In the people needs the regular hour when restarting server running train video monitor software, can cause during this period of time like this, can't monitor the real-time pictures of train.
(4) train video monitor software still can lose efficacy and can not realize that fault-tolerant processing, fault still exist.
(5) the rubbish process of server still can not get cleaning, CPU usage is very high, can cause the easy et out of order of train video monitor software.
Summary of the invention
The purpose of this invention is to provide a kind of train video monitoring system and monitor program operation detecting method thereof; This system and method thereof have proposed a kind of watchdog timer and (have been commonly called as the method for inspection of " house dog " _ watchdog) program; Can be implemented on the sequential the reliable demonstration of the message data that guarantees train video monitor software or order and video pictures and avoid process blocking; Realized the fault-tolerant processing of software; Thereby avoided software failure, improved the reliability of software, satisfied the requirement of train for reliability.
In order to realize the foregoing invention purpose; The present invention specifically provides a kind of technic relization scheme of train video monitoring system; A kind of train video monitoring system, train comprise driver's cab and the above guest room of two joints, comprising: video encoder and the power supply of being located at driver's cab and guest room; Be located at driver's cab monitor screen, VRAM, video monitor server and the driver's cab pick up camera of driver's cab; The driver's cab monitor screen of being located at driver's cab links to each other with the video monitor server respectively with VRAM, and the driver's cab pick up camera links to each other with the video encoder of being located at driver's cab; Be located at the exchange of guest room and at least two guest room pick up camera, the guest room pick up camera links to each other with the video encoder of being located at the guest room; The cascade one by one of exchange between the guest room, and finally be connected with the video encoder of driver's cab; Power supply is that driver's cab monitor screen, VRAM, video encoder, video monitor server, driver's cab pick up camera and the video encoder of being located at the guest room, exchange, the guest room pick up camera of being located at driver's cab provide working power.
Further improvement as a kind of train video monitoring system of the present invention technical scheme; Train comprises two joint driver's cab and six joint guest rooms; Every joint driver's cab comprises a driver's cab pick up camera and a video encoder, and every joint guest room comprises an exchange, two guest room pick up cameras and two video encoders.
As the further improvement of a kind of train video monitoring system of the present invention technical scheme, what driver's cab pick up camera and guest room pick up camera adopted hemispherical dome structure adds the curing camera, and the vertical angle of view is not less than 40 degree, and the horizontal view angle is not less than 50 degree.
Further improvement as a kind of train video monitoring system of the present invention technical scheme; Video encoder adopts MPEG4/H.264 code stream mode to accomplish the compression of analog video signal; Image is compressed after transmitted by network; Per second transmits picture and is no less than 30 frames, and maximum frequency range is not less than 1.6Mpbs.Video encoder adopts guide tracked mounting means.
The present invention also specifically provides a kind of technic relization scheme of monitor program operation detecting method of train video monitoring system in addition; A kind of monitor program operation detecting method of train video monitoring system; The monitor program operation detecting method comprises train video monitor process, and this process may further comprise the steps:
S10: train video monitor program start; The operation initialization step; House dog trace routine independent startup simultaneously, train video monitor program and house dog trace routine regularly circulate and carry out life signal and communicate by letter, and successfully whether test network connect; If train video monitor program and house dog trace routine are accomplished initialization and both sides separately and successfully set up life signal and communicate by letter, promptly network connects and communicates by letter successfully;
S11: if network connects and communicates by letter successfully; Then train video monitor program gets into real-time pictures monitoring and video record store status; The train video monitoring system starts picture monitoring and video record storing process; Receive the video monitoring point coded image in every joint compartment in real time through TCN, and carry out picture monitoring, video record storage and playback function;
S12:, then continue the connection of test communications network and communicate by letter till success if network connects and communicate by letter unsuccessfully.
As the further improvement of the monitor program operation detecting method technical scheme of a kind of train video monitoring system of the present invention, the house dog trace routine among the above-mentioned steps S10 may further comprise the steps:
S100: the house dog trace routine starts, the operation initialization step, and house dog trace routine clearing server rubbish process is to guarantee the preceence of train video monitor program process;
S101: the house dog trace routine is carried out life signal with train video monitor program and is communicated by letter, and the process of monitoring train video monitor program;
S102: program breaks down if the house dog trace routine detects the train video monitor, then recovers train video monitor program process automatically, and execution in step S104;
S103: process failure appears in train video monitor program or train video monitor program journey fault is recovered if the house dog trace routine does not detect, and then continues execution in step S101;
S104: continue train video monitor program is monitored in real time and detected.
Further improvement as the monitor program operation detecting method technical scheme of a kind of train video monitoring system of the present invention; Train video monitor program and house dog trace routine regularly communicate through the TCP/UDP agreement; Train video monitor program is a server end; The house dog trace routine is a client, and server end that the employing of train video monitor program is at least four or client failure judgment data are carried out life signal with the house dog trace routine and communicated by letter.
As the further improvement of the monitor program operation detecting method technical scheme of a kind of train video monitoring system of the present invention, the communication protocol data form of life signal communication be AA, BBB, CCCC, DD}, wherein, AA is two server end or a client address; BBB is three server end or a client communication counting cumulative data; CCCC is at least four server end or a client failure judgment data; DD is two a sign off sign.
Further improvement as the monitor program operation detecting method technical scheme of a kind of train video monitoring system of the present invention; Train video monitor program adopts four server end or client failure judgment data to carry out life signal with the house dog trace routine and communicates by letter, and train video monitor program and house dog trace routine are carried out the process that life signal communicates by letter and further may further comprise the steps:
S201: train video monitor program is sent the fault judgement data-signal to the house dog trace routine and is in normal condition for the operation of " 1111 " expression train video monitor program process;
S202: the operation of train video monitor program process was not in error state when house dog trace routine reception fault judgement data-signal had the communication data transmission for " 0000 " expression train video monitor program;
S203: the house dog trace routine is sent acknowledge signal " 0001 " to train video monitor program and is represented that train video monitor program and house dog trace routine are in normal communication state;
S204: behind train video monitor program process failure recovery, send signal " 0011 " expression process failure continuously and recover, the house dog trace routine is sent acknowledge signal " 0001 " expression and is in normal communication state.
As the further improvement of the monitor program operation detecting method technical scheme of a kind of train video monitoring system of the present invention, the process of house dog trace routine clearing server rubbish process may further comprise the steps:
S301: the task manager of the direct call operation of house dog trace routine system;
S302: the house dog trace routine obtains the process number and the information of server system initialization operation, and CPU usage;
S303: the house dog trace routine is monitored the process number of server OS and information and CPU usage in real time;
S304: the house dog trace routine detects the rubbish process, then execution in step S305; The house dog trace routine does not detect the rubbish process, then execution in step S306;
S305: house dog trace routine clearing server rubbish process, to guarantee the monitoring software priority of a process;
S306: the house dog trace routine is judged the CPU usage situation, if CPU usage surpasses setting value, then execution in step S307; If CPU usage does not surpass setting value, then execution in step S308;
S307: the unessential process of house dog trace routine clearing server is to guarantee the monitoring software priority of a process;
S308: the house dog trace routine continues train video monitor program is monitored in real time and detected.
Through implementing the technical scheme of a kind of train video monitoring system of the invention described above and monitor program operation detecting method thereof, have following technique effect:
(1) train video monitor software uses this house dog trace routine to avoid et out of order and serious consequence that software failure is with in the past.Because whether this method monitoring and detection process is in real time normally moved,, fault can recover the normal condition of software when taking place soon.
(2) the design's method has the regularly function of clearing server rubbish process, can reduce the Occupation coefficient of CPU, to guarantee the monitoring software priority of a process, avoids software failure and improves software reliability.
(3) train video monitor software uses this house dog trace routine to be running background software; The software and hardware resources that relies on is considerably less; The software code amount is quite little; Take server CPU during operation and lead very lowly, when guaranteeing train video monitor running software reliability, also can not seize cpu resource.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the system architecture diagram of a kind of specific embodiment of train video monitoring system of the present invention.
Fig. 2 is the mounting structure scheme drawing of a kind of specific embodiment of train video monitoring system of the present invention.
Fig. 3 is the program flow diagram of video monitor process in a kind of specific embodiment of monitor program operation detecting method of train video monitoring system of the present invention.
Fig. 4 is the program flow diagram of monitor program operation testing process in a kind of specific embodiment of monitor program operation detecting method of train video monitoring system of the present invention.
Fig. 5 is the state exchange scheme drawing of a kind of specific embodiment of monitor program operation detecting method of train video monitoring system of the present invention.
Fig. 6 is the program flow diagram that the rubbish process of a kind of specific embodiment house dog of monitor program operation detecting method trace routine of train video monitoring system of the present invention is cleared up.
Among the figure: 1-driver's cab monitor screen, 2-VRAM, 3-video monitor server, 4-video encoder, 5-driver's cab pick up camera, 6-power supply, 7-exchange, 8-guest room pick up camera, 9-camera, the urgent button of 10-annunciator.
The specific embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Shown in accompanying drawing 1 to accompanying drawing 6, provided the specific embodiment of a kind of train video monitoring system of the present invention and monitor program operation detecting method thereof, below in conjunction with accompanying drawing and specific embodiment the present invention is described further.
The specific embodiment of a kind of train video monitoring system shown in accompanying drawing 1, train comprise driver's cab and the above guest room of two joints, and driver's cab and guest room include video encoder 4 and power supply 6; Driver's cab also comprises driver's cab monitor screen 1, VRAM 2, video monitor server 3 and driver's cab pick up camera 5; Driver's cab monitor screen 1 links to each other with video monitor server 3 respectively with the VRAM of being located at driver's cab 2, and driver's cab pick up camera 5 links to each other with the video encoder of being located at driver's cab 4; The guest room also comprises an exchange 7 and at least two s' guest room pick up camera 8 respectively, and guest room pick up camera 8 links to each other with the video encoder of being located at the guest room 4; Exchange 7 cascade one by one between the guest room, and finally be connected with the video encoder 4 of driver's cab; Power supply 6 provides working power for video encoder 4, exchange 7, the guest room pick up camera 8 of being located at driver's cab monitor screen 1, VRAM 2, video monitor server 3, video encoder 4, the driver's cab pick up camera 5 of driver's cab and being located at the guest room.Train further comprises two joint driver's cab and six joint guest rooms, and every joint driver's cab further comprises a driver's cab pick up camera 5 and a video encoder 4.Every joint guest room further comprises an exchange 7, two guest room pick up cameras 8 and two video encoders 4.
Driver's cab pick up camera 5 in the train video monitoring system all adopts fixing camera 9 to encode through 4 pairs of images of video encoder that coaxial cable is connected front end with guest room pick up camera 8; And then be transferred in the video monitor server 3 of vehicle-mounted management server through the image of TCN after and monitor, and be stored in video recording in the VRAM 2 so that carry out event replay coding.Train video monitoring system of the present invention adopts the digital structure of fixing camera+front end video encoder+VRAM+vehicle-mounted management server; System adopts advanced, ripe Computer Control Technology and video image digital compression technology, has constituted distributed, the networked video image management system of a cover.
As a kind of typical embodiment, the subway train shown in accompanying drawing 2 is an example with every row subway 8 joints, comprising A1, B1, C1, C2, B2, A2 2 driver's cabs at totally 6 guest rooms and train two ends.Each guest room comprises 2 colour imagery shots and 2 video encoders, to guarantee the not having blind area of supervision, like the colour imagery shot among the guest room A1 91 and 92.Also be provided with 2 urgent buttons 10 of annunciator in each guest room.1 colour imagery shot is set to keep watch on the situation in the driver's cab, totally 14 colour imagery shots in the driver's cab.Concrete distribution situation is shown in accompanying drawing 2, and C promptly represents the camera of installing in the train 9.
Wherein, in the colour imagery shot part, each guest room comprises 2 colour imagery shots; Consider that the subway train carlighting is sufficient, stable, light changes seldom, considers when having a power failure; A little less than the emergency light illumination,, consider that simultaneously the railway car height is shorter relatively according to the environmental quality of subway; The camera guard shield should possess certain anticollision damage capability, and considers the attractive in appearance and steadiness of installation, selects to provide good monitoring performance; And considered artificial destruction or unexpected injury to have waterproof and dustproof, function of seismic resistance simultaneously.The camera 9 general colour imagery shots that adopt High Performance to add curing, the vertical angle of view is greater than 40 degree, and hemispherical dome structure is adopted greater than 50 degree in the horizontal view angle, can satisfy the high-end requirement of subway train.
In the video encoder part; Each guest room comprises 2 industrial grade design-calculated video encoders simultaneously; Adopt MPEG4/H.264 code stream mode to accomplish the compression of analog video signal, after transmitted by network, per second can transmit 30 pictures (352 x, 240 resolution) altogether with the image compression; Maximum frequency range is 1.6Mpbs, for the user provides high-effect image and the transmission of high efficiency network.Equipment is installed and is adopted DIN-Rail mode (guide tracked), power supply to be input as the two direct currents of 24VDC, and the dustproof and waterproof grade is IP30, and will meet the demand of industrial environment.
A kind of specific embodiment of monitor program operation detecting method of train video monitoring system shown in accompanying drawing 3, the monitor program operation detecting method comprises train video monitor process, this process may further comprise the steps:
S10: train video monitor program start; The operation initialization step; Train video monitor program and house dog trace routine regularly circulate and carry out life signal and communicate by letter; Test network connects whether success, successfully sets up life signal and communicates by letter if train video monitor program and house dog trace routine are accomplished initialization and both sides separately, be i.e. network connection and communicating by letter successfully;
S11: if network connects and communicates by letter successfully; Then train video monitor program gets into real-time pictures monitoring and video record store status; The train video monitoring system starts picture monitoring and video record storing process; Receive the video monitoring point coded image in every joint compartment in real time through TCN, and carry out picture monitoring, video record storage and playback function;
S12:, then continue the connection of test communications network and communicate by letter till success if network connects and communicate by letter unsuccessfully.
But need the status image information of totally 14 cameras 9 (might be more) in driver's cab and the guest room be delivered to driver's cab by accompanying drawing 1 and accompanying drawing 2 pivot column car video monitor programs, and record the information on the VRAM 2.The train video monitoring system adopts ethernet to carry out image signal transmission.Therefore very high to the performance and the network bandwidth requirement of video monitor server 3.And the environment on the train is more special, and is bigger like vibrations, also can have factors such as signal interference sometimes, causes the paralysis of train video monitor program to produce software failure and can't carry out the monitoring of picture easily.For fear of the generation of program mal, be implemented on the sequential the reliable demonstration of the message data that guarantees train video monitor software or order and video pictures and avoid process blocking.Shown in accompanying drawing 4, the house dog trace routine among the above-mentioned steps S10 further may further comprise the steps:
S100: the house dog trace routine starts, the operation initialization step, and house dog trace routine clearing server rubbish process is to guarantee the preceence of train video monitor program process;
S101: the house dog trace routine is carried out life signal with train video monitor program and is communicated by letter, and the process of monitoring train video monitor program;
S102: program breaks down if the house dog trace routine detects the train video monitor, then recovers train video monitor program process automatically, and execution in step S104;
S103: process failure appears in train video monitor program or train video monitor program journey fault is recovered if the house dog trace routine does not detect, and then continues execution in step S101;
S104: continue train video monitor program is monitored in real time and detected.
More than each step carry out in order.Among the step S102; Train video monitor program mal comprises: paralysis appears in the train video monitor program that reasons such as the CPU usage load that is caused in process failure, program internal memory leakage, the video coding process is excessive cause can't work, and house dog trace routine execution at this moment startup automatically recovers train video monitor program.Wherein, the function that train video monitor program mainly realizes is that the image that receives after TCN is encoded the video monitoring point in every joint compartment carries out real-time pictures monitoring, video record storage and playback, and the setting of correlation parameter.The house dog trace routine is the detection monitoring software of running background, mainly is to guarantee the reliability of train video monitor program and the recovery that helps fault.
The house dog trace routine adopts the detection method of watchdog timer, and the purpose of watchdog timer is on sequential, to guarantee the reliable arrival of message or order and avoid process blocking.Initiator's process can be provided with a timer after giving an order, replying of receiving before the timer expiry is effective response, otherwise thinks and send failure, handles accordingly then or continues downward operation.Watchdog timer is commonly called as " house dog " (watchdog).Train video monitor program and house dog trace routine are installed on the train-installed video monitor server 3.When video monitor server 3 starts; Two independent operating programs: train video monitor program and house dog trace routine start automatically; Two programs begin to accomplish the initialization operation separately; Train video monitor program and house dog trace routine regularly communicate through TCP/UDP (a kind of network communication protocol) agreement simultaneously; Wherein train video monitor program is server end (a Server end), and the house dog trace routine is client (a Client end), and two program timing (as: 200ms) circulation communicates.Both sides have set a simple data communication protocol, just life signal communication protocol jointly.
As a kind of typical embodiment, the communication protocol data form of life signal communication further be AA, BBB, CCCC, DD}, wherein, AA is two server end or a client address; BBB is three server end or a client communication counting cumulative data; CCCC is at least four server end or a client failure judgment data; DD is two a sign off sign.Server end that the employing of train video monitor program is at least four or client failure judgment data are carried out life signal with the house dog trace routine and are communicated by letter.
The data format of communication describes with the data instance that the Server end sends, and wherein the response data format of Client end is similar, as: { 5A, 001,1111,6E}.Wherein " 5A " is above-mentioned two addresses of operation procedure Server end communication alone; Be that the Client end has received that it is the correct data that this Server end sends that group communication data of the above-mentioned data format that begins with 5A are then explained; Otherwise just think and abandon this group communication error in data these group data and receive next group data again.Wherein 001 is communication count, and 200ms communicates by letter once, and these data add one, is changed to 001 again after being added to 255, continues counting then again.Fault judgement data-signal " 1111 " is the Server end fault judgement byte in this communication protocol, " 1111 " expression normal condition here, and the specific procedure operational process of this byte representative is explained shown in step S103.Wherein, 6E is the end mark of communication.Wherein, the response data format of Client end is similar, as: 2A, and 001,0001,3E} replys normal condition, and the 3rd data " 0001 " expression train video monitor program and house dog trace routine are in normal communication state.
Train video monitor software watchdog method of inspection mainly is to guarantee the reliability of software and the recovery that helps fault.Therefore train video monitor software has software handshake with house dog detection software, promptly both sides according to specifically the most simple communication protocols carry out the signal detection data format shown in step S10.The 3rd bit data of communication protocol adopt 4 and more long number (can adopt 8) pattern " xxxx " like the higher software of safe class represent; Mainly be because this figure place is the byte of failure judgement is the byte that guarantees the safety-critical function, its decision condition must not depend on one logical zero or " 1 " and represent " fault " or " normally " state.Represent " fault " or " normally " state if use 1 logical zero or " 1 "; When the communication data mistake; The displacement between " 0 " and " 1 " just can not be judged as communication data mistake (when the house dog trace routine communicates, can abandon receive the next frame data again to the misdata of receiving) when carrying out data analysis like this; But directly be judged as train video monitor program is faulty condition, can carry out the processing of failure mode.And use 4 and long number pattern expression " fault " or " normally " state more, when generation communication data mistake, the data variation state just has 2 nKind, like the n=4 of this place.At this moment, with respect to only using one logical zero or " 1 " to have only 2 kinds of states safety and reliable more.Train video monitor program is sent " 1111 " expression normal condition, the program exception state when representing that with " 0000 " not having communication data sends.The house dog trace routine is replied usefulness " 0001 " expression proper communication, after train video monitor program mal recovers, representes failure recovery with the pattern of sending 5 " 0011 " data continuously, and then replys with " 0001 " and to represent proper communication.
Data format in the foregoing description is only represented a concrete technical scheme; But be not limited to adopt these data, just data are with { XX, XXX; XXXX; The XX} mode is set up, and each the group data that receives are resolved, and should not regard a kind of restriction to protection domain of the present invention as at this.
Shown in accompanying drawing 5; Above-mentioned train video monitor program adopts four server end or client failure judgment data to carry out life signal with the house dog trace routine and communicates by letter, and train video monitor program and house dog trace routine are carried out the process that life signal communicates by letter and further may further comprise the steps:
S201: train video monitor program is sent the fault judgement data-signal to the house dog trace routine and is in normal condition for the operation of " 1111 " expression train video monitor program process;
S202: the operation of train video monitor program process was not in error state when house dog trace routine reception fault judgement data-signal had the communication data transmission for " 0000 " expression train video monitor program;
S203: the house dog trace routine is sent acknowledge signal " 0001 " to train video monitor program and is represented that train video monitor program and house dog trace routine are in normal communication state;
S204: behind train video monitor program process failure recovery, send signal " 0011 " expression process failure continuously and recover, the house dog trace routine is sent acknowledge signal " 0001 " expression and is in normal communication state.
More than each step carry out in order.
Because the many data traffics in the control point on the train are very big, need coding to transmitting monitoring image simultaneously, therefore very high to the requirement of the performance of video monitor server 3 and network.And the environment on the train (like vibrations, power supply etc.) is relatively more special; The advance ratio of operation is more in the video monitor server 3 at train video monitor program place; When the Occupation coefficient of CPU is very high; The monitoring that causes the paralysis of train video monitor program can't carry out picture easily produces software failure; The house dog trace routine is the software of a running background, and the task manager program of call operation system obtained system process information and CPU usage when the detailed process of clearing server rubbish process mainly was house dog trace routine software startup, then monitoring in real time.When finding to have rubbish process or CPU usage very high, will clear up rubbish process and some insignificant processes, to satisfy the normal operation of train video monitor program.Shown in accompanying drawing 6, the process of house dog trace routine clearing server rubbish process further may further comprise the steps:
S301: the task manager of the direct call operation of house dog trace routine system;
S302: the house dog trace routine obtains the process number and the information of server system initialization operation, and CPU usage;
S303: the house dog trace routine is monitored the process number of server OS and information and CPU usage in real time;
S304: the house dog trace routine detects the rubbish process, then execution in step S305; The house dog trace routine does not detect the rubbish process, then execution in step S306;
S305: house dog trace routine clearing server rubbish process, to guarantee the monitoring software priority of a process;
S306: the house dog trace routine is judged the CPU usage situation, if CPU usage surpasses setting value, then execution in step S307; If CPU usage does not surpass setting value, then execution in step S308;
S307: the unessential process of house dog trace routine clearing server is to guarantee the monitoring software priority of a process;
S308: the house dog trace routine continues train video monitor program is monitored in real time and detected.
More than each step carry out in order.
House dog trace routine radical function in the monitor program operation detecting method is that the process of train video monitor program is monitored in real time, detects it and whether moves normal and recovered failure.When the paralysis of train video monitor program can't be carried out the monitoring generating routine inefficacy of picture, help recovering process and do not need artificially to start server.When train video monitor program does not break down and fault when having recovered to accomplish; All the process of train video monitor program is carried out real-time monitoring and detection; Also has the regularly function of clearing server rubbish process simultaneously, to guarantee the reduction of monitor program priority of a process and server CPU usage.
Through using described train video monitoring system of the specific embodiment of the invention and monitor program operation detecting method thereof, can produce following technique effect:
(1) the house dog trace routine has been avoided in the past because of the serious consequence that program mal and program lost efficacy and brought takes place; Whether the monitoring and detection process is normally moved in real time; The normal condition of recovery routine soon when fault takes place; Realized the program tolerance function, on sequential, guaranteed the reliable arrival of message or order and avoided process blocking.
(2) train video monitor program and house dog trace routine adopt the software handshake process; Be both sides according to specifically the most simple communication protocols carry out life signal and detect; Guarantee normal communication state when et out of order, got into the timely conversion of failure recovery state.Simultaneously, also have the regularly function of clearing server rubbish process, can reduce the Occupation coefficient of CPU,, avoid program to lose efficacy and the raising program reliability to guarantee the preceence of monitoring software program.
(3) train video monitor program adopts the house dog trace routine as the running background program; The software and hardware resources that relies on is considerably less; The software code amount is quite little; Occupation efficiency to video monitor server CPU during operation is very low, when guaranteeing train video monitor program run reliability, also can not seize cpu resource.
The above only is preferred embodiment of the present invention, is not the present invention is done any pro forma restriction.Though the present invention discloses as above with preferred embodiment, yet be not in order to limit the present invention.Any those of ordinary skill in the art; Do not breaking away under the technical scheme scope situation of the present invention; All the method for above-mentioned announcement capable of using and technology contents are made many possible changes and modification to technical scheme of the present invention, or are revised as the equivalent embodiment of equivalent variations.Therefore, every content that does not break away from technical scheme of the present invention, according to technical spirit of the present invention to any simple modification that above embodiment did, be equal to replacement, equivalence changes and modify, all still belong in the scope that technical scheme of the present invention protects.

Claims (10)

1. train video monitoring system, train comprise driver's cab and the above guest room of two joints, it is characterized in that, comprising:
Be located at the video encoder (4) and the power supply (6) of driver's cab and guest room;
Be located at driver's cab monitor screen (1), VRAM (2), video monitor server (3) and the driver's cab pick up camera (5) of driver's cab; Said driver's cab monitor screen (1) links to each other with video monitor server (3) respectively with the VRAM of being located at driver's cab (2), and said driver's cab pick up camera (5) links to each other with the video encoder of being located at driver's cab (4);
Be located at the exchange (7) of guest room and at least two guest room pick up camera (8), said guest room pick up camera (8) links to each other with the video encoder of being located at the guest room (4); Exchange between the guest room (7) cascade one by one, and finally be connected with the video encoder of being located at driver's cab (4);
Said power supply (6) provides power supply for video encoder (4), exchange (7), the guest room pick up camera (8) of being located at driver's cab monitor screen (1), VRAM (2), video monitor server (3), video encoder (4), the driver's cab pick up camera (5) of driver's cab and being located at the guest room.
2. a kind of train video monitoring system according to claim 1; It is characterized in that; Said train comprises two joint driver's cab and six joint guest rooms; Every joint driver's cab comprises a driver's cab pick up camera (5) and a video encoder (4), and every joint guest room comprises an exchange (7), two guest room pick up cameras (8) and two video encoders (4).
3. a kind of train video monitoring system according to claim 1 and 2; It is characterized in that; What said driver's cab pick up camera (5) and guest room pick up camera (8) adopted hemispherical dome structure adds the curing camera, and the vertical angle of view is not less than 40 degree, and the horizontal view angle is not less than 50 degree.
4. a kind of train video monitoring system according to claim 3; It is characterized in that; Said video encoder (4) adopts MPEG4/H.264 code stream mode to accomplish the compression of analog video signal, after transmitted by network, per second transmits picture and is no less than 30 frames with the image compression; Maximum frequency range is not less than 1.6Mpbs, and video encoder (4) adopts guide tracked mounting means.
5. the monitor program operation detecting method of a train video monitoring system is characterized in that, said monitor program operation detecting method comprises train video monitor process, and this process may further comprise the steps:
S10: train video monitor program start; The operation initialization step; House dog trace routine independent startup simultaneously, train video monitor program and house dog trace routine regularly circulate and carry out life signal and communicate by letter, and successfully whether test network connect; If train video monitor program and house dog trace routine are accomplished initialization and both sides separately and successfully set up life signal and communicate by letter, promptly network connects and communicates by letter successfully;
S11: if network connects and communicates by letter successfully; Then train video monitor program gets into real-time pictures monitoring and video record store status; The train video monitoring system starts picture monitoring and video record storing process; Receive the video monitoring point coded image in every joint compartment in real time through TCN, and carry out picture monitoring, video record storage and playback function;
S12:, then continue the connection of test communications network and communicate by letter till success if network connects and communicate by letter unsuccessfully.
6. the monitor program operation detecting method of a kind of train video monitoring system according to claim 5 is characterized in that, the house dog trace routine among the said step S10 further may further comprise the steps:
S100: the house dog trace routine starts, the operation initialization step, and house dog trace routine clearing server rubbish process is to guarantee the preceence of train video monitor program process;
S101: the house dog trace routine is carried out life signal with train video monitor program and is communicated by letter, and the process of monitoring train video monitor program;
S102: program breaks down if the house dog trace routine detects the train video monitor, then recovers train video monitor program process automatically, and execution in step S104;
S103: process failure appears in train video monitor program or train video monitor program journey fault is recovered if the house dog trace routine does not detect, and then continues execution in step S101;
S104: continue train video monitor program is monitored in real time and detected.
7. the monitor program operation detecting method of a kind of train video monitoring system according to claim 6; It is characterized in that; Said train video monitor program and house dog trace routine regularly communicate through the TCP/UDP agreement; Train video monitor program is a server end, and the house dog trace routine is a client, and server end that the employing of train video monitor program is at least four or client failure judgment data are carried out life signal with the house dog trace routine and communicated by letter.
8. the monitor program operation detecting method of a kind of train video monitoring system according to claim 7 is characterized in that, the communication protocol data form of said life signal communication is { AA; BBB, CCCC, DD}; Wherein, AA is two server end or a client address; BBB is three server end or a client communication counting cumulative data; CCCC is at least four server end or a client failure judgment data; DD is two a sign off sign.
9. the monitor program operation detecting method of a kind of train video monitoring system according to claim 8; It is characterized in that; Said train video monitor program adopts four server end or client failure judgment data to carry out life signal with the house dog trace routine and communicates by letter, and train video monitor program and house dog trace routine are carried out the process that life signal communicates by letter and further may further comprise the steps:
S201: train video monitor program is sent the fault judgement data-signal to the house dog trace routine and is in normal condition for the operation of " 1111 " expression train video monitor program process;
S202: the operation of train video monitor program process was not in error state when house dog trace routine reception fault judgement data-signal had the communication data transmission for " 0000 " expression train video monitor program;
S203: the house dog trace routine is sent acknowledge signal " 0001 " to train video monitor program and is represented that train video monitor program and house dog trace routine are in normal communication state;
S204: behind train video monitor program process failure recovery, send signal " 0011 " expression process failure continuously and recover, the house dog trace routine is sent acknowledge signal " 0001 " expression and is in normal communication state.
10. according to the monitor program operation detecting method of the described a kind of train video monitoring system of arbitrary claim in the claim 6 to 9, it is characterized in that the process of said house dog trace routine clearing server rubbish process may further comprise the steps:
S301: the task manager of the direct call operation of house dog trace routine system;
S302: the house dog trace routine obtains the process number and the information of server system initialization operation, and CPU usage;
S303: the house dog trace routine is monitored the process number of server OS and information and CPU usage in real time;
S304: the house dog trace routine detects the rubbish process, then execution in step S305; The house dog trace routine does not detect the rubbish process, then execution in step S306;
S305: house dog trace routine clearing server rubbish process, to guarantee the monitoring software priority of a process;
S306: the house dog trace routine is judged the CPU usage situation, if CPU usage surpasses setting value, then execution in step S307; If CPU usage does not surpass setting value, then execution in step S308;
S307: the unessential process of house dog trace routine clearing server is to guarantee the monitoring software priority of a process;
S308: the house dog trace routine continues train video monitor program is monitored in real time and detected.
CN201210161074.4A 2012-05-23 2012-05-23 Train video monitoring system and monitoring program operation detection method thereof Active CN102717805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210161074.4A CN102717805B (en) 2012-05-23 2012-05-23 Train video monitoring system and monitoring program operation detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210161074.4A CN102717805B (en) 2012-05-23 2012-05-23 Train video monitoring system and monitoring program operation detection method thereof

Publications (2)

Publication Number Publication Date
CN102717805A true CN102717805A (en) 2012-10-10
CN102717805B CN102717805B (en) 2015-02-04

Family

ID=46943722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210161074.4A Active CN102717805B (en) 2012-05-23 2012-05-23 Train video monitoring system and monitoring program operation detection method thereof

Country Status (1)

Country Link
CN (1) CN102717805B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475859A (en) * 2013-08-29 2013-12-25 上海铁路通信有限公司 Distributed storage centralized control system applicable to rail transit vehicle
CN106658018A (en) * 2016-12-20 2017-05-10 天脉聚源(北京)传媒科技有限公司 Intelligent soft decoding method and device
CN115225667A (en) * 2022-07-08 2022-10-21 慧之安信息技术股份有限公司 Train safety detection auxiliary method based on edge calculation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090481A (en) * 2006-06-12 2007-12-19 上海汇纳网络信息科技有限公司 Video passenger flow analysing terminal
KR20100035759A (en) * 2008-09-29 2010-04-07 엘지이노텍 주식회사 Web camera and monitering system using the same
CN101783945A (en) * 2010-01-26 2010-07-21 株洲南车时代电气股份有限公司 Method for implementing train video monitoring, encoder and monitoring equipment
CN102123274A (en) * 2011-03-11 2011-07-13 广州国联通信有限公司 Vehicle-mounted monitoring system with scatter storage function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090481A (en) * 2006-06-12 2007-12-19 上海汇纳网络信息科技有限公司 Video passenger flow analysing terminal
KR20100035759A (en) * 2008-09-29 2010-04-07 엘지이노텍 주식회사 Web camera and monitering system using the same
CN101783945A (en) * 2010-01-26 2010-07-21 株洲南车时代电气股份有限公司 Method for implementing train video monitoring, encoder and monitoring equipment
CN102123274A (en) * 2011-03-11 2011-07-13 广州国联通信有限公司 Vehicle-mounted monitoring system with scatter storage function

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘建等: "地铁列车加装视频监视系统的可行性分析", 《电力机车与城轨车辆》 *
刘鹏翔等: "地铁列车视频监视系统设计", 《机车电传动》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475859A (en) * 2013-08-29 2013-12-25 上海铁路通信有限公司 Distributed storage centralized control system applicable to rail transit vehicle
CN106658018A (en) * 2016-12-20 2017-05-10 天脉聚源(北京)传媒科技有限公司 Intelligent soft decoding method and device
CN115225667A (en) * 2022-07-08 2022-10-21 慧之安信息技术股份有限公司 Train safety detection auxiliary method based on edge calculation
CN115225667B (en) * 2022-07-08 2024-04-05 慧之安信息技术股份有限公司 Train safety detection auxiliary method based on edge calculation

Also Published As

Publication number Publication date
CN102717805B (en) 2015-02-04

Similar Documents

Publication Publication Date Title
WO2021110012A1 (en) High-speed intelligent network control system
KR101749198B1 (en) Pan-tilt-zoom device identification method, pan-tilt-zoom device, camera, and pan-tilt-zoom device control system
KR20090064675A (en) Visual surveillance camera and visual surveillance method using collaboration of cameras
CN103442035B (en) A kind of two net hot backup redundancy implementation methods of air traffic control automation system
JP2011070282A (en) Communication system, master device and slave device
CN102717805B (en) Train video monitoring system and monitoring program operation detection method thereof
CN203260195U (en) Traffic violation public-supervision system based on intelligent terminal
CN105717786A (en) Diagnostics and enhanced functionality for single-wire safety communication
WO2011000627A1 (en) Communication network and method for safety-related communication in tunnel and mining structures
US11509868B2 (en) Method and apparatus for failover in a video surveillance system
CN105137898A (en) Unmanned substation monitoring host restart system and restart method
CN203896047U (en) Electric power protection system
CN101854263A (en) Method, system and management server for analysis processing of network topology
KR20080042630A (en) Psd ccontrol system in use of mobile device
CN212231617U (en) High-safety real-time remote operation and maintenance virtual display system for power station
EP3923521A1 (en) Packet communication system, and infrastructure system, building automation system, and factory automation system using packet communication system
CN211151987U (en) Dead halt self-detection and self-recovery warehouse screen monitoring terminal
CN104023212B (en) A kind of long-distance intelligent video monitoring system based on multiple terminals
CN108234154A (en) A kind of airborne exchange network equipment fault monitoring method
KR101033995B1 (en) Security system that self diagnosis function
JPS596735A (en) Defect notifying system
CN110519558A (en) The processing method and its Baseboard Management Controller of video data
CN102665098A (en) Video encoder
CN112706801B (en) Control method and control system for train network information
JPH0749594Y2 (en) Interlock control circuit of smoke control panel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road No. 169

Patentee after: ZHUZHOU CRRC TIMES ELECTRIC Co.,Ltd.

Address before: 412001 Hunan Province, Zhuzhou Shifeng District Tian Xin era Road No. 169

Patentee before: ZHUZH CSR TIMES ELECTRIC Co.,Ltd.

CP03 Change of name, title or address