Message simulator and whole vehicle test system
By designing a message simulator, the problem of the lack of CAN/LIN bus environment of the test bench is solved, effective testing and message analysis of on-board modules are realized, and message simulation and storage functions are supported.
Patent Information
- Application Number
- CN202422363328.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2034-09-26
AI Technical Summary
The existing test bench lacks a CAN/LIN bus environment and cannot effectively simulate CAN/LIN messages, resulting in the inability to upgrade or interact with special functions of on-board modules with information security requirements.
A message simulator is designed, including a microcontroller, display and interface components, with USB, CAN and LIN interfaces, which can simulate the transmission and reception of CAN/LIN messages, and provide the CAN/LIN bus environment of the vehicle test system.
It realizes effective testing of on-board modules with information security requirements, pre-stores the message sequence through the SD card and displays it on the display, supports the selection of messages and automatic packet capture storage, and provides playback and analysis functions of CAN/LIN messages.
Smart Images

Figure CN223231198U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to a message simulator and a whole vehicle testing system. Background Art
[0002] For in-vehicle modules with information security requirements, upgrades or special function interactions must be performed in a corresponding bus environment. Conventional test benches lack a bus environment, so a message simulator is needed to simulate bus messages. Utility Model Content
[0003] The purpose of the utility model is to provide a message simulator and a whole vehicle test system, which can simulate the sending and receiving of CAN / LIN messages and provide a CAN / LIN bus environment for the whole vehicle test system, so as to test vehicle-mounted modules with information security requirements.
[0004] The utility model discloses a message simulator, which comprises a microcontroller, a display and an interface component. The display and the interface component are respectively connected to the microcontroller; the interface component comprises a USB interface, at least two CAN interfaces and at least two LIN interfaces.
[0005] Optionally, the CAN interface includes a CAN FD interface.
[0006] Optionally, corresponding interface chips are respectively provided between the USB interface, the CAN interface, the LIN interface and the microcontroller.
[0007] Optionally, the interface component further includes a power supply interface, which is connected to a corresponding interface chip of the LIN interface.
[0008] Optionally, an SD card slot is further included, and the SD card slot is connected to the microcontroller.
[0009] Optionally, a key component is further included, and the key component is connected to the microcontroller.
[0010] Optionally, a buzzer is further included, and the buzzer is connected to the microcontroller.
[0011] Optionally, the interface component further includes a debugging interface, and the debugging interface is connected to the microcontroller.
[0012] Optionally, a shell is further included, the microcontroller is arranged in the shell, and the display and the interface component are arranged on the shell.
[0013] The utility model also discloses a whole vehicle testing system, which comprises the message simulator mentioned above.
[0014] Compared with the prior art, the main differences and effects of this utility model are:
[0015] According to the message simulator of the present invention, the sending and receiving of CAN / LIN messages can be simulated through the CAN interface and the LIN interface respectively, thereby simulating the CAN / LIN bus environment of the entire vehicle.
[0016] The SD card can pre-store the message sequence to be sent and display it on the display. The message to be sent can be selected through the key component.
[0017] Automatically captured CAN / LIN messages can be stored in an SD card and replayed or analyzed by connecting it to a computer via the USB interface. Alternatively, the SD card can be removed and connected to a computer via a card reader for replay or analysis.
[0018] In addition, after connecting to the computer via the USB interface, the computer can also perform tasks such as sending and receiving / simulating / parsing / analyzing CAN / LIN messages. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1A It is a schematic diagram of the overall structure of the message simulator according to the utility model;
[0020] Figure 1B It is a schematic diagram of the structural decomposition of the message simulator according to the utility model;
[0021] Figure 1C It is a schematic diagram of the structure of the message simulator according to the utility model on the right side;
[0022] Figure 1D It is a schematic diagram of the left side of the structure of the message simulator according to the utility model;
[0023] Figure 2 It is a schematic diagram of the functional modules of the message simulator according to the present utility model. DETAILED DESCRIPTION
[0024] To make the purpose and technical solutions of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the described embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] The utility model relates to a message simulator.
[0026] Figure 1A This is a schematic diagram of the overall structure of the message simulator according to the present invention. Figure 1B This is a schematic diagram of the structural decomposition of the message simulator according to the present invention. Figure 1C It is a schematic diagram of the structure of the message simulator according to the utility model on the right side, and Figure 1D It is a schematic diagram of the left side of the structure of the message simulator according to the utility model.
[0027] like Figures 1A to 1D As shown, the message simulator may include an upper shell 1 , a lower shell 2 and a circuit board assembly 3 .
[0028] In one embodiment, mounting holes 4 may be provided on the upper shell 1 and the lower shell 2 respectively, and fasteners 5 may be provided on the circuit board assembly 3. The upper shell 1 and the lower shell 2 may be combined together through the mounting holes 4 and the fasteners 5 to form a shell with an internal space.
[0029] Alternatively or additionally, in one embodiment, the upper shell 1 and the lower shell 2 may be provided with snap-fitting members respectively, and the upper shell 1 and the lower shell 2 may be combined together to form a shell with an internal space through the snap-fitting members.
[0030] The circuit board assembly 3 may be disposed inside the housing or extend onto the housing.
[0031] In one embodiment, the circuit board assembly 3 may include a microcontroller 31, a display 32, and an interface assembly, and the display 32 and the interface assembly may be respectively connected to the microcontroller 31. As an example, the microcontroller 31 may be an STM32 series chip, such as an STM32H750 chip.
[0032] In one embodiment, the microcontroller 31 can be disposed in the housing, and the display 32 and the interface assembly can be disposed on the housing. More specifically, the display 32 and the interface assembly can extend from the housing to the housing.
[0033] In one embodiment, the interface assembly may include a USB interface 331 , at least two CAN interfaces 332 a , 332 b , and at least two LIN interfaces 333 a , 333 b .
[0034] The USB interface 331 can be connected to a computer. At least two CAN interfaces 332a and 332b can operate independently, with their terminal resistors configurable by hardware and equipped with DIP switches 334a and 334b to enable or disable the terminal resistors. The master / slave modes of at least two LIN interfaces 333a and 333b can be configured by hardware and equipped with DIP switches 335a and 335b for control.
[0035] As an example, the CAN interface 332a can be used for sending wake-up messages and displaying status of the entire vehicle / test bench, the CAN interface 332b can provide diagnostic and refresh functions, such as refreshing and calibrating the microcontroller 31, UDS (Unified Diagnostic Services), etc., and the LIN interfaces 333a, 333b can be used to connect LIN peripherals such as piano keys, and simulate LIN message transmission and reception.
[0036] In one embodiment, the CAN interfaces 332 a and 332 b may include CAN FD interfaces, thereby increasing the transmission rate, having higher bandwidth, shorter latency, and better real-time performance.
[0037] In one embodiment, the circuit board assembly 3 may include an SD card slot 336, which may be connected to the microcontroller 31. The SD card slot 336 is used to accommodate an SD card, which may pre-store a message sequence to be sent.
[0038] In one embodiment, the circuit board assembly 3 may include key assemblies 337a, 337b, which may be connected to the microcontroller 31. The key assemblies 337a, 337b may provide customized settings and selections of menus and functions, and may be linked to the display 32. The selected menus and functions may be displayed on the display 32, and whether the customized functions are activated may be displayed.
[0039] As an example, button component 337a can be defined as returning to the home page, scrolling up the menu, and scrolling down the menu, etc., and button component 337b can be defined as switching of sending / stopping of CAN interface, gear switching, vehicle speed switching, power mode switching, vehicle model switching, and one-button full transmission for vehicle computer refresh, etc.
[0040] In one embodiment, the circuit board assembly 3 may include a buzzer 338, which may be connected to the microcontroller 31. The buzzer 338 may provide a prompt tone under set circumstances.
[0041] In one embodiment, the interface component may include a debug interface 339, which may be connected to the microcontroller 31. The debug interface 339 may be used to program and debug the microcontroller 31.
[0042] In one embodiment, the interface component may include a power supply interface 3310. Although the message simulator can be connected to the computer via the USB interface 331 to provide power, when using the LIN interface 333a, 333b, it is necessary to connect an external power supply (such as a 12V power supply) via the power supply interface 3310.
[0043] In one embodiment, the circuit board assembly 3 may reserve a dial switch 3311 for configuration, such as vehicle type configuration, and may reserve an input / output interface 3312 .
[0044] According to the message simulator of the present invention, the sending and receiving of CAN / LIN messages can be simulated through the CAN interfaces 332a, 332b and the LIN interfaces 333a, 333b, respectively, thereby simulating the CAN / LIN bus environment of the entire vehicle.
[0045] The SD card can pre-store a sequence of messages to be sent and display them on the display 32 , and the message to be sent can be selected through the key components 337 a , 337 b .
[0046] The automatically captured CAN / LIN messages can be stored in the SD card and can be replayed or analyzed after connecting to a computer via the USB interface 331, or the SD card can be removed and connected to a computer via a card reader for replay or analysis.
[0047] In addition, after connecting to a computer via the USB interface 331 , the computer can also perform tasks such as sending and receiving, simulating, parsing, and analyzing CAN / LIN messages.
[0048] Figure 2 It is a schematic diagram of the functional modules of the message simulator according to the present utility model.
[0049] like Figure 2 As shown and referring to FIG. 1 , in one embodiment, corresponding interface chips 3313 , 3314 , 3315 may be provided between the USB interface 331 , the CAN interfaces 332 a , 332 b , the LIN interfaces 333 a , 333 b and the microcontroller 31 , respectively.
[0050] As an example, interface chip 3313 of USB interface 331 can be a CH340 chip, interface chip 3314 of CAN interfaces 332a and 332b can be a SIT1042 chip, and interface chip 3315 of LIN interfaces 333a and 333b can be a SIT1021 chip. The USB interface 331 and interface chip 3313 can support the UART protocol, the CAN interfaces 332a and 332b can support the CAN FD protocol, and the LIN interfaces 333a and 333b can support the LIN protocol.
[0051] In one embodiment, the power supply interface 3310 can be connected to the corresponding interface chip 3315 of the LIN interface 333a, 333b, so that when the LIN interface 333a, 333b is used, an external power supply (such as a 12V power supply) can be connected via the power supply interface 3310.
[0052] In one embodiment, the interface chips 3313, 3314, and 3315 can be connected to the UART pins of the microcontroller 31 respectively, the button components 337a and 337b can be connected to the GPIOs pins of the microcontroller 31, the display 32 can be connected to the I2C pins of the microcontroller 31, the debug interface 339 can be connected to the SWD / UART pins of the microcontroller 31, and the SD card slot 336 can be connected to the SDIO pins of the microcontroller 31.
[0053] The utility model also relates to a whole vehicle testing system comprising the message simulator.
[0054] In one embodiment, the vehicle test system may further include a test bench, and the vehicle-mounted module may be tested through the message simulator and the test bench.
[0055] The message simulator according to the present invention can simulate the sending and receiving of CAN / LIN messages, and provide a CAN / LIN bus environment for a whole vehicle test system, thereby being able to test vehicle-mounted modules with information security requirements.
[0056] It should be noted that in the claims and description of this patent, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0057] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may not be included, may be modified, or may be combined with other features.
[0058] Although the present invention has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.
Claims
1. A message simulator, characterized in that: The system comprises a microcontroller, a display and an interface component, wherein the display and the interface component are respectively connected to the microcontroller; the interface component comprises a USB interface, at least two CAN interfaces and at least two LIN interfaces.
2. The message simulator according to claim 1, characterized in that The CAN interface includes a CAN FD interface.
3. The message simulator according to claim 1 or 2, characterized in that: Corresponding interface chips are respectively arranged between the USB interface, the CAN interface, the LIN interface and the microcontroller.
4. The message simulator according to claim 3, characterized in that The interface component further comprises a power supply interface, which is connected to a corresponding interface chip of the LIN interface.
5. The message simulator according to claim 1, characterized in that It also includes an SD card slot, which is connected to the microcontroller.
6. The message simulator according to claim 1, characterized in that: It also includes a key component, which is connected to the microcontroller.
7. The message simulator according to claim 1, characterized in that: The device further comprises a buzzer, which is connected to the microcontroller.
8. The message simulator according to claim 1, characterized in that: The interface component further includes a debugging interface, which is connected to the microcontroller.
9. The message simulator according to claim 1, characterized in that: It also includes a housing, the microcontroller is arranged in the housing, and the display and the interface component are arranged on the housing.
10. A vehicle testing system, characterized in that: The method comprises the message simulator according to any one of claims 1 to 9.