CN108334060B - A kind of bus failure injection device - Google Patents

A kind of bus failure injection device Download PDF

Info

Publication number
CN108334060B
CN108334060B CN201810213935.6A CN201810213935A CN108334060B CN 108334060 B CN108334060 B CN 108334060B CN 201810213935 A CN201810213935 A CN 201810213935A CN 108334060 B CN108334060 B CN 108334060B
Authority
CN
China
Prior art keywords
bus
data
injection
failure
electrical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810213935.6A
Other languages
Chinese (zh)
Other versions
CN108334060A (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.)
Beijing Runke General Technology Co Ltd
Original Assignee
Beijing Runke General 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 Beijing Runke General Technology Co Ltd filed Critical Beijing Runke General Technology Co Ltd
Priority to CN201810213935.6A priority Critical patent/CN108334060B/en
Publication of CN108334060A publication Critical patent/CN108334060A/en
Application granted granted Critical
Publication of CN108334060B publication Critical patent/CN108334060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0256Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults injecting test signals and analyzing monitored process response, e.g. injecting the test signal while interrupting the normal operation of the monitored system; superimposing the test signal onto a control signal during normal operation of the monitored system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of bus failure injection devices, including sequentially connected first interface, electrical detection module, physical layer malfunctioning module and second interface, and the controller connecting with electrical detection module;Controller, for receiving direct fault location configuration-direct, the direct fault location configuration-direct includes physical layer failure item injection information, electrical layer failure item injects at least one in information and protocol layer failure item injection information, and direct fault location state is configured for corresponding module according to the failure item injection information for including, when electrical detection module is in direct fault location state, the bus data received is sent to controller, the controller injects corresponding electrical layer failure item and/or protocol layer failure item to the bus data, physical layer failure item is injected to bus when physical layer malfunctioning module is in direct fault location state, it so realizes and flexibly injects multinomial failure item.

Description

A kind of bus failure injection device
Technical field
The present invention relates to bus signals fault diagnosis and injection technique fields, more specifically to a kind of bus failure Injection device.
Background technique
In modern railway transportation electronic system, in order to which the reliability to system is adequately detected, generally require to lead to It crosses Failure Injection Technique and simulates various abnormal conditions, detection system is come for the processing capacity of abnormal conditions with this.
Currently, in the direct fault location mode of WTB (Wire Train Bus, wired train bus) bus, failure Injection device is connected in the bus, and simulates its corresponding failure item, wherein a Fault Insertion Equipment can only simulate an event Hinder item, such as relay board can only simulate open circuit fault item, analog quantity board can only analog voltage amplitude failure item.As it can be seen that Single excitation injection device cannot flexibly carry out the simulation of multiple faults item.
Summary of the invention
In view of this, the present invention provides a kind of bus failure injection device, to realize the flexible mould for carrying out multiple faults item It is quasi-.
To achieve the goals above, it is proposed that:
A kind of bus failure injection device, the Fault Insertion Equipment include sequentially connected first interface, electrical detection Module, physical layer malfunctioning module and second interface, and the controller being connect with the electrical detection module, the electrical detection mould The original state of block and physical layer malfunctioning module is pass-through state, and the Fault Insertion Equipment passes through the first interface and described Second interface is connected into bus;
Controller, for receiving direct fault location configuration-direct, the direct fault location configuration-direct includes physical layer failure item At least one in information, electrical layer failure item injection information and protocol layer failure item injection information is injected, when direct fault location is matched Set instruction in include electrical layer failure item injection information and/or protocol layer failure item injection information when, by the electrical detection mould Block is configured to direct fault location state;
The electrical detection module, for when it is in direct fault location state, the bus data received to be sent to Controller, the controller inject corresponding electrical layer failure according to the direct fault location configuration-direct, Xiang Suoshu bus data Item and/or protocol layer failure item, and the bus data for injecting failure item is sent to the electrical detection module, the electrical inspection It surveys module and the bus data transfer of the injection failure item is returned into the bus;
The controller is also used to, when in the direct fault location configuration-direct include the physical layer failure item inject information When, direct fault location state is configured by the physical layer malfunctioning module, the physical layer malfunctioning module is in failure for working as it When injection state, physical layer failure item is injected to the bus data.
Preferably, the bus failure injection device further includes and the electrical detection module and the first interface phase The direction selection module of connection, the original state of the direction selection module are pass-through state;
The electrical detection module is also used to, and judges the source of bus data received, when coming for the bus data When source is first interface, generates and send first direction selection instruction to the direction selection module, when the bus data When source is second interface, generates and send second direction selection instruction to the direction selection module;
The direction selection module, for according to the first direction selection instruction or the second direction selection instruction by The pass-through state is switched to first direction transmission state or second direction transmission state, the first direction transmission state or Two direction transmission states are the first direction or second direction for selecting bus data transfer, to enable in the Fault Insertion Equipment The state that bus data is transmitted according to half-duplex mode;
The electrical detection module is also used to, and is determining the first interface or second interface completion injection failure When the transmission of the bus data of item, Xiang Suoshu direction selection module, which is sent, restores instruction, and the direction selection module is according to Restore instruction and the pass-through state is reverted to by the first direction transmission state or second direction transmission state.
Preferably, the bus failure injection device, further includes:
The transformation being connected respectively with the direction selection module, the electrical detection module and the physical layer malfunctioning module Device interface module, the transformer interface module are used to carry out the direction selection module and the electrical detection module electrical Connection, and the electrical detection module and the physical layer malfunctioning module are electrically connected.
Preferably, the controller includes the protocol layer event for injecting the protocol layer failure item to the bus data Barrier injection submodule and the electrical layer direct fault location submodule for injecting the electrical layer failure item to the bus data.
Preferably, the protocol layer direct fault location submodule includes: the first acquisition process unit, matching unit, the first note Enter unit and the first recovery unit, wherein
First acquisition process unit, the bus data or the electrical layer for being sent to the electrical detection module The bus data for the injection electrical layer failure item that direct fault location submodule is sent is acquired processing, obtains frame data;
Matching unit, for carrying out critical field information extraction to the frame data, and by the critical field information of extraction It is matched with the match information in preset matching list;
First injection unit is used for when successful match, according to the direct fault location word for including in the preset matching list Section injects protocol layer failure item to the frame data;
First recovery unit, the data for exporting to first injection unit carry out after restoring processing and sending recovery Data.
Preferably, the electrical layer direct fault location submodule includes: the second acquisition process unit, the second injection unit and Two recovery units, wherein
Second acquisition unit, the bus data or the protocol layer failure for being sent to the electrical detection module The bus data for the injection protocol layer failure item that injection submodule is sent is acquired processing, obtains electric data;
Second injection unit, for injecting electrical layer failure item to the electric data;
Second recovery unit carries out recovery processing for the electric data to injection electrical layer failure item, and sends recovery Data afterwards.
Preferably, second injection unit includes: the amplitude tune being adjusted for the amplitude to the electric data Knot unit, the slope adjustment subelement being adjusted for the slope to the electric data, for the electric data Duty ratio be adjusted duty cycle adjustment subelement, in the electric data noise superposition of superimposed noise it is single Member, the bus delay subelement for being postponed to the electric data carry out down for the frame head to the electric data The postamble width tune for reconstituting the frame head undershoot regulator unit of section and being adjusted for the postamble width to the electric data At least one of knot unit.
Preferably, the bus failure injection device further include: memory, for storing frame data or described electrical Data.
It can be seen from the above technical scheme that Fault Insertion Equipment includes the first interface being sequentially connected, electrical detection Module, physical layer malfunctioning module and second interface, and the controller being connected with the electrical detection module;Controller is for connecing Direct fault location configuration-direct is received, the direct fault location configuration-direct includes physical layer failure item injection information, electrical layer failure item At least one in information and protocol layer failure item injection information is injected, and information, electricity are injected according to the physical layer failure item Gas-bearing formation failure item injection information and protocol layer failure item injection information match the electrical detection module and physical layer malfunctioning module It is set to direct fault location state, wherein the bus data received is sent control by the electrical detection module in direct fault location state In device processed, controller injects electrical layer failure item corresponding with direct fault location configuration-direct and/or protocol layer failure item to it, place Physical layer failure item is injected to bus data in the physical layer malfunctioning module of direct fault location state.As it can be seen that bus failure injection is set The direct fault location instruction that modules in standby are received according to controller carries out the injection of corresponding failure item, is so able to carry out Various failure item injections, realize bus failure injection device while injecting multiple failure items, thus more flexible comprehensive progress Fault simulation.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of bus failure injection device fundamental block diagram disclosed by the embodiments of the present invention;
Fig. 2 is a kind of bus failure injection device fundamental block diagram disclosed in another embodiment of the present invention;
Fig. 3 is a kind of bus failure injection device fundamental block diagram disclosed in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The present invention discloses a kind of bus failure injection device, and as described in Figure 1, which includes: successively First interface 100, electrical detection module 101, physical layer malfunctioning module 102 and the second interface 103 of connection, and with the electricity The controller 104 that gas detection module 101 connects;The original state of the electrical detection module 101 and physical layer malfunctioning module 102 For pass-through state;
Bus failure injection device is connected by the first interface 100 and second interface 103 in bus, is used for from total Bus data and output data are received in line into bus;When Fault Insertion Equipment is in the initial shape of unimplanted any failure item When state, first interface 100 and the straight-through connection of second interface 103, such as: first interface 100 receives bus data, the bus data Electrical detection module and physical layer malfunctioning module through being in pass-through state are transmitted directly to second interface 103, second interface 103 Bus data is exported into back bus;
Controller 104, for receiving direct fault location configuration-direct, which comes from host computer, packet Include at least one in physical layer failure item injection information, electrical layer failure item injection information and protocol layer failure item injection information , i.e., direct fault location configuration-direct can only include physical layer failure item injection information, electrical layer failure item injection information or association It discusses layer failure item and injects information, also may include any two injection information or three injections in above-mentioned three injections information Information all includes.
It wherein, include the fault message specifically injected in physical layer failure item injection information, including short trouble information, Open circuit fault information, series-parallel impedance information etc.;
When in direct fault location configuration-direct include electrical layer failure item injection information and/or protocol layer failure item inject information When, electrical detection module 101 is configured direct fault location state by controller 104;
The electrical detection module 101, for when it is in direct fault location state, the bus data received to be sent To controller 104, for the controller 104 according to the direct fault location configuration-direct, the injection of Xiang Suoshu bus data is corresponding electrical Layer failure item and/or protocol layer failure item, and the bus data for injecting failure item is sent back into electrical detection module 101, electrically The bus data transfer of the injection failure item is returned the bus by detection module 101.
Specifically, such as: it include protocol layer failure item information and electrical layer failure item information in direct fault location configuration-direct, the One interface 100 receives bus data, and by the bus data transfer to electrical detection module 101, electrical detection module 101 will Bus data is sent to controller 104, and controller 104 injects protocol layer failure item and electrical layer failure item to bus data, and The bus data for injecting failure item is sent back into electrical detection module 101, electrical detection module 101 will inject the bus of failure item Data are transferred to the physical layer malfunctioning module 102 in pass-through state, and then are transferred to second interface 103, and second interface 103 will The bus data of injection failure item exports back in bus.
Controller 104 is also used to, when in direct fault location configuration-direct including physical layer failure item injection information, by physics Layer malfunctioning module 102 is configured to direct fault location state, the physical layer malfunctioning module 102, is in direct fault location state for working as it When, physical layer failure item, including short trouble, open circuit fault, series and parallel compensated resistance failure are injected to the bus data, in this way, It is suitable by physical layer malfunctioning module 102 when bus data transfer is to the physical layer malfunctioning module 102 for being in direct fault location state In the route by having short circuit, open circuit and/or impedance exception.
Bus failure injection device in above-described embodiment includes the first interface being sequentially connected, electrical detection module, object Manage layer malfunctioning module and second interface, and the controller being connected with the electrical detection module;Controller is for receiving failure Configuration-direct is injected, the direct fault location configuration-direct includes physical layer failure item injection information, electrical layer failure item injection letter In breath and protocol layer failure item injection information at least one of information, and information, electrical is injected according to the physical layer failure item Layer failure item injection information and protocol layer failure item injection information configure the electrical detection module and physical layer malfunctioning module For direct fault location state, wherein the bus data received is sent control by the electrical detection module in direct fault location state In device, controller injects electrical layer failure item corresponding with direct fault location configuration-direct and/or protocol layer failure item to it, is in The physical layer malfunctioning module of direct fault location state injects physical layer failure item to bus data.As it can be seen that bus failure injection device In the direct fault location instruction that is received according to controller of modules carry out the injection of corresponding failure item, be so able to carry out each The injection of kind of failure item, realizes bus failure injection device while injecting multiple failure items, that is, realize WTB bus physical layer, The failure item of the cooperative cooperating of electrical layer and protocol layer injects, while comprehensive injecting strategy, can inject actual working environment In nearly all random/catastrophic failure phenomenon, to guarantee the reliability for verifying system under test (SUT) in the shortest time and just True property greatly shortens the research and development, test and commercialization time of system.
For the implementation of the injection failure of WTB bus, first interface 100 and second interface 103 all have 1 group of dual redundant A B half-duplex differential lines, route carry out the transmission of bus data in a half duplex manner, specifically, as shown in Fig. 2, bus event Hinder injection device further include: direction selection module 200, respectively with 100 phase of the electrical detection module 101 and the first interface Connection, the original state of the direction selection module 200 are pass-through state;
The case where the bus data that the electrical detection module 101 receives derives from first interface or second interface Under, Xiang Suoshu direction selection module 200 sends corresponding first direction selection instruction or second direction selection instruction;
Specifically, judging coming for the bus data received when the electrical detection module 101 receives bus data Source generates when the source of the bus data is first interface 100 and sends first party to the direction selection module 200 To selection instruction, when the source of the bus data is second interface 103, generates and sent out to the direction selection module 200 Send second direction selection instruction.
Wherein, electrical detection module is realized by hardware circuit, specifically, a signal level thresholds are set in circuit, When detecting bus data source, when detect a certain interface signal be more than the level threshold, then illustrate the bus received Data come from the interface.
The direction selection module 200, for being referred to according to the first direction selection instruction or second direction selection It enables and first direction transmission state or second direction transmission state, the first direction transmission state is switched to by the pass-through state Or second direction transmission state is the first direction or second direction for selecting bus data transfer, to enable the Fault Insertion Equipment In bus data transmitted according to half-duplex mode;
Specifically, selecting bus data transfer direction according to the first direction selection instruction to flow from first interface 100 Enter and is flowed out from second interface 103;According to the second direction selection instruction, bus data transfer direction is selected to connect from second Mouth 103 is flowed into and is flowed out from first interface 100.
Wherein, the selection that high-speed analog switch realizes different data direction can be selected.
Determine that first interface or second interface complete the bus data of injection failure item in the electrical detection module 101 When transmission, Xiang Suoshu direction selection module 200, which is sent, restores instruction, and the direction selection module 200 is instructed according to the recovery The pass-through state is reverted to by the first direction transmission state or second direction transmission state.
Wherein, since the transmission duration of data is relatively-stationary, so electrical detection module 101 can be transmitted according to data Duration sets corresponding decision logic to determine whether bus data is all transmitted back to from the interface of bus failure injection device In bus.
Specifically, there are two transmission directions in bus failure injection device for bus data, wherein when first interface 100 Receive transmitted in bus come bus data when, first interface 100 by bus data transfer to direction selection module 200, so The electrical detection module in direct fault location state is transferred to by the direction selection module 200 in pass-through state is straight-through afterwards 101, electrical detection module 101 determines that the bus data derives from first interface 100, and Xiang Suoshu direction selection module 200 is sent out First direction selection instruction is sent, the direction selection module 200 selects the transmission of data according to the first direction selection instruction Direction is to flow into from first interface 100 and flow out from second interface 103;
Meanwhile the electrical detection module 101 is by the bus data transfer to the controller 104, the controller 104, according to direct fault location configuration-direct, carry out protocol layer failure item to bus data and/or electrical layer failure item inject, and will The bus data transfer telegram in reply gas detection module 101 of failure item is injected, the electrical detection module 101 will inject the total of failure item Line number injects the number of buses of failure item according to the physical layer malfunctioning module 102 in pass-through state or direct fault location state is transferred to According to the second interface 103 is transferred to after physical layer malfunctioning module 102, second interface 103 will inject the bus of failure item Data are transmitted back in bus;
When second interface 103 receives the bus data transmitted in bus, second interface 103 arrives bus data transfer Physical layer malfunctioning module 102, and then by the physical layer malfunctioning module 102 in pass-through state or direct fault location state, transmission To the electrical detection module 101 for being in direct fault location state, electrical detection module 101 determines that the bus data derives from Second interface 103, Xiang Suoshu direction selection module 200 send second direction selection instruction, 200 basis of direction selection module The second direction selection instruction selects the transmission direction of bus data to flow into from second interface 103 and from first interface 100 Outflow;
The bus data is sent controller 104 by the electrical detection module 101 simultaneously, and controller 104 is to described Bus data carries out protocol layer failure item according to direct fault location configuration-direct and/or electrical layer failure item injects, and will injection event Hinder item bus data transfer telegram in reply gas detection module 101, the electrical detection module 101 by it is described injection failure item bus Data are transferred to direction selection module 200, and the bus data of the injection failure item is transferred to the by direction selection module 200 One interface 100, the first interface 100 return the bus data transfer of the injection failure item in bus.
Wherein, in order to realize between electrical detection module 101 and direction selection module 200, physical layer malfunctioning module 102 Electrical connection, in electrical detection module 101 and direction selection module 200, electrical detection module 101 and physical layer malfunctioning module Transformer interface module 300 is set between 102, it is specific as shown in Figure 3.
In one embodiment, controller 104 includes for the protocol layer to bus data injection protocol layer failure item Direct fault location submodule and for the bus data injection electrical layer failure item electrical layer direct fault location submodule.
Wherein, the protocol layer direct fault location submodule includes: the first acquisition process unit, matching unit, the first injection Unit and the first recovery unit,
First acquisition process unit, bus data or the electrical layer failure for being sent to the electrical detection module The bus data for the injection electrical layer failure item that injection submodule is sent is acquired processing, obtains frame data;
Wherein, the bus data or electrical layer malfunctioning module that the first acquisition process unit sends electrical detection module are sent The bus data of injection electrical layer failure item carry out analog-to-digital conversion and obtain digital signal, and be directed to the digital signal acquiring frame number According to.
Matching unit, for carrying out critical field information extraction to the frame data, and by the critical field information of extraction It is matched with the match information in preset matching list;
Wherein, critical field information extraction is carried out to frame data, critical field includes: destination device address (DD), link Control field (LC), source device address (SD) and link data length (SZ), critical field information is with receiving bus data Difference and it is different, match information includes matching condition and direct fault location field.Matching list is referred to the matching item of the presentation of table 1 Part and direct fault location field relationship, need to carry out different settings according to different direct fault locations, wherein table 1 present relationship be, Such as when matching condition is DD information, direct fault location field is LC, SD, SZ, DATA (data field), FCS-16 (banner word Section), correspondingly, include in the matching list of setting matching condition DD information and direct fault location field LC, SD, SZ, DATA, FCS-16。
When matching, the DD information in the critical field information of extraction is matched with matching condition DD information, if the two It is identical, it is determined that successful match, and then according to direct fault location field LC, SD, SZ, DATA and the FCS-16 for including in matching list, Failure is injected in the LC field of frame data, SD field, SZ field, DATA field and FCS-16 field.For another example preset matching Include matching condition LC information and direct fault location field SD, SZ, DATA and FCS-16 in table, the critical field of extraction is believed Breath is matched with matching condition LC information, and the two is if they are the same, it is determined that successful match, and then according to the event for including in matching list Barrier injection field LC, SD, SZ, DATA and FCS-16, determine in the SD field of frame data, SZ field, DATA field and FCS-16 Failure is injected in field.
Table 1
First injection unit, for when being matched to match information, according to the failure for including in the preset matching list It injects field and protocol layer failure item is injected to the frame data;
Wherein, according to determining injection fault field, protocol layer failure item is injected thereto.
First recovery unit, the data for exporting to first injection unit carry out recovery processing, and send recovery Data.
Wherein, digital-to-analogue conversion is carried out to the data of the first injection unit output, and is sent.
In above-described embodiment, the injection of protocol layer failure item uses the injection mode of critical field information matches, which In to the data transmitted in bus line, the critical field of direct fault location is selected by matched mode, rather than to each pass Key field all carries out direct fault location, has so widened the application scenarios of direct fault location.
It is appreciated that if in direct fault location configuration-direct setting without carry out data fault matching when, the first acquisition process Unit carries out duplication storage into memory after being handled to obtain frame data to the data received, by frame data, simultaneously The first recovery module is sent by frame data to carry out restoring processing and to send.
In one embodiment, electrical layer direct fault location submodule include: the second acquisition process unit, the second injection unit and Second recovery unit, wherein
Second acquisition unit, bus data or protocol layer direct fault location submodule for being sent to the electrical detection module The bus data for the injection protocol layer failure item that block is sent is acquired processing, obtains electric data;
Wherein, analog-to-digital conversion is carried out to data, obtains electric data.
Second injection unit, for injecting electrical layer failure item to the electric data;
Second recovery unit carries out recovery processing for the electric data to injection electrical layer failure item, and sends recovery Data afterwards.
Wherein, second injection unit includes: that the amplitude being adjusted for the amplitude to the electric data is adjusted (Vpp_injector) subelement, the slope adjustment (ratio_ being adjusted for the slope to the electric data Injector) subelement, the duty cycle adjustment (slope_ being adjusted for the duty ratio to the electric data Injector) subelement, in the electric data superimposed noise noise superposition (noise_injector) subelement, Bus delay (delay_injector) subelement for being postponed to the electric data, for the electric data Frame head carry out the frame head undershoot of undershoot adjusting and adjust (downpulse_injector) subelement and for the electrical number According at least one of postamble width adjusting (ED_width_injector) subelement for being adjusted of postamble width.
It is appreciated that can carry out the transparent transmission of electric data when fault-free injection needs, such as amplitude regulated value is arranged It is 0, while by electric data duplication storage into memory.
Specifically, bus data is to be introduced into protocol layer direct fault location submodule injection protocol layer failure item, then again It enters electrical layer direct fault location submodule injection electrical layer failure item and is still introduced into electrical layer direct fault location submodule Electrical layer failure item is injected, protocol layer direct fault location submodule injection protocol layer failure item is then entered back into, can all pass through event Barrier injection configuration-direct realization, i.e. direct fault location configuration-direct.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (7)

