CN113268050A - Vehicle diagnosis method and device - Google Patents

Vehicle diagnosis method and device Download PDF

Info

Publication number
CN113268050A
CN113268050A CN202110548556.4A CN202110548556A CN113268050A CN 113268050 A CN113268050 A CN 113268050A CN 202110548556 A CN202110548556 A CN 202110548556A CN 113268050 A CN113268050 A CN 113268050A
Authority
CN
China
Prior art keywords
ecu
chip
tbox
vehicle
diagnostic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110548556.4A
Other languages
Chinese (zh)
Inventor
胡欣涛
蔡培欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xiaopeng Motors Technology Co Ltd
Original Assignee
Shanghai Xiaopeng Motors Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xiaopeng Motors Technology Co Ltd filed Critical Shanghai Xiaopeng Motors Technology Co Ltd
Priority to CN202110548556.4A priority Critical patent/CN113268050A/en
Publication of CN113268050A publication Critical patent/CN113268050A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Landscapes

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

Abstract

The embodiment of the invention provides a vehicle diagnosis method and device, and relates to a CAN (controller area network) network, wherein the CAN network has a communication architecture constructed on the basis of a vehicle gateway, a TBOX (tunnel boring machine) and an ECU (electronic control unit), and the method comprises the following steps: receiving the issued ECU diagnosis instruction through the TBOX, and operating a preset request program which is arranged in the TBOX and aims at ECU information; the preset request program is used for sending the generated ECU routing address request to the vehicle gateway; receiving ECU routing address information returned by the vehicle gateway in response to the ECU routing address request through the TBOX; and forwarding an ECU diagnosis command to the ECU according to the ECU routing address information through the TBOX, and receiving diagnosis information returned by the ECU executing the ECU diagnosis command. By writing a request program into the TBOX and providing ECU address service at the vehicle gateway, the TBOX has the function of dynamically identifying all ECUs of the vehicle, and the cost caused by continuously upgrading the TBOX when the ECUs are subsequently added or replaced is avoided.

Description

