The hot-line self-checking up method and device of I/O plug-in unitsTechnical field
The present invention relates to a kind of plug-in unit self-checkings, more particularly to are directed to safety computer platform or train operation monitoringThe hot-line self-checking up method of system (LKJ) or the I/O plug-in units other than safety computer platform and Locomotive Running Monitor SystemAnd device.
Background technology
In the traffic control systems such as high-speed railway, there is a kind of fail-safe computer that is referred to as ensureing safe train operationCore equipment.Fail-safe computer implements real-time control and the security protection of train operation, it is ensured that train is according to design routeIt is run in allowed limits with desired speed.To realize that this target, fail-safe computer need to monitor the operation of train in real timeThe operating parameters such as speed, current location, train operation instruction, internal system state.Operating personnel or system maintenance commissioning staffBy these operating parameters, system running state and status of equipment can be understood in time, and subsequent manipulation command is provided with this.
Safety computer platform is built upon computer technology, the communication technology, on control technology, meets IEC62425 peacesThe distributed network control system of full SIL4 grades of integrality, has the characteristics that high reliability, high security, opening, flexibility,It include mainly following key technology:
1. System security architecture
The System security architecture of mainstream has two from three, two to multiply two mixed structures and derivative strucure for taking two, the two at present.PeaceFull framework includes for synchronous and voting technology, fail-safe technology etc..
2. safe I/O technologies
Safe I/O technical implementation way is more, but its core concept is shown as:Dynamic detection with high coverage rate (is examinedIt is disconnected), it is oriented to after failure and is maintained at safe condition.
3. bussing technique
The flexibility of this part major embodiment system, extended capability, responding ability, also embody the reliability of system with canMaintainability.Include mainly several real-time ethernet technology and field bus technique.
4. secure communication protocols
Transport protocol need to meet IEC62280 standards, but implementation method may be varied.
5. software security techniques
Software security techniques need to use IEC62279 relevant regulations, may use different coding techniques and encryption skillArt.
6. track signal decoding technique.
For computer platform, during its operation, if there is exception and software will be caused to transport in I/O plug-in unit hardwareRow is abnormal, threatens the safety and reliability service of safety computer platform.It is comprehensive therefore, it is necessary to be carried out to plug-in unit in upper electricity operationInspection.
At present for the input/output plug-in unit (referred to as I/O plug-in units) on safety computer platform, there are no a kind of efficientSelf checking method, can prevent the plug-in unit there are hidden danger from system being caused to break down at runtime.
Invention content
A brief summary of one or more aspects is given below to provide to the basic comprehension in terms of these.This general introduction is notThe extensive overview of all aspects contemplated, and be both not intended to identify critical or decisive element in all aspects also non-Attempt to define the range in terms of any or all.Its unique purpose is to provide the one of one or more aspects in simplified formA little concepts are with the sequence for more detailed description given later.
It is an object of the invention to solve the above problems, a kind of hot-line self-checking up method and device of I/O plug-in units are provided, it is rightPlug-in unit carries out the comprehensive self-test of system, prevents the plug-in unit there are hidden danger from system being caused to break down at runtime.
The technical scheme is that:Present invention is disclosed a kind of hot-line self-checking up method of I/O plug-in units, including:
Carry out sram chip self-test;
Carry out flash chip self-test;
Carry out CPU ram in slice self-tests;
Carry out plug-in unit intercommunication channel self-test;
Carry out plug-in unit channel power-on self-test.
One embodiment of the hot-line self-checking up method of I/O plug-in units according to the present invention, the sram chip self-test the step of in, beBy repeatedly being checked the full address range of sram chip by the read-write operation of address.
One embodiment of the hot-line self-checking up method of I/O plug-in units according to the present invention, the flash chip self-test the step of in, beBy way of checking the cyclic redundancy check of software to flash chip in address area for storing software check.
One embodiment of the hot-line self-checking up method of I/O plug-in units according to the present invention, the CPU ram in slice self-tests the step of in,It is by repeatedly being checked the RAM in CPU pieces by the read-write operation of address.
One embodiment of the hot-line self-checking up method of I/O plug-in units according to the present invention, in plug-in unit intercommunication channel self-testIt is to check whether the communication port between each CPU of plug-in unit is normal in step.
One embodiment of the hot-line self-checking up method of I/O plug-in units according to the present invention, in plug-in unit channel the step of power-on self-testIn, it is to check whether input acquisition channel is normal.
One embodiment of the hot-line self-checking up method of I/O plug-in units according to the present invention, the hot-line self-checking up method of I/O plug-in units are used forSafety computer platform.
One embodiment of the hot-line self-checking up method of I/O plug-in units according to the present invention, the hot-line self-checking up method of I/O plug-in units are used forLocomotive Running Monitor System.
Present invention further teaches a kind of power-on self-test devices of I/O plug-in units, including:
Sram chip selftest module is used for sram chip self-test;
Flash chip selftest module is used for flash chip self-test;
RAM selftest modules are used for CPU ram in slice self-tests;
Plug-in unit communication port selftest module is used for plug-in unit intercommunication channel self-test;
Plug-in unit channel startup self-check module is used for plug-in unit channel power-on self-test.
One embodiment of the power-on self-test device of I/O plug-in units according to the present invention, sram chip selftest module are by moreThe secondary read-write operation by address checks the full address range of sram chip.
One embodiment of the power-on self-test device of I/O plug-in units according to the present invention, flash chip selftest module are to pass through inspectionThe mode of the cyclic redundancy check of software is looked into being checked in flash chip for storing the address area of software.
One embodiment of the power-on self-test device of I/O plug-in units according to the present invention, RAM selftest modules are by repeatedly by groundThe read-write operation of location checks the RAM in CPU pieces.
One embodiment of the power-on self-test device of I/O plug-in units according to the present invention, plug-in unit communication port selftest module are inspectionsWhether the communication port looked between each CPU of plug-in unit is normal.
One embodiment of the power-on self-test device of I/O plug-in units according to the present invention, plug-in unit channel startup self-check module are inspectionsWhether normal look into input acquisition channel.
The power-on self-test device of one embodiment of the power-on self-test device of I/O plug-in units according to the present invention, I/O plug-in units is used forSafety computer platform.
The power-on self-test device of one embodiment of the power-on self-test device of I/O plug-in units according to the present invention, I/O plug-in units is used forLocomotive Running Monitor System.
The present invention, which compares the prior art, following advantageous effect:The present invention sets power-on self-test content and self-test is suitableSequence, and the self test mode provided with CPU on pieces RAM and external SRAM chip, important chip and circuit to plug-in unit carry out completeThe inspection in face has especially carried out full address inspection to CPU on pieces RAM and external SRAM chip.This system to plug-in unitComprehensive self-test can prevent the plug-in unit there are hidden danger from system being caused to break down in the process of running.
Description of the drawings
Fig. 1 shows the flow chart of the preferred embodiment of the hot-line self-checking up method of the I/O plug-in units of the present invention.
Fig. 2 shows the schematic diagrams of the preferred embodiment of the power-on self-test device of the I/O plug-in units of the present invention.
Specific implementation mode
After reading the detailed description of embodiment of the disclosure in conjunction with the following drawings, it better understood when the present invention'sFeatures described above and advantage.In the accompanying drawings, each component is not necessarily drawn to scale, and has similar correlation properties or featureComponent may have same or similar reference numeral.
The embodiment of the hot-line self-checking up method of I/O plug-in units
Fig. 1 shows the flow of the preferred embodiment of the hot-line self-checking up method of the I/O plug-in units of the present invention.The I/ of the present embodimentO plug-in units are not limited to safety computer platform for illustrating for the I/O plug-in units of safety computer platform, can alsoSystem for Locomotive Running Monitor System or other than safety computer platform and Locomotive Running Monitor System.It refers toFig. 1, here are the detailed descriptions to each step of the present embodiment.
Step S1:Sram chip self-test is carried out, enters malfunction not if if self-test, if under self-test is by enteringOne step.
It is by the full address model repeatedly by the read-write operation of address to sram chip in the sram chip self-test the step ofIt encloses and is checked.
Step S2:Flash chip self-test is carried out, enters malfunction not if if self-test, if under self-test is by enteringOne step.
It is by way of checking 32 cyclic redundancy checks of software to flash chip in the flash chip self-test the step ofIn address area for storing software checked.
Step S3:CPU ram in slice self-tests are carried out, enter malfunction not if if self-test, if self-test is by enteringNext step.
It is by repeatedly being carried out to the RAM in CPU pieces by the read-write operation of address in the CPU ram in slice self-tests the step ofIt checks.
Step S4:Plug-in unit intercommunication channel self-test is carried out, enters malfunction not if if self-test, if self-test passes throughThen enter next step.
It is to check whether the communication port between each CPU of plug-in unit is normal in the plug-in unit intercommunication channel self-test the step of.
Step S5:Carry out plug-in unit channel power-on self-test, enter malfunction not if if self-test, if self-test by intoEnter normal operation.
It is to check whether input acquisition channel is normal in the power-on self-test of plug-in unit channel the step of.
The embodiment of the power-on self-test device of I/O plug-in units
Fig. 2 shows the principles of the preferred embodiment of the power-on self-test device of the I/O plug-in units of the present invention.The I/ of the present embodimentO plug-in units are not limited to safety computer platform for illustrating for the I/O plug-in units of safety computer platform, can alsoSystem for Locomotive Running Monitor System or other than safety computer platform and Locomotive Running Monitor System.It refers toThe power-on self-test device of Fig. 2, the present embodiment includes:Sram chip selftest module 1, flash chip selftest module 2, RAM self-test mouldsBlock 3, plug-in unit communication port selftest module 4, plug-in unit channel startup self-check module 5.
Sram chip selftest module 1 is by repeatedly being carried out to the full address range of sram chip by the read-write operation of addressIt checks.Enter malfunction not if if self-test, if self-test passes through operation flash memory chip selftest module 2.
Flash chip selftest module 2 be by way of checking the cyclic redundancy check of software to flash chip in for storingThe address area of software is checked.Enter malfunction not if if self-test, if self-test is by running RAM selftest modules3。
RAM selftest modules 3 are by repeatedly being checked the RAM in CPU pieces by the read-write operation of address.If self-test is notBy then entering malfunction, plug-in unit communication port selftest module 4 is run if if self-test.
Plug-in unit communication port selftest module 4 is to check whether the communication port between each CPU of plug-in unit is normal.If self-test is obstructedIt crosses and then enters malfunction, plug-in unit channel startup self-check module 5 is run if if self-test.
Plug-in unit channel startup self-check module 5 is to check whether input acquisition channel is normal.Enter event not if if self-testBarrier state enters normal operation if self-test if.
Although to simplify explanation to illustrate the above method and being described as a series of actions, it should be understood that and understand,The order that these methods are not acted is limited, because according to one or more embodiments, some actions can occur in different orderAnd/or with from it is depicted and described herein or herein it is not shown and describe but it will be appreciated by those skilled in the art that otherAction concomitantly occurs.
Those skilled in the art will further appreciate that, the various illustratives described in conjunction with the embodiments described hereinLogic plate, module, circuit and algorithm steps can be realized as electronic hardware, computer software or combination of the two.It is clearExplain to Chu this interchangeability of hardware and software, various illustrative components, frame, module, circuit and step be above withIts functional form makees generalization description.Such functionality be implemented as hardware or software depend on concrete application andIt is applied to the design constraint of total system.Technical staff can realize each specific application described with different modesFunctionality, but such realization decision should not be interpreted to cause departing from the scope of the present invention.
General place can be used in conjunction with various illustrative logic plates, module and the circuit that presently disclosed embodiment describesReason device, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) other are compiledJourney logical device, discrete door or transistor logic, discrete hardware component or its be designed to carry out function described hereinAny combinations are realized or are executed.General processor can be microprocessor, but in alternative, which can appointWhat conventional processor, controller, microcontroller or state machine.Processor is also implemented as the combination of computing device, exampleAs DSP and the combination of microprocessor, multi-microprocessor, the one or more microprocessors to cooperate with DSP core or it is any itsHis such configuration.
It can be embodied directly in hardware, in by processor in conjunction with the step of method or algorithm that embodiment disclosed herein describesIt is embodied in the software module of execution or in combination of the two.Software module can reside in RAM memory, flash memory, ROM and depositReservoir, eprom memory, eeprom memory, register, hard disk, removable disk, CD-ROM or known in the art appointIn the storage medium of what other forms.Exemplary storage medium is coupled to processor so that the processor can be from/to the storageMedium reads and writees information.In alternative, storage medium can be integrated into processor.Pocessor and storage media canIt resides in ASIC.ASIC can reside in user terminal.In alternative, pocessor and storage media can be used as discrete setsPart is resident in the user terminal.
In one or more exemplary embodiments, described function can be in hardware, software, firmware, or any combination thereofMiddle realization.If being embodied as computer program product in software, each function can be used as the instruction of one or more items or generationCode may be stored on the computer-readable medium or is transmitted by it.Computer-readable medium includes computer storage media and communicationBoth media comprising any medium for facilitating computer program to shift from one place to another.Storage medium can be can quiltAny usable medium that computer accesses.It is non-limiting as example, such computer-readable medium may include RAM, ROM,EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage apparatus can be used to carrying or store instructionOr data structure form desirable program code and any other medium that can be accessed by a computer.Any connection is also by by rightsReferred to as computer-readable medium.For example, if software is using coaxial cable, fiber optic cables, twisted-pair feeder, digital subscriber line(DSL) or the wireless technology of such as infrared, radio and microwave etc is passed from web site, server or other remote sourcesIt send, then the coaxial cable, fiber optic cables, twisted-pair feeder, DSL or such as infrared, radio and microwave etc is wirelessTechnology is just included among the definition of medium.Disk (disk) and dish (disc) as used herein include compression dish(CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc, which disk (disk) are often reproduced in a manner of magneticData, and dish (disc) with laser reproduce data optically.Combinations of the above should also be included in computer-readable mediumIn the range of.
Offer is that can make or use this public affairs to make any person skilled in the art all to the previous description of the disclosureIt opens.The various modifications of the disclosure all will be apparent for a person skilled in the art, and as defined herein generalSuitable principle can be applied to spirit or scope of other variants without departing from the disclosure.The disclosure is not intended to be limited as a result,Due to example described herein and design, but should be awarded and principle disclosed herein and novel features phase oneThe widest scope of cause.