CN101145942B - A serial bus failure detection method for single bus master-slave protection device - Google Patents

A serial bus failure detection method for single bus master-slave protection device Download PDF

Info

Publication number
CN101145942B
CN101145942B CN2007100002045A CN200710000204A CN101145942B CN 101145942 B CN101145942 B CN 101145942B CN 2007100002045 A CN2007100002045 A CN 2007100002045A CN 200710000204 A CN200710000204 A CN 200710000204A CN 101145942 B CN101145942 B CN 101145942B
Authority
CN
China
Prior art keywords
bus
byte
serial bus
frame
module
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.)
Expired - Fee Related
Application number
CN2007100002045A
Other languages
Chinese (zh)
Other versions
CN101145942A (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.)
Wei Dezong
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007100002045A priority Critical patent/CN101145942B/en
Publication of CN101145942A publication Critical patent/CN101145942A/en
Application granted granted Critical
Publication of CN101145942B publication Critical patent/CN101145942B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for detecting faults of the serial bus in single-bus main-backup protection equipment, which realizes the fault detection simply, flexibly and efficiently. The data frame of the bus transmission includes a fault indication byte, and the method includes the steps: (a) the system receives a data frame delivered by a main module or a backup module and judges whether the fault indication byte in the data frame is identical with the preset value or not, if yes, execute the step (b), or execute the step (c); (b) normally process the received data; (c) discard the data frame, submit the bus fault warn, start the main-backup module switch, and return to the step (a).

Description

