[go: up one dir, main page]

CN109947078A - Direct fault location unit and its board, real time fail method for implanting, device and equipment - Google Patents

Direct fault location unit and its board, real time fail method for implanting, device and equipment Download PDF

Info

Publication number
CN109947078A
CN109947078A CN201910214272.4A CN201910214272A CN109947078A CN 109947078 A CN109947078 A CN 109947078A CN 201910214272 A CN201910214272 A CN 201910214272A CN 109947078 A CN109947078 A CN 109947078A
Authority
CN
China
Prior art keywords
relay
unit
fault location
direct fault
board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910214272.4A
Other languages
Chinese (zh)
Inventor
洪佳
陈秋利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology 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 Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN201910214272.4A priority Critical patent/CN109947078A/en
Publication of CN109947078A publication Critical patent/CN109947078A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a kind of direct fault location unit and its board, real time fail method for implanting, device and equipment.The direct fault location unit includes one or more boards, each board includes that real-time controller and one or more combinations control relay, the real-time controller controls one or more of combinations control relay, and the combination control relay has load incoming end and the output end for being connected to tested electronic control unit.The real time fail method for implanting is executed using master-slave mode.Real time fail injection device, the device of the embodiment of the present invention operate in the real-time system of hardware-in―the-loop test system, focus on real-time response, have unified executing subject, reduced response error.

Description