Vehicle diagnosis method and device
Technical Field
The present invention relates to the field of vehicle technologies, and in particular, to a vehicle diagnostic method and a vehicle diagnostic apparatus.
Background
An Electronic Control Unit (ECU) is also called a traveling computer or a vehicle-mounted computer, and a special program is run inside the Electronic control unit. The vehicle diagnosis CAN refer to identifying and recording various faults occurring in an electric control system in the whole vehicle environment, and various vehicle information and fault states are read by a diagnostic instrument through communication means such as a Controller Area Network (CAN) bus, which is currently generally applied to an automobile network, an ethernet and the like.
At present, fault detection of a vehicle can be communicated with each ECU of the vehicle through a diagnostic apparatus or a remote diagnosis platform, the diagnostic apparatus or the remote diagnosis platform acquires parameters of each ECU, and then whether the vehicle has problems or not is judged according to the acquired parameters. An existing diagnostic apparatus or a remote diagnostic platform needs to send an execution command to each ECU of a vehicle based on a Telematics BOX (Telematics BOX) for communication to acquire returned diagnostic information, wherein the execution command sent by the Telematics BOX is sent according to information such as names and routing addresses of the ECUs of the vehicle, and if an ECU is newly added or replaced in a vehicle model, a version of the Telematics BOX needs to be updated continuously.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a vehicle diagnostic method and a corresponding vehicle diagnostic apparatus that overcome or at least partially solve the above problems.
The embodiment of the invention discloses a vehicle diagnosis method, which relates to a CAN network, wherein the CAN network has a communication architecture constructed on the basis of a vehicle gateway, a TBOX and an ECU (electronic control Unit), and the method comprises the following steps:
receiving the issued ECU diagnosis instruction through the TBOX, and operating a preset request program which is arranged in the TBOX and aims at ECU information; the preset request program is used for sending the generated ECU routing address request to the vehicle gateway;
receiving ECU routing address information returned by the vehicle gateway in response to the ECU routing address request through the TBOX;
and forwarding an ECU diagnosis command to the ECU according to the ECU routing address information through the TBOX, and receiving diagnosis information returned by the ECU executing the ECU diagnosis command.
Optionally, the vehicle gateway provides an ECU address service; the receiving, by the TBOX, ECU routing address information returned by the vehicle gateway in response to the ECU routing address request includes:
and inquiring ECU routing address information aiming at the ECU from a preset routing table through an ECU address service of the vehicle gateway.
Optionally, the ECU comprises at least one ECU; the forwarding, by the TBOX, ECU diagnostic instructions to the ECU in accordance with the ECU routing address information includes:
acquiring a first identifier through the TBOX, and sending the first identifier and the ECU diagnosis instruction to at least one ECU according to the ECU routing address information.
Optionally, the TBOX has a corresponding first CAN chip and the ECU has a corresponding second CAN chip;
the sending the first identifier and the ECU diagnostic instruction to at least one ECU according to the ECU routing address information comprises:
sending the first identifier and the ECU diagnosis instruction to the first CAN chip through the TBOX and controlling the first CAN chip to be in a preparation state;
assigning, by the vehicle gateway, the second CAN chip to the first chip based on ECU routing address information;
and when the first CAN chip receives the distributed second CAN chip, controlling the first CAN chip to be in a message sending state, and sending a first identifier and an ECU diagnosis instruction in a message form to the second CAN chip.
Optionally, the method further comprises:
when the first CAN chip sends a first identifier in a message form and an ECU diagnosis instruction to the second CAN chip, controlling the second CAN chip to be in a receiving state;
judging whether to receive the ECU diagnosis instruction in the message form or not according to the first identifier through the second CAN chip;
and if the first identifier meets the preset condition, receiving the ECU diagnosis instruction in the message form through the second CAN chip.
Optionally, the receiving the diagnosis information returned by the ECU executing the ECU diagnosis instruction includes:
acquiring, by the ECU, a second identifier, executing the ECU diagnostic instruction to send the second identifier and diagnostic information to the TBOX.
Optionally, the TBOX has a corresponding first CAN chip and the ECU has a corresponding second CAN chip;
the executing the ECU diagnostic instructions sends the second identifier and diagnostic information to the TBOX, including:
transmitting the second identifier and the diagnostic information to the second CAN chip through the ECU, and controlling the second CAN chip to be in a preparation state;
assigning, by the vehicle gateway, the first CAN chip to the second chip;
and when the second CAN chip receives the distributed first CAN chip, controlling the second CAN chip to be in a message sending state, and sending a second identifier and diagnosis information in a message form to the first CAN chip.
The embodiment of the invention also discloses a vehicle diagnosis device, which relates to a CAN network, wherein the CAN network has a communication architecture constructed based on a vehicle gateway, a TBOX and an ECU, and the device comprises:
the preset request program running module is positioned at the TBOX and used for receiving the issued ECU diagnosis instruction and running a preset request program which is arranged in the TBOX and aims at ECU information; the preset request program is used for sending the generated ECU routing address request to the vehicle gateway;
the routing address information receiving module is positioned at the TBOX and used for receiving ECU routing address information returned by the vehicle gateway in response to the ECU routing address request;
and the diagnostic information receiving module is positioned at the TBOX and used for forwarding an ECU diagnostic instruction to the ECU according to the ECU routing address information and receiving the diagnostic information returned by the ECU executing the ECU diagnostic instruction.
Optionally, the vehicle gateway provides an ECU address service; the routing address information receiving module includes:
and the ECU routing address information inquiry submodule is used for inquiring the ECU routing address information aiming at the ECU from a preset routing table through the ECU address service of the vehicle gateway.
Optionally, the ECU comprises at least one ECU; the diagnostic information receiving module includes:
a first identifier acquisition sub-module for acquiring a first identifier by the TBOX;
and the ECU diagnosis instruction sending submodule is used for sending the first identifier and the ECU diagnosis instruction to at least one ECU according to the ECU routing address information.
Optionally, the TBOX has a corresponding first CAN chip and the ECU has a corresponding second CAN chip; the ECU diagnosis instruction sending submodule comprises:
a first ECU diagnosis instruction transmission unit that transmits the first identifier and the ECU diagnosis instruction to the first CAN chip through the TBOX, and controls the first CAN chip to be in a ready state;
a second CAN chip allocation unit for allocating the second CAN chip to the first chip through the vehicle gateway based on ECU routing address information;
and the first ECU diagnosis instruction sending unit is used for controlling the first CAN chip to be in a message sending state and sending a first identifier and an ECU diagnosis instruction in a message form to the second CAN chip when the first CAN chip receives the distributed second CAN chip.
Optionally, the ECU diagnosis instruction sending sub-module further includes:
the receiving state control unit is used for controlling the second CAN chip to be in a receiving state when the first CAN chip sends the first identifier and the ECU diagnosis instruction in the form of messages to the second CAN chip;
the identifier judging unit is used for judging whether to receive the ECU diagnosis instruction in the message form or not according to the first identifier through the second CAN chip;
and the ECU diagnosis instruction receiving unit is used for receiving the ECU diagnosis instruction in the message form through the second CAN chip if the first identifier meets the preset condition.
Optionally, the diagnostic information receiving module includes:
and the diagnosis information receiving submodule is used for acquiring a second identifier through the ECU, executing the ECU diagnosis instruction and sending the second identifier and the diagnosis information to the TBOX.
Optionally, the TBOX has a corresponding first CAN chip and the ECU has a corresponding second CAN chip; the diagnostic information receiving sub-module includes:
a first diagnostic information transmitting unit for transmitting the second identifier and the diagnostic information to the second CAN chip through the ECU and controlling the second CAN chip to be in a ready state;
the first CAN chip distribution unit is used for distributing the first CAN chip to the second chip through the vehicle gateway;
and the second diagnostic information sending unit is used for controlling the second CAN chip to be in a message sending state and sending a second identifier and diagnostic information in a message form to the first CAN chip when the second CAN chip receives the distributed first CAN chip.
The embodiment of the invention also discloses a vehicle, which comprises: the vehicle diagnostic device, processor, memory and computer program stored on the memory and executable on the processor, which when executed by the processor, implement the steps of any of the vehicle diagnostic methods.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is used for realizing the steps of any one vehicle diagnosis method when being executed by a processor.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the CAN network is constructed based on a vehicle gateway, a TBOX and an ECU, when the TBOX receives the issued ECU diagnosis instruction, the TBOX CAN run a preset request program which is arranged in the TBOX and used for sending an ECU routing address request to the vehicle gateway, receives ECU routing address information returned by the vehicle gateway in response to the ECU routing address request, and forwards the ECU diagnosis instruction to the ECU according to the ECU routing address information so as to receive diagnosis information returned by the ECU executing the ECU diagnosis instruction. By writing a request program into the TBOX and providing ECU address service at the vehicle gateway, the TBOX has the function of dynamically identifying all ECUs of the vehicle, and the cost caused by continuously upgrading the TBOX when the ECUs are subsequently added or replaced is avoided.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a vehicle diagnostic method of the present invention;
FIG. 2 is a schematic diagram of a process for an ECU to route an address request in an embodiment of the present invention;
FIG. 3 is a flow chart of steps in another vehicle diagnostic method embodiment of the present invention;
FIG. 4 is a schematic diagram of a CAN network structure in which TBOX is located in an embodiment of the invention;
fig. 5 is a block diagram of a vehicle diagnostic apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The electronic control unit (i.e., ECU) is also called "traveling computer" or "vehicle-mounted computer", etc., and its interior has special program for running. For example, when the ECU of the engine is in operation, the program in the ECU of the engine can constantly compare and calculate the signals collected from the various sensors, and can control various parameters of the engine, such as ignition, air-fuel ratio, idle speed and/or exhaust gas recirculation, according to the comparison and calculation results.
The existing diagnostic apparatus and remote diagnostic platform for diagnosing vehicle faults firstly issue an instruction to the TBOX, then issue an instruction to each ECU of the vehicle by the TBOX, and the ECU returns diagnostic information.
One of the core ideas of the invention is that TBOX does not specifically write the name and routing address information of the ECU, but develops an ECU routing address service at a vehicle gateway, the gateway provides the ECU routing address service of the vehicle, the TBOX requests the gateway service, acquires all ECU routing addresses of the vehicle, and issues a diagnosis instruction to the ECU according to the acquired ECU routing addresses to acquire ECU return information.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a vehicle diagnosis method of the present invention is shown, and the method relates to a CAN network having a communication architecture constructed based on a vehicle gateway, a TBOX and an ECU, and specifically may include the following steps:
step 101, receiving an issued ECU diagnosis instruction through a TBOX, and operating a preset request program aiming at ECU information and built in the TBOX;
in one embodiment of the invention, a request program may be written to TBOX, and the written preset request program may send the generated ECU routing address request to the vehicle gateway at runtime to enable return of ECU routing address information based on an ECU routing address service developed by the vehicle gateway.
102, receiving ECU routing address information returned by a vehicle gateway responding to an ECU routing address request through a TBOX;
in practical applications, the vehicle gateway may provide an ECU address service, and after the TBOX sends an ECU routing address request to the vehicle gateway, the vehicle gateway may respond to the ECU routing address request and return routing address information of the vehicle ECU.
Specifically, ECU routing address information for the ECU may be queried from a preset routing table by an ECU address service of the vehicle gateway.
And step 103, forwarding the ECU diagnosis command to the ECU according to the ECU routing address information through the TBOX, and receiving diagnosis information returned by the ECU executing the ECU diagnosis command.
In the embodiment of the present invention, after the request gateway acquires the ECU routing address, the TBOX may issue a diagnostic instruction to the ECU based on the acquired ECU routing address, that is, forward the ECU diagnostic instruction issued by the diagnostic apparatus or the remote diagnostic platform to the ECU, so as to acquire the ECU return information.
Referring to fig. 2, a schematic diagram of the process of routing address requests by ECUs in an embodiment of the present invention is shown, particularly relating to the communication process between a diagnostic or remote diagnostic platform, a TBOX, a vehicle gateway and an ECU.
As shown in fig. 2, the diagnostic apparatus or the remote diagnostic platform may issue a diagnostic instruction to the TBOX, where the TBOX may obtain routing addresses of all ECUs of the vehicle based on the ECU routing address service provided by the vehicle gateway, and after the vehicle gateway returns all ECU routing address information, forward the ECU diagnostic instruction to the ECU via the vehicle gateway, so that the ECU can return diagnostic information to the TBOX via the vehicle gateway and return to the diagnostic apparatus or the remote diagnostic platform through the TBOX.
The routing addresses acquired by the ECU routing address service provided by the vehicle gateway are the routing addresses of all ECUs of the vehicle, at the moment, even if the same vehicle type has a plurality of different configurations and different vehicle types have a plurality of different configurations, the ECU is replaced when the same vehicle fails, or the ECU is newly added, the TBOX can accurately acquire the diagnostic information of the ECU without upgrading the version of TBOX software, and the phenomenon that the version of the software still needs to be updated when the vehicle type product planning changes because the TBOX diagnoses and returns all ECU names and routing address information in advance according to the vehicle type product planning does not need to occur.
In a preferred embodiment, in order to improve the diagnosis experience, an information configuration corresponding to "ECU name — ECU routing address" may be provided in the diagnostic apparatus or the diagnostic platform, for example, the ECU name and the corresponding ECU routing address are stored by using a pre-established correspondence table, and at this time, the diagnostic apparatus or the diagnostic platform may complete the translation of the ECU routing address information, so that the TBOX diagnosis only needs to return the ECU routing address information and the diagnostic information, and does not need to return the ECU name.
In the embodiment of the invention, the CAN network is constructed based on a vehicle gateway, a TBOX and an ECU, when the TBOX receives the issued ECU diagnosis instruction, the TBOX CAN run a preset request program which is arranged in the TBOX and used for sending an ECU routing address request to the vehicle gateway, receives ECU routing address information returned by the vehicle gateway in response to the ECU routing address request, and forwards the ECU diagnosis instruction to the ECU according to the ECU routing address information so as to receive diagnosis information returned by the ECU executing the ECU diagnosis instruction. By writing a request program into the TBOX and providing ECU address service at the vehicle gateway, the TBOX has the function of dynamically identifying all ECUs of the vehicle, and the cost caused by continuously upgrading the TBOX when the ECUs are subsequently added or replaced is avoided.
Referring to fig. 3, a flowchart illustrating steps of another embodiment of a vehicle diagnosis method of the present invention is shown, and the method relates to a CAN network having a communication architecture constructed based on a vehicle gateway, a TBOX and an ECU, and specifically may include the following steps:
step 301, acquiring a first identifier through TBOX, and sending the first identifier and an ECU diagnosis instruction to at least one ECU according to ECU routing address information;
in the embodiment of the present invention, a CAN network is involved, where a CAN gateway (i.e., a vehicle gateway) is a core of the entire CAN network, and data transmission on the CAN network needs to be processed and forwarded through the gateway, and specifically, routing table information is provided through the gateway, so that data CAN be transmitted to a corresponding address.
Specifically, referring to fig. 4, there is shown a schematic diagram of a CAN network structure in which TBOX is located in an embodiment of the present invention, and the CAN network connects all ECUs of a vehicle via its core (i.e., CAN gateway) and coordinates control as a whole. The gateway CAN manage various ECUs through 5 CAN buses, specifically, each ECU has different functions and different signal transmission rates (baud rates), at this time, various ECUs CAN be respectively arranged on 5 CAN buses according to the functions/baud rates, and the 5 buses CAN include a BCAN (Body CAN, vehicle Body control bus), an EACN (Entertainment CAN, Entertainment system bus), an ICAN, an ADCAN (diagnostic control bus) and a CCAN (Chassis control CAN, Chassis control CAN bus).
The basic functions of the CAN gateway may include: connecting CAN buses/LIN buses with different baud rates (transmission speeds) to realize a gateway relay function of the CAN network; forwarding the diagnosis message/non-diagnosis message; diagnosing firewall management; monitoring nodes on line; detecting a switch of the cruise controller; detecting the position of the pedal; gateway dormancy and wake-up management; ECU upgrading/gateway upgrading, voltage management and the like, namely the CAN gateway CAN receive network signals with different transmission rates transmitted by any CAN bus (also LIN bus), and after the signals are processed according to a certain standard, the signals CAN be broadcasted to the whole vehicle network, if the ECU receives the signals, the ECU analyzes the signals and carries out corresponding processing.
It should be noted that the CAN network CAN connect the CAN chips of different stations based on its core CAN gateway, which is different from the ethernet gateway. The Ethernet gateway is used for interconnection of two networks with different high-level protocols, and can be used for interconnection of a wide area network and a local area network. The two networks with different IP address ranges can not carry out TCP/IP communication without a router, and the communication between the two networks needs to be realized through a gateway. If the host in the network A finds that the destination host of the data packet is not in the local network, the host forwards the data packet to its own gateway, and then forwards the data packet to the gateway of the network B, and then forwards the data packet to a host of the network B, namely, the data packet needs to be forwarded by the gateway based on different networks in the Ethernet.
In one embodiment of the invention, the TBOX may have a corresponding first CAN chip and the ECU may have a corresponding second CAN chip. The first CAN chip may be controlled to be in a ready state when the first identifier and the ECU diagnosis instruction are transmitted to the first CAN chip through the TBOX; allocating a second CAN chip to the first chip through the vehicle gateway based on the ECU routing address information; when the first CAN chip receives the distributed second CAN chip, the first CAN chip CAN be controlled to be in a message sending state, and a first identifier and an ECU diagnosis instruction in a message form are sent to the second CAN chip.
It should be noted that, after obtaining the ECU routing information returned by the vehicle gateway, the TBOX may issue the ECU diagnosis command to all the obtained routing addresses to obtain the return information of the corresponding ECU, that is, the second CAN chip allocated to the first CAN chip may refer to the CAN chips corresponding to all the ECUs corresponding to all the routing addresses, and does not refer to a single CAN chip or a CAN chip with a specific target.
In a preferred embodiment of the present invention, when the first CAN chip sends the first identifier in the form of a message and the ECU diagnosis instruction to the second CAN chip, the second CAN chip may be controlled to be in a receiving state, and the second CAN chip may further determine whether to receive the ECU diagnosis instruction in the form of a message according to the first identifier; if the first identifier meets the preset condition, the ECU diagnosis instruction in the message form CAN be received through the second CAN chip.
In practical application, in a CAN network, when one station (such as TBOX) is to send data to other stations (which may refer to other ECU components), the CPU of the station transmits the data to be sent and its own identifier to the CAN chip of the station and is in a ready state; when the CAN chip receives the bus allocation, the preparation state of the CAN chip CAN be converted into a message sending state so as to indicate that the current CAN chip CAN send data in a message form to other stations; when the CAN chip organizes the data into a certain message format according to the protocol and sends the message, other stations of the CAN network CAN be in a receiving state, and each station in the receiving state CAN detect the received message and judge whether the receiving party of the message is the station per se so as to determine whether to receive the message.
In a specific implementation, the CAN gateway may receive network signals with different transmission rates transmitted by any CAN bus, the vehicle gateway may process the received signals according to a certain standard and then broadcast the processed signals to the entire vehicle network, and if there is a certain ECU subscribing (or receiving) the signal, the ECU subscribing to the signal may be responsible for analyzing the received signal and performing corresponding processing.
The standard may refer to a message format in the embodiment of the present invention, and when a first CAN chip corresponding to a TBOX transmits a first identifier in the message format and an ECU diagnosis instruction to second CAN chips corresponding to all ECUs, a CAN message received by a second chip may include an ID part (corresponding to the first identifier), and the second CAN chip in a receiving state (i.e., the second CAN chip assigned thereto) may identify whether the CAN message signal is sent to itself, specifically, the second CAN chip may compare the IDs after receiving the message, and if the message ID is a message ID that the chip should receive, it indicates that the current second chip has subscribed to the message, and at this time, the current second chip may receive the first identifier in the message format and the ECU diagnosis instruction.
In the embodiment of the invention, the vehicle gateway CAN not only transmit data based on an accurate routing table, but also detect the received message by other receiving stations in the CAN network, so that the address to be transmitted by the data in the CAN network based on the vehicle gateway core CAN be more accurate, and the phenomenon of transmitting redundant instruction signals which do not accord with the vehicle gateway CAN not be caused.
Step 302, acquiring the second identifier by the ECU, executing the ECU diagnostic command, and sending the second identifier and the diagnostic information to the TBOX.
In the embodiment of the invention, when one station (such as TBOX) transmits data to other stations (which CAN refer to other ECU components), the CPU of the station transmits the data to be transmitted and the identifier of the station to the CAN chip of the station and is in a preparation state; when it receives a bus assignment, it can change its ready state to a send message state.
In one embodiment of the invention, after the ECU receives the ECU diagnostic command sent by the TBOX, the ECU may execute the ECU diagnostic command to return the diagnostic information in response, wherein the station sending the data may be the CAN chip of the ECU and the station receiving the data may be the CAN chip of the TBOX.
Specifically, the second identifier and the diagnosis information CAN be sent to the second CAN chip through the ECU, and the second CAN chip is controlled to be in a preparation state; at the moment, when the first CAN chip is distributed to the second chip through the vehicle gateway, namely the second CAN chip receives the distributed first CAN chip, the second CAN chip CAN be controlled to be in a message sending state, and the second identifier and the diagnosis information in a message form are sent to the first CAN chip.
In the embodiment of the invention, the TBOX has the function of dynamically identifying all ECUs of the vehicle by writing a request program into the TBOX and providing ECU address service at a vehicle gateway, so that the cost caused by continuously upgrading the TBOX when the ECUs are subsequently added or replaced is avoided.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram of a vehicle diagnostic apparatus according to an embodiment of the present invention is shown, and relates to a CAN network having a communication architecture constructed based on a vehicle gateway, a TBOX and an ECU, and specifically includes the following modules:
a preset request program running module 501, located at the TBOX, and configured to receive the issued ECU diagnosis instruction, and run a preset request program for ECU information, which is built in the TBOX; the preset request program is used for sending the generated ECU routing address request to the vehicle gateway;
a routing address information receiving module 502, located at the TBOX, configured to receive ECU routing address information returned by the vehicle gateway in response to the ECU routing address request;
and a diagnostic information receiving module 503, located at the TBOX, and configured to forward an ECU diagnostic instruction to the ECU according to the ECU routing address information, and receive diagnostic information returned by the ECU executing the ECU diagnostic instruction.
In one embodiment of the invention, the vehicle gateway provides an ECU address service; the routing address information receiving module 502 may include the following sub-modules:
and the ECU routing address information inquiry submodule is used for inquiring the ECU routing address information aiming at the ECU from a preset routing table through the ECU address service of the vehicle gateway.
In one embodiment of the invention, the ECU comprises at least one ECU; the diagnostic information receiving module 503 may include the following sub-modules:
a first identifier acquisition sub-module for acquiring a first identifier by the TBOX;
and the ECU diagnosis instruction sending submodule is used for sending the first identifier and the ECU diagnosis instruction to at least one ECU according to the ECU routing address information.
In one embodiment of the invention, the TBOX has a corresponding first CAN chip, and the ECU has a corresponding second CAN chip; the ECU diagnosis instruction transmission sub-module may include the following units:
a first ECU diagnosis instruction transmission unit that transmits the first identifier and the ECU diagnosis instruction to the first CAN chip through the TBOX, and controls the first CAN chip to be in a ready state;
a second CAN chip allocation unit for allocating the second CAN chip to the first chip through the vehicle gateway based on ECU routing address information;
and the first ECU diagnosis instruction sending unit is used for controlling the first CAN chip to be in a message sending state and sending a first identifier and an ECU diagnosis instruction in a message form to the second CAN chip when the first CAN chip receives the distributed second CAN chip.
In one embodiment of the present invention, the ECU diagnosis instruction transmission sub-module may further include the following units:
the receiving state control unit is used for controlling the second CAN chip to be in a receiving state when the first CAN chip sends the first identifier and the ECU diagnosis instruction in the form of messages to the second CAN chip;
the identifier judging unit is used for judging whether to receive the ECU diagnosis instruction in the message form or not according to the first identifier through the second CAN chip;
and the ECU diagnosis instruction receiving unit is used for receiving the ECU diagnosis instruction in the message form through the second CAN chip if the first identifier meets the preset condition.
In one embodiment of the present invention, the diagnostic information receiving module 503 may include the following sub-modules:
and the diagnosis information receiving submodule is used for acquiring a second identifier through the ECU, executing the ECU diagnosis instruction and sending the second identifier and the diagnosis information to the TBOX.
In one embodiment of the invention, the TBOX has a corresponding first CAN chip, and the ECU has a corresponding second CAN chip; the diagnostic information receiving sub-module may include the following elements:
a first diagnostic information transmitting unit for transmitting the second identifier and the diagnostic information to the second CAN chip through the ECU and controlling the second CAN chip to be in a ready state;
the first CAN chip distribution unit is used for distributing the first CAN chip to the second chip through the vehicle gateway;
and the second diagnostic information sending unit is used for controlling the second CAN chip to be in a message sending state and sending a second identifier and diagnostic information in a message form to the first CAN chip when the second CAN chip receives the distributed first CAN chip.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides a vehicle, including:
the vehicle diagnosis device comprises the vehicle diagnosis device, a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, each process of the vehicle diagnosis method embodiment is realized, the same technical effect can be achieved, and the repeated description is omitted here for avoiding repetition.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program realizes each process of the vehicle diagnosis method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The present invention provides a vehicle diagnostic method and a vehicle diagnostic apparatus, which are described in detail above, and the principle and the implementation of the present invention are explained herein by using specific examples, and the description of the above examples is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A vehicle diagnostic method involving a CAN network having a communication architecture based on a vehicle gateway and a TBOX and an ECU, the method comprising:
receiving the issued ECU diagnosis instruction through the TBOX, and operating a preset request program which is arranged in the TBOX and aims at ECU information; the preset request program is used for sending the generated ECU routing address request to the vehicle gateway;
receiving ECU routing address information returned by the vehicle gateway in response to the ECU routing address request through the TBOX;
and forwarding an ECU diagnosis command to the ECU according to the ECU routing address information through the TBOX, and receiving diagnosis information returned by the ECU executing the ECU diagnosis command.
2. The method of claim 1, wherein the vehicle gateway provides an ECU address service; the receiving, by the TBOX, ECU routing address information returned by the vehicle gateway in response to the ECU routing address request includes:
and inquiring ECU routing address information aiming at the ECU from a preset routing table through an ECU address service of the vehicle gateway.
3. The method of claim 1, wherein the ECU comprises at least one ECU; the forwarding, by the TBOX, ECU diagnostic instructions to the ECU in accordance with the ECU routing address information includes:
acquiring a first identifier through the TBOX, and sending the first identifier and the ECU diagnosis instruction to at least one ECU according to the ECU routing address information.
4. The method of claim 3, wherein the TBOX has a corresponding first CAN chip and the ECU has a corresponding second CAN chip;
the sending the first identifier and the ECU diagnostic instruction to at least one ECU according to the ECU routing address information comprises:
sending the first identifier and the ECU diagnosis instruction to the first CAN chip through the TBOX and controlling the first CAN chip to be in a preparation state;
assigning, by the vehicle gateway, the second CAN chip to the first chip based on ECU routing address information;
and when the first CAN chip receives the distributed second CAN chip, controlling the first CAN chip to be in a message sending state, and sending a first identifier and an ECU diagnosis instruction in a message form to the second CAN chip.
5. The method of claim 4, further comprising:
when the first CAN chip sends a first identifier in a message form and an ECU diagnosis instruction to the second CAN chip, controlling the second CAN chip to be in a receiving state;
judging whether to receive the ECU diagnosis instruction in the message form or not according to the first identifier through the second CAN chip;
and if the first identifier meets the preset condition, receiving the ECU diagnosis instruction in the message form through the second CAN chip.
6. The method of claim 1, wherein said receiving diagnostic information returned by said ECU executing said ECU diagnostic instructions comprises:
acquiring, by the ECU, a second identifier, executing the ECU diagnostic instruction to send the second identifier and diagnostic information to the TBOX.
7. The method of claim 6, wherein the TBOX has a corresponding first CAN chip, the ECU has a corresponding second CAN chip;
the executing the ECU diagnostic instructions sends the second identifier and diagnostic information to the TBOX, including:
transmitting the second identifier and the diagnostic information to the second CAN chip through the ECU, and controlling the second CAN chip to be in a preparation state;
assigning, by the vehicle gateway, the first CAN chip to the second chip;
and when the second CAN chip receives the distributed first CAN chip, controlling the second CAN chip to be in a message sending state, and sending a second identifier and diagnosis information in a message form to the first CAN chip.
8. A vehicle diagnostic apparatus relating to a CAN network having a communication architecture constructed based on a vehicle gateway and a TBOX and an ECU, the apparatus comprising:
the preset request program running module is positioned at the TBOX and used for receiving the issued ECU diagnosis instruction and running a preset request program which is arranged in the TBOX and aims at ECU information; the preset request program is used for sending the generated ECU routing address request to the vehicle gateway;
the routing address information receiving module is positioned at the TBOX and used for receiving ECU routing address information returned by the vehicle gateway in response to the ECU routing address request;
and the diagnostic information receiving module is positioned at the TBOX and used for forwarding an ECU diagnostic instruction to the ECU according to the ECU routing address information and receiving the diagnostic information returned by the ECU executing the ECU diagnostic instruction.
9. A vehicle, characterized by comprising: vehicle diagnostic device according to claim 8, a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when being executed by the processor, carries out the steps of the vehicle diagnostic method according to one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the vehicle diagnostic method according to any one of claims 1 to 7.
CN202110548556.4A 2021-05-19 2021-05-19 Vehicle diagnosis method and device Pending CN113268050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110548556.4A CN113268050A (en) 2021-05-19 2021-05-19 Vehicle diagnosis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110548556.4A CN113268050A (en) 2021-05-19 2021-05-19 Vehicle diagnosis method and device

