CN113960991B - Vehicle fault diagnosis system, method and device, system-on-chip and vehicle - Google Patents
Vehicle fault diagnosis system, method and device, system-on-chip and vehicle Download PDFInfo
- Publication number
- CN113960991B CN113960991B CN202111448273.9A CN202111448273A CN113960991B CN 113960991 B CN113960991 B CN 113960991B CN 202111448273 A CN202111448273 A CN 202111448273A CN 113960991 B CN113960991 B CN 113960991B
- Authority
- CN
- China
- Prior art keywords
- vehicle
- chip
- fault diagnosis
- microprocessor
- linux
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003745 diagnosis Methods 0.000 title claims abstract description 156
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004590 computer program Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric 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/0213—Modular 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The embodiment of the invention discloses a vehicle fault diagnosis system, a method, a device, a system-on-chip and a vehicle, wherein the system comprises: a microprocessor and a system-on-chip; the microprocessor is in communication connection with the system-on-chip, and a Linux system and preset UDS diagnosis software are arranged in the system-on-chip; the system-on-chip is used for running UDS diagnosis software through a Linux system so as to send a fault diagnosis signal to the microprocessor; the microprocessor is used for responding to a fault diagnosis signal sent by the system-on-chip according to a preset UDS diagnosis protocol and feeding back a fault diagnosis result of a corresponding vehicle module to the system-on-chip according to the diagnosis signal; the system-on-chip is also used for sending corresponding firmware update information to the microprocessor according to the fault diagnosis result. Thus, the vehicle fault diagnosis system of the present invention can realize the UDS diagnosis function of the diagnostic apparatus using the existing resources in the vehicle.
Description
Technical Field
The present invention relates to the field of vehicle control, and in particular, to a vehicle fault diagnosis system, method and apparatus, a system-on-chip, and a vehicle.
Background
The UDS (Unified Diagnostic Services, unified diagnostic service) diagnostic protocol is a diagnostic communication protocol in the context of an on-board controller. The current vehicle-mounted controller is provided with a UDS-Server function to support the recording and transmission of faults of the vehicle-mounted controller and the updating of firmware of the vehicle-mounted controller, and the current UDS CAN support various bus interfaces such as ETH, CAN and the like.
The automobile fault diagnosis instrument is a portable intelligent automobile fault self-checking instrument with a UDS-Client function for detecting automobile faults, and a user can rapidly read the faults in the vehicle-mounted controller by using the portable intelligent automobile fault self-checking instrument and display fault information through a liquid crystal display screen to rapidly find out the fault positions and reasons and refresh the firmware of the vehicle-mounted controller.
In the prior art, a UDS diagnosis function on an on-vehicle controller is required to be provided with an automobile fault diagnosis instrument, the automobile fault diagnosis instrument varies from thousands to tens of thousands according to the richness of the function, and the existing scheme is high in cost and inconvenient to implement.
Disclosure of Invention
In order to solve the technical problems, the embodiment of the application provides a vehicle fault diagnosis system, a vehicle fault diagnosis method, a vehicle fault diagnosis device, a system-on-chip and a vehicle, and the specific scheme is as follows:
In a first aspect, an embodiment of the present application provides a vehicle fault diagnosis system, applied to a vehicle, the system including: a microprocessor and a system-on-chip;
The microprocessor is in communication connection with the system-on-chip through a CAN bus, and a Linux system and preset UDS diagnosis software are arranged in the system-on-chip;
The system-on-chip is used for starting the Linux system according to a Linux starting signal and running the UDS diagnosis software through the Linux system so as to send a fault diagnosis signal to the microprocessor;
the microprocessor is used for responding to the fault diagnosis signal sent by the system-on-chip according to a preset UDS diagnosis protocol and feeding back a fault diagnosis result of a corresponding vehicle module to the system-on-chip according to the fault diagnosis signal;
the system-on-chip is also used for sending corresponding firmware update information to the microprocessor according to the fault diagnosis result so that the microprocessor can carry out firmware update according to the firmware update information.
According to a specific implementation manner of the embodiment of the present application, the system-on-chip further includes an external interface, where the external interface includes any one of a UART interface, a USB interface, an HDMI interface, and a DP interface;
The system-on-chip is used for receiving the Linux starting signal through the external interface.
According to a specific implementation manner of the embodiment of the present application, the system further includes a switch chip, a plurality of ethernet interfaces are disposed on the switch chip, the switch chip is connected to the microprocessor and the system-on-chip through the ethernet interfaces, and the switch chip is further used for connecting to a router device through the ethernet interfaces;
The system-on-chip is in communication connection with the microprocessor through the exchange chip;
The switching chip is used for remotely receiving the Linux starting signal through the router equipment and forwarding the Linux starting signal to the system-on-chip.
According to a specific implementation manner of the embodiment of the application, the system-on-chip is further used for being in communication connection with a vehicle-mounted controller in a vehicle through a CAN bus or an Ethernet interface;
The system-on-chip is also used for sending the fault diagnosis signal to the vehicle-mounted controller;
the vehicle-mounted controller is used for responding to the fault diagnosis signal sent by the system-on-chip according to a preset UDS diagnosis protocol and feeding back a fault diagnosis result of a corresponding vehicle module to the system-on-chip according to the fault diagnosis signal, wherein the vehicle module corresponding to the vehicle-mounted controller is different from the vehicle module corresponding to the microcontroller;
the system-on-chip is also used for sending corresponding firmware update information to the vehicle-mounted controller according to the fault diagnosis result so that the vehicle-mounted controller can carry out firmware update according to the firmware update information.
In a second aspect, an embodiment of the present application provides a vehicle fault diagnosis method, applied to a system-on-chip in a vehicle fault diagnosis system, where the vehicle fault diagnosis system further includes a microprocessor, the microprocessor is connected with the system-on-chip through a CAN bus in a communication manner, and a Linux system and preset UDS diagnostic software are built in the system-on-chip, and the method includes:
starting the Linux system according to a Linux starting signal, and running the UDS diagnosis software through the Linux system;
sending a fault diagnosis signal to the microprocessor;
Analyzing fault diagnosis results of the corresponding vehicle modules fed back by the microprocessor;
and sending corresponding firmware update information to the microprocessor so that the microprocessor performs firmware update according to the firmware update information.
According to a specific implementation manner of the embodiment of the present application, the system-on-chip is further configured to be communicatively connected to an on-board controller in a vehicle through a CAN bus or an ethernet interface, and the method further includes:
sending the fault diagnosis signal to the vehicle-mounted controller;
analyzing fault diagnosis results of corresponding vehicle modules fed back by the vehicle-mounted controller, wherein the vehicle modules corresponding to the vehicle-mounted controller are different from the vehicle modules corresponding to the microcontroller;
And sending corresponding firmware update information to the vehicle-mounted controller so that the vehicle-mounted controller carries out firmware update according to the firmware update information.
In a third aspect, an embodiment of the present application provides a vehicle fault diagnosis device, which is applied to a system-on-chip in a vehicle fault diagnosis system, where the vehicle fault diagnosis system further includes a microprocessor, the microprocessor is connected with the system-on-chip through a CAN bus in a communication manner, and a Linux system and preset UDS diagnostic software are built in the system-on-chip, and the device includes:
The starting module is used for starting the Linux system according to a Linux starting signal and running the UDS diagnosis software through the Linux system;
The sending module is used for sending a fault diagnosis signal to the microprocessor;
The analysis module is used for analyzing the fault diagnosis result of the corresponding vehicle module fed back by the microprocessor;
and the updating module is used for sending corresponding firmware updating information to the microprocessor so that the microprocessor can update the firmware according to the firmware updating information.
In a fourth aspect, an embodiment of the present application provides a system-on-a-chip, including a processor and a memory, where the memory stores a computer program that, when run on the processor, performs the vehicle fault diagnosis method according to the second aspect.
In a fifth aspect, an embodiment of the present application provides a vehicle, including the vehicle fault diagnosis system according to the first aspect and the system-on-chip according to the fourth aspect.
In a sixth aspect, an embodiment of the present application provides a computer readable storage medium having stored therein a computer program that when run on a processor performs the vehicle fault diagnosis method of the second aspect.
The embodiment of the application provides a vehicle fault diagnosis system, a method, a device, a system-on-chip and a vehicle, which are applied to the vehicle, wherein the system comprises: a microprocessor and a system-on-chip; the microprocessor is in communication connection with the system-on-chip through a CAN bus, and a Linux system and preset UDS diagnosis software are arranged in the system-on-chip; the system-on-chip is used for starting the Linux system according to a Linux starting signal and running the UDS diagnosis software through the Linux system so as to send a fault diagnosis signal to the microprocessor; the microprocessor is used for responding to the fault diagnosis signal sent by the system-on-chip according to a preset UDS diagnosis protocol and feeding back a fault diagnosis result of a corresponding vehicle module to the system-on-chip according to the fault diagnosis signal; the system-on-chip is also used for sending corresponding firmware update information to the microprocessor according to the fault diagnosis result so that the microprocessor can carry out firmware update according to the firmware update information. Thus, the vehicle fault diagnosis system of the present application can realize the UDS diagnosis function of the diagnostic apparatus using the existing resources in the vehicle.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope of the present invention. Like elements are numbered alike in the various figures.
Fig. 1 is a schematic diagram of a system structure of a vehicle fault diagnosis system according to an embodiment of the present application;
fig. 2 is a schematic diagram of another system structure of a vehicle fault diagnosis system according to an embodiment of the present application;
Fig. 3 is a schematic flow chart of a vehicle fault diagnosis method according to an embodiment of the present application;
Fig. 4 is a schematic device module diagram of a vehicle fault diagnosis device according to an embodiment of the present application.
Summarizing the reference numerals: a vehicle fault diagnosis system-100; system-on-chip-110; a microprocessor-120; a switching chip-130;
A first vehicle controller-210; a second vehicle controller-220.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present invention, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the invention belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the invention.
The UDS (Unified Diagnostic Services, unified diagnostic service) diagnostic protocol is a diagnostic communication protocol in the environment of a vehicle-mounted controller, and the UDS CAN support a plurality of bus interfaces such as ETH, CAN and the like at present. The protocol defines the functions that the UDS-Server and the UDS-Client CAN communicate through an Ethernet interface or a CAN bus protocol, the Server is used for recording local fault information, and the Client CAN acquire the fault information of the Server through various communication interfaces and perform firmware upgrading and the like.
The on-board domain controller comprises a system on chip and a microprocessor, but in the prior art, control information and the like are output to the vehicle only through a CAN interface of the microprocessor, and when a UDS diagnosis service built in the on-board controller needs to be used, additional diagnostic equipment needs to be connected to serve as a Client end of a UDS diagnosis protocol.
Referring to fig. 1, a schematic system structure of a vehicle fault diagnosis system 100 according to an embodiment of the present application is provided, and the vehicle fault diagnosis system 100 according to an embodiment of the present application is applied to a vehicle, as shown in fig. 1, where the vehicle fault diagnosis system 100 includes: a microprocessor 120 and a system-on-chip 110;
the microprocessor 120 is in communication connection with the system-on-chip 110 through a CAN bus, and a Linux system and preset UDS diagnostic software are built in the system-on-chip 110;
The system-on-chip 110 is configured to start the Linux system according to a Linux start signal, and run the UDS diagnostic software through the Linux system to send a fault diagnosis signal to the microprocessor 120;
The microprocessor 120 is configured to respond to the fault diagnosis signal sent by the system-on-chip 110 according to a preset UDS diagnosis protocol, and feed back a fault diagnosis result of a corresponding vehicle module to the system-on-chip 110 according to the fault diagnosis signal;
the system-on-chip 110 is further configured to send corresponding firmware update information to the microprocessor 120 according to the fault diagnosis result, so that the microprocessor 120 performs firmware update according to the firmware update information.
In a specific embodiment, the System on Chip (SoC) 110 is a System on Chip, and a Linux operating System and UDS-Client diagnostic software capable of using the System on Chip 110 as a Client in a UDS diagnostic protocol are built in the System on Chip 110.
The Linux operating system is internally provided with an operating program, and when the system on chip 110 starts the Linux operating system according to a Linux start signal, the Linux automatically operates the UDS-Client diagnostic software which is internally arranged in advance and accesses other service ends in the vehicle through a communication interface of the system on chip 110.
Specifically, after the user sends the Linux start signal to the system on chip 110, the UDS-Client diagnostic software may be started by the user according to a preset program, or may be run according to a user operation, which is not limited herein.
The microprocessor 120 (Micro-Controller Unit, abbreviated as MCU) is used as a Server in the UDS protocol, and during operation, fault information of corresponding components of the vehicle is recorded in real time, and the fault information is stored in a storage Unit of the microprocessor 120. The fault information of the corresponding vehicle component recorded by the microprocessor 120 may be a throttle depth, a throttle check state, a brake depth, a gear state, a driving system state, etc., and the fault information of the corresponding vehicle component recorded by the microprocessor 120 may be adaptively changed according to the advanced setting of a technician, which is not limited herein specifically.
The CAN bus interface of the microprocessor 120 is in communication connection with the CAN bus interface of the system-on-chip 110, so that information communication between the microprocessor 120 and the system-on-chip 110 CAN be realized through a CAN bus protocol.
When the microprocessor 120 receives the fault diagnosis signal sent by the system-on-chip 110, the microprocessor 120 extracts fault information of a corresponding component of the vehicle from the storage unit, and feeds back the fault information to the system-on-chip 110 as a fault diagnosis result.
After receiving the real-time fault information fed back by the microprocessor 120, the system-on-chip 110 can generate corresponding firmware update information according to the real-time fault information, and the system-on-chip 110 sends the firmware update information to the microprocessor 120, i.e. the microprocessor 120 can automatically update the corresponding firmware to complete diagnosis and adjustment service of vehicle components.
Specifically, after the UDS-Client diagnostic software is run in the system-on-chip 110, the system-on-chip obtains diagnostic information of all the vehicle-mounted controllers in the vehicle by loading a diagnostic service table, so as to access diagnostic service functions in each vehicle-mounted controller. The diagnostic service table is used for describing information such as names of all vehicle-mounted controllers in the vehicle, supported transmission layer parameters, service types, direct Injection-Diesel (DID), diagnostic fault codes (Diagnostic Trouble Code, DTC), expansion data, frozen frames and the like.
The UDS-Client diagnostic software CAN communicate with other vehicle-mounted controllers on the CAN bus through an ISO-TP (ISO 15765-2) protocol by using the CAN bus to access the UDS-Server function; the UDS-Client diagnostic software can also communicate with other onboard controllers on the Ethernet interface using the Ethernet interface via DoIP (ISO 13400-2) protocol to access UDS-Server functions.
An operator interacts with the UDS-Client software of the system-on-chip in a command line mode, so that the operator can conveniently execute UDS functions of acquiring fault codes, clearing the fault codes, acquiring version numbers, updating firmware and the like;
More specifically, when executing the functions of acquiring the fault code, clearing the fault code, acquiring the version number and the like, the specific mode of using the command line operation is that an operator transmits the name, the service name, the sub-service name and the parameters of the target vehicle-mounted controller to the system-on-chip through the UDS-Client command line to use the UDS function, after receiving the above information, the UDS-Client in the system-on-chip matches a specific vehicle-mounted controller through the name of the vehicle-mounted controller from the diagnosis service table, then uses the transmission layer number of the specific vehicle-mounted controller recorded in the diagnosis service table to access the diagnosis service of the specific vehicle-mounted controller, and returns the execution result of the diagnosis service through the command line.
In the process of filling in the service names, the sub-service names and the parameters, after the names of the target vehicle-mounted controllers are input, the UDS-Client software can report all the services and the sub-services supported by the currently selected target vehicle-mounted controllers through the diagnosis service table, so that the service and the sub-service are convenient for operators to use.
When the firmware updating function is executed, the specific mode of using the command line operation is that a group of UDS service is needed to be used for updating the firmware of the vehicle-mounted controller, when the firmware of the vehicle-mounted controller needs to be updated, an operator transmits the name of a target vehicle-mounted controller and the file address of the firmware in a Linux system through a UDS-Client command line, after receiving the information, the UDS-Client matches the specific vehicle-mounted controller through the name of the vehicle-mounted controller from a diagnosis service table, and then the transmission layer parameter of the vehicle-mounted controller recorded in the diagnosis service table is used for accessing the upgrading related transaction of the vehicle-mounted controller, and the firmware transmitted by the command line is written into the corresponding vehicle-mounted controller.
According to an embodiment of the present application, as shown in fig. 2, the system-on-chip 110 further includes an external interface, where the external interface includes any one of a UART interface, a USB interface, an HDMI interface, and a DP interface;
The system-on-chip 110 is configured to receive the Linux startup signal through the external interface.
In a specific embodiment, the system-on-chip 110 further includes various external interfaces, such as a USB interface, an HDMI interface, a DP interface, and other peripheral interfaces, and a Universal Asynchronous Receiver Transmitter (UART) interface, where the UART interface is used to connect with a terminal device such as a notebook computer, and receive a Linux start signal sent by a serial communication protocol.
As shown in fig. 2, the vehicle fault diagnosis system 100 further includes a switch chip 130, a plurality of ethernet interfaces are disposed on the switch chip 130, the switch chip 130 is respectively connected to the microprocessor 120 and the system-on-chip 110 through the ethernet interfaces, and the switch chip 130 is further configured to connect to a router device through the ethernet interfaces;
The system-on-chip 110 is communicatively coupled to the microprocessor 120 via the switch chip 130;
The switch chip 130 is configured to remotely receive the Linux startup signal through the router device, and forward the Linux startup signal to the system-on-chip 110.
In a specific embodiment, the system-on-chip 110 is capable of implementing communication with the microprocessor 120 not only through a CAN bus protocol, but also through an ethernet interface and the router device.
In addition, the switch chip 130 may be connected to a router device through an ethernet interface, so that a user may input a signal to the switch chip 130 in the domain controller through a wireless communication manner, and forward the signal to the system-on-chip 110 through the switch chip 130. The router device may implement 4G communication or 5G communication, and is not particularly limited herein.
An operator can log into the Linux system in the system-on-chip 110 to operate the UDS-Client software in a number of ways:
1. The display interface is connected with the display and the keyboard and the mouse are connected with the USB interface, so that a user can directly enter a login interface of the Linux system and directly operate and run the UDS-Client software in the Linux system. The display interface comprises an HDMI interface, a DP interface, a DVI interface and the like.
2. The ethernet interface of the switch chip 130 is connected through the network port of the notebook computer, and the Linux system in the system-on-chip 110 is logged in through an SSH tool, where the SSH tool may be Putty, XManager, secureCRT, etc., and what SSH tool is specifically used may be adaptively selected according to the actual application process, which is not limited herein;
3. The system on chip 110 is connected with a Debug port interface through a notebook computer, and the Linux system is logged in through a serial port console;
4. the ethernet interface of the switch chip 130 is connected using a 4G/5G router, so that the Linux system can be logged in through SSH tools at the remote end.
Through the interface arrangement, the use of the vehicle UDS function can be completed under the condition of no vehicle fault diagnosis instrument through the existing interface resource of the vehicle-mounted domain controller.
In a specific embodiment, the function of the switch chip is equal to that of an ethernet switch, and the microprocessor 120, the system-on-chip 110 and the terminal device outside the vehicle body can implement ethernet interconnection through the switch chip, so that the UDS-Server function of other devices can be accessed by using the UDS-client function in the Linux system in the system-on-chip 110 through ethernet communication.
After the 4G/5G router is connected, the system-on-chip 110 may obtain the IP address of the public network, any computer that can access the public network may log in the Linux system in the system-on-chip 110 through the SSH protocol, and then may access the UDS-Server function of other devices using the UDS-Client function in the system-on-chip 110.
According to a specific implementation of the embodiment of the present application, the system-on-chip 110 is further configured to be communicatively connected to an on-board controller in a vehicle through a CAN bus or an ethernet interface;
the system-on-chip 110 is further configured to send the fault diagnosis signal to the on-board controller;
the vehicle-mounted controller is configured to respond to the fault diagnosis signal sent by the system-on-chip 110 according to a preset UDS diagnosis protocol, and feed back a fault diagnosis result of a corresponding vehicle module to the system-on-chip 110 according to the fault diagnosis signal, where the vehicle module corresponding to the vehicle-mounted controller is different from the vehicle module corresponding to the microcontroller;
The system-on-chip 110 is further configured to send corresponding firmware update information to the vehicle-mounted controller according to the fault diagnosis result, so that the vehicle-mounted controller performs firmware update according to the firmware update information.
In a specific embodiment, the CAN bus supports multiple devices connected in parallel, devices on the same CAN bus CAN communicate with each other, and CAN interconnect the CAN microprocessors 120 of the system-on-chip 110 in the on-board domain controller, so that the CAN of the on-board domain controller CAN communicate with the microprocessor 120 or other first on-board controllers 210 connected in parallel outside the on-board domain controller on the CAN bus. CAN communication CAN take place to access the UDS-server functions of other devices using the UDS-Client functions in the system-on-a-chip 110.
The system-on-chip 110 may also be in data communication with other second vehicle controllers 220 outside of the vehicle domain controller via an ethernet interface and the switch chip 130. The corresponding vehicle module controlled by the first vehicle controller 210, the corresponding vehicle module controlled by the second vehicle controller 220, and the corresponding vehicle module controlled by the microprocessor 120 are all different.
Therefore, through connecting different vehicle-mounted controllers, UDS diagnosis service for all modules in the vehicle can be realized, so that comprehensive diagnosis for the vehicle body is realized, and the efficiency of vehicle fault detection is effectively improved.
The vehicle fault diagnosis system 100 can complete the use of the UDS function of the whole vehicle under the condition of no vehicle fault diagnosis instrument, improves the vehicle fault diagnosis efficiency and saves a great amount of cost for vehicle fault diagnosis.
Referring to fig. 3, a vehicle fault diagnosis method provided in an embodiment of the present application is applied to a system-on-chip 110 in a vehicle fault diagnosis system 100, where the vehicle fault diagnosis system 100 further includes a microprocessor 120, the microprocessor 120 is communicatively connected with the system-on-chip 110 through a CAN bus, and a Linux system and preset UDS diagnostic software are built in the system-on-chip 110, as shown in fig. 3, and the vehicle fault diagnosis method includes:
Step S301, starting the Linux system according to a Linux starting signal, and running the UDS diagnosis software through the Linux system;
In a specific embodiment, the system-on-chip 110 is internally provided with a Linux system in advance, so that when the system-on-chip 110 receives Linux starting signals from various communication protocol interfaces, the Linux system can be started automatically, and after the Linux system is started, UDS-Client diagnostic software stored in the Linux system in advance is operated.
Step S302, sending a fault diagnosis signal to the microprocessor 120;
In a specific embodiment, after the system-on-chip 110 runs the UDS-Client diagnostic software, the fault diagnosis signal CAN be sent to the microprocessor 120 through an ethernet interface or a CAN bus communication protocol, where the fault diagnosis signal may be a diagnosis signal for a part of the vehicle modules corresponding to the microprocessor 120 or may be a diagnosis signal for all the vehicle modules corresponding to the microprocessor 120.
Step S303, analyzing the fault diagnosis result of the corresponding vehicle module fed back by the microprocessor 120;
In a specific embodiment, the system-on-chip 110 further stores a data table corresponding to the fault information of the vehicle module and the firmware upgrade information in advance.
After receiving the fault information of the corresponding vehicle module fed back by the microprocessor 120, the system-on-chip 110 can search the corresponding fault diagnosis table for firmware upgrade information corresponding to the fault information.
Step S304 is to send corresponding firmware update information to the microprocessor 120, so that the microprocessor 120 performs firmware update according to the firmware update information.
According to a specific implementation of the embodiment of the present application, the system-on-chip 110 is further configured to be communicatively connected to an on-board controller in a vehicle through a CAN bus or an ethernet interface, and the method further includes:
sending the fault diagnosis signal to the vehicle-mounted controller;
analyzing fault diagnosis results of corresponding vehicle modules fed back by the vehicle-mounted controller, wherein the vehicle modules corresponding to the vehicle-mounted controller are different from the vehicle modules corresponding to the microcontroller;
And sending corresponding firmware update information to the vehicle-mounted controller so that the vehicle-mounted controller carries out firmware update according to the firmware update information.
In a specific embodiment, the system-on-chip 110 may also be connected to other vehicle-mounted controllers that are not in the same vehicle-mounted domain controller, so as to obtain fault information of the corresponding vehicle module stored in the other vehicle-mounted controllers, and send corresponding firmware update information to the vehicle-mounted controllers.
According to the vehicle fault diagnosis method, other diagnostic equipment is not required to be connected, the vehicle-mounted domain controller in the vehicle is directly used for directly diagnosing a specific module of the vehicle, and the vehicle-mounted domain controller is externally connected with other vehicle-mounted controllers in the vehicle through communication interfaces such as an Ethernet interface and a CAN bus, so that all-around fault diagnosis service for all parts of the vehicle CAN be realized.
Referring to fig. 4, a schematic diagram of a device module of a vehicle fault diagnosis device 400 according to an embodiment of the present application is provided, and the vehicle fault diagnosis device 400 according to an embodiment of the present application is applied to a system-on-chip 110 in the vehicle fault diagnosis system 100 shown in fig. 1, where the vehicle fault diagnosis system 100 further includes a microprocessor 120, the microprocessor 120 is communicatively connected to the system-on-chip 110 through a CAN bus, and a Linux system and preset UDS diagnostic software are built in the system-on-chip 110. As shown in fig. 4, the vehicle fault diagnosis apparatus 400 includes:
The starting module 401 is configured to start the Linux system according to a Linux starting signal, and run the UDS diagnostic software through the Linux system;
A transmitting module 402 for transmitting a fault diagnosis signal to the microprocessor 120;
an analysis module 403, configured to analyze the fault diagnosis result of the corresponding vehicle module fed back by the microprocessor 120;
And the updating module 404 is configured to send corresponding firmware updating information to the microprocessor 120, so that the microprocessor 120 performs firmware updating according to the firmware updating information.
Another system-on-chip 110 provided in an embodiment of the present application includes a processor and a memory, where the memory stores a computer program that, when executed on the processor, performs the vehicle fault diagnosis method in the above embodiment.
The embodiment of the application also provides a vehicle, which comprises the vehicle fault diagnosis system 100 and the system-on-chip 110.
The embodiment of the application also provides a computer readable storage medium, in which a computer program is stored, which when run on a processor, performs the vehicle fault diagnosis method in the above embodiment.
In summary, the embodiments of the present application provide a vehicle fault diagnosis system, a method, an apparatus, a system-on-a-chip, and a vehicle, where the vehicle fault diagnosis system does not need to be connected to any diagnostic apparatus, and according to UDS-Client software preset in the system-on-a-chip, the system-on-a-chip can communicate with a microprocessor and a vehicle-mounted controller in the vehicle through a UDS diagnosis protocol to complete unified diagnosis service. The vehicle fault diagnosis system saves huge cost for fault diagnosis of the vehicle. The system on chip is internally provided with the Linux system and is provided with an external interface and an Ethernet port, and a user can directly log in and start the Linux system in a mode of connecting part peripheral equipment or remote SSH protocol, so that the flow of vehicle fault detection is greatly simplified, and the efficiency of vehicle fault detection is improved. In addition, the specific implementation process of the vehicle fault diagnosis device, the system-on-chip, the vehicle and the computer readable storage medium provided in the embodiments of the present application may refer to the specific implementation process in the above method embodiment, and will not be described herein in detail.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in various embodiments of the invention may be integrated together to form a single part, or the modules may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention.
Claims (8)
1. A vehicle fault diagnosis system, characterized by being applied to a vehicle, comprising: the system comprises an on-chip system chip and a microprocessor, wherein the on-chip system chip comprises a vehicle-mounted domain controller and a control unit;
The microprocessor is in communication connection with the system-on-chip through a CAN bus, and a Linux system and preset UDS diagnosis software are arranged in the system-on-chip;
The system-on-chip is used for starting the Linux system according to a Linux starting signal and running the UDS diagnosis software through the Linux system so as to send a fault diagnosis signal to the microprocessor;
the microprocessor is used for responding to the fault diagnosis signal sent by the system-on-chip according to a preset UDS diagnosis protocol and feeding back a fault diagnosis result of a corresponding vehicle module to the system-on-chip according to the fault diagnosis signal;
The system-on-chip is also used for sending corresponding firmware update information to the microprocessor according to the fault diagnosis result so that the microprocessor can carry out firmware update according to the firmware update information;
the system-on-chip is also used for being in communication connection with a vehicle-mounted controller in a vehicle through a CAN bus or an Ethernet interface;
The system-on-chip is also used for sending the fault diagnosis signal to the vehicle-mounted controller;
The vehicle-mounted controller is used for responding to the fault diagnosis signal sent by the system-on-chip according to a preset UDS diagnosis protocol and feeding back a fault diagnosis result of a corresponding vehicle module to the system-on-chip according to the fault diagnosis signal, wherein the vehicle module corresponding to the vehicle-mounted controller is different from the vehicle module corresponding to the microprocessor;
the system-on-chip is also used for sending corresponding firmware update information to the vehicle-mounted controller according to the fault diagnosis result so that the vehicle-mounted controller can carry out firmware update according to the firmware update information.
2. The system of claim 1, wherein the system-on-chip further comprises an external interface, the external interface comprising any one of a UART interface, a USB interface, an HDMI interface, and a DP interface;
The system-on-chip is used for receiving the Linux starting signal through the external interface.
3. The system of claim 1, further comprising a switch chip, wherein a plurality of ethernet interfaces are disposed on the switch chip, wherein the switch chip is respectively connected to the microprocessor and the system-on-chip through the ethernet interfaces, and wherein the switch chip is further configured to connect to a router device through the ethernet interfaces;
The system-on-chip is in communication connection with the microprocessor through the exchange chip;
The switching chip is used for remotely receiving the Linux starting signal through the router equipment and forwarding the Linux starting signal to the system-on-chip.
4. A vehicle fault diagnosis method, characterized in that the system chip is applied to the vehicle fault diagnosis system according to claim 1, the vehicle fault diagnosis system further comprises a microprocessor, the microprocessor is in communication connection with the system chip on a chip through a CAN bus, the system chip is internally provided with a Linux system and preset UDS diagnosis software, and the method comprises:
starting the Linux system according to a Linux starting signal, and running the UDS diagnosis software through the Linux system;
sending a fault diagnosis signal to the microprocessor;
Analyzing fault diagnosis results of the corresponding vehicle modules fed back by the microprocessor;
Sending corresponding firmware update information to a microprocessor so that the microprocessor carries out firmware update according to the firmware update information;
the system-on-chip is further configured to be communicatively connected to an on-board controller in a vehicle via a CAN bus or an ethernet interface, the method further comprising:
sending the fault diagnosis signal to the vehicle-mounted controller;
analyzing fault diagnosis results of corresponding vehicle modules fed back by the vehicle-mounted controller, wherein the vehicle modules corresponding to the vehicle-mounted controller are different from the vehicle modules corresponding to the microprocessor;
And sending corresponding firmware update information to the vehicle-mounted controller so that the vehicle-mounted controller carries out firmware update according to the firmware update information.
5. A vehicle fault diagnosis apparatus, characterized in that it is applied to a system-on-chip in a vehicle fault diagnosis system as claimed in claim 1, said vehicle fault diagnosis system further comprising a microprocessor, said microprocessor being communicatively connected to said system-on-chip via a CAN bus, said system-on-chip having a Linux system and preset UDS diagnostic software built therein, said apparatus comprising:
The starting module is used for starting the Linux system according to a Linux starting signal and running the UDS diagnosis software through the Linux system;
The sending module is used for sending a fault diagnosis signal to the microprocessor;
the analysis module is used for analyzing the fault diagnosis result of the corresponding vehicle module fed back by the microprocessor; the vehicle module corresponding to the vehicle-mounted controller is different from the vehicle module corresponding to the microprocessor;
and the updating module is used for sending corresponding firmware updating information to the microprocessor so that the microprocessor can update the firmware according to the firmware updating information.
6. A system-on-a-chip comprising a processor and a memory, the memory storing a computer program that, when run on the processor, performs the vehicle fault diagnosis method of claim 4.
7. A vehicle comprising the vehicle fault diagnosis system of any one of claims 1-3 and the system-on-chip of claim 6.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when run on a processor, performs the vehicle fault diagnosis method of claim 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111448273.9A CN113960991B (en) | 2021-11-30 | 2021-11-30 | Vehicle fault diagnosis system, method and device, system-on-chip and vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111448273.9A CN113960991B (en) | 2021-11-30 | 2021-11-30 | Vehicle fault diagnosis system, method and device, system-on-chip and vehicle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113960991A CN113960991A (en) | 2022-01-21 |
CN113960991B true CN113960991B (en) | 2024-08-23 |
Family
ID=79472603
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111448273.9A Active CN113960991B (en) | 2021-11-30 | 2021-11-30 | Vehicle fault diagnosis system, method and device, system-on-chip and vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113960991B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115129354A (en) * | 2022-05-27 | 2022-09-30 | 深圳市几米物联有限公司 | Vehicle-mounted locator upgrading system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197666A (en) * | 2013-03-26 | 2013-07-10 | 重庆邮电大学 | General-type handheld automobile fault diagnostic instrument |
CN112463718A (en) * | 2020-11-17 | 2021-03-09 | 中国计量大学 | Signal recognition processing device |
CN113341922A (en) * | 2021-06-02 | 2021-09-03 | 英博超算(南京)科技有限公司 | Domain controller fault diagnosis system based on LCM |
CN116243686A (en) * | 2023-03-23 | 2023-06-09 | 东风悦享科技有限公司 | Method, system and storage medium for realizing diagnostic instrument of vehicle-mounted device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019105964A (en) * | 2017-12-12 | 2019-06-27 | ルネサスエレクトロニクス株式会社 | In-vehicle system and its control method |
CN208156504U (en) * | 2017-12-22 | 2018-11-27 | 北京车和家信息技术有限公司 | Fault diagnosis system and vehicle in a kind of vehicle |
EP3893462A4 (en) * | 2020-01-23 | 2022-03-02 | Huawei Technologies Co., Ltd. | MESSAGE TRANSMISSION METHOD AND APPARATUS |
CN112859814B (en) * | 2021-01-19 | 2022-08-02 | 英博超算(南京)科技有限公司 | DoIP diagnostic system of heterogeneous platform |
CN113341933B (en) * | 2021-06-23 | 2022-08-19 | 中国第一汽车股份有限公司 | Diagnostic system and method for vehicle central controller |
-
2021
- 2021-11-30 CN CN202111448273.9A patent/CN113960991B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197666A (en) * | 2013-03-26 | 2013-07-10 | 重庆邮电大学 | General-type handheld automobile fault diagnostic instrument |
CN112463718A (en) * | 2020-11-17 | 2021-03-09 | 中国计量大学 | Signal recognition processing device |
CN113341922A (en) * | 2021-06-02 | 2021-09-03 | 英博超算(南京)科技有限公司 | Domain controller fault diagnosis system based on LCM |
CN116243686A (en) * | 2023-03-23 | 2023-06-09 | 东风悦享科技有限公司 | Method, system and storage medium for realizing diagnostic instrument of vehicle-mounted device |
Also Published As
Publication number | Publication date |
---|---|
CN113960991A (en) | 2022-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10621797B2 (en) | System and method for transferring diagnostic commands to a vehicle | |
US20180293811A1 (en) | Vehicle remote diagnosis method and device | |
Tahat et al. | Android-based universal vehicle diagnostic and tracking system | |
CN114265386B (en) | SOA-based application service diagnosis architecture and method | |
CN103914059B (en) | Remote bus diagnostic method and system | |
US20080288708A1 (en) | Multiple virtual usb devices with virtual hub implemented using one usb device controller | |
US20170046884A1 (en) | Personal vehicle diagnosis system and method based on mobile intelligent terminal | |
US7797581B2 (en) | Device and method for testing motherboard | |
CN110244691B (en) | Automobile diagnosis method, device and system | |
US11514731B2 (en) | Method and system for remote vehicle diagnostics | |
CN103455455A (en) | Serial switching system, server and serial switching method | |
CN103197666A (en) | General-type handheld automobile fault diagnostic instrument | |
CN104483959A (en) | Fault simulation and test system | |
CN101916087A (en) | Diagnostic testing system based on CANoe | |
CN112198858B (en) | Electric vehicle motor controller wireless diagnosis method, device, medium and equipment based on UDS protocol | |
CN105425783A (en) | Real vehicle data processing method and system, controller and upper computer | |
CN113805918A (en) | Data interaction system and method for upgrading TBOX and obtaining TBOX logs | |
CN113960991B (en) | Vehicle fault diagnosis system, method and device, system-on-chip and vehicle | |
CN107294826B (en) | CAN network-based TBOX parameter calibration method and device | |
US7457311B2 (en) | Portable communication interface device | |
CN203882164U (en) | A real-time monitoring system for motor vehicles based on OBD technology | |
KR100634229B1 (en) | CAN Network Management System and How to Test and Debug It | |
CN212572587U (en) | CAN bus data collector and CAN bus analysis system | |
CN116319402A (en) | Vehicle data acquisition and monitoring method, system, equipment and medium | |
CN208255712U (en) | Hand-held type automobile diagnostic equipment based on CAN-BUS bus communication protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |