CN102611600A - Method and device for locating short circuit position of CAN (Controller Area Network) network - Google Patents

Method and device for locating short circuit position of CAN (Controller Area Network) network Download PDF

Info

Publication number
CN102611600A
CN102611600A CN2012100512744A CN201210051274A CN102611600A CN 102611600 A CN102611600 A CN 102611600A CN 2012100512744 A CN2012100512744 A CN 2012100512744A CN 201210051274 A CN201210051274 A CN 201210051274A CN 102611600 A CN102611600 A CN 102611600A
Authority
CN
China
Prior art keywords
switch
bus
node
sub
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012100512744A
Other languages
Chinese (zh)
Other versions
CN102611600B (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.)
Sany Heavy Industry Co Ltd
Original Assignee
Sany Heavy Industry 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 Sany Heavy Industry Co Ltd filed Critical Sany Heavy Industry Co Ltd
Priority to CN201210051274.4A priority Critical patent/CN102611600B/en
Publication of CN102611600A publication Critical patent/CN102611600A/en
Application granted granted Critical
Publication of CN102611600B publication Critical patent/CN102611600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Locating Faults (AREA)

Abstract

The invention discloses a method for locating a short circuit position of a CAN (Controller Area Network) network. The method comprises the following steps of: respectively configuring an intelligent switch for each node of a CAN bus; switching off intelligent switches at the initial time, and accessing all nodes in the CAN bus; when detecting that a CAN network system has short circuit failure, switching off all nodes from the CAN bus and determining that the CAN bus or the nodes have the short circuit failure; when determining that the CAN bus has the short circuit failure, sequentially switching off the intelligent switch in series connected between adjacent nodes to determine that the section of the CAN bus has the short circuit failure; when determining that the nodes have the short circuit failure, sequentially closing the intelligent switch corresponding to each node, determining the nodes are accessed to cause the short circuit failure of the CAN network system, and determining the nodes having the short circuit failure, thus realizing the exact location on the short circuit position of the CAN network system. Through the embodiment of the invention, the exact location of the short circuit failure generation position of the CAN network system can be realized.

Description

A kind of location of short circuit localization method and device of CAN network system
Technical field
The present invention relates to CAN bussing technique field, particularly relate to a kind of location of short circuit localization method and device of CAN network system.
Background technology
CAN (Controller Area Network; Controller local area network) is the serial communication protocol of ISO International standardization; Characteristics with high-performance and high reliability have been widely used in aspects such as industrial automation, boats and ships, Medical Devices, industrial equipment.Fieldbus is one of focus of current automatic field technical development, is described as the LAN of automatic field, for dcs realizes real-time between each node, data communication reliably powerful technical support is provided.
When solving CAN bus short circuit fault, adopt two kinds of solutions usually at present:
Scheme 1: adopt two groups of CAN transceivers, promptly realize the transmission of data, when short circuit appears in one group of CAN bus, utilize another group CAN bus to carry out transfer of data through two groups of CAN buses.But obviously, this solution cost is higher, and can not realize the location to CAN bus short circuit fault occurrence positions.
Scheme 2: adopt that present industry occurs can automatic diagnosis CAN short circuit the CAN transceiver, when having detected single line and short trouble occurs, system abandons the differential signal transmission mode of CAN system automatically, uses the level transmissions mode of single holding wire instead.But this solution also can't realize the location to CAN bus short circuit fault occurrence positions having defective aspect short-circuit between conductors that solves the CAN bus and the two line short circuits.
This shows that at present how industry positions the position of short trouble corresponding solution also is not provided when short trouble appears in the CAN bus.But in practical application, in order to get rid of fault fast and accurately, the user of service of equipment or system and attendant hope to understand the type and the position of CAN bus failure.
Therefore, how realizing the location to CAN bus short circuit fault occurrence positions, is the technical problem that those skilled in the art are badly in need of solving.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of location of short circuit localization method and device of CAN network system, can realize accurate location CAN network system short trouble occurrence positions.
The present invention provides a kind of location of short circuit localization method of Can network system, and said Can network system comprises: the Can bus connects the CPU processor through the Can transceiver;
At least one node, each node connect said Can bus through an intelligent switch respectively;
Each intelligent switch structure is identical, includes the first sub-switch and the second sub-switch; The said first sub-switch series is connected between each node and the said Can bus; The said second sub-switch series is connected on the said Can bus, is serially connected between the bus access point of adjacent two nodes;
Said CPU processor is used to control the first sub-switch of the corresponding intelligent switch of each node and the break-make of the second sub-switch;
Said method comprising the steps of:
Step 1: the corresponding intelligent switch of all nodes on the said Can bus all is in closure state;
Step 2: detect the level on the said Can bus, timing very first time section when being continuously a fixed value as if said level, gets into step 3; Otherwise, process ends;
Step 3: the first sub-switch that breaks off the intelligent switch that all nodes are corresponding on the said Can bus;
Step 4: detect the level on the said Can bus once more, second time period of timing,, get into step 5 if said level still is continuously a fixed value; Otherwise, get into step 6;
Step 5: the second sub-switch that breaks off the corresponding intelligent switch of each node successively; And the level on the said Can bus when detecting each second sub-switch respectively and breaking off; If said level is continuously a fixed value in the certain hour section; Show that the intelligent switch corresponding nodes of current disconnection and the Can total segment between the last node are short-circuited, the short circuit positioning flow finishes; Otherwise the intelligent switch of closed current disconnection returns step 5;
Step 6: the first sub-switch of the corresponding intelligent switch of closed successively each node; And the level on the said Can bus when detecting each first sub-switch closure respectively; If said level is continuously a fixed value in the certain hour section; The intelligent switch corresponding nodes that shows current closure is short-circuited, and breaks off the intelligent switch corresponding nodes of said current closure, returns step 6; Otherwise, return step 6.
Preferably, said step 5 specifically comprises:
Step 51: break off the second sub-switch of the corresponding intelligent switch of first node, detect the level on the said Can bus, the 3rd time period of timing,, get into step 52 if said level still is continuously a fixed value; Otherwise, be that present node gets into step 53 with said first node;
Step 52: confirm that current short trouble position is the Can bus between said first node and the said Can transceiver, the short circuit positioning flow finishes;
Step 53: the second sub-switch of the corresponding intelligent switch of closed said present node; Break off the second sub-switch of the corresponding intelligent switch of next node of said present node, detect the level on the said Can bus, timing certain hour section; If said level still is continuously a fixed value, get into step 54; Otherwise, get into step 55;
Step 54: confirm that current short trouble position is the Can bus between the next node of said present node and said present node, the short circuit positioning flow finishes;
Step 55: the next node with said present node is said present node, returns step 52.
Preferably, said step 6 specifically comprises:
Step 61: after the 4th time period of delaying time, be that present node gets into step 62 with said first node;
Step 62: the first sub-switch of the corresponding intelligent switch of closed said present node, detect the level on the said Can bus, timing certain hour section if said level still is continuously a fixed value, gets into step 63; Otherwise, get into step 64;
Step 63: confirm that current short trouble position is said present node, cut off said present node, if said present node is last node on the said Can bus, the short circuit positioning flow finishes; Otherwise, get into step 64;
Step 64: the next node with said present node is said present node, returns step 62.
Preferably, the said first sub-switch comprises sub-switch of first high level and the sub-switch of first low level; The sub-switch of said first high level is connected between each node and the high level voltage bus, and the sub-switch of first low level is connected between each node and the low level high-voltage bus;
Said step 62 specifically comprises:
Step 621: the sub-switch of first high level of the corresponding intelligent switch of closed said present node; Detect the level on the said Can bus; Timing certain hour section if said level still is continuously a fixed value, shows that the high level voltage bus short circuit takes place to insert said present node; Otherwise get into step 64;
Step 622: the sub-switch of first low level of the corresponding intelligent switch of closed said present node; Detect the level on the said Can bus; Timing certain hour section if said level still is continuously a fixed value, shows that the low level voltage bus short circuit takes place to insert said present node; Otherwise get into step 64.
Preferably, in the step 63, confirm that said current short trouble position is said present node, when cutting off said present node, further comprise: the malfunction indicator lamp of said present node is bright.
Preferably, step 63 further comprises: the fault type that shows said present node.
The embodiment of the invention also provides a kind of location of short circuit positioner of Can network system, it is characterized in that, said Can network system comprises: the Can bus connects the CPU processor through the Can transceiver, inserts at least one node of said Can bus;
Said positioner comprises: for each node is provided with an intelligent switch respectively;
Each intelligent switch structure is identical, includes the first sub-switch and the second sub-switch; The said first sub-switch series is connected between each node and the said Can bus; The said second sub-switch series is connected on the said Can bus, is serially connected between the bus access point of adjacent two nodes;
Said CPU processor is used to control the first sub-switch of the corresponding intelligent switch of each node and the break-make of the second sub-switch;
Said CPU processor specifically comprises:
Initial control unit, the corresponding intelligent switch of all nodes that is used to control on the said Can bus all is in closure state;
The preliminary judging unit of abort situation is used to detect the level on the said Can bus, timing very first time section; When if said level is continuously a fixed value, break off the first sub-switch of the intelligent switch that all nodes are corresponding on the said Can bus, detect the level on the said Can bus once more; Second time period of timing; If said level still is continuously a fixed value, preliminary failure judgement is the Can bus short circuit, triggers Can bus short circuit positioning unit; Otherwise preliminary failure judgement is the node short circuit, triggers node short circuit positioning unit;
Said Can bus short circuit positioning unit; Be used for breaking off successively the second sub-switch of the corresponding intelligent switch of each node; And the level on the said Can bus when detecting each second sub-switch respectively and breaking off; If said level is continuously a fixed value in the certain hour section, show that the intelligent switch corresponding nodes of current disconnection and the Can total segment between the last node are short-circuited; Otherwise the intelligent switch of closed current disconnection breaks off the second corresponding sub-switch of next node;
Said triggering node short circuit positioning unit; The first sub-switch that is used for the corresponding intelligent switch of closed successively each node; And the level on the said Can bus when detecting each first sub-switch closure respectively, if said level is continuously a fixed value in the certain hour section, show that the intelligent switch corresponding nodes of current closure is short-circuited; Break off the intelligent switch corresponding nodes of said current closure, the first sub-switch of closed next node; Otherwise, the first sub-switch of closed next node.
Preferably, first of each intelligent switch switch comprises: sub-switch of first high level and the sub-switch of first low level; The second sub-switch of each intelligent switch comprises: sub-switch of second high level and the sub-switch of second low level;
The sub-switch of said first high level is connected between each node and the high level voltage bus, and the sub-switch of said first low level is connected between each node and the low level high-voltage bus;
The sub-switch series of said second high level is connected on the said high level voltage bus, is serially connected between the bus access point of adjacent two nodes; The sub-switch series of said second low level is connected on the said low level voltage bus, is serially connected between the bus access point of adjacent two nodes.
Preferably, said Can network system also comprises: the 2nd Can bus; The corresponding intelligent switch of each node is through the said CPU processor of said the 2nd Can bus interface, and realization is connected with communication between the said CPU processor.
Preferably, said Can network system also comprises: the 3rd bus and fault display device; Said fault display device is used for the short trouble information of said Can network system is shown output through the said CPU processor of said the 3rd bus interface.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
The location of short circuit localization method of the said Can network system of the embodiment of the invention; For each node on the Can bus is provided with an intelligent switch respectively, said intelligent switch comprises and is used for each node is inserted the first sub-switch of Can bus and is serially connected in the second sub-switch between the bus access point of said Can bus, adjacent two nodes; When initial, all nodes insert the Can bus, when detecting Can network system failed because, at first all nodes are broken off from said Can bus, thereby confirm that Can bus failed because still is the node failed because; When confirming as Can bus failed because, disconnection is serially connected in the second sub-switch between each adjacent two node successively, confirms that progressively short trouble has taken place which section Can bus, realizes the accurate location to the location of short circuit of said Can network system; When confirming as the node failed because; The first corresponding sub-switch of closed successively each node; Each node is inserted the Can bus successively; The access of confirming which node causes the short circuit of said Can network system, thereby confirms that short trouble has taken place which node, realizes the accurate location to the location of short circuit of said Can network system.
Description of drawings
Fig. 1 is the embodiment of the invention one described Can network architecture figure;
Fig. 2 is the embodiment of the invention two described Can network architecture figure;
Fig. 3 is the location of short circuit localization method flow chart of the embodiment of the invention one described Can network system;
Fig. 4 is the location of short circuit localization method flow chart of the embodiment of the invention two described Can network systems;
Fig. 5 is that the hardware of the said intelligent switch of the embodiment of the invention is realized figure;
Fig. 6 is the course of work flow chart of the said intelligent switch of the embodiment of the invention;
Fig. 7 is the embodiment of the invention three described Can network architecture figure;
Fig. 8 is the hardware structure diagram of the corresponding intelligent switch of network system shown in Figure 7.
Embodiment
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing and embodiment the present invention done further detailed explanation.
In view of this, the object of the present invention is to provide a kind of location of short circuit localization method and device of Can network system, can realize accurate location CAN network system short trouble occurrence positions.
The said method of the embodiment of the invention; For realizing that the location of short circuit of Can network system is positioned; For each node that links to each other with the Can bus in the Can network system all is provided with an intelligent switch, make each node insert the Can bus through corresponding with it intelligent switch respectively.
See figures.1.and.2, be respectively the embodiment of the invention one and embodiment two described Can network architecture figure.
As shown in Figure 1, in the said CAN network system, comprise CPU processor 10, Can transceiver 20, Can bus.Said Can transceiver 20 is through Can bus interface CPU processor 10.Said Can bus comprises high level voltage bus CanH and low level voltage bus CanL.
Said CAN network system comprises at least one node (be illustrated in figure 1 as n, n is the integer greater than 1), and each node connects the Can bus through an intelligent switch 30 respectively.
In the embodiment of the invention, the intelligent switch structure that each node is corresponding is identical, as shown in Figure 2, and each said intelligent switch includes the first sub-switch and the second sub-switch.
The said first sub-switch series is connected between each node and the Can bus, is used for each node is inserted the Can bus; The said second sub-switch series is connected on the said Can bus, is serially connected between the bus access point of adjacent two nodes.
Concrete, with reference to shown in Figure 2, for each intelligent switch, its first sub-switch comprises: sub-K switch 1H of first high level and the sub-K switch 1L of first low level; The second sub-switch comprises: sub-K switch 2H of second high level and the sub-K switch 2L of second low level.
The sub-K switch 1H of said first high level is connected between each node and the high level voltage bus CanH, and the sub-K switch 1L of said first low level is connected between each node and the low level high-voltage bus CanL.
The sub-K switch 2H of said second high level is serially connected on the said high level voltage bus CanH, is serially connected between the bus access point of adjacent two nodes; The sub-K switch 2L of said second low level is serially connected on the said low level voltage bus CanL, is serially connected between the bus access point of adjacent two nodes.
With reference to Fig. 3, be the location of short circuit localization method flow chart of the embodiment of the invention one described Can network system.Said method comprises:
Step S301: initial condition, the corresponding intelligent switch of all nodes on the said Can bus all is in closure state;
Need to prove that in the embodiment of the invention one said method, when initial condition, in the said Can network system, each node first sub-switch and second sub-switch of corresponding intelligent switch respectively all is in closure state.Be, in initial condition, all nodes on the said Can bus all insert said Can bus, and the Can bus between each node normally connects.
Step S302: detect the level on the said Can bus, timing very first time section judges whether said level is continuously a fixed value, if, show said Can network system failed because, get into step S303; If, do not show said Can network system operate as normal, process ends;
When the level on detecting said Can bus is continuously a fixed value in certain hour section (like very first time section), explain that short trouble has taken place said Can network system.Concrete, the level that detects on the said Can bus is that a fixed value can be: detecting level on the said high level voltage bus CanH and be a fixed value or detecting level on the said low level voltage bus CanL is that the electrical potential difference of a fixed value or said high level voltage bus CanH and low level voltage bus CanL is a fixed value.
Generally speaking, said Can network system failed because has two kinds of situations, and the one, a certain section of said Can bus short circuit has taken place; The 2nd,, short circuit has taken place in the some nodes on the said Can bus.The said method of the embodiment of the invention; When short trouble has taken place in definite said Can network system; Need which section or which node of the said Can bus of further definite this short trouble generation that short circuit has taken place, thereby realize location the short trouble of said Can network system.
Need to prove that said very first time section can specifically be set according to actual needs, for example 1ms, 1s etc.
Step S303: break off on the said Can bus all nodes first sub-switch of corresponding intelligent switch respectively, cut off being connected of all nodes and said Can bus on the said Can bus;
Step S304: detect the level on the said Can bus once more, second time period of timing, judge whether said level still is continuously a fixed value, if, show it is that said Can bus is short-circuited, get into step S305; If not, show said Can bus operate as normal, be that short circuit has taken place certain node, get into step S306;
Integrating step S303 and S304: when detecting said Can network system and be short-circuited; For confirming the particular location of this short trouble, at first all nodes on the said Can bus are broken off from said Can bus, detect the level on the said Can bus once more; If after breaking off all nodes; Level on the said Can bus no longer is continuously a fixed value, explains that said Can bus is an operate as normal, is that short trouble has taken place certain node; If after breaking off all nodes, the level on the said Can bus still is continuously a fixed value, explains that short trouble has taken place said Can bus, will confirm further below this short trouble occurs in which section of said Can bus.
Step S305: the second sub-switch that breaks off the corresponding intelligent switch of each node successively; And detect respectively whether the level on the said Can bus still was continuously a fixed value when respectively second sub-switch broke off in the certain hour section; If; Show that short circuit has taken place for the intelligent switch corresponding nodes of current disconnection and the Can total segment between the last node, the short circuit positioning flow finishes; If the intelligent switch of closed current disconnection returns step S305 not;
In the embodiment of the invention; Can know with reference to Fig. 2; The second sub-switch through the corresponding intelligent switch of each node; Total Can bus is divided into the n section; Be: from be the 1st section between the second corresponding sub-switch of said Can transceiver to first node, from being the 2nd section between the corresponding second corresponding sub-switch of the second sub-switch to said Section Point of said first node, between corresponding the 3rd corresponding sub-switch of the second sub-switch to said the 3rd node of said Section Point, being the 3rd section ... By that analogy, said N N-1Second sub-switch to the N that node is corresponding nBetween the second sub-switch of node correspondence is the n section.
Occur in which section of said Can bus for this short trouble of accurate location; With first node is initial; At first break off the second sub-switch of the corresponding intelligent switch of first node; Break off being connected between Can bus and the said Can transceiver after the said first node, only have the 1st section Can bus (from the bus between the second sub-switch of said Can transceiver to first node correspondence) to connect said CPU processor through said Can transceiver.At this moment; Detect the level on the said Can bus; Still be continuously a fixed value if detect level; Can confirm that said short trouble just occurs on said the first node corresponding second sub-switch and the Can total segment between the said Can transceiver, has realized Can bus short circuit failure location; If after breaking off the second sub-switch of the corresponding intelligent switch of first node; The level that detects on the said Can bus has recovered normal; No longer be continuously a fixed value; Show that then second sub-switch of said first node correspondence and the Can total segment between the said Can transceiver are normal; Short trouble just possibly occur on the second corresponding sub-switch of the first node Can total segment afterwards so, has got rid of the 1st section possibility that the Can bus is short-circuited thus, continues below the 2nd section Can bus carried out fault detect.
The second sub-switch that closed then first node is corresponding; Break off the second sub-switch of the corresponding intelligent switch of Section Point; Break off being connected between Can bus and the said Can transceiver after the said Section Point thus, only have the 1st section Can bus and the 2nd section Can bus (from the bus between the second sub-switch of said Can transceiver to Section Point correspondence) to connect said CPU processor through said Can transceiver.At this moment; Detect the level on the said Can bus; Still be continuously a fixed value if detect level; Can confirm that said short trouble just occurs on said the Section Point corresponding second sub-switch and the Can total segment between the said Can transceiver; The 1st section possibility that the Can bus is short-circuited got rid of in the front, so just can confirm that short trouble occurs on the Can total segment of the second corresponding sub-switch of said first node, the second sub-switch corresponding with said Section Point, has realized Can bus short circuit failure location; If after breaking off the second sub-switch of the corresponding intelligent switch of Section Point; The level that detects on the said Can bus has recovered normal; No longer be continuously a fixed value; Show that then second sub-switch of said Section Point correspondence and the Can total segment between the said Can transceiver are normal; Short trouble just possibly occur on the second corresponding sub-switch of the Section Point Can total segment afterwards so, has got rid of the 1st section Can bus and the 2nd section possibility that the Can bus is short-circuited thus, continues below the 3rd section Can bus carried out fault detect.
And the like; Break off the Section Point second corresponding sub-switch of each node afterwards respectively; Successively to the 3rd section Can bus, the 4th section Can bus ... N section Can bus is carried out short trouble and is detected; To confirm that said short trouble occurs on which section of said Can bus, realizes the short circuit location to said Can network system.
Step S306: after the 4th time period of delaying time; The first sub-switch of the intelligent switch that closed successively each node is corresponding; And whether the level on the said Can bus still is continuously a fixed value in the certain hour section when detecting each first sub-switch closure respectively, if show that short circuit has taken place the intelligent switch corresponding nodes of current closure; Break off the intelligent switch corresponding nodes of said current closure, return step S306; If, do not return step S306.
In the embodiment of the invention; Through successively each node being inserted said Can bus; And the level of said Can bus when detecting each node respectively and inserting, confirm which perhaps which node short trouble has taken place, realize accurate location with this to the short trouble of Can network system.
Concrete; The first sub-switch of the intelligent switch that at first closed first node is corresponding only inserts said Can bus with first node, at this moment; Detect the level on the said Can bus; Be continuously a fixed value if detect level, show that first node causes the Can network system that short trouble has taken place when inserting, because the front has been got rid of the possibility of Can bus short circuit and only had first node to insert said Can bus; Can confirm that then said short trouble just occurs in said first node, realize Can bus short circuit failure location; If behind the access first node; The level that detects on the said Can bus is still normal; Show that then said first node is an operate as normal; Short trouble just possibly occur on the first node node afterwards so, has got rid of the possibility that first node is short-circuited thus, continues below Section Point is carried out fault detect.
What need special instruction is; Because can't confirm only to have a node to be short-circuited still is that a plurality of nodes are short-circuited,, also need continue other nodes are carried out fault detect even confirm that short trouble has taken place first node; Influence detection to other nodes for the first node of avoiding breaking down this moment; Therefore, when definite first node is short-circuited, break off the first corresponding sub-switch of said first node; Said first node is broken off from said Can bus, continue Section Point is carried out fault detect.
The first sub-switch of the intelligent switch that closed Section Point is corresponding; First node and Section Point are inserted said Can bus; At this moment, detect the level on the said Can bus, be continuously a fixed value if detect level; Show that Section Point causes the Can network system that short trouble has taken place when inserting; Because the front has been got rid of the possibility of Can bus short circuit and first node short circuit and has only been had first node and Section Point to insert said Can bus, can confirm that then said short trouble just occurs in said Section Point, has realized Can bus short circuit failure location; If behind the access Section Point; The level that detects on the said Can bus is still normal; Show that then said Section Point also is an operate as normal; Short trouble just possibly occur on the Section Point node afterwards so, has got rid of the possibility that Section Point is short-circuited thus, continues that below the 3rd node is carried out short trouble and detects.
Equally, if confirm that short trouble has taken place Section Point, also need continue other nodes are carried out fault detect; Influence detection to other nodes for the Section Point of avoiding breaking down this moment; Therefore, when definite Section Point is short-circuited, break off the first corresponding sub-switch of said Section Point; Said Section Point is broken off from said Can bus, continue the 3rd node is carried out fault detect.
And the like; Insert the 3rd node, the 4th node respectively ... The n node is confirmed whether failed because of each node, successively if confirm that certain node is an operate as normal; The access state that can keep this node continues that the next node of this node is carried out short trouble and detects; If confirm that short trouble has taken place certain node; Then break off the first corresponding sub-switch of this node; This node is broken off from said Can bus, continue that the next node of this node is carried out short trouble and detect, till the short-circuit detecting of accomplishing last node on the said Can bus.
The location of short circuit localization method of the embodiment of the invention one said Can network system; For each node on the Can bus is provided with an intelligent switch respectively, said intelligent switch comprises and is used for each node is inserted the first sub-switch of Can bus and is serially connected in the second sub-switch between the bus access point of said Can bus, adjacent two nodes; When initial, all nodes insert the Can bus, when detecting Can network system failed because, at first all nodes are broken off from said Can bus, thereby confirm that Can bus failed because still is the node failed because; When confirming as Can bus failed because, disconnection is serially connected in the second sub-switch between each adjacent two node successively, confirms that progressively short trouble has taken place which section Can bus, realizes the accurate location to the location of short circuit of said Can network system; When confirming as the node failed because; The first corresponding sub-switch of closed successively each node; Each node is inserted the Can bus successively; The access of confirming which node causes the short circuit of said Can network system, thereby confirms that short trouble has taken place which node, realizes the accurate location to the location of short circuit of said Can network system.
Below in conjunction with Fig. 4 and embodiment two, the location of short circuit localization method of the described Can network system of the embodiment of the invention is described in detail.
With reference to Fig. 4, be the location of short circuit localization method flow chart of the embodiment of the invention two described Can network systems.Said method comprises:
Step S401: initial condition, the corresponding intelligent switch of all nodes on the said Can bus all is in closure state;
Need to prove that in the said method of the embodiment of the invention, when initial condition, in the said Can network system, each node first sub-switch and second sub-switch of corresponding intelligent switch respectively all is in closure state.Be, in initial condition, all nodes on the said Can bus all insert said Can bus, and the Can bus between each node normally connects.
Step S402: detect the level on the said Can bus, timing very first time section judges whether said level is continuously a fixed value, if, show said Can network system failed because, get into step S403; If, do not show said Can network system operate as normal, process ends;
When the level on detecting said Can bus is continuously a fixed value in certain hour section (like very first time section), explain that short trouble has taken place said Can network system.Concrete, the level that detects on the said Can bus is that a fixed value can be: detecting level on the said high level voltage bus CanH and be a fixed value and/or detecting level on the said low level voltage bus CanL is that the electrical potential difference of a fixed value and/or said high level voltage bus CanH and low level voltage bus CanL is a fixed value.
Generally speaking, said Can network system failed because has two kinds of situations, and the one, a certain section of said Can bus short circuit has taken place; The 2nd,, short circuit has taken place in the some nodes on the said Can bus.The said method of the embodiment of the invention; When short trouble has taken place in definite said Can network system; Need which section or which node of the said Can bus of further definite this short trouble generation that short circuit has taken place, thereby realize location the short trouble of said Can network system.
Need to prove that said very first time section can specifically be set according to actual needs, for example 1ms, 1s etc.
Step S403: break off on the said Can bus all nodes first sub-switch of corresponding intelligent switch respectively, cut off being connected of all nodes and said Can bus on the said Can bus;
Step S404: detect the level on the said Can bus once more, second time period of timing, judge whether said level still is continuously a fixed value, if, show it is that said Can bus is short-circuited, get into step S405; If not, show said Can bus operate as normal, be that short circuit has taken place certain node, get into step S410;
Integrating step S403 and S404: when detecting said Can network system and be short-circuited; For confirming the particular location of this short trouble, at first all nodes on the said Can bus are broken off from said Can bus, detect the level on the said Can bus once more; If after breaking off all nodes; Level on the said Can bus no longer is continuously a fixed value, explains that said Can bus is an operate as normal, is that short trouble has taken place certain node; If after breaking off all nodes, the level on the said Can bus still is continuously a fixed value, explains that short trouble has taken place said Can bus, will confirm further below this short trouble occurs in which section of said Can bus.
Step S405: the second sub-switch that breaks off the corresponding intelligent switch of first node; Detect the level on the said Can bus once more; The 3rd time period of timing, judge whether said level still is continuously a fixed value, if; Show that short trouble has taken place the bus between said first node and the Can transceiver, get into step S406; If not, show the bus operate as normal between said first node and the Can transceiver, be that present node gets into step S407 with said first node;
Step S406: confirm that current short trouble position is the Can bus between said first node and the Can transceiver, the short circuit positioning flow finishes;
Step S407: the second sub-switch of the intelligent switch that closed said present node is corresponding; Break off the second sub-switch of the corresponding intelligent switch of the next node of said present node, detect the level on the said Can bus once more, the 3rd time period of timing; Judge whether said level still is continuously a fixed value; If, show that short trouble has taken place the bus between the next node of said present node and said present node, get into step S408; If not, show the bus operate as normal between the next node of said present node and said present node, entering step S409;
Step S408: confirm that current short trouble position is the bus between the next node of said present node and said present node, the short circuit positioning flow finishes;
Step S409: the next node with said present node is said present node, returns step S407;
Integrating step S405 to S409: in the embodiment of the invention; The second sub-switch through the corresponding intelligent switch of each node; Total Can bus is divided into the n section; Be: from be the 1st section between the second corresponding sub-switch of said Can transceiver to first node, from being the 2nd section between the corresponding second corresponding sub-switch of the second sub-switch to said Section Point of said first node, between corresponding the 3rd corresponding sub-switch of the second sub-switch to said the 3rd node of said Section Point, being the 3rd section ... By that analogy, said N N-1Second sub-switch to the N that node is corresponding nBetween the second sub-switch of node correspondence is the n section.
Occur in which section of said Can bus for this short trouble of accurate location; With first node is initial; At first break off the second sub-switch of the corresponding intelligent switch of first node; Break off being connected between Can bus and the said Can transceiver after the said first node, only have the 1st section Can bus (from the bus between the second sub-switch of said Can transceiver to first node correspondence) to connect said CPU processor through said Can transceiver.At this moment; Detect the level on the said Can bus; Still be continuously a fixed value if detect level; Can confirm that said short trouble just occurs on said the first node corresponding second sub-switch and the Can total segment between the said Can transceiver, has realized Can bus short circuit failure location; If after breaking off the second sub-switch of the corresponding intelligent switch of first node; The level that detects on the said Can bus has recovered normal; No longer be continuously a fixed value; Show that then second sub-switch of said first node correspondence and the Can total segment between the said Can transceiver are normal; Short trouble just possibly occur on the second corresponding sub-switch of the first node Can total segment afterwards so, has got rid of the 1st section possibility that the Can bus is short-circuited thus, continues below the 2nd section Can bus carried out fault detect.
The second sub-switch that closed then first node is corresponding; Break off the second sub-switch of the corresponding intelligent switch of Section Point; Break off being connected between Can bus and the said Can transceiver after the said Section Point thus, only have the 1st section Can bus and the 2nd section Can bus (from the bus between the second sub-switch of said Can transceiver to Section Point correspondence) to connect said CPU processor through said Can transceiver.At this moment; Detect the level on the said Can bus; Still be continuously a fixed value if detect level; Can confirm that said short trouble just occurs on said the Section Point corresponding second sub-switch and the Can total segment between the said Can transceiver; The 1st section possibility that the Can bus is short-circuited got rid of in the front, so just can confirm that short trouble occurs on the Can total segment of the second corresponding sub-switch of said first node, the second sub-switch corresponding with said Section Point, has realized Can bus short circuit failure location; If after breaking off the second sub-switch of the corresponding intelligent switch of Section Point; The level that detects on the said Can bus has recovered normal; No longer be continuously a fixed value; Show that then second sub-switch of said Section Point correspondence and the Can total segment between the said Can transceiver are normal; Short trouble just possibly occur on the second corresponding sub-switch of the Section Point Can total segment afterwards so, has got rid of the 1st section Can bus and the 2nd section possibility that the Can bus is short-circuited thus, continues below the 3rd section Can bus carried out fault detect.
And the like; Break off the Section Point second corresponding sub-switch of each node afterwards respectively; Successively to the 3rd section Can bus, the 4th section Can bus ... N section Can bus is carried out short trouble and is detected; To confirm that said short trouble occurs on which section of said Can bus, realizes the short circuit location to said Can network system.
Need to prove, all are the 3rd time periods of timing among the step S405 neutralization procedure S407, and timing time is identical; Said the 3rd time period can specifically be set according to practical situations.Certainly, in practical application, when carrying out fault detect for Different Ca n total segment, its timing time also can be different.
From step S405 to S409; Realized when short trouble occurs on a certain section Can bus; How to realize accurate location to short trouble; Introduce below when short trouble occurs in a certain node, how the judged result that is step S404 realizes the accurate location to short trouble when denying.
Step S410: after the 4th time period of delaying time, be that present node gets into step S411 with said first node;
Step S411: the first sub-switch of the intelligent switch that closed said present node is corresponding; Detect the level on the said Can bus once more; Timing certain hour section judges whether said level still is continuously a fixed value, if; Show that short trouble has taken place said present node, get into step S412; If not, show said present node operate as normal, get into step S413;
Step S412: confirm that current short trouble position is said present node, cut off said present node, judge whether said present node is last node on the said Can bus, if the short circuit positioning flow finishes; If, do not get into step S413;
Step S413: the next node with said present node is said present node, returns step S411;
Integrating step S410 to S413: in the embodiment of the invention; After step S404; Through successively each node being inserted said Can bus; And the level of said Can bus when detecting each node respectively and inserting, confirm which perhaps which node short trouble has taken place, realize accurate location with this to the short trouble of Can network system.
Concrete; The first sub-switch of the intelligent switch that at first closed first node is corresponding only inserts said Can bus with first node, at this moment; Detect the level on the said Can bus; Be continuously a fixed value if detect level, show that first node causes the Can network system that short trouble has taken place when inserting, because the front has been got rid of the possibility of Can bus short circuit and only had first node to insert said Can bus; Can confirm that then said short trouble just occurs in said first node, realize Can bus short circuit failure location; If behind the access first node; The level that detects on the said Can bus is still normal; Show that then said first node is an operate as normal; Short trouble just possibly occur on the first node node afterwards so, has got rid of the possibility that first node is short-circuited thus, continues below Section Point is carried out fault detect.
What need special instruction is; Because can't confirm only to have a node to be short-circuited still is that a plurality of nodes are short-circuited,, also need continue other nodes are carried out fault detect even confirm that short trouble has taken place first node; Influence detection to other nodes for the first node of avoiding breaking down this moment; Therefore, when definite first node is short-circuited, break off the first corresponding sub-switch of said first node; Said first node is broken off from said Can bus, continue Section Point is carried out fault detect.
The first sub-switch of the intelligent switch that closed Section Point is corresponding; First node and Section Point are inserted said Can bus; At this moment, detect the level on the said Can bus, be continuously a fixed value if detect level; Show that Section Point causes the Can network system that short trouble has taken place when inserting; Because the front has been got rid of the possibility of Can bus short circuit and first node short circuit and has only been had first node and Section Point to insert said Can bus, can confirm that then said short trouble just occurs in said Section Point, has realized Can bus short circuit failure location; If behind the access Section Point; The level that detects on the said Can bus is still normal; Show that then said Section Point also is an operate as normal; Short trouble just possibly occur on the Section Point node afterwards so, has got rid of the possibility that Section Point is short-circuited thus, continues that below the 3rd node is carried out short trouble and detects.
Equally, if confirm that short trouble has taken place Section Point, also need continue other nodes are carried out fault detect; Influence detection to other nodes for the Section Point of avoiding breaking down this moment; Therefore, when definite Section Point is short-circuited, break off the first corresponding sub-switch of said Section Point; Said Section Point is broken off from said Can bus, continue the 3rd node is carried out fault detect.
And the like; Insert the 3rd node, the 4th node respectively ... The n node is confirmed whether failed because of each node, successively if confirm that certain node is an operate as normal; The access state that can keep this node continues that the next node of this node is carried out short trouble and detects; If confirm that short trouble has taken place certain node; Then break off the first corresponding sub-switch of this node; This node is broken off from said Can bus, continue that the next node of this node is carried out short trouble and detect, till the short-circuit detecting of accomplishing last node on the said Can bus.
Preferably, in step S411, the first sub-switch of the intelligent switch that the said present node of said closure is corresponding can be specially: the sub-switch of first high level and the sub-switch of first low level of the intelligent switch that closed successively said present node is corresponding.
Through corresponding sub-switch of first high level and the sub-switch of first low level of closed said present node successively; Can confirm the particular type of the short trouble that present node takes place, confirm that this short trouble is to insert high level voltage bus CanH short circuit or insert low level voltage bus CanL short circuit.
Concrete, said step S411 comprises:
Step S411a: the sub-switch of first high level of the corresponding intelligent switch of closed said present node; Detect the level on the said Can bus; Timing certain hour section; If said level still is continuously a fixed value, show that the high level voltage bus short circuit takes place to insert said present node, gets into step S412; Otherwise get into step S411b;
Step S411b: the sub-switch of first low level of the corresponding intelligent switch of closed said present node; Detect the level on the said Can bus; Timing certain hour section; If said level still is continuously a fixed value, show that the low level voltage bus short circuit takes place to insert said present node, gets into step S412; Otherwise, show said present node operate as normal, get into step S413.
At first; The sub-switch of first high level of the intelligent switch that closed said present node is corresponding detects the level (what detect this moment is the level of high level voltage bus CanH) on the said Can bus, timing certain hour section; Judge whether said level still is continuously a fixed value; If show that short trouble has taken place said present node, and this short trouble is to insert high level voltage bus CanH short circuit; Then; The sub-switch of first low level of the intelligent switch that closed more said present node is corresponding detects the level (what detect this moment is the level of low level voltage bus CanL) on the said Can bus, timing certain hour section; Judge whether said level still is continuously a fixed value; If show that short trouble has taken place said present node, and this short trouble is to insert low level voltage bus CanL short circuit.
Certainly, in practical application, also can be earlier closed the sub-switch of first low level of the corresponding intelligent switch of said present node, the sub-switch of closed again first high level.
Preferably, in step S412, confirm that current short trouble position is said present node, when cutting off said present node, can also comprise: the malfunction indicator lamp of said present node is bright, and this node of indication operating personnel is in malfunction.
Further, said step S412 can also comprise: said present node shows fault type.Concrete, said fault type can comprise: this short trouble is shorted to earth, to power supply short circuit, short-circuit between conductors or insert high level voltage bus CanH short circuit or insert low level voltage bus CanL short circuit etc.
With reference to Fig. 5, for the hardware of the said intelligent switch of the embodiment of the invention is realized figure.
As shown in Figure 5, said DC-DC modular converter U1 receives the 24V power supply of outside input, and said 24V power supply is changed, and output 5V power supply is to power isolation module U2; Said power isolation module U2 receives the 5V power supply of said DC-DC modular converter U1 output, produces the 5V internal electric source of said intelligent switch need of work; Said system power supply module U3 receives the 5V internal electric source that said power isolation module U2 produces, and exports the 3.3V operation level of whole intelligent switch.
Preferably, said DC-DC modular converter U1 can adopt the LT3980 chip to realize; Said power isolation module U2 can adopt the DCP020505 chip to realize; Said system power supply module U3 can adopt TPS767D318 to realize.
As shown in Figure 5, said intelligent switch comprises: the first sub-switch U4 and the second sub-switch U5.Wherein, the said first sub-switch U4 is used for each node connecting system Can bus, and the second sub-switch U5 is serially connected on the said system Can bus, is used for the cut-out of whole system Can bus.As shown in Figure 5, the first sub-switch U4 connects each node Can bus, and each node Can bus is through the first sub-switch U4 output; Said system Can bus inserts through the Can_in interface of the said second sub-switch U5, and said system Can bus is through the Can_out interface output of the said second sub-switch U5.
The primary processor U6 of said intelligent switch realizes the break-make control to said system Can bus and each node Can bus through controlling the said first sub-switch U4 and the second sub-switch U5.Simultaneously, the level state of said system Can bus is also delivered to said primary processor U6 after the Can_in interface input through the said second sub-switch U5.
With reference to Fig. 6, be the course of work flow chart of the said intelligent switch of the embodiment of the invention.Can know that in conjunction with Fig. 5 and Fig. 6 the course of work of said intelligent switch comprises:
Step S601: beginning, for each node is installed intelligent switch;
Concrete, before with each node device connecting system Can bus, each energy-saving device is passed through the said intelligent switch of node Can bus interface, again with said intelligent switch connecting system Can bus.
Step S602: confirm to install,, get into step S603 for said intelligent switch powers on;
Step S603: switch U7 pushes button;
Step S604: said intelligent switch starts interruption, the Can communication mode of entering and said CPU processor, disconnected node Can communication simultaneously;
Wherein, said disconnected node Can communication is specially: the first sub-switch that breaks off said intelligent switch.
Step S605: said CPU processor sends Can data data1;
Step S606: the primary processor U6 of said intelligent switch receives said Can data data1; And it is set to the Can_id of said intelligent switch; And sending handshake X0 to the CPU processor of Can_id configuration successful, the indicator light of intelligent switch is bright after configuration successful;
Step S607: said CPU processor receives said handshake X0, and said Can data data1 is designated the ID data that disposed, judges whether present node is last node on the said Can bus, if get into step S608; If not, prepare the Can_id data data2 of the corresponding intelligent switch of next node, return step S603;
Step S608: the Can_id of all nodes configuration is accomplished on the said Can bus;
Step S609: when node detection arrives short trouble, get into step S610;
Step S610: the intelligent switch time-delay certain hour section T0 that all nodes are corresponding;
Step S611: the Can_id with the corresponding intelligent switch of each node counts M in the time interval; With time T 1 is the time radix, and the time of calculating node Can bus switch (being the first corresponding sub-switch of each node) unlatching successively of the corresponding intelligent switch of each node is T2=M*T1;
Need to prove; Can know that through the described layoutprocedure of step S605 to S608 the intelligent switch that each node is corresponding has one to be confirmed and unique ID (Can_id), when said Can bus communication goes wrong; The intelligent switch of all nodes all detects the Can bus and goes wrong; The first sub-switch of the intelligent switch that all nodes are corresponding all breaks off, the corresponding intelligent switch of closed successively each node of beginning after the some time T after the disconnection, and the closed time of intelligent switch that each node is corresponding all is to be the time interval to count M with self ID number; Its time radix is T0; Because ID number uniqueness of each intelligent switch makes that the closing time of the intelligent switch that each node is corresponding is also inequality at interval, can guarantee the intelligent switch action of having only a node corresponding thus at every turn; Thereby can judge the operating state of each node successively, realize accurate location the node of failed because.
Step S612: with the first node is present node, and the intelligent switch that present node is corresponding carries out accident analysis and judges;
Step S613: confirm whether present node breaks down, if get into step S614; If, do not get into step S615;
Step S614: the node failure position is confirmed;
Step S615: judge whether said present node is last node on the said Can bus, if get into step S616; If not, as present node, its corresponding intelligent switch carries out accident analysis to be judged, returns step S613 with the next node of present node;
Step S616: process ends is confirmed to finish in all node failure positions.
Concrete, before with each node connecting system Can bus, be that each node inserts corresponding intelligent switch at first, each node device inserts through node Can EBI; After intelligent switch installs,, press corresponding key switch U7 for intelligent switch powers on; The primary processor U6 of said intelligent switch receives the interrupt signal of said key switch U7, and said interrupt signal is handled; Said primary processor U6 starts the Can bus and receives the Can data data1 from said CPU processor; Data1 is set to the Can_id of intelligent switch; After finishing, configuration sends handshake X0 to CPU processor; Said CPU processor withdraws from interruption immediately, and indicator light is bright, shows that the ID configuration of this intelligent switch is correct.Simultaneously, the CPU processor will be monitored the level state of Can bus in real time.
When the hardware short trouble appears in the Can bus; The fixed level of certain hour (like T1) appears in the Can bus level of CPU processor monitoring; This moment, the CPU processor intelligent switch judgment processing program (process of step 609 to step 616) that makes an immediate response was confirmed to finish up to the Can of whole system short trouble position.
Corresponding to the location of short circuit localization method of the described Can network system of above-mentioned each embodiment of the present invention, the embodiment of the invention also provides a kind of location of short circuit positioner of Can network system.The Can network architecture figure that said positioner is corresponding is identical with Fig. 1 and Fig. 2.
In conjunction with illustrated in figures 1 and 2, said Can network system comprises: the Can bus connects the CPU processor through the Can transceiver, inserts at least one node of said Can bus.
Said positioner comprises: for each node is provided with an intelligent switch respectively.
Each intelligent switch structure is identical, includes the first sub-switch and the second sub-switch; The said first sub-switch series is connected between each node and the said Can bus; The said second sub-switch series is connected on the said Can bus, is serially connected between the bus access point of adjacent two nodes.
Said CPU processor is used to control the first sub-switch of the corresponding intelligent switch of each node and the break-make of the second sub-switch.
Said CPU processor specifically comprises:
Initial control unit, the corresponding intelligent switch of all nodes that is used to control on the said Can bus all is in closure state;
The preliminary judging unit of abort situation is used to detect the level on the said Can bus, timing very first time section; When if said level is continuously a fixed value, break off the first sub-switch of the intelligent switch that all nodes are corresponding on the said Can bus, detect the level on the said Can bus once more; Second time period of timing; If said level still is continuously a fixed value, preliminary failure judgement is the Can bus short circuit, triggers Can bus short circuit positioning unit; Otherwise preliminary failure judgement is the node short circuit, triggers node short circuit positioning unit;
Said Can bus short circuit positioning unit; Be used for breaking off successively the second sub-switch of the corresponding intelligent switch of each node; And the level on the said Can bus when detecting each second sub-switch respectively and breaking off; If said level is continuously a fixed value in the certain hour section, show that the intelligent switch corresponding nodes of current disconnection and the Can total segment between the last node are short-circuited; Otherwise the intelligent switch of closed current disconnection breaks off the second corresponding sub-switch of next node;
Said triggering node short circuit positioning unit; The first sub-switch that is used for the corresponding intelligent switch of closed successively each node; And the level on the said Can bus when detecting each first sub-switch closure respectively, if said level is continuously a fixed value in the certain hour section, show that the intelligent switch corresponding nodes of current closure is short-circuited; Break off the intelligent switch corresponding nodes of said current closure, the first sub-switch of closed next node; Otherwise, the first sub-switch of closed next node.
Can know that in conjunction with Fig. 2 the first sub-switch of each intelligent switch comprises: sub-switch of first high level and the sub-switch of first low level; The second sub-switch of each intelligent switch comprises: sub-switch of second high level and the sub-switch of second low level;
The sub-switch of said first high level is connected between each node and the high level voltage bus, and the sub-switch of said first low level is connected between each node and the low level high-voltage bus;
The sub-switch series of said second high level is connected on the said high level voltage bus, is serially connected between the bus access point of adjacent two nodes; The sub-switch series of said second low level is connected on the said low level voltage bus, is serially connected between the bus access point of adjacent two nodes.
In the location of short circuit localization method and device of the above described Can network system of each embodiment of the present invention; In conjunction with shown in Figure 1; Said each node inserts the Can bus through corresponding intelligent switch, and the intelligent switch that each node is corresponding also receives the control signal that said CPU processor sends through this Can bus.Be, in aforementioned each embodiment, said CPU processor is realized the control to each node through same Can bus, and the break-make of the corresponding intelligent switch of each node is controlled.
With reference to shown in Figure 7, be the embodiment of the invention three described Can network architecture figure.With reference to shown in Figure 3; Said Can network system also comprises: the 2nd Can bus; The intelligent switch 30 that each node is corresponding directly connects said CPU processor 10 through said the 2nd Can bus; Realize with said CPU processor 10 between communication be connected, receive the control signal that said CPU processor 10 is exported.
Be, in embodiment illustrated in fig. 7 three, said CPU processor 10 is realized the control to each node through a Can bus, realizes the break-make control to the corresponding intelligent switch 30 of each node through the 2nd Can bus.
Its concrete control procedure is: when CPU processor 10 detects the Can network system and short trouble occurs, directly realize control and Can bus level status detection to the node switch for the node intelligent switch by CPU processor 10 through transmitting control commands.The primary processor of the intelligent switch that each node is corresponding receives the control command that said CPU handles 10 transmissions, controls the first sub-switch of said intelligent switch and the break-make of the second sub-switch.
With reference to Fig. 8, be the hardware structure diagram of the corresponding intelligent switch of network system shown in Figure 7.The difference of intelligent switch shown in Figure 8 and intelligent switch shown in Figure 5 is: said primary processor connects the 2nd Can bus through bus and isolation module.
Preferably, said Can network system can also comprise the 3rd bus and fault display device 40.Said fault display device 40 is through the said CPU processor 10 of said the 3rd bus interface; Be used for the short trouble information of said Can network system is shown output; This short trouble information comprises the short trouble of Can bus short circuit fault and each node, in time finds and safeguards with the handled easily personnel.
Preferably, said second bus and the 3rd bus all can adopt the RS485 bus.
Need to prove that in the embodiment of the invention, embodiment illustrated in fig. 7 three said Can network systems realize that the method flow of short trouble location is identical with previous embodiment with apparatus structure, repeat no more at this.
More than to the location of short circuit localization method and the device of a kind of Can network system provided by the present invention; Carried out detailed introduction; Used concrete example among this paper principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part all can change on embodiment and range of application.In sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. the location of short circuit localization method of a Can network system is characterized in that, said Can network system comprises: the Can bus connects the CPU processor through the Can transceiver;
At least one node, each node connect said Can bus through an intelligent switch respectively;
Each intelligent switch structure is identical, includes the first sub-switch and the second sub-switch; The said first sub-switch series is connected between each node and the said Can bus; The said second sub-switch series is connected on the said Can bus, is serially connected between the bus access point of adjacent two nodes;
Said CPU processor is used to control the first sub-switch of the corresponding intelligent switch of each node and the break-make of the second sub-switch;
Said method comprising the steps of:
Step 1: the corresponding intelligent switch of all nodes on the said Can bus all is in closure state;
Step 2: detect the level on the said Can bus, timing very first time section when being continuously a fixed value as if said level, gets into step 3; Otherwise, process ends;
Step 3: the first sub-switch that breaks off the intelligent switch that all nodes are corresponding on the said Can bus;
Step 4: detect the level on the said Can bus once more, second time period of timing,, get into step 5 if said level still is continuously a fixed value; Otherwise, get into step 6;
Step 5: the second sub-switch that breaks off the corresponding intelligent switch of each node successively; And the level on the said Can bus when detecting each second sub-switch respectively and breaking off; If said level is continuously a fixed value in the certain hour section; Show that the intelligent switch corresponding nodes of current disconnection and the Can total segment between the last node are short-circuited, the short circuit positioning flow finishes; Otherwise the intelligent switch of closed current disconnection returns step 5;
Step 6: the first sub-switch of the corresponding intelligent switch of closed successively each node; And the level on the said Can bus when detecting each first sub-switch closure respectively; If said level is continuously a fixed value in the certain hour section; The intelligent switch corresponding nodes that shows current closure is short-circuited, and breaks off the intelligent switch corresponding nodes of said current closure, returns step 6; Otherwise, return step 6.
2. the location of short circuit localization method of Can network system according to claim 1 is characterized in that, said step 5 specifically comprises:
Step 51: break off the second sub-switch of the corresponding intelligent switch of first node, detect the level on the said Can bus, the 3rd time period of timing,, get into step 52 if said level still is continuously a fixed value; Otherwise, be that present node gets into step 53 with said first node;
Step 52: confirm that current short trouble position is the Can bus between said first node and the said Can transceiver, the short circuit positioning flow finishes;
Step 53: the second sub-switch of the corresponding intelligent switch of closed said present node; Break off the second sub-switch of the corresponding intelligent switch of next node of said present node, detect the level on the said Can bus, timing certain hour section; If said level still is continuously a fixed value, get into step 54; Otherwise, get into step 55;
Step 54: confirm that current short trouble position is the Can bus between the next node of said present node and said present node, the short circuit positioning flow finishes;
Step 55: the next node with said present node is said present node, returns step 52.
3. the location of short circuit localization method of Can network system according to claim 1 is characterized in that, said step 6 specifically comprises:
Step 61: after the 4th time period of delaying time, be that present node gets into step 62 with said first node;
Step 62: the first sub-switch of the corresponding intelligent switch of closed said present node, detect the level on the said Can bus, timing certain hour section if said level still is continuously a fixed value, gets into step 63; Otherwise, get into step 64;
Step 63: confirm that current short trouble position is said present node, cut off said present node, if said present node is last node on the said Can bus, the short circuit positioning flow finishes; Otherwise, get into step 64;
Step 64: the next node with said present node is said present node, returns step 62.
4. the location of short circuit localization method of Can network system according to claim 3 is characterized in that, the said first sub-switch comprises sub-switch of first high level and the sub-switch of first low level; The sub-switch of said first high level is connected between each node and the high level voltage bus, and the sub-switch of first low level is connected between each node and the low level high-voltage bus;
Said step 62 specifically comprises:
Step 621: the sub-switch of first high level of the corresponding intelligent switch of closed said present node; Detect the level on the said Can bus; Timing certain hour section if said level still is continuously a fixed value, shows that the high level voltage bus short circuit takes place to insert said present node; Otherwise get into step 64;
Step 622: the sub-switch of first low level of the corresponding intelligent switch of closed said present node; Detect the level on the said Can bus; Timing certain hour section if said level still is continuously a fixed value, shows that the low level voltage bus short circuit takes place to insert said present node; Otherwise get into step 64.
5. the location of short circuit localization method of Can network system according to claim 3 is characterized in that, in the step 63, confirms that said current short trouble position is said present node, when cutting off said present node, further comprises:
The malfunction indicator lamp of said present node is bright.
6. the location of short circuit localization method of Can network system according to claim 3 is characterized in that step 63 further comprises:
The fault type that shows said present node.
7. the location of short circuit positioner of a Can network system is characterized in that, said Can network system comprises: the Can bus connects the CPU processor through the Can transceiver, inserts at least one node of said Can bus;
Said positioner comprises: for each node is provided with an intelligent switch respectively;
Each intelligent switch structure is identical, includes the first sub-switch and the second sub-switch; The said first sub-switch series is connected between each node and the said Can bus; The said second sub-switch series is connected on the said Can bus, is serially connected between the bus access point of adjacent two nodes;
Said CPU processor is used to control the first sub-switch of the corresponding intelligent switch of each node and the break-make of the second sub-switch;
Said CPU processor specifically comprises:
Initial control unit, the corresponding intelligent switch of all nodes that is used to control on the said Can bus all is in closure state;
The preliminary judging unit of abort situation is used to detect the level on the said Can bus, timing very first time section; When if said level is continuously a fixed value, break off the first sub-switch of the intelligent switch that all nodes are corresponding on the said Can bus, detect the level on the said Can bus once more; Second time period of timing; If said level still is continuously a fixed value, preliminary failure judgement is the Can bus short circuit, triggers Can bus short circuit positioning unit; Otherwise preliminary failure judgement is the node short circuit, triggers node short circuit positioning unit;
Said Can bus short circuit positioning unit; Be used for breaking off successively the second sub-switch of the corresponding intelligent switch of each node; And the level on the said Can bus when detecting each second sub-switch respectively and breaking off; If said level is continuously a fixed value in the certain hour section, show that the intelligent switch corresponding nodes of current disconnection and the Can total segment between the last node are short-circuited; Otherwise the intelligent switch of closed current disconnection breaks off the second corresponding sub-switch of next node;
Said triggering node short circuit positioning unit; The first sub-switch that is used for the corresponding intelligent switch of closed successively each node; And the level on the said Can bus when detecting each first sub-switch closure respectively, if said level is continuously a fixed value in the certain hour section, show that the intelligent switch corresponding nodes of current closure is short-circuited; Break off the intelligent switch corresponding nodes of said current closure, the first sub-switch of closed next node; Otherwise, the first sub-switch of closed next node.
8. the location of short circuit positioner of Can network system according to claim 7 is characterized in that, the first sub-switch of each intelligent switch comprises: sub-switch of first high level and the sub-switch of first low level; The second sub-switch of each intelligent switch comprises: sub-switch of second high level and the sub-switch of second low level;
The sub-switch of said first high level is connected between each node and the high level voltage bus, and the sub-switch of said first low level is connected between each node and the low level high-voltage bus;
The sub-switch series of said second high level is connected on the said high level voltage bus, is serially connected between the bus access point of adjacent two nodes; The sub-switch series of said second low level is connected on the said low level voltage bus, is serially connected between the bus access point of adjacent two nodes.
9. according to the location of short circuit positioner of claim 7 or 8 described Can network systems, it is characterized in that said Can network system also comprises: the 2nd Can bus;
The corresponding intelligent switch of each node is through the said CPU processor of said the 2nd Can bus interface, and realization is connected with communication between the said CPU processor.
10. the location of short circuit positioner of Can network system according to claim 9 is characterized in that, said Can network system also comprises: the 3rd bus and fault display device;
Said fault display device is used for the short trouble information of said Can network system is shown output through the said CPU processor of said the 3rd bus interface.
CN201210051274.4A 2012-03-01 2012-03-01 Method and device for locating short circuit position of CAN (Controller Area Network) network Active CN102611600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210051274.4A CN102611600B (en) 2012-03-01 2012-03-01 Method and device for locating short circuit position of CAN (Controller Area Network) network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210051274.4A CN102611600B (en) 2012-03-01 2012-03-01 Method and device for locating short circuit position of CAN (Controller Area Network) network