A kind of serial bus failure detection method for single bus master-slave protection device
Technical field
The present invention relates to the troubleshooting technology of electronic equipment, the bus failure that relates in particular to the equipment that activestandby hot backup defencive function and the shared one group of universal serial bus of main backup module are provided detects and treatment technology.
Background technology
In fields such as backbone network, Medical Devices, Industry Control, very high for the reliability requirement of electronic equipment, generally require equipment can whole keep long-time steady operation, isolated fault or start main-apparatus protection automatically automatically when breaking down.In case the equipment catastrophic failure in these fields will cause very big economic loss, even jeopardizes personal safety.For the higher field of reliability requirement; a kind of solution commonly used is to adopt the Redundancy Design technology, carries out Redundancy Design for Key Circuit veneer or module, provides the main-apparatus protection function: when equipment normally moves; the master uses the circuit module operate as normal, and spare module is in holding state.When the master was broken down with circuit module, system can detect main fault with circuit module, starts the main-apparatus protection switching operation then, turn-offed the current main circuit module of using, and started the stand-by circuit module and worked.Thereby shortened the time that equipment breaks down greatly, reduced the influence that equipment breaks down and caused.Along with the development of technology, at present a lot of equipment can accomplish that when carrying out main-apparatus protection under certain conditions, the equipment that can not influence normally moves.
Adopt the miniaturized electric subset of main-apparatus protection for some, because the conditioned disjunction cost is limit, the circuit module of main usefulness and standby circuit module are not fully independently, and some equipment can adopt the design of the shared one group of universal serial bus of main backup module.As shown in Figure 1.Universal serial bus is used for communicating between the main backup module and other each modules in the system.When operate as normal, system opens the main output of using each output signal of module, and closes the output of the output signal of spare module, thereby the master normally transmits data with module and other intermodules by universal serial bus, and can not cause bus collision.But main backup module can not be worked simultaneously, otherwise will cause bus collision.
The serial bus communication mode of standard has a lot, such as RS-232 bus, I 2C buses etc. all can realize the requirement of each intermodule communication in the equipment.But higher for some equipment to the rate requirement of bus transfer, perhaps be not easy to handle the situation of these standard serial bus than complex protocol, then need method preferably to satisfy the requirement of device interior intermodule communication.Break down for main modular or bus, need system to have capability of fast response, avoid equipment because of the misdata on the bus misoperation to take place, the method for differentiating bus failure at present mostly realizes complexity, underaction.
Summary of the invention
Technical problem to be solved by this invention provides a kind of universal serial bus fault detection method of monobus master-slave protection device, realizes the fault detect to bus simply, flexibly, efficiently.
In order to solve the problems of the technologies described above, the invention provides a kind of serial bus failure detection method for single bus master-slave protection device, comprise a faulty indication byte in the Frame of described bus transfer, said method comprising the steps of:
(a) system receives by main and sends to Frame on the bus with module or spare module, judges whether the faulty indication byte in the described Frame is identical with predefined value, if, execution in step (b), otherwise, execution in step (c);
(b) data that receive are carried out normal process;
(c) abandon described Frame, report the bus failure alarm, return step (a).
Further, said method also can have following characteristics: further comprise in described step (b), continue to receive the Frame on the bus, judge whether whether the faulty indication byte in each Frame identical with predefined value, if, then the data that receive are carried out normal process, otherwise, execution in step (c).
Further, said method also can have following characteristics: receive bus data frames by other modules of system, and the data that receive are judged and handled.
Further, said method also can have following characteristics: in described step (c), after system receives the bus failure alarm, start main backup module and switch.
Further, said method also can have following characteristics: in described step (b), when the data that receive are carried out normal process, eliminate the bus failure alarm.
Further, said method also can have following characteristics: described Frame total amount of byte order≤active and standby Forced Switch total time * universal serial bus speed/8.
Further, said method also can have following characteristics: the mutually different principle of adjacent bit that transmits on each physical signal lines according to universal serial bus, default described faulty indication byte numerical value.
Further, said method also can have following characteristics: the fixed-site of described faulty indication byte is constant.
Further, said method also can have following characteristics: described method is applied to optical transmission device, and described main backup module is a cross board.
Further, said method also can have following characteristics: described other modules are one of each optical link disposable plates and each branch road disposable plates.
For the equipment that adopts activestandby hot backup protection and the shared one group of bus of main backup module; the invention provides the method for a kind of simple, fast detecting main modular fault or bus failure; according to the self-defined frame structure of the needs of system; the position of faulty indication byte, business datum etc. is set; can improve the capability of fast response that system breaks down to equipment, and avoid equipment that the situation of misoperation takes place because of the misdata that transmits on the bus.
Description of drawings
Fig. 1 is a present embodiment monobus activestandby hot backup system works schematic diagram;
Fig. 2 is a present embodiment monobus frame structure schematic diagram;
Fig. 3 is a present embodiment universal serial bus fault detect byte process chart;
Fig. 4 is inner each the single board signals connection diagram of a transmission equipment.
Embodiment
The present invention adds suitable overhead byte, thereby satisfies the requirement of device interior intermodule communication flexibly by using software or programmable logic device to the self-defined frame structure of the data that transmit on the universal serial bus.
The frame structure of universal serial bus data as shown in Figure 2, in frame structure, add a position and all changeless byte of numerical value, certainly also can utilize all changeless byte of existing frame head byte or other positions and numerical value, be defined as bus failure indication byte, thereby whether judge correctly by the value that detects this byte whether bus is working properly.The faulty indication byte is not limited to position shown in Figure 2, can be arranged on any time slot place of frame structure.
Total amount of byte order in the frame structure be subjected to equipment generation Forced Switch total time length restriction.This be because, if equipment active and standby Forced Switch takes place total time transmit the needed time of a frame less than universal serial bus, just might produce the hidden danger of bus failure indication byte detection less than bus failure.Frame structure total amount of byte purpose alternative condition is:
Frame structure total amount of byte order≤active and standby Forced Switch total time * universal serial bus speed/8
Annotate: the unit of universal serial bus speed is bit/s.
At the transmitter side of bus, the master sends a certain fixed numbers with module at the faulty indication byte time slot place of bus, and for example value is " A5H " or " 5AH "; At the receiver side of bus, downstream module receives the data on the bus, and the bus failure indication byte that receives is detected, if the value that receives is " A5H " or " 5AH ", thinks that then bus is normal, and the data that received are carried out normal process; If the master breaks down with module, during the system start-up masterslave switchover, after turn-offing host apparatus output, before the operate as normal of stand-by equipment, or physical fault appears when universal serial bus, such as short circuit, when opening circuit, on the universal serial bus one or all the level state of holding wires be exactly at random, perhaps be fixed as 0 or 1.The numerical value and the set point that detect the faulty indication byte on the bus when the downstream module are inconsistent, will identify universal serial bus and break down, thereby report and alarm abandons received data on the bus.
During masterslave switchover, because the output of having turn-offed the main modular universal serial bus, the level value on the holding wire of each universal serial bus is at random, and the level of each holding wire may change in addition owing to the influence of factors such as noise jamming.At this situation, best solution is optimized circuit design exactly, guarantee each holding wire of universal serial bus its level value under the situation that no-output drives stablize constant, such as drawing on each holding wire is carried out or drop-down; For the deterministic situation that is difficult to realize universal serial bus its level value when the no-output, can be by the suitable numerical value that the faulty indication byte is set, the probability of failing to judge with reduction:
When only using 1 holding wire (or 1 group of differential lines) as universal serial bus, during masterslave switchover, or bus is when physical fault occurring, although the level state of holding wire be at random and may change, but as can be known according to the relevant knowledge of digital circuit, the variation of its level value is more slowly, and the speed of universal serial bus is generally all more than the Kb/s rank.Therefore the adjacent bit that can be provided with in the faulty indication byte is different, is " 55H ", " AAH " such as faulty indication byte 16 hex value are set, thereby significantly reduces the probability of failing to judge;
When using two or many holding wires (two or more sets differential lines), in like manner can corresponding faulty indication byte numerical value be set according to the mutually different principle of the adjacent bit that transmits on each holding wire as universal serial bus.
When the downstream module receives faulty indication byte on the bus and set point when inconsistent, will report and alarm, abandon received data, and continue to detect, compare the faulty indication byte of each frame.Having only the faulty indication byte that receives when two continuous frames is under the correct situation, can think that just the data on the bus are effective.This be because, after active and standby switching or bus failure bus failure indication byte time slot at first frame, interior during this period of time the recovery just often before the faulty indication byte time slot of second frame, though it is correct the second frame faulty indication byte just might occurring, can't guarantee for the correctness of data received before the second frame faulty indication byte.For the detection and the processing of bus failure indication byte, can adopt software or FPGA (Field Programmable Gate Array) to be achieved.
Fault detect of present embodiment universal serial bus and handling process may further comprise the steps as shown in Figure 3:
Step 110, system receive comes autonomous Frame with module or spare module on the bus;
Step 120 judges whether the faulty indication byte in the Frame that receives is identical with predefined value, if, execution in step 140, otherwise, next step carried out;
Can receive, judge and handle Frame by other module/unit of system, prevent owing to the main backup module fault or all cause misoperation in use.
Step 130 abandons the data that receive from bus, and reports the bus failure alarm, returns step 110;
Step 140 continues receiving data frames, judges whether faulty indication byte wherein is identical with predefined value, if, execution in step 150, otherwise, report the bus failure alarm, return step 110;
After system receives the bus failure alarm, can start main backup module according to alarm and switch.
If it is identical with predefined value that two continuous frames detects the faulty indication byte, then the data that receive are carried out normal process, eliminate the bus failure alarm.
Step 150 is carried out normal process according to system requirements to the bus data that receives, and returns step 110 and continues receiving data frames.
When transmitting critical data on system's universal serial bus, can whether judge correctly whether critical data is available according to the faulty indication byte, thereby avoid equipment generation misoperation.
With a optical transmission device is the example explanation, and the contact between each unit veneer is (the main cross board of using that only draws among the figure, each service signal annexation of standby cross board is with main identical with cross board) as shown in Figure 4.Cross board and each optical link disposable plates, each branch road disposable plates are to be that unit handles with the AU-4 unit.Cross board is mainly finished the function that the AU-4 data of sending on each Line Processing Unit, each branch road disposable plates are intersected, exchanged.
Because this equipment is compact apparatus, limits because of condition and can only lead with cross board, the shared two groups of buses of standby cross board (respectively one group in cross board sending and receiving direction).The veneer that intersects links to each other by core bus with the AU-4 data that each optical link is handled between veneer, each branch road processing veneer.The speed of transmitting on the holding wire is 155.520Mb/s, and the transmissible byte number of every frame is 2430 (9 row * 270 row).Because the every frame of AU-4 has only 2358 bytes (9 row * 261 row+9 AU pointer bytes), so vacant time slot can be used for cross board and carries out communication usefulness with optical link disposable plates, branch road disposable plates on the bus.In this programme, K1, K2 overhead byte are to transmit by vacant time slot
K1, K2 byte are the overhead bytes of stipulating in the SDH frame structure; be used for providing on the SDH optical-fiber network APS function; K1, K2 are sent on other service boards (optical link disposable plates) by universal serial bus with cross board or standby cross board by main; service board sends to corresponding overhead byte in the STM-1/4/16/64 frame of the K1 that receives from bus, K2 byte insertion standard on other communication equipments then.
Force the process of main-apparatus protection to be: when pull out main detect with cross board or system main when breaking down with cross board; at first turn-off main with the chip that drives bus on the cross board; making the bus on the backboard is high resistant; open the chip for driving that standby cross board links to each other with bus then, thereby data are transmitted by standby cross board.Turn-offing main chip for driving with cross board, during the chip for driving of standby cross board is not also started working in, the data on the bus are output not, the numerical value on the bus is random value.
Owing to handle the transmitter side of veneer, receive from the AU-4 data of cross board and K1, K2 byte by bus at optical link.Optical link handle veneer the AU-4 data that receive are carried out multiplexing, then receive K1, the K2 byte is inserted corresponding time slot together with other overhead bytes, the STM-1/4/16 signal that is converted into standard is sent.Force between transfer period at active and standby cross board, the K1 that the optical link disposable plates is extracted from bus, K2 byte are just incorrect, if be inserted into corresponding expense position when sending into upstream device again, just might cause K1, the K2 byte generation multiplex section rearrangement of upstream device, influence the normal operation of transmission network according to mistake.
In order to eliminate above-mentioned fault, the measure that we take is: carry out that the total byte number is 2430 bytes in the Frame of communication owing to intersect veneer and other veneers, and business datum has only taken 2358 bytes, then all the other bytes can be used according to system's needs.We are defined as the faulty indication byte to the first byte in the Frame, and its hexadecimal value is 55H.K1, K2 byte are also placed in other byte places.During equipment operation, whether each circuit is handled the veneer detection correct by frame head byte (faulty indication byte) numerical value that the intersection veneer sends to each frame on the bus, and whether the data of differentiating thus on the universal serial bus are available.
When detecting the faulty indication byte when identical with preset value, circuit is handled AU-4 business datum, K1, K2 byte and other the byte normal process of veneer to receiving; When detecting faulty indication byte and preset value 55H when inequality, abandon Frame received on the current bus, and report the bus failure alarm.When detecting bus and break down; the optical link disposable plates no longer adopts K1, the K2 byte content that receives from bus; but still keep original K1, K2 byte content constant, so just avoided that plug is main to cause upstream device to trigger the protection switching action of mistake with intersecting when veneer or bus break down.The selection function of the detection of frame head byte numerical value, bus failure alarm report, K1, K2 byte value is handled by FPGA (field programmable logic).

