Vehicle message recording device and system
By designing a vehicle message recording device, the problem of difficulty in recording multiple CAN/CANFD and on-board Ethernet messages in automotive electrical development and debugging and vehicle production is solved, synchronous recording and diagnostic communication are realized, and the targetedness of recording data is improved. and efficiency.
Patent Information
- Application Number
- CN202411359621.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-02-07
AI Technical Summary
During the development and debugging of automotive appliances and the production of whole vehicles, it is difficult to effectively record multiple CAN/CANFD messages and on-board Ethernet messages between in-vehicle controllers, especially when targeted diagnosis is required, it is difficult to achieve synchronization in the existing technology. Record and diagnose communications.
A vehicle message recording device is designed, including a controller module, a diagnostic communication module, a message recording module, a storage module and a switch module. The device connects to the vehicle diagnostic system through the diagnostic communication module, outputs diagnostic commands, and records message data through the message recording module in response to the enable command, and stores the recorded data through the storage module.
It realizes the function of simultaneously recording multiple CAN/CANFD messages and on-board Ethernet messages, can receive UDS diagnostic instructions, realize targeted recording messages through the OBD interface, and conducts diagnostic communication synchronously, improving the targetedness of recorded data. and efficiency.
Smart Images

Figure CN119399853A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of message recording equipment in the process of automobile development and production, and in particular to a vehicle message recording device and system. Background Art
[0002] In order to meet the more complex functional requirements of automobiles, the amount of data transmitted between in-vehicle controllers is gradually increasing, and the transmission rate is also required to be faster. Therefore, CAN FD (Controller Area Network Flexible Date-Rate) communication and in-vehicle Ethernet communication are widely used between in-vehicle controllers.
[0003] In the process of automotive electrical appliance development and debugging, and vehicle production, in order to analyze electrical problems, it is usually necessary to record the communication messages between in-vehicle controllers, including CAN / CANFD messages and vehicle Ethernet messages. In the vehicle environment, in order to record messages more specifically, it is usually necessary to send diagnostic instructions to certain controllers during the recording process in order to record the response messages of the controllers when performing specific actions. Summary of the invention
[0004] In order to solve at least one aspect of the above problems, the present invention provides a vehicle message recording device, including: a controller module, a diagnostic communication module, a message recording module, a storage module, and a switch module. The controller module is connected to the on-board diagnostic system of the target vehicle through the diagnostic communication module. The controller module is also used to output diagnostic instructions, and the output diagnostic instructions are used to control the on-board diagnostic system to perform diagnostic operations. The switch module is used to receive input instructions, and the input instructions include an on instruction and a off instruction. The controller module responds to the on instruction to connect to the target vehicle through the message recording module to record message data. The storage module is used to store the message data recorded by the controller module. The controller module stops recording message data in response to the off instruction.
[0005] Preferably, the message recording module comprises an Ethernet message recording unit and a controller area network bus recording unit.
[0006] Preferably, the Ethernet message recording unit includes a first Ethernet transceiver and a second Ethernet transceiver, the first Ethernet transceiver is used to provide a first Ethernet interface, the second Ethernet transceiver is used to provide a second Ethernet interface, the controller module includes a first media access controller, a second media access controller and a bridge unit, the first media access controller is connected in series with the second media access controller through the bridge unit, the first media access controller is connected to the first Ethernet transceiver, and the second media access controller is connected to the second Ethernet transceiver.
[0007] Preferably, the controller area network bus recording unit includes a bus transceiver, a serial interface and a bus interface converter, the bus transceiver is used to connect to the vehicle bus interface, the controller module includes a serial peripheral interface controller and a controller area network bus controller, the serial peripheral interface controller is connected to the bus transceiver via the serial interface and the bus interface converter, and the controller area network bus controller is connected to the bus transceiver.
[0008] Preferably, the switch module includes a first switch and a second switch, the first switch is used to receive the input instruction, the second switch is used to receive the Ethernet rate adjustment instruction, and the controller module controls the communication rate of the Ethernet message recording unit in response to the received Ethernet rate adjustment instruction.
[0009] Preferably, the diagnostic communication module includes a universal serial bus to Ethernet unit and an interface unit, the interface unit includes an Ethernet pin, a bus pin and an on-board diagnostic interface, the universal serial bus to Ethernet unit is connected to the Ethernet pin, the bus pin is used to connect to the interface of the bus transceiver, and the on-board diagnostic interface is used to connect to the on-board diagnostic system.
[0010] Preferably, it further comprises a communication module, the communication module comprises a wireless communication unit and a wired communication unit, and the communication module is used to connect to a control terminal.
[0011] Preferably, it further comprises an indicator light module, the indicator light module comprises a plurality of indicator lights, the controller module is electrically connected to the plurality of indicator lights respectively, and the indicator lights are used to indicate the operating status of the controller module.
[0012] On the other hand, a vehicle message recording system is provided, including a control terminal and a vehicle message recording device, wherein the vehicle message recording device adopts any of the vehicle message recording devices described above, and a controller module of the vehicle message recording device is communicatively connected to the control terminal, and the control terminal is used to output a recording message instruction. The controller module responds to the recording message instruction by controlling the message recording module of the vehicle message recording device to connect to the target vehicle to record message data.
[0013] Preferably, the control terminal is used to output a message processing instruction, and the vehicle message recording device performs a corresponding operation in response to the message processing instruction, and the message processing instruction includes viewing, downloading and deleting message data.
[0014] The vehicle message recording device and system of the embodiment of the present invention have the following beneficial effects: it can record multiple CAN / CANFD messages and vehicle Ethernet messages at the same time. It can receive UDS (Unified Diagnostic Services) diagnostic instructions from the control terminal or execute the pre-written UDS diagnostic program, and send the UDS diagnostic instructions to the vehicle through the OBD interface to realize the DoCAN or DoIP diagnostic function. It can synchronously perform diagnostic communication with the vehicle through the OBD interface while recording the message, so as to realize targeted recording of the message. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to better understand the above and other purposes, features, advantages and functions of the present invention, reference may be made to the embodiments shown in the accompanying drawings. The same reference numerals in the accompanying drawings refer to the same components. It should be understood by those skilled in the art that the accompanying drawings are intended to schematically illustrate the preferred embodiments of the present invention and have no limiting effect on the scope of the present invention, and the components in the drawings are not drawn to scale.
[0016] Figure 1 A structural block diagram of a vehicle message recording device and system according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0017] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0018] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0019] In order to at least partially solve the above-mentioned problems and one or more of other potential problems, an embodiment of the present disclosure proposes a vehicle message recording device, including: a controller module, a diagnostic communication module, a message recording module, a storage module, and a switch module. The controller module is connected to the on-board diagnostic system of the target vehicle through the diagnostic communication module. The controller module is also used to output diagnostic instructions, and the output diagnostic instructions are used to control the on-board diagnostic system to perform diagnostic operations. The switch module is used to receive input instructions, and the input instructions include an on instruction and a off instruction. The controller module connects to the target vehicle through the message recording module to record message data in response to the on instruction. The storage module is used to store the message data recorded by the controller module. The controller module stops recording message data in response to the off instruction.
[0020] Specifically, Figure 1 As shown, the controller module uses a SoC chip (System on Chip). The SoC chip integrates a processor core (CPU) and multiple input and output (I / O) controllers, runs the Linux operating system and message recording program, and is connected to each functional module in hardware and controls them to work together.
[0021] The diagnostic communication module includes an OBD (On Board Diagnostics) interface, which is used to connect to the on-board diagnostic system of the target vehicle. The controller module is also used to output diagnostic instructions. The controller module includes a preset UDS (Unified Diagnostic Services) diagnostic program. When the UDS diagnostic program is running, it generates diagnostic instructions. The diagnostic instructions are output to the on-board diagnostic system through the diagnostic communication module, and the on-board diagnostic system performs diagnostic operations in response to the diagnostic instructions.
[0022] The switch module is used to receive input instructions. In some embodiments, the user manually controls the switch module to implement the input instructions. In other embodiments, the user controls the switch module to implement the input instructions by outputting an electrical signal through a remote controller.
[0023] The controller module receives input instructions through electrical connection with the switch module. The controller module includes a preset message recording program. The controller module runs the message recording program in response to the received start instruction, and connects to the network of the target vehicle through the message recording module to receive the vehicle's message data, and records the received message data. In some embodiments, the SoC chip of the controller module integrates an SDIO (Secure Digital Input and Output) controller, and the storage module uses an eMMC (Embedded Multi Media Card) memory to achieve large-capacity storage. The SDIO controller of the controller module stores the recorded message data through an external eMMC memory. In addition, the storage module is also used to store the operating system of the SoC, message recording program files, etc. The controller module terminates the message recording program and stops message recording in response to the received shutdown instruction.
[0024] The integrated controller module, diagnostic communication module, message recording module, storage module, switch module, etc. of the vehicle message recording device can simultaneously conduct diagnostic communication with the vehicle through the OBD interface while recording message data, thereby realizing targeted recording of message data.
[0025] In some embodiments, the message recording module includes an Ethernet message recording unit and a controller area network bus recording unit.
[0026] Specifically, the Ethernet message recording unit is used to connect to the vehicle Ethernet so that the controller module can obtain the message data of the vehicle Ethernet through the Ethernet message recording unit. The controller area network bus recording unit is used to connect to the vehicle controller area network bus so that the controller module can obtain the message data of the vehicle control area network bus through the controller area network bus recording unit.
[0027] In some embodiments, the Ethernet message recording unit includes a first Ethernet transceiver and a second Ethernet transceiver, the first Ethernet transceiver is used to provide a first Ethernet interface, the second Ethernet transceiver is used to provide a second Ethernet interface, the controller module includes a first media access controller, a second media access controller and a bridge unit, the first media access controller is connected in series with the second media access controller through the bridge unit, the first media access controller is connected to the first Ethernet transceiver, and the second media access controller is connected to the second Ethernet transceiver.
[0028] Specifically, Figure 1As shown, the first Ethernet transceiver is the vehicle Ethernet PHY1 (Port Physical Layer), which provides the vehicle Ethernet interface 1 and the first Ethernet interface, and the second Ethernet transceiver is the vehicle Ethernet PHY2, which provides the vehicle Ethernet interface 2. The controller module SoC also includes two MAC controllers (Media Access Control). Among them, the MAC controller 1 is connected to the vehicle Ethernet PHY1 to obtain the vehicle Ethernet interface 1; the MAC controller 2 is connected to the vehicle Ethernet PHY2 to obtain the vehicle Ethernet interface 2. By setting a bridge in the SoC through software, the MAC controller 1 and the MAC controller 2 are bridged and connected in series, and the vehicle Ethernet interface 1 and the vehicle Ethernet interface 2 are connected in series to the vehicle Ethernet line of the target vehicle, the vehicle Ethernet data can flow into the MAC controller 1 and the MAC controller 2 and then flow out. By capturing the data in the MAC controller 1 or the MAC controller 2 through software in the SoC, the vehicle Ethernet message data can be obtained, which can be further processed (including storing as a file and sending to the control terminal).
[0029] In some embodiments, the controller area network bus recording unit includes a bus transceiver, a serial interface and a bus interface converter, the bus transceiver is used to connect to the vehicle bus interface, the controller module includes a serial peripheral interface controller and a controller area network bus controller, the serial peripheral interface controller is connected to the bus transceiver via the serial interface and the bus interface converter, and the controller area network bus controller is connected to the bus transceiver.
[0030] Specifically, Figure 1 As shown, the bus transceiver uses a CANFD (CAN with Flexible Data-Rate) transceiver, the serial interface and bus interface converter uses an SPI to CANFD chip, and the SoC of the controller module also includes two CANFD controllers and an SPI (Serial Peripheral Interface) controller. After the SoC's CANFD controller is connected to the CANFD transceiver, CANFD interface 1 and CANFD interface 2 can be obtained; the SoC's SPI controller is connected to the SPI to CANFD chip, which can expand multiple CANFDs, and then connected to the CANFD transceiver to obtain CANFD interface 3 and CANFD interface 4. The four CANFD interfaces are connected to the vehicle CAN / CANFD bus, and the vehicle CAN / CANFD data can be received into the SoC for processing (including storage as a file and sending to the control terminal).
[0031] In some embodiments, the switch module includes a first switch and a second switch, the first switch is used to receive input instructions, the second switch is used to receive Ethernet rate adjustment instructions, and the controller module controls the communication rate of the Ethernet message recording unit in response to the received Ethernet rate adjustment instructions.
[0032] Specifically, Figure 1 As shown, the SoC also integrates a GPIO (General Purpose Input / Output) controller, which is externally connected to two switch circuits. The SoC can obtain the state of the switch by reading the level state of the GPIO pin corresponding to the switch. The state of the first switch is used to control the message recording program to start or end recording the message, and the state of the second switch can be used to set the communication rate of the vehicle Ethernet PHY to 100Mbit / s or 1000Mbit / s.
[0033] In some embodiments, the diagnostic communication module includes a universal serial bus to Ethernet unit and an interface unit, the interface unit includes an Ethernet pin, a bus pin and an on-board diagnostic interface, the universal serial bus to Ethernet unit is connected to the Ethernet pin, the bus pin is used to connect to the interface of the bus transceiver, and the on-board diagnostic interface is used to connect to the on-board diagnostic system.
[0034] Specifically, the diagnostic communication module supports two modes: DoIP (Diagnostic over Internet Protocol, an automotive diagnostic protocol based on IP) and DoCAN (Diagnostic over CAN, a diagnostic communication based on CAN bus).
[0035] like Figure 1 As shown, the universal serial bus to Ethernet unit includes a USB to Ethernet chip, and the interface unit is used to provide an OBD diagnostic communication interface, including an Ethernet pin, a CANFD pin and an OBD interface.
[0036] The first is the Ethernet pin. The SoC includes a USB controller. The USB controller is connected to the USB-to-Ethernet chip, and then to the Ethernet pin of the OBD interface. Combined with the DoIP diagnostic communication program in the SoC, the DoIP diagnostic communication between the SoC and the vehicle can be realized. The second is the CANFD pin. The CANFD controller of the SoC is connected to the CANFD transceiver, and then to the CANFD pin of the CANFD interface 1 and the OBD. The two are multiplexed. Combined with the DoCAN diagnostic communication program in the SoC, the DoCAN diagnostic communication between the SoC and the vehicle can be realized.
[0037] In some embodiments, a communication module is also included, the communication module includes a wireless communication unit and a wired communication unit, and the communication module is used to connect to the control terminal.
[0038] Specifically, Figure 1 As shown, the implementation scheme of the controller module through the communication wired communication module is: a USB (Universal Serial Bus) controller with PHY is integrated in the SoC, and an external USB3.0 interface is connected. A wired connection can be established between the SoC and the control terminal through the USB data cable to realize wired communication.
[0039] The implementation scheme of the wireless communication module is: an SDIO (Secure Digital Input and Output) controller is integrated in the SoC, and an external WiFi module with an SDIO interface is connected to enable the SoC to communicate with the control terminal via WiFi.
[0040] In some embodiments, an indicator light module is also included. The indicator light module includes a plurality of indicator lights. The controller module is electrically connected to the plurality of indicator lights respectively. The indicator lights are used to indicate the operating status of the controller module.
[0041] Specifically, Figure 1 As shown, the SoC of the controller module also includes a GPIO (General Purpose Input / Output) controller, which is externally connected to 8 LED indicator lights. The SoC turns the LED lights on or off by controlling the level of the LED corresponding to the GPIO pin. The turning on or off of the LED lights can be used to indicate various working states of the device.
[0042] On the other hand, a vehicle message recording system is provided, including a control terminal and a vehicle message recording device. The vehicle message recording device adopts any of the previous vehicle message recording devices. The controller module of the vehicle message recording device is communicatively connected with the control terminal. The control terminal is used to output recording message instructions. The controller module responds to the recording message instructions and connects to the target vehicle through the message recording module of the vehicle message recording device to record message data.
[0043] Specifically, Figure 1 As shown, after the vehicle message recording device is powered on and connected to the CAN / CANFD bus and the vehicle Ethernet line, it is connected to the control terminal via USB or WiFi, and the controller module of the vehicle message recording device responds to the recording message instruction output by the control terminal to start recording the message. During the message recording process, the message data is automatically stored in the storage module in the device, and the LED light in the LED module flashes regularly, indicating that the message data is being recorded. The control terminal outputs a recording stop instruction, and the controller module of the vehicle message recording device responds to the recording stop instruction to stop recording the message data.
[0044] In some embodiments, the control terminal is used to output message processing instructions, and the vehicle message recording device performs corresponding operations in response to the message processing instructions, and the message processing instructions include viewing, downloading and deleting message data.
[0045] Specifically, after the vehicle message recording device is powered on and connected to the CAN / CANFD bus and the vehicle Ethernet line, it is connected to the control terminal via USB or WiFi. The controller module of the vehicle message recording device starts recording messages in response to the recording message instruction output by the control terminal, and the message data is automatically stored in the storage module of the vehicle message recording device. In response to the message return instruction output by the control terminal, the control terminal receives the message data in real time through the storage module of the vehicle message recording device. In another embodiment, the message processing instruction output by the control terminal also includes a message viewing instruction, a message download instruction, and a message deletion instruction. The vehicle message recording device outputs the message data in response to the received message viewing instruction, copies and outputs the message data in response to the message download instruction, and deletes the message data in response to the message deletion instruction.
[0046] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the present invention.
Claims
1. A vehicle message recording device, characterized in that: include: A controller module, a diagnostic communication module, a message recording module, a storage module, and a switch module. The controller module is connected to the on-board diagnostic system of the target vehicle through the diagnostic communication module. The controller module is also used to output diagnostic instructions. The output diagnostic instructions are used to control the on-board diagnostic system to perform diagnostic operations. The switch module is used to receive input instructions. The input instructions include an on instruction and a off instruction. The controller module connects to the target vehicle through the message recording module in response to the on instruction to record message data. The storage module is used to store the message data recorded by the controller module. The controller module stops recording message data in response to the off instruction.
2. The device according to claim 1, characterized in that The message recording module includes an Ethernet message recording unit and a controller area network bus recording unit.
3. The device according to claim 2, characterized in that The Ethernet message recording unit includes a first Ethernet transceiver and a second Ethernet transceiver, the first Ethernet transceiver is used to provide a first Ethernet interface, and the second Ethernet transceiver is used to provide a second Ethernet interface. The controller module includes a first media access controller, a second media access controller and a bridge unit, the first media access controller is connected in series with the second media access controller through the bridge unit, the first media access controller is connected to the first Ethernet transceiver, and the second media access controller is connected to the second Ethernet transceiver.
4. The device according to claim 3, characterized in that The controller area network bus recording unit includes a bus transceiver, a serial interface and a bus interface converter. The bus transceiver is used to connect to the vehicle bus interface. The controller module includes a serial peripheral interface controller and a controller area network bus controller. The serial peripheral interface controller is connected to the bus transceiver via the serial interface and the bus interface converter. The controller area network bus controller is connected to the bus transceiver.
5. The device according to claim 4, characterized in that The switch module includes a first switch and a second switch, the first switch is used to receive the input instruction, the second switch is used to receive the Ethernet rate adjustment instruction, and the controller module controls the communication rate of the Ethernet message recording unit in response to the received Ethernet rate adjustment instruction.
6. The device according to claim 5, characterized in that The diagnostic communication module includes a universal serial bus to Ethernet unit and an interface unit, wherein the interface unit includes an Ethernet pin, a bus pin and an on-board diagnostic interface, the universal serial bus to Ethernet unit is connected to the Ethernet pin, the bus pin is used to connect to the interface of the bus transceiver, and the on-board diagnostic interface is used to connect to the on-board diagnostic system.
7. The device according to claim 1, characterized in that It also includes a communication module, which includes a wireless communication unit and a wired communication unit, and is used to connect to a control terminal.
8. The device according to claim 1, characterized in that It also includes an indicator light module, which includes a plurality of indicator lights. The controller module is electrically connected to the plurality of indicator lights respectively, and the indicator lights are used to indicate the operating status of the controller module.
9. A vehicle message recording system, characterized in that: It includes a control terminal and a vehicle message recording device, the vehicle message recording device adopts the vehicle message recording device as described in any one of claims 1-8, the controller module of the vehicle message recording device is communicatively connected with the control terminal, the control terminal is used to output a recording message instruction, and the controller module responds to the recording message instruction by connecting to a target vehicle through the message recording module of the vehicle message recording device to record message data.
10. The system according to claim 9, characterized in that The control terminal is used to output a message processing instruction, and the vehicle message recording device performs a corresponding operation in response to the message processing instruction. The message processing instruction includes viewing, downloading and deleting message data.