Publications (2)

Publication Number Publication Date
CN102611600A true CN102611600A (en) 2012-07-25
CN102611600B CN102611600B (en) 2014-12-10

Family

ID=46528771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210051274.4A Active CN102611600B (en) 2012-03-01 2012-03-01 Method and device for locating short circuit position of CAN (Controller Area Network) network

Country Status (1)

Country Link
CN (1) CN102611600B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105319474A (en) * 2014-05-27 2016-02-10 通用汽车环球科技运作有限责任公司 Method and apparatus for short fault detection in a controller area network
CN109521316A (en) * 2018-11-27 2019-03-26 中车长春轨道客车股份有限公司 Busbar short-circuit test method is pressed in a kind of EMU
CN111619477A (en) * 2019-02-27 2020-09-04 采埃孚主动安全股份有限公司 Communication system and communication method for motor vehicle communication
CN112956160A (en) * 2018-10-29 2021-06-11 昕诺飞控股有限公司 System for providing a sequence of nodes in a network
CN113645112A (en) * 2021-07-15 2021-11-12 珠海格力电器股份有限公司 Bus communication control circuit and control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2079190A1 (en) * 2008-01-10 2009-07-15 Toyota Jidosha Kabushiki Kaisha Fault location device, communication device, and fault location method
CN101494571A (en) * 2009-01-22 2009-07-29 上海华魏自动化设备有限公司 CAN bus self detection recovery device and method
CN202042946U (en) * 2011-04-25 2011-11-16 成都思晗科技有限公司 Automatic power distribution network fault positioning system
CN202094916U (en) * 2011-06-21 2011-12-28 长沙中联重工科技发展股份有限公司 Fault detection system for CAN bus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2079190A1 (en) * 2008-01-10 2009-07-15 Toyota Jidosha Kabushiki Kaisha Fault location device, communication device, and fault location method
CN101494571A (en) * 2009-01-22 2009-07-29 上海华魏自动化设备有限公司 CAN bus self detection recovery device and method
CN202042946U (en) * 2011-04-25 2011-11-16 成都思晗科技有限公司 Automatic power distribution network fault positioning system
CN202094916U (en) * 2011-06-21 2011-12-28 长沙中联重工科技发展股份有限公司 Fault detection system for CAN bus

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105319474A (en) * 2014-05-27 2016-02-10 通用汽车环球科技运作有限责任公司 Method and apparatus for short fault detection in a controller area network
CN105319474B (en) * 2014-05-27 2019-12-31 通用汽车环球科技运作有限责任公司 Method and apparatus for short circuit fault detection in controller area networks
CN112956160A (en) * 2018-10-29 2021-06-11 昕诺飞控股有限公司 System for providing a sequence of nodes in a network
CN112956160B (en) * 2018-10-29 2022-08-02 昕诺飞控股有限公司 System for providing a sequence of nodes in a network
CN109521316A (en) * 2018-11-27 2019-03-26 中车长春轨道客车股份有限公司 Busbar short-circuit test method is pressed in a kind of EMU
CN111619477A (en) * 2019-02-27 2020-09-04 采埃孚主动安全股份有限公司 Communication system and communication method for motor vehicle communication
US11570250B2 (en) * 2019-02-27 2023-01-31 Zf Active Safety Gmbh Communication system and method for communication for a motor vehicle
CN111619477B (en) * 2019-02-27 2024-02-09 采埃孚主动安全股份有限公司 Communication system and communication method for motor vehicle communication
CN113645112A (en) * 2021-07-15 2021-11-12 珠海格力电器股份有限公司 Bus communication control circuit and control method thereof
CN113645112B (en) * 2021-07-15 2022-05-17 珠海格力电器股份有限公司 Bus communication control circuit and control method thereof