Claims (6)

1. serial bus failure detection method for single bus master-slave protection device; comprise a faulty indication byte in the Frame of described bus transfer; the numerical value of described faulty indication byte is that the mutually different principle of adjacent bit that transmits on each physical signal lines according to universal serial bus is default; and the fixed-site of described faulty indication byte is constant, said method comprising the steps of:
(a) system receives by main and sends to Frame on the bus with module or spare module, judge whether the faulty indication byte in the described Frame is identical with predefined value, if, think that then universal serial bus is normal, execution in step (b), otherwise, will identify universal serial bus and break down, then execution in step (c);
(b) data that receive are carried out normal process, return described step (a);
(c) abandon described Frame, report the bus failure alarm, return step (a).
2. the method for claim 1 is characterized in that, receives the bus data frame by one in each optical link disposable plates of system or each the branch road disposable plates, and the data that receive are judged and handled.
3. the method for claim 1 is characterized in that, in described step (c), after system receives the bus failure alarm, starts main backup module and switches.
4. the method for claim 1 is characterized in that, in described step (b), after system receives the bus failure alarm, if it is identical with predefined value that two continuous frames detects the faulty indication byte, then the data that receive are carried out normal process, eliminate the bus failure alarm.
5. the method for claim 1 is characterized in that, described Frame total amount of byte order≤active and standby Forced Switch total time * universal serial bus speed/8.
6. the method for claim 1 is characterized in that, described method is applied to optical transmission device, and described master is cross board with module and described spare module.
CN2007100002045A 2007-01-04 2007-01-04 A serial bus failure detection method for single bus master-slave protection device Expired - Fee Related CN101145942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100002045A CN101145942B (en) 2007-01-04 2007-01-04 A serial bus failure detection method for single bus master-slave protection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100002045A CN101145942B (en) 2007-01-04 2007-01-04 A serial bus failure detection method for single bus master-slave protection device