1. a kind of bus failure injection device, which is characterized in that the Fault Insertion Equipment includes that sequentially connected first connects Mouth, electrical detection module, physical layer malfunctioning module and second interface, and the controller being connect with the electrical detection module, institute The original state for stating electrical detection module and the physical layer malfunctioning module is pass-through state, and the Fault Insertion Equipment passes through institute It states first interface and the second interface is connected into bus;
The controller, for receiving direct fault location configuration-direct, the direct fault location configuration-direct includes physical layer failure item At least one in information, electrical layer failure item injection information and protocol layer failure item injection information is injected, when the failure is infused Enter in configuration-direct include the electrical layer failure item injection information and/or the protocol layer failure item injection information when, by institute It states electrical detection module and is configured to direct fault location state;
The electrical detection module, for the bus data received being sent to described when it is in direct fault location state Controller, the controller inject corresponding electrical layer failure according to the direct fault location configuration-direct, Xiang Suoshu bus data Item and/or protocol layer failure item, and the bus data for injecting failure item is sent to the electrical detection module, the electrical inspection It surveys module and the bus data transfer of the injection failure item is returned into the bus;
The controller is also used to, when in the direct fault location configuration-direct including physical layer failure item injection information, Direct fault location state, the physical layer malfunctioning module, for infusing when it is in failure are configured by the physical layer malfunctioning module When entering state, physical layer failure item is injected to the bus data;
It further include the direction selection module being connected with the electrical detection module and the first interface, the direction selection mould The original state of block is pass-through state;
The electrical detection module is also used to, and judges the source of bus data received, when the source of the bus data is When first interface, generates and send first direction selection instruction to the direction selection module, when the source of the bus data When for second interface, generates and simultaneously send second direction selection instruction to the direction selection module;
The direction selection module is used for according to the first direction selection instruction or the second direction selection instruction by described Pass-through state is switched to first direction transmission state or second direction transmission state, the first direction transmission state or second party It is the first direction or second direction for selecting bus data transfer to transmission state, to enable the bus in the Fault Insertion Equipment The state that data are transmitted according to half-duplex mode;
The electrical detection module is also used to, and is determining that the first interface or the second interface complete the total of injection failure item When the transmission of line number evidence, Xiang Suoshu direction selection module, which is sent, restores instruction, and the direction selection module refers to according to described It enables and the pass-through state is reverted to by the first direction transmission state or second direction transmission state.
2. bus failure injection device as described in claim 1, which is characterized in that further include:
The transformer being connected respectively with the direction selection module, the electrical detection module and the physical layer malfunctioning module connects Mouth mold block, the transformer interface module is for electrically being connected the direction selection module and the electrical detection module It connects, and the electrical detection module and the physical layer malfunctioning module is electrically connected.
3. bus failure injection device as described in claim 1, which is characterized in that the controller includes for the bus Data inject the protocol layer direct fault location submodule of the protocol layer failure item and for injecting the electricity to the bus data The electrical layer direct fault location submodule of gas-bearing formation failure item.
4. bus failure injection device as claimed in claim 3, which is characterized in that the protocol layer direct fault location submodule packet It includes: the first acquisition process unit, matching unit, the first injection unit and the first recovery unit, wherein
First acquisition process unit, the bus data or the electrical layer failure for being sent to the electrical detection module The bus data for the injection electrical layer failure item that injection submodule is sent is acquired processing, obtains frame data;
Matching unit, for carrying out critical field information extraction to the frame data, and by the critical field information of extraction and in advance If matching list in match information matched;
First injection unit is used for when successful match, according to the direct fault location field pair for including in the preset matching list The frame data inject protocol layer failure item;
First recovery unit, the data for exporting to first injection unit carry out restoring processing and send the number after restoring According to.
5. bus failure injection device as claimed in claim 3, which is characterized in that the electrical layer direct fault location submodule packet It includes: the second acquisition process unit, the second injection unit and the second recovery unit, wherein
Second acquisition unit, the bus data or the protocol layer direct fault location for being sent to the electrical detection module The bus data for the injection protocol layer failure item that submodule is sent is acquired processing, obtains electric data;
Second injection unit, for injecting electrical layer failure item to the electric data;
Second recovery unit, for carrying out recovery processing to the electric data for injecting electrical layer failure item, and sending after restoring Data.
6. bus failure injection device as claimed in claim 5, which is characterized in that second injection unit include: for pair Amplitude regulator unit that the amplitude of the electric data is adjusted is adjusted for the slope to the electric data Slope adjustment subelement, the duty cycle adjustment subelement being adjusted for the duty ratio to the electric data, in institute Noise superposition subelement, bus delay for being postponed to the electric data for stating superimposed noise in electric data are single Member carries out the frame head undershoot regulator unit of undershoot adjusting for the frame head to the electric data and for the electrical number According at least one of the postamble width adjusting subelement that is adjusted of postamble width.
7. the bus failure injection device as described in claim 4 or 5, which is characterized in that further include: memory, for storing State frame data or the electric data.
CN201810213935.6A 2018-03-15 2018-03-15 A kind of bus failure injection device Active CN108334060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810213935.6A CN108334060B (en) 2018-03-15 2018-03-15 A kind of bus failure injection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810213935.6A CN108334060B (en) 2018-03-15 2018-03-15 A kind of bus failure injection device