Also Published As

Publication number Publication date
CN102611600B (en) 2014-12-10

Similar Documents

Publication Publication Date Title
US6853292B1 (en) Security control system, method for the operation thereof
CN102725700B (en) Control system for controlling safety-critical and non-safety-critical processes
CN102713773B (en) For the security module of automation equipment
CN101119187B (en) Master-salve equipment switch control method
CN101630298B (en) Serial bus slave address setting system
EP2163024B1 (en) Identifying improper cabling of devices
US10102163B2 (en) Bus participant device and method for operating a bus subscriber device
RU2665890C2 (en) Data management and transmission system, gateway module, input/output module and process control method
CN107390511A (en) For the method for the automated system for running redundancy
CN102611600B (en) Method and device for locating short circuit position of CAN (Controller Area Network) network
CN101296065A (en) Method and system for improving reliability of redundancy main station
CN107957692B (en) Controller redundancy method, device and system
EP2646359B1 (en) Safety circuit of an elevator, and computer program for identifying a functional nonconformance of a safety circuit of an elevator
CN104380216A (en) Use of an IO link for linking field devices
US20160210253A1 (en) Serial bus system with switching modules
CN102752145A (en) Novel detecting and isolating system for fault of RS-485 port and method thereof
CN108604084B (en) Method and device for monitoring data processing and transmission in a security chain of a security system
CN114355760A (en) Main control station and hot standby redundancy control method thereof
CN110995889A (en) Address allocation system and method
KR101733263B1 (en) Control device and method for operating such a control device
WO2016108627A1 (en) Dual controller system
CN115053462A (en) Cable abnormality determination system, slave device, and cable abnormality determination method
US20160275029A1 (en) Data Bus Coupler and Method of Operation
CN210518417U (en) Address allocation system
CN108337143B (en) Communication structure, communication system, and communication method

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