Vehicle Ethernet data capture device, method and storage medium
By using the MCU module, cache module, and vehicle Ethernet interface unit in the vehicle Ethernet data capture device, combined with the USB interface unit, it solves the problem of hardly capture the car Ethernet data in the existing technology, and achieves fast and direct data. Capture and forwarding.
Patent Information
- Application Number
- CN202411301085.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-09-18
AI Technical Summary
In the prior art, it is difficult to efficiently capture vehicle Ethernet data for on-board devices, especially when there is no network card or network permissions.
Provide a vehicle Ethernet data capture device, including MCU modules, cache modules, and at least two vehicle Ethernet interface units. It connects the terminal device through the USB interface unit to achieve rapid capture and reposting of the car Ethernet data.
In the case of the case without terminal devices as a transit, it is efficiently and quickly captured the car Ethernet data and forwarded it to another vehicle device or uploaded to the terminal equipment.
Smart Images

Figure CN118827277B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle-mounted Ethernet, and in particular to a vehicle-mounted Ethernet data capture device, method and storage medium. Background Art
[0002] As an efficient and reliable data transmission method, automotive Ethernet is increasingly used in the automotive industry. It can not only support high-speed data communication between modules inside the vehicle, but also provide network access services for various devices inside and outside the vehicle.
[0003] With the development of the automobile industry, more and more attention is paid to the monitoring and troubleshooting of vehicle-mounted Ethernet data. In related technologies, RJ45 network ports are usually used to capture and analyze multi-port vehicle-mounted Ethernet data. However, the inventors have found that the above scheme cannot meet application requirements well in some scenarios. For example, when there is no network card or network permission on terminals such as laptops and tablets, it is impossible to capture the corresponding vehicle-mounted Ethernet data of vehicle-mounted devices through the RJ45 network port. Summary of the invention
[0004] The present application provides an in-vehicle Ethernet data capture device, method and storage medium, which solves the problem that the data capture method of in-vehicle equipment in the related art is difficult to efficiently capture in-vehicle Ethernet data. The present application can quickly capture in-vehicle Ethernet data and forward it to another in-vehicle equipment without the need for a terminal device as a transfer device, thereby achieving efficient and rapid capture of in-vehicle Ethernet data.
[0005] In a first aspect, the present application provides an in-vehicle Ethernet data capture device, which is used to connect a terminal device and an in-vehicle device, and the in-vehicle Ethernet data capture device includes an MCU module, a cache module, and at least two in-vehicle Ethernet interface units;
[0006] The MCU module includes a USB interface unit and multiple MAC interfaces, and the USB interface unit is used to connect to the terminal device;
[0007] Each vehicle Ethernet interface unit is connected to a MAC interface in the MCU module, and each vehicle Ethernet interface unit is also used to connect to ECU modules of different vehicle devices;
[0008] The cache module is connected to the MCU module, and the cache module is used to temporarily store the vehicle Ethernet data received by the MCU module through the vehicle Ethernet interface;
[0009] Among them, the vehicle Ethernet interface unit is used to receive the first vehicle Ethernet data uploaded by the vehicle-mounted device and transmit the first vehicle Ethernet data to the MCU module; the MCU module is used to store the received first vehicle Ethernet data to the cache module, and send the second vehicle Ethernet data obtained from the cache module to another vehicle Ethernet interface unit or upload it to the terminal device through the USB interface unit; the vehicle Ethernet interface unit is also used to receive the second vehicle Ethernet data and transmit the second vehicle Ethernet data to the vehicle-mounted device.
[0010] In a second aspect, the present application further provides a vehicle Ethernet data capture method, which is applied to the vehicle Ethernet data capture device of the first aspect, and the vehicle Ethernet data capture method includes:
[0011] Determine the ECU module that the vehicle Ethernet interface unit is connected to the vehicle equipment;
[0012] In the case of receiving vehicle Ethernet data uploaded by any vehicle-mounted device, receiving captured data through the first target MAC interface in the MCU module, where the captured data is the vehicle Ethernet data transmitted from the vehicle-mounted device to the vehicle Ethernet interface unit through the ECU interface, and the first target MAC interface is the MAC interface connected to the vehicle Ethernet interface unit that transmits the vehicle Ethernet data;
[0013] Write the capture data in the preset capture buffer queue;
[0014] When the target vehicle-mounted device to be forwarded is determined, the captured data obtained from the capture buffer queue is forwarded to the corresponding vehicle-mounted Ethernet interface unit through the second target MAC interface, so as to be transmitted to the target vehicle-mounted device through the vehicle-mounted Ethernet interface unit;
[0015] When it is determined that the USB interface unit is connected to the terminal device, the captured data in the capture buffer queue is uploaded to the terminal device based on the USB interface unit.
[0016] In a third aspect, the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the vehicle-mounted Ethernet data capture method as described in the second aspect.
[0017] The vehicle Ethernet data capture device of the present application can provide a transmission channel between various vehicle-mounted devices and between the vehicle-mounted devices and the terminal devices to realize the capture of vehicle Ethernet data. It can be imagined that the device realizes the vehicle Ethernet data exchange function through the MCU module, and uses the USB interface unit, without the need for expensive vehicle Ethernet switch chips and additional network cards, to achieve communication with the terminal device, making data transmission more direct and efficient, so that the terminal device can directly capture the vehicle Ethernet data, which helps to capture the vehicle Ethernet data efficiently and quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of the structure of an in-vehicle Ethernet device provided in one embodiment of the present application.
[0019] Figure 2 A flowchart of the steps of a vehicle Ethernet data capture method provided in one embodiment of the present application.
[0020] Figure 3 A block diagram of the principles of transmitting vehicle Ethernet data provided by an embodiment of the present application.
[0021] Figure 4 A schematic diagram of the circuit structure of an interface circuit provided in one embodiment of the present application.
[0022] Figure 5 A schematic diagram of the circuit structure of a physical layer interface subunit provided in one embodiment of the present application.
[0023] Reference numerals:
[0024] Terminal device 101 , vehicle-mounted device 102 , MCU module 110 , USB interface unit 111 , MAC interface 112 , cache module 120 , and vehicle-mounted Ethernet interface unit 130 . DETAILED DESCRIPTION
[0025] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present application, rather than to limit the embodiments of the present application. It should also be noted that, for ease of description, only the parts related to the embodiments of the present application rather than all structures are shown in the accompanying drawings, and those skilled in the art should be able to think of it after reading the specification of this application that as long as the technical features do not contradict each other, any combination of the technical features can constitute an optional implementation method.
[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable when appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated before and after are in an "or" relationship. In the description of the present application, "multiple" means two or more, and "several" means one or more.
[0027] With the rapid development of automotive electronic technology, automotive Ethernet, as an efficient and reliable data transmission method, is increasingly used in the automotive industry. Automotive Ethernet can not only support high-speed data communication between modules inside the vehicle, but also provide network access services for various devices inside and outside the vehicle. However, as automotive Ethernet systems become increasingly complex, the industry is paying more and more attention to the monitoring and troubleshooting of automotive Ethernet data. How to quickly and effectively capture, analyze and process data in automotive Ethernet has become a technical problem that the industry urgently needs to solve.
[0028] The related technology uses the RJ45 network port to capture and analyze the vehicle Ethernet data, but in some special scenarios, such as when the laptop has no network card, network permissions and system power supply are inconvenient, this method is difficult to effectively capture and analyze the vehicle Ethernet data. That is, the data capture method for vehicle-mounted devices in the related technology is difficult to efficiently capture vehicle Ethernet data.
[0029] In this regard, the present application provides a vehicle Ethernet data capture device, which can capture the vehicle Ethernet data through USB and upload it to a terminal device for monitoring by the terminal device while forwarding the vehicle Ethernet data. Figure 1 As shown, Figure 1 This is a structural schematic diagram of a vehicle-mounted Ethernet data capture device provided in one embodiment of the present application. The vehicle-mounted Ethernet data capture device is used to connect a terminal device 101 and a vehicle-mounted device 102. The vehicle-mounted Ethernet data capture device includes an MCU (Microcontroller Unit) module 110, a cache module and at least two vehicle-mounted Ethernet interface units 130.
[0030] Specifically, the MCU module 110 includes a USB (Universal Serial Bus) interface unit 111 and multiple MAC (Media Access Control) interfaces 112, and the USB interface unit 111 is used to connect to the terminal device 101. Each vehicle Ethernet interface unit 130 is connected to a MAC interface 112 in the MCU module 110, and each vehicle Ethernet interface unit 130 is also used to connect to the ECU (Electronic Control Unit) modules of different vehicle devices 102. The cache module is connected to the MCU module 110, and the cache module is used to temporarily store the vehicle Ethernet data received by the MCU module 110 through the vehicle Ethernet interface unit 130. Optionally, in one embodiment, an SDRAM (Synchronous Dynamic Random-access Memory) module is used as a cache module to store the vehicle Ethernet data.
[0031] It is understandable that the vehicle Ethernet data is connected to the terminal device 101 through the USB interface unit 111. USB is a point-to-point direct connection technology that can easily connect the vehicle Ethernet data capture device directly to a computer or other USB host device without the need for additional network equipment or configuration, making data transmission more direct and efficient. In the case where there are multiple vehicle-mounted devices 102, such as when there are two vehicle-mounted devices 102, the vehicle Ethernet data capture device is connected to each vehicle-mounted device 102 through the vehicle Ethernet interface unit 130 thereon, that is, the vehicle Ethernet interface unit 130 is connected to the vehicle-mounted device 102 in a one-to-one correspondence, and each vehicle Ethernet interface unit 130 is connected to a different vehicle-mounted device 102. Of course, there are multiple MAC interfaces 112 on the MCU module 110, and similarly, each MAC interface 112 is connected to a different vehicle Ethernet interface unit 130.
[0032] In this regard, a vehicle Ethernet interface unit 130 receives the vehicle Ethernet data uploaded by the vehicle device 102 connected thereto through the ECU module, and the vehicle Ethernet data is recorded as the first vehicle Ethernet data, and the vehicle Ethernet interface unit 130 also transmits the first vehicle Ethernet data to the MCU module 110 .
[0033] The MCU module 110 stores the received first vehicle Ethernet data in the cache module. It is conceivable that when the MCU module 110 needs to forward or upload the vehicle Ethernet data, the MCU module 110 determines whether to forward and / or upload the vehicle Ethernet data by receiving the corresponding control signal or instruction, and then when the vehicle Ethernet data needs to be forwarded, the MCU module 110 obtains the vehicle Ethernet data (recorded as the second vehicle Ethernet data) from the cache module, and then sends the second vehicle Ethernet data to another vehicle Ethernet interface unit 130 to be transmitted to another vehicle device 102 through the vehicle Ethernet interface unit 130, thereby realizing data forwarding. Alternatively, when the second vehicle Ethernet data needs to be uploaded, the MCU module 110 can also upload the second vehicle Ethernet data to the terminal device 101 through the USB interface unit 111.
[0034] As mentioned above, the vehicle Ethernet data capture device can provide a transmission channel between various vehicle-mounted devices and between the vehicle-mounted devices and the terminal devices to realize the capture of vehicle Ethernet data. It can be imagined that the device realizes the vehicle Ethernet data exchange function through the MCU module, and uses the USB interface unit, without the need for expensive vehicle Ethernet switch chips and additional network cards, to achieve communication with the terminal device, making data transmission more direct and efficient, so that the terminal device can directly capture the vehicle Ethernet data, which helps to capture the vehicle Ethernet data efficiently and quickly.
[0035] Furthermore, the present application also provides a method for capturing vehicle Ethernet data. Figure 2 As shown, Figure 2 This is a flowchart of the steps of the vehicle Ethernet data capture method provided in an embodiment of the present application. The method is applied to the above-mentioned vehicle Ethernet data capture device, and the data is forwarded and / or uploaded by setting a capture cache queue. It can be imagined that when the vehicle Ethernet data capture device executes the vehicle Ethernet data capture method, the method is specifically executed by the MCU module thereon, and specifically includes steps S210-step S250:
[0036] Step S210: Determine that the vehicle Ethernet interface unit is connected to the ECU module of the vehicle device.
[0037] Before forwarding and / or uploading the vehicle Ethernet data of the vehicle-mounted device, the vehicle Ethernet data capture device needs to be connected to the vehicle-mounted device, such as the vehicle Ethernet interface unit connected to the ECU interface of the vehicle-mounted device, wherein the ECU interface is an interface on the ECU module of the vehicle-mounted device for connecting the vehicle Ethernet interface unit. In the case where the vehicle Ethernet interface unit is connected to the ECU interface of the vehicle-mounted device, it is deemed that the vehicle Ethernet interface unit is connected to the ECU module of the vehicle-mounted device. It is conceivable that the MCU module can determine whether the vehicle Ethernet interface unit is connected to the ECU interface of the vehicle-mounted device through corresponding signals and / or signal changes, such as through some input / output (I / O) pins thereon, and then the judgment of whether the vehicle Ethernet interface unit is connected to the ECU interface of the vehicle-mounted device can be realized by detecting the pin voltage or by detecting the signal change on the pin.
[0038] It should be noted that, in some embodiments, when it is determined that the vehicle Ethernet interface unit is connected to the ECU module of the vehicle-mounted device, the master-slave mode, master-slave rate adaptation mode and transmission speed of the vehicle Ethernet interface unit can be configured through the serial port, so that the vehicle Ethernet interface unit can send and receive vehicle Ethernet data according to the configuration. For example, if there are multiple vehicle Ethernet interface units, one of the vehicle Ethernet interface units can be configured as the host, and the other vehicle Ethernet interface units can be configured as slaves to send and receive data.
[0039] Step S220: When receiving the vehicle Ethernet data uploaded by any vehicle-mounted device, the captured data is received through the first target MAC interface in the MCU module.
[0040] The captured data is vehicle Ethernet data transmitted from the vehicle-mounted device to the vehicle Ethernet interface unit through the ECU module, and the first target MAC interface is a MAC interface connected to the vehicle Ethernet interface unit that transmits the vehicle Ethernet data.
[0041] In this regard, when the vehicle Ethernet interface unit is connected to the ECU module of the vehicle-mounted device, the ECU module of the vehicle-mounted device can string the vehicle Ethernet data into the vehicle Ethernet interface unit, that is, transmit the data to the vehicle Ethernet interface unit one by one in sequence. The vehicle Ethernet interface unit is connected to the MAC interface in the MCU module. After the vehicle Ethernet interface unit receives the vehicle Ethernet data, it transmits the received vehicle Ethernet data to the MCU module through the connected MAC interface. The MCU module uses the vehicle Ethernet data as captured data and uses the MAC interface connected to the vehicle Ethernet interface unit as the target MAC interface.
[0042] For example, the vehicle Ethernet data capture device includes two vehicle Ethernet interface units, and the two vehicle Ethernet interface units are respectively connected to different vehicle devices. The vehicle Ethernet unit U1 is connected to the MAC interface M1 and the vehicle device E1, and the vehicle Ethernet unit U2 is connected to the MAC interface M2 and the vehicle device E2. When the vehicle device E1 transmits the vehicle Ethernet to the vehicle Ethernet interface unit U1, the MCU module uses the MAC interface M1 as the target MAC interface, and uses the vehicle Ethernet data received through the MAC interface M1 as the captured data.
[0043] Step S230: writing the captured data into a preset capture buffer queue.
[0044] The MCU module is pre-set with a capture cache queue. It is conceivable that the capture cache queue is associated with part of the storage space of the cache module, so that after receiving the capture data, the MCU module copies the capture data and stores it in the capture cache queue to complete the operation of writing the capture data in the capture cache queue. It can be understood that based on the above example, if the vehicle-mounted device E1 and the vehicle-mounted device E2 both transmit vehicle-mounted Ethernet data to the vehicle-mounted Ethernet data capture device, the MCU module will store the received vehicle-mounted Ethernet data as capture data in the capture cache queue. Among them, for the capture data uploaded by different vehicle-mounted devices, the MCU module can set the corresponding first flag bit to distinguish the source of the device; for the capture data uploaded by the same vehicle-mounted device, the MCU module can set the corresponding second flag bit to record the receiving time or receiving order. It is conceivable that the first flag bit and the second flag bit can also be set at the same time.
[0045] Step S240: When the target vehicle-mounted device to be forwarded is determined, the captured data obtained from the capture cache queue is forwarded to the corresponding vehicle-mounted Ethernet interface unit through the second target MAC interface, so as to be transmitted to the target vehicle-mounted device through the vehicle-mounted Ethernet interface unit.
[0046] The vehicle-mounted device to which the captured data needs to be forwarded is taken as the target vehicle-mounted device. After the MCU module determines the target vehicle-mounted device, the corresponding MAC interface and vehicle-mounted Ethernet interface unit can also be determined. After the MCU module determines the target vehicle-mounted device, it obtains the captured data from the capture cache queue and forwards the captured data to the vehicle-mounted Ethernet interface unit corresponding to the target vehicle-mounted device, so as to be transmitted to the target vehicle-mounted device through the vehicle-mounted Ethernet interface unit.
[0047] For example, based on the above example, the vehicle Ethernet data uploaded by the vehicle-mounted device E1 is used as the captured data. When the vehicle-mounted device E2 is the target vehicle-mounted device, the MCU module sends the captured data to the vehicle Ethernet interface unit U2 through the MAC interface M2, so as to be transmitted to the vehicle-mounted device E2 through the vehicle Ethernet interface unit U2.
[0048] Step S250: When it is determined that the USB interface unit is connected to the terminal device, the captured data in the capture buffer queue is uploaded to the terminal device based on the USB interface unit.
[0049] Correspondingly, the vehicle-mounted Ethernet data capture device can also confirm whether the USB interface unit is connected to the terminal device through the MCU module. Similarly, the vehicle-mounted Ethernet data capture device can detect whether the terminal device is connected in the same way as the above-mentioned method of detecting whether the vehicle-mounted device is connected, such as detecting through the input / output (I / O) pin on the MCU module, and then determining whether the terminal device is connected by detecting the pin voltage or by detecting the signal change on the pin.
[0050] Furthermore, when the USB interface unit is connected to the terminal device, based on the USB interface unit, the MCU module uploads the captured data in the capture cache queue to the terminal device. It is conceivable that when there are multiple captured data in the capture cache queue, the MCU module can upload the captured data one by one to the terminal device. In this regard, the terminal device can capture the Ethernet data of each vehicle-mounted device for subsequent analysis and processing. It is conceivable that the captured data is uploaded via USB, and the terminal device side can use the vehicle-mounted Ethernet data capture device as a virtual Ethernet card. Accordingly, it can record and display the captured data through the wireshark tool to analyze the data.
[0051] It can be seen from the above scheme that the vehicle-mounted Ethernet data capture device of this scheme can cache the captured data through the capture cache queue, so that the corresponding captured data can be obtained from the capture cache queue when it needs to be forwarded to other vehicle-mounted devices and / or uploaded to the terminal device. The data transmission is more direct and efficient, which helps to capture the vehicle-mounted Ethernet data efficiently and quickly.
[0052] In one application scenario, if vehicle-mounted Ethernet data needs to be transmitted between two vehicle-mounted devices, and the terminal device needs to capture and analyze the vehicle-mounted Ethernet data, at this time, the terminal device and the two vehicle-mounted Ethernet devices can be connected through the above-mentioned vehicle-mounted Ethernet data capture device, such as connecting the terminal device through the USB interface unit on the device, and connecting different vehicle-mounted devices one by one through the vehicle-mounted Ethernet interface unit on the device, such as the vehicle-mounted Ethernet interface unit U1 connecting the MAC interface M1 and the vehicle-mounted device E1, and the vehicle-mounted Ethernet interface unit U2 connecting the MAC interface M2 and the vehicle-mounted device E2.
[0053] Figure 3 The principle block diagram of transmitting vehicle Ethernet data provided in one embodiment of the present application is shown in the figure. The vehicle-mounted device E1 transmits the vehicle Ethernet data to the vehicle Ethernet interface unit U1 through the ECU module thereon, and the MCU module writes the received vehicle Ethernet data into the capture cache queue. Accordingly, the captured data is obtained from the capture cache queue, and then transmitted to the vehicle-mounted device E2 through the vehicle Ethernet interface unit U2. For data upload of the terminal device, the captured data can be uploaded to the terminal device through the USB interface unit. It can be imagined that in a scenario where data needs to be forwarded to another vehicle-mounted device and data needs to be uploaded to the terminal device at the same time, the captured data can be copied to send a mirror image of the captured data to the terminal device.
[0054] It should be noted that Figure 3 Only a scenario of unidirectional data transmission is shown. In addition, the corresponding scenario may also be a scenario in which the vehicle-mounted device E2 transmits vehicle-mounted Ethernet data to the vehicle-mounted device E1 through the vehicle-mounted Ethernet data capture device, or a scenario in which the vehicle-mounted device E1 and the vehicle-mounted device E2 transmit data to each other.
[0055] It can be seen that the above-mentioned vehicle Ethernet data capture device realizes the vehicle Ethernet bridging function between dual-channel vehicle Ethernet. Compared with the solution of using switches for bridging in the related art, this solution can capture data under bridging and realize low-cost and convenient data packet capture. Moreover, the vehicle Ethernet data capture device of this solution can realize USB to vehicle Ethernet. Compared with the traditional converter used as vehicle Ethernet to Ethernet, this solution does not require additional power supply and can also reduce wiring.
[0056] In one embodiment, the USB interface unit includes a USB interface and an interface circuit, wherein the USB interface is connected to the interface circuit, and the interface circuit is used to filter the USB interface. While providing a power supply voltage to the USB interface, the interface circuit can also stabilize the electrical signal of the USB interface.
[0057] Figure 4 A schematic diagram of the circuit structure of an interface circuit provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, in one embodiment, the interface circuit includes a common mode filter inductor L1, an electrostatic protection chip U1, a transient voltage suppression diode D1, a first filter capacitor C1, a second filter capacitor C2 and a filter bead L2.
[0058] Specifically, the two same-name ends of the common-mode filter inductor L1 are respectively connected to the two differential signal transmission ends provided by the MCU module, and the opposite-name ends corresponding to the same-name ends in the common-mode filter inductor L1 are respectively connected to the two differential signal transmission ends of the USB interface. The two I / O pins of the electrostatic protection chip U1 are respectively connected to the opposite-name ends of the common-mode filter inductor L1 (pins 2 and 3 of the common-mode filter inductor L1 as shown in the figure). The first end of the filter bead L2 is connected to the power supply voltage, and the first end of the filter bead L2 is also grounded through the first filter capacitor C1, the second end of the filter bead L2 is grounded through the second filter capacitor C2, the second end of the filter bead L2 is connected to the cathode end of the transient voltage suppression diode D1, the anode end of the transient voltage suppression diode D1 is grounded, and the second end of the filter bead L2 is also connected to the power supply end VBUS of the USB interface.
[0059] It can be understood that the common-mode filter inductor L1 is used to filter out the common-mode interference on the differential signal, while the filter bead L2 is used to filter out the interference on the power supply. Accordingly, the selection range of the bead impedance can be 100Ω / 100MHz~1000Ω / 100MHz, and the selection of the bead impedance should meet the requirements of the interface circuit current. The first filter capacitor C1 and the second filter capacitor C2 are also used to filter out the interference on the power supply. In one embodiment, the first filter capacitor C1 and the second filter capacitor C2 differ by 100 times in value. The small capacitor (the capacitor with the smaller capacitance value of the two) is used to filter out the high-frequency interference on the power supply, and the large capacitor (the capacitor with the larger capacitance value of the two) is used to filter out the ripple interference on the power line. The transient voltage suppression diode D1 and the electrostatic protection chip U1 can quickly discharge electrostatic interference to prevent the large amount of interference energy generated during the hot plugging process from impacting the circuit and causing abnormal circuit operation.
[0060] In this regard, after connecting to the terminal equipment, the vehicle Ethernet data capture device can filter out interference to the signal through the interface circuit, and can also filter out interference on the power supply (such as high-frequency interference, ripple interference, electrostatic interference, etc.), thereby stabilizing the power supply and facilitating better data transmission to efficiently and quickly capture vehicle Ethernet data.
[0061] It should be noted that, in some embodiments, two transient voltage suppression diodes may be used to replace the above-mentioned electrostatic protection chip, which can also achieve the effect of quickly discharging electrostatic interference.
[0062] In some embodiments, the vehicle Ethernet interface unit includes an Ethernet converter and a physical layer interface subunit. The Ethernet converter is connected to the ECU module of the vehicle-mounted equipment, and the Ethernet converter is used to realize data conversion between the vehicle-mounted Ethernet and the standard Ethernet. For example, in one embodiment, the Ethernet converter is a 100 / 1000BASE-T1 converter, which has high anti-interference ability and reliability, and can efficiently send and receive data, and is effectively applicable to the vehicle network environment. The physical layer interface subunit is connected to the Ethernet converter, and the physical layer interface subunit is also connected to any one of the multiple MAC interfaces in the MCU chip of the MCU module. The physical layer interface subunit is used to send and receive vehicle Ethernet data.
[0063] Figure 5 A circuit structure diagram of a physical layer interface subunit provided in an embodiment of the present application is shown in the figure. In one embodiment, the physical layer interface subunit includes a physical layer interface chip U2, an external crystal oscillator submodule 501, and an LED submodule 502. Based on this, the vehicle Ethernet interface unit can send the vehicle Ethernet data received by the Ethernet converter to the MCU module through the physical layer interface subunit to achieve the capture of the vehicle Ethernet data.
[0064] The crystal oscillator input pin XTAL_IN and the crystal oscillator output pin XTAL_OUT of the physical layer interface chip U2 are respectively connected to the output end and the input end of the external crystal oscillator submodule 501. The light control pin LED_GPIO of the physical layer interface chip U2 is connected to the control end of the LED submodule 502.
[0065] The reset signal terminal PHYRSTB of the physical layer interface chip U2 is connected to the power supply voltage through the first pull-up resistor R1, and the reset signal terminal PHYRSTB of the physical layer interface chip U2 is also grounded through the third filter capacitor C3, and the reset signal terminal PHYRSTB of the physical layer interface chip is also connected to the reset signal through the first current limiting resistor R2;
[0066] The receiving data pin RXD of the physical layer interface chip U2 is connected to the power supply voltage through the second pull-up resistor, and the receiving data pin RXD of the physical layer interface chip is also grounded through the first pull-down resistor. As shown in the figure, the physical layer interface chip U2 includes multiple receiving data pins, such as pin RXD0, pin RXD1, pin RXD2 and pin RXDV. The receiving data pin RXD0 of the physical layer interface chip U2 is connected to the power supply voltage through the second pull-up resistor R3, and the receiving data pin RXD0 of the physical layer interface chip is also grounded through the first pull-down resistor R4. Similarly, other pins are connected to the power supply voltage through corresponding pull-up resistors and grounded through corresponding pull-down resistors.
[0067] The receiving clock pin RXC of the physical layer interface chip U2 is connected to the power supply voltage through the third pull-up resistor R5, and the receiving clock pin RXC of the physical layer interface chip U2 is also grounded through the second pull-down resistor R6. The management data input / output interface pin MDIO of the physical layer interface chip is connected to the power supply voltage through the fourth pull-up resistor R7. The open-drain output pin INTB of the physical layer interface chip is connected to the power supply voltage through the fifth pull-up resistor R8. The disable signal pin DISB of the physical layer interface chip is connected to the power supply voltage through the sixth pull-up resistor R9. The wake-up pin WAKE of the physical layer interface chip is grounded through the third pull-down resistor R10, and the address input disable terminal INH of the physical layer interface chip is grounded through the fourth pull-down resistor R11.
[0068] In one embodiment, referring to Figure 5 The external crystal oscillator submodule includes a crystal oscillator X1, an input filter capacitor C4 and an output filter capacitor C5, wherein the input end of the crystal oscillator X1 is connected to the crystal oscillator input pin XTAL_IN of the physical layer interface chip U2, and the output end of the crystal oscillator X1 is connected to the crystal oscillator output pin XTAL_OUT of the physical layer interface chip U2. One end of the input filter capacitor C4 is connected to the input end of the crystal oscillator X1, and the other end of the input filter capacitor C4 is grounded; one end of the output filter capacitor C5 is connected to the output end of the crystal oscillator X1, and the other end of the output filter capacitor C5 is grounded.
[0069] In one embodiment, referring to Figure 5 , the LED submodule includes a light emitting diode D2, a voltage-dividing resistor R12 and a voltage-dividing capacitor C6, the anode end of the light emitting diode D2 is connected to the power supply voltage, the cathode end of the light emitting diode D2 is connected to the first end of the voltage-dividing resistor R12, the second end of the voltage-dividing resistor R12 is grounded through the voltage-dividing capacitor C6, and the second end of the voltage-dividing resistor R12 is used as the control end of the LED submodule, and the light control pin LED_GPIO of the physical layer interface chip U2 outputs a corresponding electrical signal to achieve control of the light emitting diode. It can be understood that when the control end of the LED submodule is connected to a low-level signal or no signal input, the light emitting diode D2 emits light; when the control end of the LED submodule is connected to a high-level signal, the light emitting diode D2 does not emit light. In this regard, it can be imagined that by controlling the signal change of the light control pin of the physical layer interface chip, the vehicle Ethernet capture device can indicate whether the current transmission state is transmitting data by controlling the light change.
[0070] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is used to implement the relevant operations in the vehicle Ethernet data capture method provided in any embodiment of the present application.
[0071] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0072] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0073] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A vehicle-mounted Ethernet data capture device, characterized in that: The vehicle-mounted Ethernet data capture device is used to connect the terminal device and the vehicle-mounted device, and the vehicle-mounted Ethernet data capture device includes: An MCU module, wherein the MCU module comprises a USB interface unit and a plurality of MAC interfaces, wherein the USB interface unit is used to connect to the terminal device; At least two vehicle-mounted Ethernet interface units, each of which is connected to a MAC interface in the MCU module, and each of which is also used to connect to ECU modules of different vehicle-mounted devices; A cache module, the cache module is connected to the MCU module, and the cache module is used to temporarily store the vehicle Ethernet data received by the MCU module through the vehicle Ethernet interface unit; The vehicle Ethernet interface unit is used to receive the first vehicle Ethernet data uploaded by the vehicle-mounted device and transmit the first vehicle Ethernet data to the MCU module; the MCU module is used to store the received first vehicle Ethernet data in the cache module, and send the second vehicle Ethernet data obtained from the cache module to another vehicle Ethernet interface unit or upload it to the terminal device through the USB interface unit; the vehicle Ethernet interface unit is also used to receive the second vehicle Ethernet data and transmit the second vehicle Ethernet data to the vehicle-mounted device; The vehicle-mounted Ethernet interface unit includes an Ethernet converter and a physical layer interface subunit; The Ethernet converter is connected to the ECU module of the vehicle-mounted device, and the Ethernet converter is used to realize data conversion between vehicle-mounted Ethernet and standard Ethernet; The physical layer interface subunit is connected to the Ethernet converter, and the physical layer interface subunit is also connected to any one of the multiple MAC interfaces in the MCU chip of the MCU module. The physical layer interface subunit is used to send and receive the in-vehicle Ethernet data.
2. The vehicle-mounted Ethernet data capture device according to claim 1, characterized in that: The USB interface unit comprises a USB interface and an interface circuit, wherein the interface circuit is connected to the USB interface and is used for filtering the USB interface.
3. The vehicle-mounted Ethernet data capture device according to claim 2, characterized in that: The interface circuit includes a common mode filter inductor, an electrostatic protection chip, a transient voltage suppression diode, a first filter capacitor, a second filter capacitor and a filter magnetic bead; The two same-named ends of the common-mode filter inductor are respectively connected to the two differential signal transmission ends provided by the MCU module, and the different-named ends of the common-mode filter inductor corresponding to the same-named ends are respectively connected to the two differential signal transmission ends of the USB interface; The two I / O pins of the electrostatic protection chip are respectively connected to the opposite-name ends of the common-mode filter inductor; The first end of the filter bead is connected to the power supply voltage, and the first end of the filter bead is also grounded through the first filter capacitor, the second end of the filter bead is grounded through the second filter capacitor, the second end of the filter bead is connected to the cathode end of the transient voltage suppression diode, the anode end of the transient voltage suppression diode is grounded, and the second end of the filter bead is also connected to the power end of the USB interface.
4. The vehicle-mounted Ethernet data capture device according to claim 3, characterized in that: The Ethernet converter is a 100 / 1000BASE-T1 converter.
5. The vehicle-mounted Ethernet data capture device according to claim 3 or 4, characterized in that: The physical layer interface subunit includes a physical layer interface chip, an external crystal oscillator submodule and an LED submodule; The crystal oscillator input pin and the crystal oscillator output pin of the physical layer interface chip are respectively connected to the output end and the input end of the external crystal oscillator submodule; The light control pin of the physical layer interface chip is connected to the control end of the LED submodule; The reset signal terminal of the physical layer interface chip is connected to the power supply voltage through the first pull-up resistor, and the reset signal terminal of the physical layer interface chip is also grounded through the third filter capacitor, and the reset signal terminal of the physical layer interface chip is also connected to the reset signal through the first current limiting resistor; The receiving data pin of the physical layer interface chip is connected to the power supply voltage through the second pull-up resistor, and the receiving data pin of the physical layer interface chip is also grounded through the first pull-down resistor; The receiving clock pin of the physical layer interface chip is connected to the power supply voltage through a third pull-up resistor, and the receiving clock pin of the physical layer interface chip is also grounded through a second pull-down resistor; The management data input / output interface pin of the physical layer interface chip is connected to the power supply voltage through a fourth pull-up resistor, the open-drain output pin of the physical layer interface chip is connected to the power supply voltage through a fifth pull-up resistor, and the disable signal pin of the physical layer interface chip is connected to the power supply voltage through a sixth pull-up resistor; The wake-up pin end of the physical layer interface chip is grounded through a third pull-down resistor, and the address input disable end of the physical layer interface chip is grounded through a fourth pull-down resistor.
6. The vehicle-mounted Ethernet data capture device according to claim 5, characterized in that: The LED submodule includes a light-emitting diode, a voltage-dividing resistor and a voltage-dividing capacitor. The anode end of the light-emitting diode is connected to the power supply voltage, the cathode end of the light-emitting diode is connected to the first end of the voltage-dividing resistor, the second end of the voltage-dividing resistor is grounded through the voltage-dividing capacitor, and the second end of the voltage-dividing resistor serves as the control end of the LED submodule.
7. A vehicle Ethernet data capture method, characterized in that: The vehicle Ethernet data capture device according to any one of claims 1 to 6, wherein the vehicle Ethernet data capture method comprises: Determine the ECU module that the vehicle Ethernet interface unit is connected to the vehicle equipment; In the case of receiving the vehicle Ethernet data uploaded by any of the vehicle-mounted devices, receiving the captured data through the first target MAC interface in the MCU module, wherein the captured data is the vehicle Ethernet data transmitted by the vehicle-mounted device to the vehicle Ethernet interface unit through the ECU module, and the first target MAC interface is a MAC interface connected to the vehicle Ethernet interface unit that transmits the vehicle Ethernet data; Writing the captured data into a preset capture cache queue, and setting corresponding first flags for the captured data uploaded by different vehicle-mounted devices through the MCU module to distinguish the device sources, and setting corresponding second flags for the captured data uploaded by the same vehicle-mounted device to record the receiving time and receiving order; When the target vehicle-mounted device to be forwarded is determined, the captured data obtained from the capture cache queue is forwarded to the corresponding vehicle-mounted Ethernet interface unit through the second target MAC interface, so as to be transmitted to the target vehicle-mounted device through the vehicle-mounted Ethernet interface unit; When it is determined that the USB interface unit is connected to the terminal device, the captured data in the capture buffer queue is uploaded to the terminal device based on the USB interface unit.
8. The vehicle-mounted Ethernet data capture method according to claim 7, characterized in that: When it is determined that the vehicle Ethernet interface unit is connected to the ECU module of the vehicle-mounted device, the vehicle Ethernet data capture method further includes: The master-slave mode, master-slave rate adaptation mode and transmission speed of the vehicle Ethernet interface unit are configured through the serial port, so that the vehicle Ethernet interface unit can send and receive vehicle Ethernet data according to the configuration.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the vehicle-mounted Ethernet data capture method as described in any one of claims 7 to 8 is implemented.
Citation Information
Patent Citations
Multi-interface conversion device and vehicle
CN115663549A
Vehicle-mounted data storage device
CN209488821U