Direct fault location unit and its board, real time fail method for implanting, device and equipment
Technical field
The invention belongs to fault test technical fields, and in particular to a kind of direct fault location unit and its board, real time fail Method for implanting, device and equipment.
Background technique
With the continuous improvement of the complexity of electronic systems of electronic equipment, also increasingly to the stability requirement of electronic equipment Therefore height just needs to consider the failure adaptability of system from system at the beginning of designing.When testing system, for design At the beginning of the critical state, the functional performance that propose transfinite technical indicator etc., need Fault Insertion Equipment to provide the environment of fault test, With the failure Adaptability Analysis for system.
For Fault Insertion Equipment as the component of electronic control unit (ECU) hardware-in―the-loop test, typical usage is to example As automobile electronic system in inject electric fault, electric fault such as line short circuit is opened to ground, line short circuit to power supply, route Short circuit or wiring circuit contact are bad etc. between road, route and another route, examine so as to detect failure in electronic control unit Whether disconnected software meets the demand of expected exploitation.
Existing Fault Insertion Equipment is since control host is using the non real-time system progress of such as computer (host computer) Control, if the system time of non real-time system there are error or operation when by other application in computer operating system The occupancy of program or driving equipment is easy to cause the control program delay of direct fault location to run, and the time range of deferred run is logical Often in 100ms or more, to cause the serious Caton of system, cause Fault Insertion Equipment that cannot execute failure order in time.And therefore Barrier injection device especially runs the direct fault location tool for having the vehicle electronic control unit of real-time system as control device, right Direct fault location requirement of real-time is higher, and Fault Insertion Equipment must have the performance of real time execution, and real-time demand is than real-time The cycle of operation of the application software of controller internal operation also wants short.For example, general real-time controller internal operation using soft The cycle of operation of part is less than 10ms, or even within 1ms, in this case, the control of delay 100ms operation troubles injection Program display is cannot be received.
Existing hardware-in―the-loop test system, which is all run, real-time system, and the master control program of Fault Insertion Equipment is run In the host computer of control hardware in loop real-time system, hardware-in―the-loop test system is to unit under test (such as automobile electronic controller) Test by run real-time system slave computer execute.Therefore, the control of Fault Insertion Equipment is operated in host computer not Conducive to the record of the ambient condition signal of hardware in loop system when test, test execution main body is inconsistent;And since host computer is adopted Lead to data so that the record of the ambient condition signal in host computer does not have real-time with the reason of non-real time operating system Time shaft precision there are errors.
Further, since the master control program of existing Fault Insertion Equipment operates in non real-time system, to response when communication Communication packet turnaround time there are certain requirements, it may appear that due to operating system processing delay cause master control program erroneous judgement communication Time-out and cannot correctly execute the operation to Fault Insertion Equipment.
Summary of the invention
Above-mentioned real-time is poor, executing subject is inconsistent and there is technical issues that in order to solve, and the present invention mentions A kind of direct fault location unit and its board, real time fail method for implanting, device and equipment are gone out.The plate of the direct fault location unit Card includes real-time controller and one or more failure generating unit, and the real-time controller control failure generating unit generates note Enter electric fault, the failure generating unit has the output end for being connected to tested electronic control unit, can will be generated Injection electric fault is injected into tested electronic control unit.
Further, the failure generating unit includes that load access component and signal source access component, the real-time control Device controls load access component and connects or disconnects with load, and control signal source access component connect or breaks with testing source It opens.
Further, the load access component includes that the first relay, load incoming end and output end, the signal source connect Entering component includes that the second relay, third relay, the 4th relay, first input port, the second input port and third are defeated Inbound port, the testing source include ground, power supply and common end, first input port, the second input port or third input Port is connected respectively to the testing source, and the movable contact of the first relay is connected to the output of load access component End, the normally-closed contact of the first relay are connected to the load incoming end of load access component;The movable contact of second relay and The movable contact of one relay connects, and the normally opened contact of the second relay is connected to the movable contact of third relay;Third relay Normally-closed contact be connected to third input port, the normally opened contact of third relay is connected to the movable contact of the 4th relay;The The normally-closed contact and normally opened contact of four relays are connected respectively to first input port and the second input port;First relay, The control terminal of second relay, third relay and the 4th relay is connected respectively to the real-time controller, real-time controller The opening and closing of first relay, the second relay, third relay and the 4th relay is controlled.
Further, the direct fault location unit includes one or more boards, and the board includes real-time controller and one A or multiple failure generating unit, the real-time controller control failure generating unit generate injection electric fault, the failure Generating unit, which has, is connected to the output end of tested electronic control unit, injection electric fault generated can be injected by Survey electronic control unit.
Further, the failure generating unit includes load access component and signal source accesses component, the load access Component includes the first relay, load incoming end and output end, the signal source access component include the second relay, third after Electric appliance, the 4th relay, first input port, the second input port and third input port, the testing source include ground, Power supply and common end, first input port, the second input port or third input port are connected respectively to the test letter Number source, the movable contact of the first relay are connected to the output end of load access component, and the normally-closed contact of the first relay is connected to The load incoming end of load access component;The movable contact of second relay is connect with the movable contact of the first relay, the second relay The normally opened contact of device is connected to the movable contact of third relay;The normally-closed contact of third relay is connected to third input port, The normally opened contact of third relay is connected to the movable contact of the 4th relay;The normally-closed contact and normally opened contact of 4th relay point It is not connected to first input port and the second input port;First relay, the second relay, third relay and the 4th relay The control terminal of device is connected respectively to the real-time controller, and real-time controller is to the first relay, the second relay, third relay The opening and closing of device and the 4th relay is controlled, between the movable contact of first relay and the output end of load access component It is in series with the first fuse and first manual break connector, the load of the normally-closed contact and load access component of the first relay connects Enter to be in series with the second fuse between end and second-hand moves break connector;The first and second manual break connector setting is in event On the shell for hindering injection unit;And/or the load access of load access component is provided on the shell of the direct fault location unit The inserted terminal at end and output end.
Further, the direct fault location unit further includes mainboard, and one or more of boards are connected electrically in by card slot On mainboard.
The real time fail injection device of the embodiment of the present invention includes one or more direct fault location units as described above, leads to Believe that unit and real time fail inject control unit, real time fail injection control unit is connect with communication unit, real time fail injection Control unit carries out real-time control to direct fault location unit by communication unit, and the real-time controller of the direct fault location unit is logical Communication unit and real time fail injection control unit is crossed to be communicated, the load incoming end of the load access component and in real time therefore Barrier injection control unit connection.
Further, real time fail injection control unit is communicated with direct fault location unit using master-slave mode, in real time event Barrier injection control unit is used as host node, the board of direct fault location unit from node, each board of direct fault location unit With unique board identifier.
The real time fail method for implanting of the embodiment of the present invention includes the following steps:
According to the control instruction of direct fault location, connection is established with the target board of corresponding failure injection unit;
The target board of control corresponding failure injection unit executes direct fault location and executes instruction, and the direct fault location execution refers to Enable the target board of the board identifier and corresponding failure injection unit that include at least the target board of corresponding failure injection unit Operational order, wherein each board of direct fault location unit have unique board identifier.
Further, the target board for controlling corresponding failure injection unit executes direct fault location and executes instruction, comprising:
It is injected list with corresponding failure by the current injection electric fault for detecting the target board of corresponding failure injection unit The demand injection electric fault of the target board of member is compared, and generates the failure note of the target board of corresponding failure injection unit Enter to execute instruction;
The direct fault location is sent to the target board of corresponding failure injection unit to execute instruction.
Further, after sending the direct fault location to the target board of corresponding failure injection unit and executing instruction, also Include:
The execution checking prediction message that target board is sent is received, confirms the implementing result that the direct fault location executes instruction.
The real time fail injection control device of the embodiment of the present invention, is executed instruction, including link block using master-slave mode And execution module,
The link block is established with the target board of corresponding failure injection unit and is connected according to the control instruction of direct fault location It connects;
The target board of the execution module control corresponding failure injection unit executes direct fault location and executes instruction, the event Barrier injection executes instruction board identifier and corresponding failure the injection list including at least the target board of corresponding failure injection unit The operational order of the target board of member, wherein each board of direct fault location unit has unique board identifier.
Beneficial effects of the present invention: the direct fault location unit and its board of proposition of the embodiment of the present invention, real time fail injection Method, apparatus and equipment, focus on real-time response, the time error of system is preferably minimized, can satisfy hardware-in―the-loop test or The requirement of real-time of general test.Also, real time fail injection device, the device of the embodiment of the present invention operate in hardware in loop survey In the real-time system of test system, it is ensured that the operation of direct fault location unit, to its in hardware in loop system in test process His equipment or the operation of board etc. all operate in real-time system, have unified executing subject;Summarizing various test mode information In the process, can recording process data in real time, without time error, automatic executed and test result convenient for complete test operation Judge automatically;It can also ensure that accurate, the real-time execution of communication command during the test, there is no due to postponing or blocking Time error caused by injects the communication between control unit and direct fault location unit so as to accurate judgement real time fail It is whether overtime.
Detailed description of the invention
Fig. 1 is a kind of structural block diagram for real time fail injection device that the embodiment of the present invention proposes;
Fig. 2 is the structural schematic diagram of the direct fault location unit for the real time fail injection device that the embodiment of the present invention proposes;
Fig. 3 is the combination control of the board of the direct fault location unit for the real time fail injection device that the embodiment of the present invention proposes The electrical block diagram of relay;
Fig. 4 is the real time fail method for implanting flow chart that the embodiment of the present invention proposes;
Fig. 5 is the structural block diagram for the real time fail injection device that the embodiment of the present invention proposes.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference Attached drawing, the present invention is described in more detail.But as known to those skilled in the art, the invention is not limited to attached drawings and following reality Apply example.
The embodiment of the present invention proposes a kind of real time fail injection device, as shown in Figure 1, infusing comprising one or more failures Enter unit, communication unit and real time fail injection control unit, the direct fault location unit and real time fail and injects control unit It is connect respectively with communication unit, operation has real time operating system in real time fail injection control unit, to the direct fault location list Member is controlled.
Wherein, each direct fault location unit has unique identifier, by different identifiers to multiple direct fault locations Unit is distinguished and is selected.In one embodiment, direct fault location unit has dial-up dish, and dial-up dish can determine that failure is infused The identifier for entering unit makes the circuit conducting of dial-up dish select direct fault location unit according to respective identifier.
As shown in Fig. 2, direct fault location unit includes mainboard and one or more boards, the board is connected electrically in mainboard On.Preferably, one or more card slots are provided on mainboard, board is plugged in the card slot on mainboard, when being provided on mainboard When multiple card slots, one or more boards can be plugged in card slot, card slot can also be vacant.
The board of the embodiment of the present invention includes real-time controller and one or more failure generating unit, real-time control Device controls failure generating unit and generates injection electric fault, and the failure generating unit, which has, is connected to tested electronic control unit Output end, injection electric fault generated can be injected into tested electronic control unit.Wherein, the failure generating unit Part include load access component and signal source access component, real-time controller control load access component and load connection or It disconnects, and control signal source access component is connected or disconnected with testing source.
As shown in figure 3, board faults generating unit is combination control relay, the real-time controller and real time fail are infused Entering control unit to be communicated, the load incoming end of the combination control relay is connected to real time fail injection control unit, Real time fail injects control unit and provides load for combination control relay, and the output end of the combination control relay is for connecting It is connected to tested electronic control unit.The board further includes communication control module, and the real-time controller passes through Communication Control mould Block is communicated with real time fail injection control unit.Each combination control relay corresponds to a direct fault location channel.Therefore Barrier injection unit is connected to the communication unit of real time fail injection device by mainboard.The direct fault location unit further includes shell, For accommodating the mainboard and board.
Each board on mainboard is numbered with unique board, can be according to the card for the direct fault location unit that it is linked into Groove location determines that the board number of board in equipment control process is different from the direct fault location as unique identifier Other boards in unit.Each board controls the note of respective channel by its internal one or more combination control relay Enter electric fault.
Specifically, as shown in figure 3, load access component includes the first relay 1, load incoming end and output end, Signal source access component includes the second relay 2, third relay 3, the 4th relay 4, first input port, second defeated Inbound port and third input port, the testing source include ground, power supply and common end.The movable contact of first relay 1 connects It is connected to the output end of load access component, the normally-closed contact of the first relay 1 is connected to the load incoming end of load access component; The movable contact of second relay 2 is connect with the movable contact of the first relay 1, and the normally opened contact of the second relay 2 is connected to third The movable contact of relay 3;The normally-closed contact of third relay 3 is connected to third input port, the normally opened contact of third relay 3 It is connected to the movable contact of the 4th relay 4;The normally-closed contact and normally opened contact of 4th relay 4 are connected respectively to first input end Mouth and the second input port;The control terminal difference of first relay 1, the second relay 2, third relay 3 and the 4th relay 4 Be connected to the real-time controller, real-time controller to the first relay 1, the second relay 2, third relay 3 and the 4th after The opening and closing of electric appliance 4 is controlled.
Based on the circuit structure of combination control relay shown in Fig. 3, first input port, the second input port can be passed through Or third input port is connected respectively to ground, power supply, common end (hanging or other signals source), realizes that different injections is electrical Failure.
By the first relay 1 of control, the second relay 2, third relay 3 and third relay 4 state, that is, it is controllable Make the fault type in single channel.Being connected to hanging port can be used as common end, for the short circuit between different channels.By This, for controlling whether connection load, the second relay 2, third relay 3 and third relay 4 can combine the first relay 1 Control is connected to first input port, the second input port or third input port.Wherein, it is controlled based on combination shown in Fig. 3 The circuit structure of relay, injection electric fault include 0- normally (the first relay 1 closure, the second relay 2 disconnect), 1- open circuit OP (the first relay 1 disconnects, and the second relay 2 disconnects), 2- bringing onto load are shorted to ground SGWithLoad (the first relay Device 1 be closed, the second relay 2 closure, ground connection), 3- without load short circuits to ground SG (the first relay 1 disconnection, the second relay 2 closure, ground connection), 4- bringing onto load be shorted to power supply SBWithLoad (the first relay 1 closure, the second relay 2 closure, connect electricity Source), 5- without load short circuits to power supply SB (the first relay 1 disconnect, the second relay 2 closure, connect power end), 6- without Load short circuits are to common end SCOM WhitLoad (the first relay 1 closure, the second relay 2 closure, connect common end) and 7- band Load short circuits to common end SCOM (the first relay 1 disconnect, the second relay 2 closure, connect common end).Wherein, power supply, Electric signal of the common end from external equipment.For example, when carrying out direct fault location to electronic control unit for vehicles ECU, power supply Usually battery positive voltage or the battery feed of simulation anode, ground is usually the battery terminal negative of battery terminal negative or simulation, Common end can be hanging or specified other signals source.
The real-time controller of each board of real time fail injection control unit passes through the communication unit and real time fail Control unit connection is injected, so as to be communicated with real time fail injection control unit.Real time fail injects control unit It is normal to can be RS232, RS485, RS422, CAN, LIN, Ethernet, Flexlay etc. with the Communication physical layer of direct fault location unit Communication modes.When real time fail injects control unit and direct fault location unit communications, using master-slave mode, operation there is into reality When operating system real time fail injection control unit be used as host node, the board of direct fault location unit is as from node.According to The board of identifier and board in direct fault location unit is numbered, and unique board identifier of each board is determined, from node Receive carry out the corresponding board identifier of autonomous node after responded.
The output end of one or more combination control relays of each board of real time fail injection control unit can connect It is connected in the corresponding failure injection channel of tested electronic control unit ECU, to different injection electric faults are injected into tested Electronic control unit ECU.
Preferably, inserted terminal, the load access of combination control relay are provided on the shell of the direct fault location unit End and output end can be connect with real time fail injection control unit and tested electronic control unit ECU respectively by inserted terminal. In addition, as needed, being in series with fuse and hand between the movable contact of the first relay 1 and the output end for combining control relay Dynamic break connector BOB (Break Out Box), the normally-closed contact of the first relay 1 are accessed with the load for combining control relay Also fuse and manual break connector BOB are in series between end, the shell of direct fault location unit is arranged in the manual break connector On body, so as to disconnect corresponding board manually.
The real time fail method for implanting of 4 pairs of embodiment of the present invention is illustrated referring to the drawings.
S10. real time fail injection control unit initializes the board configured in all direct fault location units.
In the present embodiment, real time fail injection control unit (host node) is injected to real time fail using polling mode and is controlled The multiple boards (from node) configured in unit processed send Initial message, and board, which connects, one by one sends, and wrap in the message of transmission Containing each board identifier, the initialization of all boards is carried out.
Real time fail injects control unit and includes: to the initialization step of the single board of real time fail injection control unit
S101. real time fail injects control unit to the board of direct fault location unit transmission Initial message.
After the board of direct fault location unit receives the Initial message to match with the board identifier of board thereon, Complete the initialization of corresponding board, in the present embodiment, the combination control relay for completing the board of initialization is 0- normally State, and the board of direct fault location unit generates initialization response message, and initialization response message is sent to real time fail Inject control unit.
S102. the board that real time fail injection control unit receives direct fault location unit is sent in response to Initial message Initialization response message, determine the init state of the board of direct fault location unit.
If the board that real time fail injection control unit receives direct fault location unit at the appointed time is sent first Beginningization response message includes that the board of direct fault location unit initializes normal information in the Initial message, it is determined that right The board of direct fault location unit completes initialization;Board in the Initial message including direct fault location unit initializes not just Normal information, it is determined that initialization is not completed to the board of direct fault location unit.
What if the board that real time fail injection control unit does not receive direct fault location unit at the appointed time was sent Initialization response message, then stop the reception of current message, and real time fail injects control unit again to direct fault location unit Board sends Initial message.If the number of repetition that real time fail injects the Initial message of control unit is more than predetermined value, Then determine that the initialization to the board of direct fault location unit fails.
It should be noted that " real time fail injection control unit initializes matches above-mentioned steps in all direct fault location units The board set " is run in the booting of real time fail injection device, after completing initialization, the reality of the embodiment of the present invention When Fault Insertion Equipment can normally execute corresponding control instruction, as described below.
S20. real time fail injects mesh of the control unit according to the control instruction of direct fault location, with corresponding failure injection unit Target card establishes connection.
After the board only configured in all direct fault location units completes initialization, this step just can enter.Preferably, In embodiments of the present invention, real time fail inject control unit using 1ms as the control instruction of the whether faulty injection of cycle detection, To be timely updated direct fault location state according to the feedback from message control module.
This step specifically includes:
S201. real time fail injection control unit determines the event for executing direct fault location according to the control instruction of direct fault location The target board for hindering injection unit issues connection message to the target board of direct fault location unit, includes in the connection message There is the board identifier of the target board of corresponding failure injection unit.
It is raw after the board of direct fault location unit receives the connection message to match with the board identifier of board thereon Real time fail injection control unit is sent at connection response message, and by connection response message.
S202. real time fail injection control unit receives the company that the board of direct fault location unit is sent in response to connection message Connect response message, the determining connection status with the board of direct fault location unit.
If real time fail injection control unit does not receive the corresponding board hair of direct fault location unit at the appointed time The connection response message sent, then stop the reception of current message, determines real time fail injection control unit and direct fault location unit Corresponding board connection failure, and feed back from the error message state of node.
If the corresponding board that real time fail injection control unit receives direct fault location unit at the appointed time is sent Connection response message, and the connection response message received is consistent with expected message, it is determined that real time fail injection control Unit board successful connection corresponding to direct fault location unit then executes direct fault location and executes instruction;If the company received It connects response message and expected message is inconsistent, it is determined that the respective plate of real time fail injection control unit and direct fault location unit Card connection failure, and feed back the error message state from node.
S30. after the target board of real time fail injection control unit and corresponding failure injection unit establishes connection, in real time The target board of direct fault location control unit control corresponding failure injection unit executes direct fault location and executes instruction.
In the system using master-slave mode, the direct fault location is executed instruction including at least corresponding failure injection unit The operational order of the board identifier of target board and the target board to corresponding failure injection unit.
The step specifically includes:
S301. real time fail injection control unit generates corresponding failure injection unit according to the control instruction of direct fault location The direct fault location of target board executes instruction.
Real time fail injects the current injection electric fault of the target board of control unit detection corresponding failure injection unit, It is compared with the demand injection electric fault of the target board of detection corresponding failure injection unit, generates corresponding failure note The direct fault location for entering the target board of unit executes instruction.
That is, if the current injection electric fault of the target board of corresponding failure injection unit and demand inject electric fault It is identical, then do not change the current injection electricity of the target board of corresponding failure injection unit in the direct fault location of generation executes instruction Gas failure;If the current injection electric fault of the target board of corresponding failure injection unit and demand injection electric fault are not Together, then in the direct fault location of generation executes instruction by the current injection electric fault of the target board of corresponding failure injection unit It is changed to demand injection electric fault.
S302. real time fail injects control unit to the target board of the corresponding failure injection unit transmission direct fault location It executes instruction.
The Target Board clamping of corresponding failure injection unit receives after the direct fault location executes instruction, and executes the failure note Enter to execute instruction, and avoid the interference of communication, guarantee the accurate transmission of Content of communciation, executed instruction based on the direct fault location and It generates and executes checking prediction message.It include execution check code in the execution checking prediction message, executing check code can be the failure The check byte executed instruction is injected, check byte can be used but not limited to the verifications sides such as CRC32/CRC16, adduction verification Formula.
S303. real time fail injection control unit receives the execution checking prediction message that target board is sent, and confirms the failure Inject the implementing result executed instruction.
In embodiments of the present invention, this step is preferred steps.
If real time fail injection control unit does not receive the corresponding board hair of direct fault location unit at the appointed time The execution checking prediction message sent, then stop the reception of current message, determines the failure that executes that the direct fault location executes instruction, and anti- Error message state of the feedback feedback from node.
If the corresponding board that real time fail injection control unit receives direct fault location unit at the appointed time is sent Execution checking prediction message, verified to check code is executed, it is correct to execute verification code check, it is determined that the direct fault location executes Instruction executes completion;It is incorrect to execute verification code check, it is determined that the direct fault location executed instruction executes failure, and anti- Error message state of the feedback feedback from node.
Above-mentioned real time fail method for implanting according to an embodiment of the present invention only can send failure note to a target board Enter to execute instruction, Target Board card control combination control relay executes direct fault location and executes instruction.It, can be with according to the above method Real-time synchronization direct fault location is realized to multiple boards, real time fail injects control unit and sends direct fault location to respective objects board After executing instruction, each respective combination control relay of Target Board card control executes direct fault location and executes instruction.Especially, when When the Target Board is stuck on the same direct fault location unit, effect is more excellent.
In order to enable the synchronism of system is more preferable, select the relay of unified batch and model, with guarantee combination control after The execution time of electric appliance is almost the same, detection cycle (real-time operation of the time error control in real time fail injection control unit The cycle of operation of system, such as 1ms) within, to guarantee the requirement of real-time of Fault Insertion Equipment.
The real time fail method for implanting of the embodiment of the present invention can guarantee operation in test process to direct fault location unit, The operation etc. of other equipment or board in hardware in loop system is all operated in real-time system, executing subject has been unified;It is converging In total various test mode information process, can recording process data in real time, without time error, convenient for completing test operation It is automatic to execute and test result judges automatically;It can also ensure that accurate, the real-time execution of communication command during the test, no In the presence of the time error as caused by delay or Caton, control unit and failure are injected so as to accurate judgement real time fail Whether the communication between injection unit is overtime.
It is corresponding with above-mentioned real time fail method for implanting, as shown in figure 5, the real time fail of the embodiment of the present invention injects control Device includes initialization module, link block and execution module.
Initialization module is for initializing the board configured in all direct fault location units.
In the present embodiment, the initialization module of real time fail injection control unit (host node) uses polling mode to reality When direct fault location control unit in multiple boards (from node) for configuring send Initial message, board, which connects, one by one sends, hair Include each board identifier in the message sent, carries out the initialization of all boards.
The initialization module that real time fail injects control unit includes Initial message sending module and initialization response report Literary receiving module.
Initial message sending module is used to send Initial message to the board of direct fault location unit.
After the board of direct fault location unit receives the Initial message to match with the board identifier of board thereon, Complete the initialization of corresponding board.In the present embodiment, the combination control relay for completing the board of initialization is 0- normally State, and the board of direct fault location unit generates initialization response message, and initialization response message is sent to real time fail Inject the initialization response message receiving module of the initialization module of control unit.
The board that initialization response message receiving module is used to receive direct fault location unit is sent out in response to Initial message The initialization response message sent determines the init state of the board of direct fault location unit.
What if the board that initialization response message receiving module receives direct fault location unit at the appointed time was sent Initialization response message includes that the board of direct fault location unit initializes normal information in the Initial message, it is determined that Initialization is completed to the board of direct fault location unit;Board initialization in the Initial message including direct fault location unit is not Normal information, it is determined that initialization is not completed to the board of direct fault location unit.
If the board that initialization response message receiving module does not receive direct fault location unit at the appointed time is sent Initialization response message, then stop the reception of current message, the Initial message sending module is again to direct fault location list The board of member sends Initial message.If the number of repetition of the Initial message of the Initial message sending module is more than pre- Definite value, it is determined that fail to the initialization of the board of direct fault location unit.
It should be noted that above-mentioned initialization module is only the operation in the booting of real time fail injection device, once it completes After initialization, the real time fail injection device of the embodiment of the present invention can normally execute corresponding control instruction.
Link block is used for the control instruction according to direct fault location, establishes and connects with the target board of corresponding failure injection unit It connects.
After the board only configured in all direct fault location units completes initialization, link block could be worked normally. Preferably, in embodiments of the present invention, link block is using 1ms as the control instruction of the whether faulty injection of cycle detection.
The link block includes connection message sending module and connection response message receiving module.
The connection message sending module determines the direct fault location for executing direct fault location according to the control instruction of direct fault location The target board of unit issues connection message to the target board of direct fault location unit, includes corresponding in the connection message The board identifier of the target board of direct fault location unit.
It is raw after the board of direct fault location unit receives the connection message to match with the board identifier of board thereon The connection response message receiving module is sent at connection response message, and by connection response message.
Connection response message receiving module is used to receive the company that the board of direct fault location unit is sent in response to connection message Connect response message, the determining connection status with the board of direct fault location unit.
If connection response message receiving module does not receive the corresponding board hair of direct fault location unit at the appointed time The connection response message sent, and stop the reception of current message, the connection response message received is consistent with expected message, then It determines the board successful connection corresponding to direct fault location unit of real time fail injection control unit, then executes direct fault location and execute Instruction.If the connection response message and expected message that receive are inconsistent, it is determined that real time fail inject control unit with The corresponding board connection failure of direct fault location unit, and feed back the error message state from node.
If the corresponding board that connection response message receiving module receives direct fault location unit at the appointed time is sent Connection response message, it is determined that real time fail injects corresponding to direct fault location unit the board successful connection of control unit.
Execution module is used for after the target board of the link block and corresponding failure injection unit establishes connection, control The target board of corresponding failure injection unit executes direct fault location and executes instruction.
In the system using master-slave mode, the direct fault location is executed instruction including at least corresponding failure injection unit The operational order of the board identifier of target board and the target board to corresponding failure injection unit.
The execution module include: that direct fault location executes instruction generation module, direct fault location executes instruction sending module and Execute checking prediction message receiving module.
The direct fault location executes instruction generation module according to the control instruction of direct fault location, and it is single to generate corresponding failure injection The direct fault location of the target board of member executes instruction.
The direct fault location executes instruction the current injection of the target board of generation module detection corresponding failure injection unit It is compared with the demand injection electric fault of the target board of detection corresponding failure injection unit, generates by electric fault The direct fault location of the target board of corresponding failure injection unit executes instruction.
That is, if the current injection electric fault of the target board of corresponding failure injection unit and demand inject electric fault It is identical, then do not change the current injection electricity of the target board of corresponding failure injection unit in the direct fault location of generation executes instruction Gas failure;If the current injection electric fault of the target board of corresponding failure injection unit and demand injection electric fault are not Together, then in the direct fault location of generation executes instruction by the current injection electric fault of the target board of corresponding failure injection unit It is changed to demand injection electric fault.
The direct fault location executes instruction sending module and sends the failure to the target board of corresponding failure injection unit Injection executes instruction.
The Target Board clamping of corresponding failure injection unit receives after the direct fault location executes instruction, and executes the failure note Enter to execute instruction, and the accurate transmission in order to guarantee Content of communciation, is executed instruction based on the direct fault location and generate and execute school Test message.It include execution check code in the execution checking prediction message, executing check code can refer to for direct fault location execution The check byte of order, check byte can be used but not limited to the verification modes such as CRC32/CRC16, adduction verification.
The execution checking prediction message for executing checking prediction message receiving module and being used to receive the transmission of target board, confirms the event The implementing result that barrier injection executes instruction.
In embodiments of the present invention, if the execution checking prediction message receiving module does not receive failure at the appointed time The execution checking prediction message that the corresponding board of injection unit is sent, then stop the reception of current message, determine that the direct fault location is held Row instruction executes failure.
If the corresponding board for executing checking prediction message receiving module and receiving direct fault location unit at the appointed time The execution checking prediction message of transmission is verified to check code is executed, and it is correct to execute verification code check, it is determined that the direct fault location What is executed instruction executes completion;It is incorrect to execute verification code check, it is determined that the direct fault location executed instruction executes failure.
Above-mentioned real time fail injection control unit according to an embodiment of the present invention only can send event to a target board Barrier injection executes instruction, and Target Board card control combination control relay executes direct fault location and executes instruction, can also be to multiple plates Card realizes real-time synchronization direct fault location, and real time fail is injected control unit and executed instruction to respective objects board transmission direct fault location Afterwards, the respective combination control relay of each Target Board card control executes direct fault location and executes instruction.Especially, when the target For board when on the same direct fault location unit, effect is more excellent.
In order to enable the synchronism of system is more preferable, select the relay of unified batch and model, with guarantee combination control after The execution time of electric appliance is almost the same, detection cycle (real-time operation of the time error control in real time fail injection control unit The cycle of operation of system, such as 1ms) within, to guarantee the requirement of real-time of Fault Insertion Equipment.
The master control program of the real time fail injection device of the embodiment of the present invention operates in the reality of hardware-in―the-loop test system When system in, it is ensured that the operation of direct fault location unit, to other equipment or plate in hardware in loop system in test process The operation etc. of card all operates in real-time system, has unified executing subject;It, can in summarizing various test mode information process In real time, the recording process data without time error, convenient for completing the automatic execution of test operation and judging automatically for test result; It can also ensure that accurate, the real-time execution of communication command during the test, when there is no as caused by delay or Caton Between error, whether overtime inject the communication between control unit and direct fault location unit so as to accurate judgement real time fail.
The embodiment of the present invention also proposes a kind of computer readable storage medium, is stored thereon with computer program, the calculating The step of above method is realized when machine program is executed by processor.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage The step of computer program, the processor realizes the above method when executing described program.
It will be understood by those skilled in the art that in flow charts indicate or logic described otherwise above herein and/or Step may be embodied in and appoint for example, being considered the order list of the executable instruction for realizing logic function In what computer-readable medium, for instruction execution system, device or equipment (such as computer based system including processor System or other can be from instruction execution system, device or equipment instruction fetch and the system executed instruction) use, or combine this A little instruction execution systems, device or equipment and use.For the purpose of this specification, " computer-readable medium " can be it is any can be with Include, store, communicate, propagate, or transport program is for instruction execution system, device or equipment or in conjunction with these instruction execution systems System, device or equipment and the device used.
The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
More than, embodiments of the present invention are illustrated.But the present invention is not limited to above embodiment.It is all Within the spirit and principles in the present invention, any modification, equivalent substitution, improvement and etc. done should be included in guarantor of the invention Within the scope of shield.

