Detailed description of the invention
Owing to the present invention can revise and have some exemplary embodiments in a variety of forms, particular exemplary is realExecute example to illustrate at accompanying drawing and be described in detail in detailed description.It will be appreciated, however, that it is notIt is intended to limit the present invention to specific embodiment, on the contrary, it is intended to cover be in present invention spirit and modelEnclose interior all modifications and option.
Relational term such as the first, the second etc. can be used for describing multiple element, but this element should not limited by itemSystem.This is only used for distinguishing an element and another element.Such as, the first assembly can be named second groupPart is without departing from the scope of the invention, and the second assembly also can the most named first assembly.Term "and/or"Represent any one or a plurality of relevant and combination of described item.
" it is coupled in " or during " being connected to " another assembly when mentioning specific components, it should be understood that specific components is direct" it is coupled in " or " being connected to " other assembly or further, assembly can be located between it.On the contrary, when mentioning spyDetermine assembly " to be coupled directly to " or during " being directly connected in " another assembly, it will be appreciated that assembly not position furtherBetween it.
In the following description, technical term is merely to illustrate certain exemplary embodiments and the unrestricted disclosure.Singulative " one (a) ", " one (an) ", and " this (the) " include plural reference.UnlessContext separately explicitly indicates that.In this manual, it will be appreciated that term " has ", " comprising ", " including "Etc. being used for specifying stated features, integer, step, operation, element and/or the existence of assembly, but it is not excluded for oneOther features individual or multiple, integer, step, operation, element, assembly and/or the existence of a combination thereof or additional.
Unless otherwise defined, all terms used herein (including technology and scientific terminology) have and thisBright those of ordinary skill in the field are generally understood that identical implication.Term, the most general and at wordTerm in allusion quotation, it should be interpreted as having the implication being matched with this area context implication.In this description,Unless clearly defined, term is the most too construed to formal sense.
Hereinafter, preferred embodiments of the invention will be described in detail with reference to the attached drawings.In described inventionIn, for realizing comprehensive understanding of the present invention, in full text accompanying drawing describes same numbers refer to identical element andIts repeated description will be omitted.
Fig. 1 is block diagram, it is shown that according to the In-vehicle networking topology of an embodiment.
With reference to Fig. 1, communication node can represent gateway, switchs (or bridge) or terminal node.Gateway 100 can be withAt least one switch 110,110-1,110-2,120 and 130 connect and configure to connect different networks.Such as, gateway 100 can connect support controller zone network (CAN) (FlexRay, media guidance systemTransmission (MOST) or Local Interconnect Network (LIN)) agreement switch and support Ethernet protocol switch.Switch 110,110-1,110-2,120 and 130 can with at least one terminal node 111,112,113,121,122,123,131,132 and 133 connect.Switch 110,110-1,110-2,120 and 130 can interconnectAnd control terminal node 111,112,113,121,122,123,131,132 and 133.
Terminal node 111,112,113,121,122,123,131,132 and 133 can represent electronics controlUnit processed (ECU), its polytype equipment controlling to be included in vehicle.
Such as, terminal node 111,112,113,121,122,123,131,132 and 133 can representThe ECU of composition infotainment devices (such as, display apparatus, navigator and surroundings monitor apparatus).
The communication node (that is, gateway, switch, terminal node etc.) of composition In-vehicle networking may connect to starTopology, bus topology, ring topology, tree topology, mesh topology etc..Additionally, composition In-vehicle networking is logicalLetter node can support CAN protocol, FlexRay agreement, MOST agreement, LIN agreement or Ethernet protocol.Embodiments of the invention can be applicable to above-mentioned network topology.The network topology that embodiments of the invention are applied is notIt is limited to this and can configure in many ways.
Fig. 2 is block diagram, it is shown that according to the communication node of an embodiment composition In-vehicle networking.
With reference to Fig. 2, the communication node 200 of network consisting can include PHY layer block 210 and controller 220.In this case, controller 220 can realize including media interviews control (MAC) layer.PHY layer block210 can receive signal from another communication node or send a signal to another communication node.Controller 220 can controlPHY layer block 210 also performs several functions (such as, Infotainment function).PHY layer block 210 and controlDevice 220 can be embodied as a SOC(system on a chip) (SoC) and can be embodied as individual chips.
PHY layer block 210 and controller 220 can pass through Media Independent Interface (MII) 230 and connect.MII230Interface that IEEE802.3 defines can be represented and data can be included between PHY layer block 210 and controller 220Interface and management interface.Simplify MII (RMII), gigabit MII (GMII), simplify GMII (RGMII),Serial GMII (SGMII), one of 10GMII (XGMII) can be used for replacing MII230.Data-interface canIncluding transmission channel and reception channel, each of which can have independent clock, data and control signal.ManagementInterface can include a dual signal interface.One is the signal for clock, and another is the letter for dataNumber.
PHY layer block 210 can include PHY layer interface unit 211, PHY layer processor 212 and PHY layerBuffer 213.The configuration of PHY layer block 210 is not limited to this, and PHY layer block 210 can be in many waysConfiguration.The signal being received from controller 220 can be sent to PHY layer processor by PHY layer interface unit 211212 and can will be received from PHY layer processor 212 signal send to controller 220.PHY layer processor212 operations that can control PHY layer interface unit 211 and PHY layer buffer 213.PHY layer processorThe signal that 212 modulated signals to be sent or demodulation receive.PHY layer processor 212 can control PHY layerBuffer 213 is with input or output signal.PHY layer buffer 213 can store reception signal and can basisSignal from the request output storage of PHY layer processor 212.
Controller 220 can be monitored by MII230 and control PHY layer block 210.Controller 220 can includeControl unit interface unit 221, core 222, main memory 223 and quantum memory 224.The configuration of controller 220 is notIt is limited to this, and controller 220 can configure in many ways.Control unit interface unit 221 can be from PHY layer block210 (that is, PHY layer interfaces 211) or upper strata (not shown) receive signal, send the signal received to core222, and send be received from the signal of core 222 to PHY layer block 210 or upper strata.Core 222 can be furtherIncluding for controlling control unit interface unit 221, main storage 223 and the separate storage of quantum memory 224Device controls logic or integrated memory controls logic.Store control logic can realize being included in main memory 223Maybe can realize with quantum memory 224 being included in core 222.
Host 223 and each of quantum memory 224 can store the signal processed by core 222 can be according toSignal from the request output storage of core 222.Host 223 and can represent volatile memory (such as, at randomAccess memorizer (RAM)), the data required for its temporary storage core 222.Quantum memory 224 canRepresent nonvolatile memory, wherein operating system code (such as, kernel and device driver) and useStored in the application code performing controller 220 function.Have high processing rate flash memory or forHard drive (HDD) or the compact disk read only memory (CD-ROM) of mass data storage can conductsNonvolatile memory.Typically, core 222 can include logic circuit, processes core including at least one.HighLevel RISC machine (ARM) family's core or Anthem family core can be as cores 222.
A kind of method discussed further below, it is by belonging to the communication node of In-vehicle networking and corresponding counterparting communicationsNode performs.Although method discussed further below (such as, signal sends or receives) is by the first communication nodePerform, but the second corresponding communication node can perform corresponding to the method by the first communication node executionMethod (such as, signal receives or sends).That is, when the operation of the first communication node is described, correspondingSecond communication node can perform the operation corresponding with the operation of the first communication node.On the contrary, when the second communication sectionWhen the operation of point is described, the first communication node can perform the operation corresponding with the operation switched.
Fig. 3 is block diagram, for describing the method according to an embodiment, is used for utilizing OBD (OBD)Device Diagnostic In-vehicle networking.
With reference to Fig. 3, terminal node 310,311,312,313 and 314 can form the car described with reference to Fig. 1Contained network network also can support Ethernet protocol.Each of terminal node 310,311,312,313 and 314 canRepresent the communication node 200 described with reference to Fig. 2.Terminal node 310,311,312,313 and 314 can connectIt is connected to same or different switch.For diagnosis terminal node 310,311,312,313 and 314 eachState (that is, normal condition or malfunction) and terminal node 310,311,312,313 and 314 everyThe state of one institute's connecting channel (or port), terminal node 310,311,312,313 and 314 can be withOBD equipment 300 connects with one-to-one principle.That is, for state and the terminal node of diagnosis terminal node 310The state of 310 channels connected, OBD equipment 300 can be physically connected to terminal joint with one-to-one principlePoint 310.
When OBD equipment 300 and terminal node 310 can connect with one-to-one principle, OBD equipment 300Diagnosis request message can be generated and the diagnosis request message of generation can be sent to terminal node 310.From OBDWhen equipment 300 receives diagnosis request message, terminal node 310 can generate diagnostic response message, and it is to examiningThe response of disconnected request message, and the diagnostic response message of generation can be sent to OBD equipment 300.Alternatively,When receiving diagnosis request message from OBD equipment 300, terminal node 310 can send in response to diagnosis requestResponse (ACK) message of message is to OBD equipment 300.Receiving diagnostic response message, (or ACK disappearsBreath) time, it is the response to the diagnosis request message from terminal node 310, from diagnosis request messageSending in the time predefined section of end time, OBD equipment 300 can determine that terminal node 310 and terminal jointThe channel that point 310 is connected is in normal condition.On the contrary, not receiving diagnostic response message, (or ACK disappearsBreath) time, it is from the terminal node 310 response to diagnosis request message, from diagnosis request messageSending in the time period of end time, OBD equipment 300 can determine that terminal node 310 and terminal node 310The channel connected is in malfunction.
OBD equipment 300 can perform said process by utilizing terminal node 311,312,313 and 314Determine the state of residual terminal node 311,312,313 and 314.In-vehicle networking can include substantial amounts of terminalNode.For determining the state of the terminal node of all composition In-vehicle networkings, OBD equipment 300 and terminal nodeThe process physically connected with one-to-one principle and message exchange between OBD equipment 300 and terminal nodeProcess can be implemented in the terminal node of all composition In-vehicle networkings.In this case, more time is spentDetermine the state of the terminal node of all composition In-vehicle networkings.
Fig. 4 is block diagram, for describing the method according to another embodiment, is used for utilizing OBD device Diagnostic carContained network network.
Reference Fig. 4, switch 410,420 and 430 and terminal node 411,412,413,421,422,423,431,432 and 433 can form the In-vehicle networking described with reference to Fig. 1 and can support Ethernet protocol.OpenPass 410,420 and 430 and terminal node 411,412,413,421,422,423,431,432 HeThe communication node 200 that each represented reference Fig. 2 of 433 describes.First switch 410 can be with terminal node411,412 and 413 via the connection of respective port and can be connected with second switch 420.Second switch 420 canAnd can switch with the first switch 410 and the 3rd via the connection of respective port with terminal node 421,422 and 423430 connect.3rd switch 430 can with terminal node 431,432 and 433 via respective port connect and canIt is connected with second switch 420.
OBD equipment 400 may connect to belong to a communication node (such as, the 3rd switch of In-vehicle networking430), to diagnose the state of In-vehicle networking.That is, OBD equipment 400 can connect with one-to-one principle, is notOnly with a communication node, but with composition In-vehicle networking all communication nodes.In this case, logicalCrossing connected a communication node, OBD equipment 400 can obtain and lead to about a plurality of of composition In-vehicle networkingThe diagnostic message of the state of the channel that the state of letter node and a plurality of communication node are connected.Obtain aboutThe method of the diagnostic message of a plurality of communication nodes of composition In-vehicle networking will be described in more detail below.
First terminal node 411, the 4th terminal node 421 and the 7th terminal node 431 can belong to and be included in carThe first system (such as, power assembly control system).Second terminal node 412, the 5th terminal node422 and the 8th terminal node 432 can belong to the second system (such as, body control system) being included in vehicle.Third terminal node 413, the 6th terminal node 423 and the 9th terminal node 433 can belong to and be included in vehicle3rd system (such as, multimedia system).That is, it is connected to each switch the terminal of 410,420 and 430Node 411,412,413,421,422,423,431,432 and 433 can belong to different systems.
Switch 410,420 and 430 and terminal node 411,412,413,421,422,423,431,Each of 432 and 433 can have the topology information about In-vehicle networking.Such as, it is applied to vehicle-mounted when electric powerDuring network (such as, vehicle is equipped with battery), switch 410,420 and 430 and terminal node 411,412,Each of 413,421,422,423,431,432 and 433 can layer communication node be (such as, from itSwitch, gateway etc.) receive the message including the topology information about In-vehicle networking, and can be by disappearing of receivingBreath checks the topology of In-vehicle networking.Alternatively, the topology information about In-vehicle networking can be pre-stored within switch410,420 and 430 and terminal node 411,412,413,421,422,423,431,432 and 433.Switch 410,420 and 430 and terminal node 411,412,413,421,422,423,431,432Can be based on the topology of the information check In-vehicle networking stored with 433.
Terminal node 411,412,413,421,422,423,431,432 and 433 can have respectiveUnique Internet Protocol (IP).When power is applied to In-vehicle networking (such as, vehicle is equipped with battery),Respective IP address can be arranged to terminal node 411,412,413,421,422,423,431,432With 433.Such as, when electric power is applied to In-vehicle networking (such as, vehicle is equipped with battery), switch 410,420 and 430 and terminal node 411,412,413,421,422,423,431,432 and 433 everyOne can receive the message including IP address by layer communication node (such as, switch, gateway etc.) from it, andThe IP address being included in received message can be set to the IP address of himself.Alternatively, IP addressThe every of terminal node 411,412,413,421,422,423,431,432 and 433 can be pre-stored withinOne.Each of terminal node 411,412,413,421,422,423,431,432 and 433 canThe IP address of pre-stored is set to himself IP address.
IP address can have the form of " 10.xxx.yyy.zz ".Section " xxx " in IP address can represent corresponding communicationVehicular system belonging to node.That is, the communication node belonging to identical systems can have identical " xxx ".Such as,First terminal node 411, the section " xxx " in the IP address of the 4th terminal node 421 and the 7th terminal node 431May be configured as " 100. " such as, the second terminal node 412, the 5th terminal node 422 and the 8th terminal node 432IP address in section " xxx " may be configured as " 200 ".Such as, third terminal node 413, the 6th terminal jointPoint 423, the section " xxx " in the IP address of the 9th terminal node 433 may be configured as " 300 ".
Section " yyy " in IP address can represent the classification of Correspond Node.Such as, composition In-vehicle networking is logicalIn letter node, the section " yyy " in the IP address of the communication node of minimum classification (that is, terminal node) may be configured asSection " yyy " in the IP address of the communication node of " 001 " and secondary low classification may be configured as " 002 ".In IP addressSection " zz " index can be represented, for differentiation belong in the communication node of the system represented by " xxx " byThe communication node of the classification that " yyy " represents.Therefore, belong in the communication node of the system represented by " xxx "The communication node of the classification represented by " yyy " can have different " zz ".Terminal node 411,412,413,The IP address of 421,422,423,431,432 and 433 can be arranged as shown in table 1 below.
[table 1]
| Communication node type | IP address |
| Terminal node 1 | 10.100.001.01 |
| Terminal node 2 | 10.200.001.01 |
| Terminal node 3 | 10.300.001.01 |
| Terminal node 4 | 10.100.001.02 |
| Terminal node 5 | 10.200.001.02 |
| Terminal node 6 | 10.300.001.02 |
| Terminal node 7 | 10.100.001.03 |
| Terminal node 8 | 10.200.001.03 |
| Terminal node 9 | 10.300.001.03 |
The method details of the IP address arranging the communication node of composition In-vehicle networking is not limited to the above, andThe IP address of communication node can be arranged in many ways.
Fig. 5 is sequence chart, it is shown that network diagnosis method according to embodiments of the present invention, and Fig. 6 is sequence chart,Network diagnosis method according to another embodiment of the present invention is shown.
With reference to Fig. 5 and 6, switch 410,420 and 430, terminal node 411,412 and 413 and OBDEquipment 400 can form the In-vehicle networking described with reference to Fig. 4.That is, switch 410,420 and 430, terminal savesPoint 411,412 and 413 and OBD equipment 400 may correspond to have in the In-vehicle networking shown in Fig. 4 identicalThe configuration of element of numeral.Additionally, switch 410,420 and 430, terminal node 411,412 and 413The topology information about In-vehicle networking can be had with OBD equipment 400.The topology information of In-vehicle networking can includeThe IP address of the communication node of each composition In-vehicle networking, port address and MAC Address.According to the present inventionThe network that the network diagnosis method of embodiment is applied is not limited to the In-vehicle networking shown in Fig. 4.According to the present inventionThe network diagnosis method of embodiment can be applicable to multiple network.Network diagnosis method according to embodiments of the present inventionTo describe based on the first switch 410 and the terminal node 411,412 and 413 being connected to the first switch 410.But, second switch 420 and be connected to the terminal node 421,422 and 423 (or the of second switch 420Three switches 430 and the terminal node 431,432 and 433 being connected to the 3rd switch 430) will retouch as followsThe method stated can diagnose similarly or comparably.
Network diagnosis method shown in Fig. 5 can have identical with S520 with the network diagnosis method shown in Fig. 6Operation, but the operation before S520 is different.That is, for checking in the network diagnosis method shown in Fig. 5Whether terminal node 411,412 and 413 is in message send/receive operation S500 of malfunction, S501,S502 and S503 is different from the network diagnosis method shown in Fig. 6 for checking terminal node 411,412 Hes413 message send/receive operations S510 whether being in malfunction, S511 and S512.For the present invention(such as, the first message, the first response message, diagnosis request message, diagnostic response disappears the message of embodimentBreath etc.) message generated based on Ethernet protocol can be represented.The message cocoa generated based on Ethernet protocol isAs described below.
Fig. 7 is block diagram, it is shown that for the example of the message of In-vehicle networking based on Ethernet.
With reference to Fig. 7, message 700 based on Ethernet protocol can include physics (PHY) head, mac frameWith FCS (FCS) territory 708.Mac frame can be generated by the controller 220 of communication node 200.PHY can include leading 701 and Start Frame Delimiter (SFD) territory 702.Leading 701 can have 7The size of individual eight bytes also can be used for Timing synchronization.SFD territory 702 can have sequence " 10101011 ".
After mac frame can be positioned SFD territory 702.Mac frame can only include that MAC header maybe can includeMAC header and logic link control (LLC) frame.MAC header can include destination address (DA) territory703, source address (SA) territory 704 and length/type territory 705.DA territory 703 can have 6 eight bytesSize also can include the identification information (such as MAC Address) receiving the communication node of mac frame.SA territory704 sizes can with 6 eight bytes also can include the identification information (example sending the communication node of mac frameAs, MAC Address).
Length/type territory 705 can have 2 eight bytes size and may indicate that data field 706 length or withToo net type, it is by the communication node support sending ethernet frame 700 based on agreement.Such as, when includingWhen the one or eight byte value in length/type territory 705 is less than or equal to decimal value 1500, length/type territory705 length that may indicate that data field 706.When the one or eight byte value being included in length/type territory 705 is more thanOr during equal to decimal value 1536, length/type territory 705 may indicate that ethernet type.If necessary (such as,For meeting the minimum dimension of mac frame), LLC frame can include data field 706 and can farther include region filling707.In this case, after region filling 707 can be added in data field 706.
Return to Fig. 5 and 6, in network diagnosis method according to embodiments of the present invention, first terminal node 411Can broadcast, multicast or mode of unicast send the first message (S500).Here, the first message can represent networkManagement (NM) message.When receiving the first message from first terminal node 411, the second terminal node 412The first response message in response to the first message can be sent to first terminal node 411 (S501).In this feelingsUnder condition, the second terminal node 412 can send the in the time predefined section receiving the time of the first messageOne response message is to first terminal node 411.
First switch 410 can obtain the first message sent from first terminal node 411 and send from second eventuallyFirst response message of end node 412.In the reception time time predefined section of the first message from secondWhen terminal node 412 receives the first response message, the first switch 410 can determine that the second terminal node 412 alsoAnd the channel (or port) being connected to the second terminal node 412 is in normal condition.Additionally, the first switchThe 410 identification information (examples that can obtain the second terminal node 412 by being included in the SA territory of the first response messageAs, MAC Address).First switch 410 can obtain corresponding to the from the known topology information of In-vehicle networkingThe IP address of the MAC Address of two terminal nodes 412, port address etc..
Do not receiving from third terminal node 413 in the time predefined section receiving the time of the first messageThe first response message time, the first switch 410 can determine that third terminal node 413 and is connected to third terminalThe channel (or port) of node 413 is in malfunction.Such as, the first switch 410 can be by being included inThe SA territory of the first response message checks the terminal node sending the first response message.Based on checking result, firstSwitch 410 can check that the do not send the first response message in being connected to switch the terminal node of 410 the 3rd is wholeEnd node, and can determine that the third terminal node 413 not sending the first response message is in malfunction.ThisIn, when third terminal node 413 be in malfunction or first switch 410 and third terminal node 413 itBetween channel (or port) when being in malfunction, the first switch 410 can not be from third terminal node 413The first response message is received in the time predefined section receiving the time of the first message.First switch 410 canThe third terminal node being determined to be in malfunction is obtained from topology information known to known In-vehicle networkingThe IP address of 413, port address, MAC Address etc..
It follows that the second terminal node 412 can be broadcasted, multicast or mode of unicast send the first message (S502).Here, the first message can represent NM message.When receiving the first message from the second terminal node 412, theTerminal node 411 can send the first response message in response to the first message to the second terminal node 412 one by one(S503).In this case, first terminal node 411 can predefining from the time that receives of the first messageThe first response message is sent to the second terminal node 412 in time period.
First switch 410 can obtain the first message sent from the second terminal node 412 and send from first eventuallyFirst response message of end node 411.Receiving in the time predefined section receiving the time of the first messageDuring from the first response message of first terminal node 411, the first switch 410 can determine that first terminal node411 are in normal condition with the channel (or port) being connected to first terminal node 411.Additionally, first opensClose the 410 identification information that can obtain first terminal node 411 by being included in the SA territory of the first response message(such as, MAC Address).First switch 410 can obtain corresponding to the from the known topology information of In-vehicle networkingThe IP address of the MAC Address of one terminal node 411, port address etc..
In the time predefined section receiving the time of the first message, do not receiving the from third terminal node 413During one response message, the first switch 410 can determine that third terminal node 413 and is connected to third terminal nodeThe channel (or port) of 413 is in malfunction.First switch 410 can be from the known topology letter of In-vehicle networkingBreath obtains the IP address of the third terminal node 413 being defined as malfunction, port address, MAC AddressDeng.
The third terminal node 413 being in malfunction can not send the first message and the first response message.WhenThe channel (or port) that third terminal node 413 is connected is in malfunction and third terminal node 413When being in normal condition, send from the first message of third terminal node 413 and the first response message not by theOne switch 410, first terminal node 411 and the second terminal node 412 receive.
It follows that in network diagnosis method according to another embodiment of the present invention, the first switch 410 canWith broadcast, multicast or mode of unicast send the first message (S510).Here, the first message can represent that NM disappearsBreath.When from first switch 410 reception the first message, first terminal node 411 can send in response to firstFirst response message (such as, ACK message) of message switchs 410 (S511) to first.In this situationUnder, first terminal node 411 can send the first sound in the time predefined section receiving the time of the first messageAnswer message to the first switch 410.When from first switch 410 reception the first message, the second terminal node 412The first response message (such as, ACK message) in response to the first message can be sent to the first switch 410(S512).In this case, the second terminal node 412 can predefining from the time that receives of the first messageThe first response message is sent to the first switch 410 in time period.
Due to first switch 410 the first message send the time time predefined section in from first terminalNode 411 and the second terminal node 412 obtain the first response message, and the first switch 410 can determine that first eventuallyEnd node 411 and the second terminal node 412 (or it is connected to first terminal node 411 and the second terminal nodeThe channel (or port) of 412) it is in normal condition.First switch 410 can be by being included in response messageSA territory obtains identification information (such as, the MAC ground of first terminal node 411 and the second terminal node 412Location).First switch 410 can obtain corresponding to first terminal node from the known topology information of In-vehicle networking411 and the second IP address of MAC Address of terminal node 412, port address etc..
The third terminal node 413 being in malfunction may not send the first response in response to the first messageMessage.The channel (or port) connected when third terminal node 413 is in malfunction and third terminalWhen node 413 is in normal condition, send from the first response message of third terminal node 413 not by firstSwitch 410 reception.Not the first message send the time time predefined section in from third terminal nodeDuring 413 reception the first response message, the first switch 410 can determine that third terminal node 413 and is connected to the 3rdThe channel (or port) of terminal node 413 is in malfunction.First switch 410 can be from In-vehicle networkingKnown topology information obtains and determines the IP address of the third terminal node 413 being in malfunction, port address,MAC Address etc..
It follows that OBD equipment 400 can generate diagnosis request message to diagnose the malfunction of In-vehicle networking.Diagnosis request message can include that at least one request is in the identification information of the communication node of malfunction (or evenBe connected to be in the communication node of the channel (or port) of malfunction) indications, request be in normal shapeThe identification information (or connecting the communication node of the channel (or port) being in normal condition) of the communication node of stateIndications, and request about composition In-vehicle networking communication node state (that is, normal condition or thereforeBarrier state) the indications of information.Here, indications can be included in the MAC header of diagnosis request messageOr data field.OBD equipment 400 can be broadcasted, and multicast or mode of unicast send diagnosis request message (S520).
Diagnosis request message can switch 410 by second switch 420 and the 3rd switch 430 transmission to first.ExampleAs, the 3rd switch 430 being physically connected to OBD equipment 400 can receive diagnosis from OBD equipment 400Request message also can disappear with forms of broadcasting transmission diagnosis request when diagnosis request message sends with broadcast modeBreath.The second switch 420 being physically connected to the 3rd switch 430 can be asked from the 3rd switch 430 reception diagnosisSeek message, and diagnosis request message can be sent with broadcast mode when diagnosis request message sends with broadcast mode,The first switch 410 being physically connected to second switch 420 can receive diagnosis request from second switch 420 and disappearsBreath.
Alternatively, the 3rd switch 430 being physically connected to OBD equipment 400 can be from OBD equipment 400Receive diagnosis request message, and can work as and be included in the DA address of diagnosis request message and represent the first switch 410Time route diagnosis request message to the second switch 420 being connected to the first switch 410.It is physically connected to the 3rdThe second switch 420 of switch 430 from the 3rd switch 430 reception diagnosis request message, and can be examined when being included inWhen the DA address of disconnected request message represents the first switch 410, diagnosis request message can be sent to the first switch410.The first switch 410 being physically connected to second switch 420 can be asked from second switch 420 reception diagnosisSeek message.
When receiving diagnosis request message, information that the first switch 410 can check diagnosis request message request (orThe information asked by the indications being included in diagnosis request message) and diagnostic response message can be generated, including askingSeek information (S521).When diagnosis request message (or being included in the indications of diagnosis request message) request is inDuring the identification information of the communication node of malfunction, the first switch 410 can generate diagnostic response message, includingThe identification information of third terminal node 413.Alternatively, (or it is included in diagnosis request when diagnosis request messageThe indications of message) request be in normal condition the identification information of communication node time, the first switch 410 canGenerate the diagnostic response message of the identification information including first terminal node 411 and the second terminal node 412.Here, identification information can be included at least one of the MAC header of diagnostic response message and data field.
Alternatively, when diagnosis request message (or diagnosis request message include indications) request composition carDuring the status information of the communication node of contained network network, the first switch 410 can generate bitmap, represents first terminal jointPut the 411, second terminal node 412 and the state of third terminal node 413, and generation includes examining of bitmapDisconnected response message.Bitmap can be included at least one of the MAC header of diagnostic response message and data field.Here, suppose that terminal node 411,412 and 413 in the first switch 410 and OBD equipment 400 perception bitmapsBetween order.Such as, first state that can represent first terminal node 411 in bitmap, in bitmapSecond can represent the state of the second terminal node 412, and in bitmap the 3rd can represent that third terminal savesThe state of point 413.Additionally, when position is set to binary value 0, its can represent Correspond Node (orIt is connected to the channel (or port) of Correspond Node) it is in normal condition.When position is set to binary value 1Time, it can represent that Correspond Node (or being connected to the channel (or port) of Correspond Node) is in eventBarrier state.In this case, the first switch 410 can arrange bitmap and for " 001 " and can generate and include " 001 "Diagnostic response message.The details of bitmap method to set up is not limited to the above, and bitmap can be with multiple sideFormula is arranged.
It follows that the first switch 410 can broadcast, multicast or mode of unicast (S522) transmission diagnostic responseMessage is to OBD equipment 400.That is, diagnostic response message can be by second switch 420 and the 3rd switch 430Send to OBD equipment 400.When receiving diagnostic response message, OBP equipment 400 can check and be connected to theThe state (S523) of the terminal node 411,412 and 413 of one switch 410.OBD equipment 400 can determine thatFirst terminal node 411 and the second terminal node 412 are at normal condition and third terminal node 413In malfunction.At embodiments of the invention, it has been described that diagnostic response message is at diagnosis request message quiltGenerate after reception.But, the order that diagnostic response message is generated is not limited to this.Such as, diagnostic responseMessage can generate before diagnosis request message is received.First switch 410 is when receiving diagnosis request messageThe diagnostic response message being previously generated can be sent to OBD equipment 400.
Method according to embodiments of the present invention can be embodied as can being performed and be recorded in computer by multiple computer canRead the programmed instruction of medium.Computer-readable medium can include programmed instruction, data file, data structure orA combination thereof.The programmed instruction being recorded in computer-readable medium can be specifically tailored so as and be configured to the present inventionCan be maybe known and be available for computer software fields technical staff.
The example of computer-readable medium can include hardware device, and such as ROM, RAM and flash memory are describedHardware device is configured specifically with storage and performs programmed instruction.The example of programmed instruction includes machine code,Described machine code is by such as, and compiler and the higher-level language code being utilized interpreter to perform by computer are madeGo out,.Above-mentioned Exemplary hardware devices can be configured to as at least one software module, to perform the present invention'sOperation, vice versa.
According to embodiments of the invention, it is readily determined the state of each communication node of composition In-vehicle networkingThe state of the channel (or port) that (that is, normal condition or malfunction) and communication node are connected is possible.Based on a determination that the communication node of result malfunction and channel can quickly be repaired.Therefore the property of In-vehicle networkingCan be able to be enhanced.
Although the example of the embodiment of the present invention and advantage thereof are described in detail, it should can make reason hereinSolve multiple amendment, replace and change is made without departing from the scope of the present invention.