Publications (2)

Publication Number Publication Date
CN101145942A CN101145942A (en) 2008-03-19
CN101145942B true CN101145942B (en) 2010-09-29

Family

ID=39208256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100002045A Expired - Fee Related CN101145942B (en) 2007-01-04 2007-01-04 A serial bus failure detection method for single bus master-slave protection device

Country Status (1)

Country Link
CN (1) CN101145942B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931460B (en) * 2009-06-22 2014-06-04 华为技术有限公司 Link fault detection method, device and system
WO2013064866A1 (en) * 2011-11-04 2013-05-10 Freescale Semiconductor, Inc. Real-time distributed network module, real-time distributed network and method therefor
KR102125856B1 (en) * 2012-11-12 2020-06-23 삼성전자주식회사 Method and system for sharing output device between multimedia devices to send and receive data
CN103888330B (en) * 2012-12-21 2018-07-13 上海大郡动力控制技术有限公司 The monitoring method of auto parts and components CAN bus data transmission
CN103941625B (en) * 2014-05-08 2017-02-22 哈尔滨工业大学 Can bus data transmission monitoring system
US20190286537A1 (en) * 2018-03-13 2019-09-19 Carrier Corporation Detection of wiring faults in serial bus connected components
CN110493809B (en) * 2019-08-16 2023-07-18 惠州Tcl移动通信有限公司 Mobile terminal, communication data anomaly detection method thereof and computer readable medium
CN114443549B (en) * 2021-11-23 2024-03-12 南京林洋电力科技有限公司 SPI communication method based on characteristic code stream identification

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5701410A (en) * 1996-09-09 1997-12-23 Ford Motor Company Method and system for detecting fault conditions on multiplexed networks
CN1477508A (en) * 2002-08-23 2004-02-25 天津百维软件科技有限公司 Method for automatically-detecting computer video multimedia playback function
CN1839357A (en) * 2003-10-10 2006-09-27 三菱电机株式会社 Control system using serial communication
CN1866766A (en) * 2006-02-15 2006-11-22 华为技术有限公司 Chain circuit heat backup method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5701410A (en) * 1996-09-09 1997-12-23 Ford Motor Company Method and system for detecting fault conditions on multiplexed networks
CN1477508A (en) * 2002-08-23 2004-02-25 天津百维软件科技有限公司 Method for automatically-detecting computer video multimedia playback function
CN1839357A (en) * 2003-10-10 2006-09-27 三菱电机株式会社 Control system using serial communication
CN1866766A (en) * 2006-02-15 2006-11-22 华为技术有限公司 Chain circuit heat backup method and system