Claims (12)

1. a kind of board of direct fault location unit, it is characterised in that: the board includes real-time controller and one or more event Hinder generating unit, the real-time controller control failure generating unit generates injection electric fault, the failure generating unit tool There is the output end for being connected to tested electronic control unit, injection electric fault generated can be injected into tested electronic control Unit.
2. the board of direct fault location unit as described in claim 1, which is characterized in that the failure generating unit includes load It accesses component and signal source accesses component,
The real-time controller control load access component is connected or disconnected with load, and control signal source accesses component and surveys Trial signal source connects or disconnects.
3. the board of direct fault location unit as claimed in claim 2, which is characterized in that the load access component includes first Relay, load incoming end and output end, the signal source access component include the second relay, third relay, the 4th after Electric appliance, first input port, the second input port and third input port, the testing source include ground, power supply and public End, first input port, the second input port or third input port are connected respectively to the testing source,
The movable contact of first relay is connected to the output end of load access component, and the normally-closed contact of the first relay is connected to negative Carry the load incoming end of access component;The movable contact of second relay is connect with the movable contact of the first relay, the second relay Normally opened contact be connected to the movable contact of third relay;The normally-closed contact of third relay is connected to third input port, the The normally opened contact of three relays is connected to the movable contact of the 4th relay;The normally-closed contact and normally opened contact of 4th relay are distinguished It is connected to first input port and the second input port;First relay, the second relay, third relay and the 4th relay Control terminal be connected respectively to the real-time controller, real-time controller is to the first relay, the second relay, third relay Opening and closing with the 4th relay is controlled.
4. a kind of direct fault location unit, which is characterized in that the direct fault location unit includes one or more boards, the board Including real-time controller and one or more failure generating unit, the real-time controller control failure generating unit generates injection Electric fault, the failure generating unit have the output end for being connected to tested electronic control unit, can be by note generated Enter electric fault and is injected into tested electronic control unit.
5. direct fault location unit as claimed in claim 4, which is characterized in that
The failure generating unit includes load access component and signal source accesses component, and the load access component includes first Relay, load incoming end and output end, the signal source access component include the second relay, third relay, the 4th after Electric appliance, first input port, the second input port and third input port, the testing source include ground, power supply and public End, first input port, the second input port or third input port are connected respectively to the testing source,
The movable contact of first relay is connected to the output end of load access component, and the normally-closed contact of the first relay is connected to negative Carry the load incoming end of access component;The movable contact of second relay is connect with the movable contact of the first relay, the second relay Normally opened contact be connected to the movable contact of third relay;The normally-closed contact of third relay is connected to third input port, the The normally opened contact of three relays is connected to the movable contact of the 4th relay;The normally-closed contact and normally opened contact of 4th relay are distinguished It is connected to first input port and the second input port;First relay, the second relay, third relay and the 4th relay Control terminal be connected respectively to the real-time controller, real-time controller is to the first relay, the second relay, third relay Opening and closing with the 4th relay is controlled,
The first fuse and first-hand is in series between the movable contact of first relay and the output end of load access component Dynamic break connector is in series with the second fuse between the normally-closed contact of the first relay and the load incoming end of load access component Break connector is moved with second-hand;
The first and second manual break connector is arranged on the shell of direct fault location unit;And/or the direct fault location list The inserted terminal of the load incoming end and output end of load access component is provided on the shell of member.
6. direct fault location unit as claimed in claim 4, which is characterized in that the direct fault location unit further includes mainboard, institute One or more boards are stated to be connected electrically on mainboard by card slot.
7. a kind of real time fail injection device, which is characterized in that the real time fail injection device includes one or more as weighed Benefit requires direct fault location unit, communication unit described in one of 4-6 and real time fail injects control unit, real time fail injection control Unit processed is connect with communication unit, and real time fail injection control unit controls direct fault location unit by communication unit in real time System,
The real-time controller of the direct fault location unit injects control unit with real time fail by communication unit and is communicated, institute The load incoming end for stating load access component is connect with real time fail injection control unit.
8. real time fail injection device as claimed in claim 7, which is characterized in that real time fail injects control unit and failure Injection unit is communicated using master-slave mode, and real time fail injects control unit as host node, the plate of direct fault location unit Card has unique board identifier as from each board of node, direct fault location unit.
9. a kind of real time fail method for implanting, which comprises the steps of:
According to the control instruction of direct fault location, connection is established with the target board of corresponding failure injection unit;
Control corresponding failure injection unit target board execute direct fault location execute instruction, the direct fault location execute instruction to The behaviour of the target board of the board identifier and corresponding failure injection unit of target board including corresponding failure injection unit less It instructs, wherein each board of direct fault location unit has unique board identifier.
10. real time fail method for implanting as claimed in claim 9, which is characterized in that the mesh of control corresponding failure injection unit Target card executes direct fault location and executes instruction, comprising:
The current injection electric fault for detecting the target board of corresponding failure injection unit, by itself and corresponding failure injection unit The demand injection electric fault of target board is compared, and the direct fault location for generating the target board of corresponding failure injection unit is held Row instruction;
The direct fault location is sent to the target board of corresponding failure injection unit to execute instruction.
11. real time fail method for implanting as claimed in claim 10, which is characterized in that in the mesh to corresponding failure injection unit After the target card transmission direct fault location executes instruction, further includes:
The execution checking prediction message that target board is sent is received, confirms the implementing result that the direct fault location executes instruction.
12. a kind of real time fail injection control device, which is characterized in that executed instruction using master-slave mode, including link block And execution module,
The link block establishes connection with the target board of corresponding failure injection unit according to the control instruction of direct fault location;
The target board of the execution module control corresponding failure injection unit executes direct fault location and executes instruction, the failure note Enter the board identifier and corresponding failure injection unit executed instruction including at least the target board of corresponding failure injection unit The operational order of target board, wherein each board of direct fault location unit has unique board identifier.
CN201910214272.4A 2019-03-20 2019-03-20 Direct fault location unit and its board, real time fail method for implanting, device and equipment Pending CN109947078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910214272.4A CN109947078A (en) 2019-03-20 2019-03-20 Direct fault location unit and its board, real time fail method for implanting, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910214272.4A CN109947078A (en) 2019-03-20 2019-03-20 Direct fault location unit and its board, real time fail method for implanting, device and equipment