Publications (1)

Publication Number Publication Date
CN113268050A true CN113268050A (en) 2021-08-17

Family

ID=77231852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110548556.4A Pending CN113268050A (en) 2021-05-19 2021-05-19 Vehicle diagnosis method and device

Country Status (1)

Country Link
CN (1) CN113268050A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116224976A (en) * 2023-05-08 2023-06-06 北京集度科技有限公司 Test method and device
WO2024037304A1 (en) * 2022-08-16 2024-02-22 北京经纬恒润科技股份有限公司 Vehicle diagnosis communication method and apparatus, and device, medium and program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0884223A1 (en) * 1997-06-13 1998-12-16 Renault Communication device and procedure for a vehicle diagnosic apparatus
WO2014122711A1 (en) * 2013-02-05 2014-08-14 株式会社デンソー On-board relay device
US20150363606A1 (en) * 2014-06-11 2015-12-17 GM Global Technology Operations LLC Inhibiting access to sensitive vehicle diagnostic data
CN106325231A (en) * 2015-07-03 2017-01-11 广州汽车集团股份有限公司 Method and system for remote fault detection of vehicles on production line
CN107423492A (en) * 2017-06-30 2017-12-01 林德(中国)叉车有限公司 A kind of fork truck diagnostic test method and system based on template
US20180063246A1 (en) * 2016-08-31 2018-03-01 Ford Global Technologies, Llc Method and apparatus for efficient data transfer protocol in a limited-bandwidth vehicle environment
CN109669442A (en) * 2018-12-25 2019-04-23 深圳市元征科技股份有限公司 A kind of method for converting protocol and conversion equipment
CA3040376A1 (en) * 2018-05-10 2019-11-10 Mahle International Gmbh Apparatuses, systems, and methods for remotely capturing automotive vehicle diagnostic information, monitoring, and controlling

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0884223A1 (en) * 1997-06-13 1998-12-16 Renault Communication device and procedure for a vehicle diagnosic apparatus
WO2014122711A1 (en) * 2013-02-05 2014-08-14 株式会社デンソー On-board relay device
US20150363606A1 (en) * 2014-06-11 2015-12-17 GM Global Technology Operations LLC Inhibiting access to sensitive vehicle diagnostic data
CN106325231A (en) * 2015-07-03 2017-01-11 广州汽车集团股份有限公司 Method and system for remote fault detection of vehicles on production line
US20180063246A1 (en) * 2016-08-31 2018-03-01 Ford Global Technologies, Llc Method and apparatus for efficient data transfer protocol in a limited-bandwidth vehicle environment
CN107423492A (en) * 2017-06-30 2017-12-01 林德(中国)叉车有限公司 A kind of fork truck diagnostic test method and system based on template
CA3040376A1 (en) * 2018-05-10 2019-11-10 Mahle International Gmbh Apparatuses, systems, and methods for remotely capturing automotive vehicle diagnostic information, monitoring, and controlling
CN109669442A (en) * 2018-12-25 2019-04-23 深圳市元征科技股份有限公司 A kind of method for converting protocol and conversion equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024037304A1 (en) * 2022-08-16 2024-02-22 北京经纬恒润科技股份有限公司 Vehicle diagnosis communication method and apparatus, and device, medium and program product
CN116224976A (en) * 2023-05-08 2023-06-06 北京集度科技有限公司 Test method and device
CN116224976B (en) * 2023-05-08 2023-08-25 北京集度科技有限公司 Test method and device