Publications (2)

Publication Number Publication Date
CN108334060A CN108334060A (en) 2018-07-27
CN108334060B true CN108334060B (en) 2019-10-18

Family

ID=62930958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810213935.6A Active CN108334060B (en) 2018-03-15 2018-03-15 A kind of bus failure injection device

Country Status (1)

Country Link
CN (1) CN108334060B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188053B (en) * 2019-05-30 2020-12-01 北京润科通用技术有限公司 Airborne data bus delay fault injection equipment and method
CN112034296B (en) * 2020-09-27 2024-04-30 中国商用飞机有限责任公司北京民用飞机技术研究中心 Avionics fault injection system and method
CN113297108B (en) * 2021-05-26 2023-11-10 上海创景信息科技有限公司 Circuit structure and control method suitable for half-duplex bus signal direction control

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102412909B (en) * 2010-09-26 2014-04-02 北京旋极信息技术股份有限公司 Fault injection equipment
CN102222032B (en) * 2011-05-20 2013-10-30 哈尔滨工业大学 Fault injection method of fault injection device of 1394 bus
CN103001818B (en) * 2011-09-16 2015-09-02 北京旋极信息技术股份有限公司 A kind of fault filling method and system
CN104765281A (en) * 2015-04-08 2015-07-08 南京航空航天大学 Simulated interface adapter of aircraft engine control system
CN104901749A (en) * 2015-06-09 2015-09-09 北京浩正泰吉科技有限公司 Compact peripheral component interconnect (CPCI) interface based 1553B bus electric layer fault injection communication module
CN205263644U (en) * 2015-12-24 2016-05-25 珠海诺华科技有限公司 Multibus fault injection system
CN106484575B (en) * 2016-09-29 2019-12-10 北京润科通用技术有限公司 ARINC429 bus fault injection system
CN206224449U (en) * 2016-11-10 2017-06-06 成都旋极历通信息技术有限公司 A kind of fault injection system
CN106776188B (en) * 2016-12-30 2020-07-31 南京理工大学 Bus fault injection system based on DSP and FPGA