Publications (1)

Publication Number Publication Date
CN109947078A true CN109947078A (en) 2019-06-28

Family

ID=67011132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910214272.4A Pending CN109947078A (en) 2019-03-20 2019-03-20 Direct fault location unit and its board, real time fail method for implanting, device and equipment

Country Status (1)

Country Link
CN (1) CN109947078A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112051835A (en) * 2020-09-08 2020-12-08 浙江中控技术股份有限公司 DCS redundancy function testing method and device
CN113589171A (en) * 2021-06-30 2021-11-02 中汽研汽车检验中心(天津)有限公司 Test method for hard line fault injection of battery management system
CN114647232A (en) * 2022-04-20 2022-06-21 中国第一汽车股份有限公司 CAN bus fault injection equipment and method
CN114995347A (en) * 2022-06-16 2022-09-02 北京经纬恒润科技股份有限公司 Fault injection method, device and equipment
CN116256578A (en) * 2023-02-03 2023-06-13 潍柴动力股份有限公司 Method and device for testing electronic control unit and fault injection system thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233438A1 (en) * 2004-07-01 2007-10-04 Cae Inc. Method and system for simulation-based troubleshooting and fault verification in operator-controlled complex systems
CN202870210U (en) * 2012-10-24 2013-04-10 北京经纬恒润科技有限公司 Fault injection circuit and device
CN203965936U (en) * 2014-07-21 2014-11-26 北京经纬恒润科技有限公司 New forms of energy controller hardware is in ring test system
CN104571069A (en) * 2013-10-09 2015-04-29 上海通用汽车有限公司 Simulation testing system for automobile body controller
CN106444721A (en) * 2016-11-21 2017-02-22 南京越博动力系统股份有限公司 Hardware-in-the-loop test system for whole vehicle controller for electric vehicle and test method
CN106776188A (en) * 2016-12-30 2017-05-31 南京理工大学 Bus failure injected system based on DSP and FPGA
CN107247451A (en) * 2017-05-19 2017-10-13 意昂神州(北京)科技有限公司 A kind of intelligent integrated multichannel fault injection system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233438A1 (en) * 2004-07-01 2007-10-04 Cae Inc. Method and system for simulation-based troubleshooting and fault verification in operator-controlled complex systems
CN202870210U (en) * 2012-10-24 2013-04-10 北京经纬恒润科技有限公司 Fault injection circuit and device
CN104571069A (en) * 2013-10-09 2015-04-29 上海通用汽车有限公司 Simulation testing system for automobile body controller
CN203965936U (en) * 2014-07-21 2014-11-26 北京经纬恒润科技有限公司 New forms of energy controller hardware is in ring test system
CN106444721A (en) * 2016-11-21 2017-02-22 南京越博动力系统股份有限公司 Hardware-in-the-loop test system for whole vehicle controller for electric vehicle and test method
CN106776188A (en) * 2016-12-30 2017-05-31 南京理工大学 Bus failure injected system based on DSP and FPGA
CN107247451A (en) * 2017-05-19 2017-10-13 意昂神州(北京)科技有限公司 A kind of intelligent integrated multichannel fault injection system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112051835A (en) * 2020-09-08 2020-12-08 浙江中控技术股份有限公司 DCS redundancy function testing method and device
CN113589171A (en) * 2021-06-30 2021-11-02 中汽研汽车检验中心(天津)有限公司 Test method for hard line fault injection of battery management system
CN113589171B (en) * 2021-06-30 2023-12-01 中汽研汽车检验中心(天津)有限公司 Hard wire fault injection test method for battery management system
CN114647232A (en) * 2022-04-20 2022-06-21 中国第一汽车股份有限公司 CAN bus fault injection equipment and method
CN114647232B (en) * 2022-04-20 2024-09-13 中国第一汽车股份有限公司 CAN bus fault injection equipment and method
CN114995347A (en) * 2022-06-16 2022-09-02 北京经纬恒润科技股份有限公司 Fault injection method, device and equipment
CN116256578A (en) * 2023-02-03 2023-06-13 潍柴动力股份有限公司 Method and device for testing electronic control unit and fault injection system thereof