Also Published As

Publication number Publication date
CN101145942A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN101145942B (en) A serial bus failure detection method for single bus master-slave protection device
EP0570882B1 (en) A distributed control methodology and mechanism for implementing automatic protection switching
US6466539B1 (en) Bus system
US4159470A (en) Data communications systems employing redundant series transmission loops
EP0494695B1 (en) Loop mode transmission system with bus mode backup and a method of maintaining continuity thereof
JPH08293834A (en) Optical parallel transmitting system and optical transmission device
CN102255760B (en) Quick protection switching method with business cards backing up each other
AU623122B2 (en) Process for controlling and/or monitoring and circuit arrangement for implementing the process
JP2601193B2 (en) Optical transmission system
KR100333954B1 (en) The Mehod and Apparatus of Dual Operation and Fault Detection in Optical Network Using Single Core
EP0950298B1 (en) Method and device for network protection
GB1558903A (en) Systems for duplicating digital transmission channels
CN101621333A (en) Hardware structure for protecting and switching optical link redundancy in communication system
JP3137068B2 (en) Optical burst signal repeater
KR100237613B1 (en) Remote redundant system and control method in plc
JP2690278B2 (en) Failure monitoring method
KR100518079B1 (en) Error Checking Apparatus For Data Channel
KR0153942B1 (en) Duplication apparatus for atm cell data transmission link
JPH05344104A (en) Transmission path switching device
JP3479260B2 (en) Optical transmission system between frames in equipment
JPS6148249A (en) Line switching device
JP3721153B2 (en) Data communication device system test apparatus and method
JPS63246946A (en) Fault detection system for communication equipment in loop structure network
JPH0454747A (en) Data transfer system
JPH0646026A (en) Time division multiplexer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: WEI DEZONG

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20141217

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 541105 GUILIN, GUANGXI ZHUANG AUTONOMOUS REGION

TR01 Transfer of patent right

Effective date of registration: 20141217

Address after: 541105, room 2, unit 8, 1 Xing Xing Road, 202 Town, Lingui County, the Guangxi Zhuang Autonomous Region, Lingui

Patentee after: Wei Dezong

Address before: 518057 Nanshan District high tech Industrial Park, Guangdong, South Road, science and technology, ZTE building, legal department

Patentee before: ZTE Corporation

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100929

Termination date: 20190104

CF01 Termination of patent right due to non-payment of annual fee