Also Published As

Publication number Publication date
CN108334060A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN108334060B (en) A kind of bus failure injection device
US6549034B1 (en) Programmable logic controller for safety systems with reduced cross-wiring
CN102750216B (en) Fault injection system for intelligent bus
US5349654A (en) Fault tolerant data exchange unit
CN100511192C (en) Method used for storing channel with bit channel multifunction on-line recovery, device and system thereof
CN100538682C (en) The method of memory device, storage system and operation store equipment and storage system
US7848899B2 (en) Systems and methods for testing integrated circuit devices
CN102156237B (en) Method for detecting automotive harnesses
CN105807722B (en) Possesses the numerical control system of internal register runback bit function
CN107959599A (en) A kind of Bus_Off fault test systems and test method
CN107491055A (en) The test system and method for bus
CN106254199A (en) Unidirectional ring network fault point positioning method, concentrator, terminal unit and system
CN106330604A (en) Port connectivity test method and device
US7493524B2 (en) Network with redundancy properties, a branching unit for a user device in a network, redundancy manager for a network with redundancy properties and method for operating a network with redundancy properties
US11283646B2 (en) Monitoring local interconnect network (LIN) nodes
WO2023065620A1 (en) Ethercat bus-based wiring harness test method and apparatus
US6550029B1 (en) Testing system and methods with protocol pattern injection and external verification
JPH0691511B2 (en) Signal check device
CN109947078A (en) Direct fault location unit and its board, real time fail method for implanting, device and equipment
CN104678983B (en) Traction control unit self-detection circuit
US20080168302A1 (en) Systems and methods for diagnosing faults in a multiple domain storage system
CN207652457U (en) A kind of Bus_Off fault test systems
CN106446311A (en) CPU alarm circuit and alarm method
CN209070330U (en) Control systems of nuclear power plant
CN111948472A (en) Testability verification device for civil aircraft avionics product

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
GR01 Patent grant
GR01 Patent grant