Similar Documents

Publication Publication Date Title
CN109947078A (en) Direct fault location unit and its board, real time fail method for implanting, device and equipment
CN101551770B (en) Hot plug testing device and method
CN201780506U (en) Test equipment for testing electronic controller
CN108900377A (en) A kind of CAN network test macro and test method
CN109358606A (en) Vehicle automatization test system, test method and device
CN103699112B (en) Based on avionics Autonomous test Authentication devices and the verification method thereof of I/O signal fault simulation
CN112147981A (en) dSPACE HIL-based electric vehicle power-on and power-off logic test method and test system
CN109726061B (en) SoC chip verification method
CN113253700A (en) Hardware-in-loop closed-loop test method and system for battery management system
CN109143033A (en) An automatic test system for the whole star interface
CN113064047B (en) Testing device and testing method for end-to-end protection between electronic control units
CN110501998B (en) BMS hardware in-loop test system and test method
CN113495545A (en) System and method for testing vehicle equipment controller using in-loop hardware
CN113392508B (en) Integrated simulation test system for automobile power chassis
CN101778007A (en) System and method for automatically testing I/O pin of CAN bus control module
CN109117371A (en) A kind of fault filling method improving period BIT verifying ability
CN207318605U (en) Automobile bus radiated immunity test system
CN111308992B (en) Vehicle-mounted diagnostic recorder testing method and system
CN101793934B (en) Universal anti-drawing test equipment and test method thereof
CN114074697A (en) Fep simulator, industrial computer and rail transit integrated monitoring and simulation system
CN115755854B (en) A field testing device and method for a flexible direct valve control board
CN102075370A (en) Calibration and verification system of engine control model (ECM) communication based on virtual network and virtual node
CN114647232A (en) CAN bus fault injection equipment and method
CN109283920B (en) DCS system connection fault testing device and method
CN114296532B (en) RIOM machine box and network control system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190628