Similar Documents

Publication Publication Date Title
KR101630729B1 (en) Method and System for Providing Optimized Ethernet Communication for vehicle
KR101534923B1 (en) Ethernet backbone network system for vehicle and method for controlling fail safe of the ethernet backbone network system
CN113268050A (en) Vehicle diagnosis method and device
US11027676B2 (en) Vehicle data communications network
CN113406946B (en) Automobile diagnosis method and device and automobile diagnosis equipment
JP6352325B2 (en) Communications system
CN108683594B (en) Vehicle gateway routing method, device, vehicle and storage medium
US11273775B2 (en) Vehicle data communications network
CN112165438A (en) Vehicle communication method and communication system
KR20190046477A (en) Method for handling message in gateway and gateway therefor
WO2021005875A1 (en) On-vehicle communication system, on-vehicle device, and vehicle communication method
JP2017168994A (en) Communication device and communication system
CN113485920B (en) Method and device for realizing DoIP entity, readable storage medium and electronic equipment
US11373464B2 (en) Vehicle-mounted communications device, log collection method, and log collection program
CN104821888B (en) Method and device for operating a communication network, in particular of a motor vehicle
JP2009035210A (en) On-vehicle communication system
CN113285860B (en) Method and system for flashing slave node through master node
CN114328229A (en) Over-the-air technology test system
CN111988293A (en) Method, device, equipment and storage medium for filtering domain name of vehicle-mounted router
CN113377393A (en) Diagnosis refreshing system and method for vehicle-mounted system main node
Elżbieta Communication in Automotive Networks Illustrated with an Example of Vehicle Stability Program: Part I-Control Area Network
CN115484184B (en) Fault diagnosis method, fault diagnosis system, vehicle, and readable storage medium
CN114785684B (en) Port configuration method and device of vehicle switch, vehicle and storage medium
CN116016634A (en) Multi-device connection method and device, electronic device and computer readable storage medium
US11929847B2 (en) Method for controlling a workload of a bus system of a means of transport, and bus system and means of transport

Legal Events

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

Application publication date: 20210817

RJ01 Rejection of invention patent application after publication