Vehicle-mounted Ethernet physical layer conversion method and equipment

By designing the on-board Ethernet physical layer conversion device, using the activation voltage switching protocol mode, the problem of inconsistency in the Ethernet physical layer of OBD interfaces of different models is solved, and the compatibility of external diagnostic equipment with multiple Ethernet physical layers is achieved, reducing costs and operational complexity.

CN119484655AActive Publication Date: 2025-02-18VOYAH AUTOMOBILE TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410846499.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2025-02-18
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

The physical layer of the OBD interface Ethernet of different models of the same car company is inconsistent, resulting in the need to develop two different sets of drivers for external diagnostic equipment, which increases development, production and operation costs.

Method used

Design an on-board Ethernet physical layer conversion device, including external diagnostic equipment, main control module, Ethernet switch and conversion interface. The activation voltage is obtained through the eighth pin of the conversion interface. When the activation voltage reaches the preset value, the protocol mode is switched to achieve compatibility with different Ethernet physical layers.

Benefits of technology

Enable external diagnostic equipment to support two Ethernet physical layers 100BASE-T1 and 100BASE-TX simultaneously, reducing development and production costs and reducing operational management complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484655A_ABST
    Figure CN119484655A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted Ethernet physical layer conversion method and device, and relates to the technical field of automobiles. When the current protocol mode of the vehicle-mounted Ethernet physical layer conversion device is a first mode, the vehicle-mounted Ethernet physical layer conversion device obtains an activation voltage through an eighth pin of a conversion interface; when the activation voltage is the preset voltage, switching the protocol mode into a second mode; when the protocol mode is a second mode, a third pin, an eleventh pin, a twelfth pin and a thirteenth pin of the conversion interface are respectively communicated with the first end, the second end, the third end and the fourth end of the main control module; the external diagnosis equipment is connected with the Ethernet switch through four communication lines; the first end, the second end, the third end and the fourth end of the main control module are respectively connected with four communication lines between the external diagnostic equipment and the Ethernet switch so as to obtain related Ethernet data, so that the external diagnostic equipment can support different Ethernet physical layers at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to a method and device for converting a physical layer of an in-vehicle Ethernet. Background Art

[0002] The Ethernet physical layers used in the OBD interfaces of different models of the same car company may be inconsistent, and these different Ethernet physical layers will also share some OBD PIN pins. Therefore, external diagnostic equipment (such as after-sales diagnostic instruments, offline electrical testing equipment, etc.) can only develop two sets of corresponding Ethernet physical layers, which brings huge development costs, production costs and operation and management costs.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of this application is to provide a vehicle Ethernet physical layer conversion method and device, aiming to solve the technical problem in the prior art that the OBD interface Ethernet of different models of the same car manufacturer is inconsistent, resulting in the need for two sets of different Ethernet physical layers.

[0005] To achieve the above-mentioned object, the present application proposes an in-vehicle Ethernet physical layer conversion device, characterized in that the in-vehicle Ethernet physical layer conversion device includes an external diagnostic device, a main control module, an Ethernet switch and a conversion interface;

[0006] When the current protocol mode of the vehicle Ethernet physical layer conversion device is the first mode, the vehicle Ethernet physical layer conversion device obtains an activation voltage through the eighth pin of the conversion interface, and when the activation voltage is a preset voltage, switches the protocol mode to the second mode;

[0007] When the protocol mode is the second mode, the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface are connected to the first end, the second end, the third end and the fourth end of the main control module respectively;

[0008] The external diagnostic device is connected to the Ethernet switch via four communication lines;

[0009] The first end, the second end, the third end and the fourth end of the main control module are respectively connected to four communication lines between the external diagnostic device and the Ethernet switch to obtain relevant Ethernet data.

[0010] In one embodiment, the third pin of the conversion interface is the positive pole of the Ethernet receiving end, the eleventh pin is the negative pole of the Ethernet receiving end, the twelfth pin is the positive pole of the Ethernet transmitting end, and the thirteenth pin is the negative pole of the Ethernet transmitting end.

[0011] In one embodiment, the first end, the second end, the third end, and the fourth end of the main control module are respectively connected to the third pin, the eleventh pin, the twelfth pin, and the thirteenth pin of the conversion interface, and the fifth end and the sixth end are disconnected from the Ethernet switch. The first end, the second end, the third end, and the fourth end of the main control module are respectively connected to the external diagnostic device and the Ethernet switch.

[0012] In one embodiment, when the current protocol mode of the vehicle Ethernet physical layer conversion device is the first mode, the twelfth pin is activated, and the thirteenth pin is connected to the communication with the main control module;

[0013] Activate the communication connection between the fifth terminal and the sixth terminal of the main control module and the Ethernet switch;

[0014] Activate a communication connection between the external diagnostic device and the Ethernet switch.

[0015] In one embodiment, the conversion interface includes sixteen pins, wherein the twelfth pin is the positive pole of the communication line, and the thirteenth pin is the negative pole of the communication line.

[0016] In one embodiment, the third end and the fourth end of the main control module are respectively connected to the twelfth pin and the thirteenth pin of the conversion interface, the fifth end and the sixth end of the main control module are connected to the Ethernet switch, and the first end, the second end, the third end, and the fourth end of the main control module are respectively connected to the external diagnostic device and the Ethernet switch.

[0017] In one embodiment, the eighth pin of the conversion interface is an activation line pin.

[0018] In addition, to achieve the above purpose, the present application also proposes a vehicle Ethernet physical layer conversion method, which is applied to a vehicle Ethernet physical layer conversion device, and the vehicle Ethernet physical layer conversion method includes:

[0019] When the current protocol mode of the Ethernet physical layer is the first mode, detecting the voltage of the activation line to obtain the activation voltage;

[0020] When the activation voltage is a preset voltage value, switching the current Ethernet physical layer protocol mode to a second mode;

[0021] Determine the data line connection relationship of the second mode;

[0022] The connection relationship of the data lines is updated according to the connection relationship of the data lines to obtain the relevant Ethernet data

[0023] In one embodiment, when the activation voltage is a preset voltage value, the step of switching the current Ethernet physical layer protocol mode to the second mode includes:

[0024] When the activation voltage is the preset voltage value, an enable signal is sent to the built-in network card to enable the built-in network card and switch the current Ethernet physical layer protocol mode to the second mode.

[0025] In one embodiment, when the activation voltage is a preset voltage value, the step of sending an enable signal to the built-in network card to enable the built-in network card to enter an enabled state and switching the current Ethernet physical layer protocol mode to the second mode includes:

[0026] When the activation voltage is a preset voltage value, an enable signal is sent to the built-in network card to enable the built-in network card;

[0027] Based on the enable state, the third pin and the eleventh pin are activated, the communication connection between the first end, the second end, the third end and the fourth end of the main control module and the external diagnostic device is activated, and the communication connection between the fifth end and the sixth end of the main control module and the Ethernet switch is disconnected.

[0028] One or more technical solutions proposed in the present application have at least the following technical effects: when the current protocol mode of the on-board Ethernet physical layer conversion device is the first mode, the on-board Ethernet physical layer conversion device obtains the activation voltage through the eighth pin of the conversion interface, and when the activation voltage is the preset voltage, the protocol mode is switched to the second mode; when the protocol mode is the second mode, the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface are respectively connected to the first end, the second end, the third end and the fourth end of the main control module; the external diagnostic device is connected to the Ethernet switch through four communication lines; the first end, the second end, the third end and the fourth end of the main control module are respectively connected to the four communication lines between the external diagnostic device and the Ethernet switch to obtain relevant Ethernet data, so that the external diagnostic device can simultaneously support different Ethernet physical layers. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0031] Figure 1 Schematic diagram of an in-vehicle Ethernet physical layer conversion device provided for the first embodiment of the in-vehicle Ethernet physical layer conversion method of the present application;

[0032] Figure 2 A connection diagram in 100BASE-TX mode provided in Example 1 of the vehicle Ethernet physical layer conversion method of the present application;

[0033] Figure 3 A pin definition diagram in 100BASE-TX protocol mode provided in Embodiment 1 of the vehicle Ethernet physical layer conversion method of the present application;

[0034] Figure 4 A connection diagram in 100BASE-T1 mode provided in Embodiment 1 of the vehicle Ethernet physical layer conversion method of the present application;

[0035] Figure 5 A pin definition diagram in 100BASE-T1 protocol mode provided in Embodiment 1 of the vehicle Ethernet physical layer conversion method of the present application;

[0036] Figure 6 A flow chart of Embodiment 2 of the vehicle Ethernet physical layer conversion method provided in this application;

[0037] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0038] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0039] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0040] The main solution of the embodiment of the present application is: when the current protocol mode of the vehicle-mounted Ethernet physical layer conversion device is the first mode, the vehicle-mounted Ethernet physical layer conversion device obtains an activation voltage through the eighth pin of the conversion interface, and when the activation voltage is a preset voltage, the protocol mode is switched to the second mode; when the protocol mode is the second mode, the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface are respectively connected to the first end, the second end, the third end and the fourth end of the main control module; the external diagnostic device is connected to the Ethernet switch through four communication lines; the first end, the second end, the third end and the fourth end of the main control module are respectively connected to the four communication lines between the external diagnostic device and the Ethernet switch to obtain relevant Ethernet data.

[0041] In this embodiment, for ease of description, the following description is made by taking identification of the vehicle-mounted Ethernet physical layer conversion device as the execution subject.

[0042] In the prior art, the Ethernet physical layers used in the OBD interfaces of different models of the same automobile company may be inconsistent, and these different Ethernet physical layers may also share some OBD PIN pins. Therefore, external diagnostic equipment (such as after-sales diagnostic instruments, offline electrical testing equipment, etc.) can only develop two sets of Ethernet physical layers corresponding to different ones, which brings huge development costs, production costs and operation and management costs.

[0043] The present application provides a solution, which enables a set of solutions that are compatible with both 100BASE-T1 and 100BASE-TX for the OBD male connector of the external diagnostic device, so that the external diagnostic device can support different Ethernet physical layers at the same time.

[0044] It can be seen from the above embodiments that, in this application, when the current protocol mode of the on-board Ethernet physical layer conversion device is the first mode, the on-board Ethernet physical layer conversion device obtains the activation voltage through the eighth pin of the conversion interface, and when the activation voltage is the preset voltage, the protocol mode is switched to the second mode; when the protocol mode is the second mode, the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface are respectively connected to the first end, the second end, the third end and the fourth end of the main control module; the external diagnostic device is connected to the Ethernet switch through four communication lines; the first end, the second end, the third end and the fourth end of the main control module are respectively connected to the four communication lines between the external diagnostic device and the Ethernet switch to obtain relevant Ethernet data, so that the external diagnostic device can simultaneously support different Ethernet physical layers.

[0045] Based on this, an embodiment of the present application provides an in-vehicle Ethernet physical layer conversion device, which includes an external diagnostic device, a main control module, an Ethernet switch and a conversion interface;

[0046] When the current protocol mode of the vehicle Ethernet physical layer conversion device is the first mode, the vehicle Ethernet physical layer conversion device obtains an activation voltage through the eighth pin of the conversion interface, and when the activation voltage is a preset voltage, switches the protocol mode to the second mode;

[0047] When the protocol mode is the second mode, the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface are connected to the first end, the second end, the third end and the fourth end of the main control module respectively;

[0048] The external diagnostic device is connected to the Ethernet switch via four communication lines;

[0049] The first end, the second end, the third end and the fourth end of the main control module are respectively connected to four communication lines between the external diagnostic device and the Ethernet switch to obtain relevant Ethernet data.

[0050] It should be noted that the first mode and the second mode of the protocol mode are two modes of the Ethernet protocol, wherein the first mode corresponds to the protocol mode of the physical layer being 100BASE-T1, and the second mode corresponds to the protocol mode of 100BASE-TX.

[0051] In the specific implementation, refer to Figure 1 , Figure 1 This is the schematic diagram of the vehicle Ethernet physical layer conversion device. Figure 1 It can be seen that the vehicle-mounted Ethernet physical layer conversion device includes an external diagnostic device, a main control module, an Ethernet switch and a conversion interface. Among them, the external diagnostic device and the Ethernet switch are connected through 4 communication buses through the 100BASE-TX protocol, and the first end, the second end, the third end, the fourth end, the fifth end and the sixth end of the main control module correspond to ports A, B, C, D, E and F of the main control module respectively. Among them, ports A to D are connected to the external diagnostic module through 4 communication buses of the 100BASE-TX protocol, and ports E and F are connected to the Ethernet switch, and transmitted through the 100BASE-T1 protocol mode. At the same time, the main control module is also connected to PIN3, PIN11, PIN12, PIN13, and PIN8 in the conversion interface.

[0052] Reference Figure 2 , Figure 2 The figure is a connection diagram in 100BASE-TX mode. When the current protocol mode of the vehicle Ethernet physical layer conversion device is 100BASE-T1, the activation voltage can be obtained through the PIN8 pin. When the activation voltage is between 5 and 16V, it means that the Ethernet physical layer of the vehicle-side OBD is 100BASE-TX. It is only necessary to connect PIN 3, PIN11, PIN12, and PIN13 to Port A, Port B, Port C, and Port D, so that the external diagnostic device can be directly connected. When the activation voltage meets the preset conditions, the current protocol mode can be switched to the 100BASE-TX protocol mode. In the current 100BASE-TX protocol mode, connect PIN 3, PIN11, PIN12, and PIN13 of the conversion interface to Port A, Port B, Port C, and Port D respectively, connect the external diagnostic device to the Ethernet switch through four communication lines, and connect Port A, Port B, Port C, and Port D of the main control module to the external diagnostic device to obtain the collected Ethernet data.

[0053] For the conversion interface, refer to Figure 3 , Figure 3 This is the pin definition diagram in 100BASE-TX protocol mode. PIN 3, PIN11, PIN12, PIN13, and PIN8 are in working state, and the pin definitions are:

[0054] PIN 3: Ethernet Rx[+].

[0055] PIN 11: Ethernet Rx[-].

[0056] PIN12: Ethernet Tx[+].

[0057] PIN 13: Ethernet Tx[-].

[0058] PIN 8:Activation Line.

[0059] Since 100BASE-TX does not meet the vehicle-mounted radio frequency requirements, the network card based on 100BASE-TX cannot be easily started. Therefore, the vehicle side will adopt an activation line mechanism according to international standards. The activation line will draw power from the battery in the vehicle. When the voltage reaches between 5-16V, the vehicle-side 100BASE-TX-based network card will be enabled, and these 4 PIN pins will take effect. When switching modes, the original 100BASE-T1 mode connection mode can be switched to the 100BASE-TX mode connection mode, specifically: connect ports A~D in the main control module to PIN3, PIN11, PIN12, and PIN13 of the conversion interface respectively, disconnect ports D and F from the Ethernet switch, and connect ports A~D in the main control module to external diagnostic equipment and Ethernet switch respectively.

[0060] Exemplarily, when the current protocol mode of the vehicle-mounted Ethernet physical layer conversion device is the first mode, the twelfth pin is activated, and the thirteenth pin is connected to the communication with the main control module;

[0061] Activate the communication connection between the fifth terminal and the sixth terminal of the main control module and the Ethernet switch;

[0062] Activate a communication connection between the external diagnostic device and the Ethernet switch.

[0063] In the specific implementation, refer to Figure 4 , Figure 4The figure is a connection diagram in 100BASE-T1 mode. When the current protocol mode of the vehicle Ethernet physical layer conversion device is 100BASE-T1, PIN12 and PIN13 in the interface are activated. At this time, PIN12 and PIN13 are transmitted to the 100BASE-T1 network card in the Ethernet switch through ports E and F of the main control module, and then transmitted to the external diagnostic device by the 100BASE-TX network card.

[0064] For the conversion interface, refer to Figure 5 , Figure 5 This is the pin definition diagram in 100BASE-T1 protocol mode. Among them, PIN12 and PIN13 are in the activated state. The pin definitions are:

[0065] PIN 12:100BASE-T1[+].

[0066] PIN 13:100BASE-T1[-].

[0067] 100BASE-T1 fully meets the in-vehicle RF requirements, so there is no activation line mechanism.

[0068] In the present application, when the current protocol mode of the on-board Ethernet physical layer conversion device is the first mode, the on-board Ethernet physical layer conversion device obtains an activation voltage through the eighth pin of the conversion interface, and when the activation voltage is a preset voltage, switches the protocol mode to the second mode; when the protocol mode is the second mode, the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface are respectively connected to the first end, the second end, the third end and the fourth end of the main control module; the external diagnostic device is connected to the Ethernet switch through four communication lines; the first end, the second end, the third end and the fourth end of the main control module are respectively connected to the four communication lines between the external diagnostic device and the Ethernet switch to obtain relevant Ethernet data, so that the external diagnostic device can simultaneously support different Ethernet physical layers.

[0069] Based on this, the embodiment of the present application provides a vehicle Ethernet physical layer conversion method, referring to Figure 1 , Figure 6 This is a flow chart of the first embodiment of the vehicle Ethernet physical layer conversion method of the present application.

[0070] In this embodiment, the vehicle Ethernet physical layer conversion method includes steps S10 to S40:

[0071] Step S10, when the current Ethernet physical layer protocol mode is the first mode, detecting the voltage of the activation line to obtain the activation voltage;

[0072] Step S20, when the activation voltage is a preset voltage value, switching the current Ethernet physical layer protocol mode to a second mode;

[0073] Step S30, determining the data line connection relationship of the second mode;

[0074] Step S40: updating the connection relationship of the data lines according to the connection relationship of the data lines to obtain relevant Ethernet data.

[0075] In a specific implementation, when the current Ethernet physical layer protocol mode is 100BASE-T1, the voltage of the activation line is detected. When the voltage of the activation line is detected to be 5 to 16V, the current protocol mode can be switched to 100BASE-TX. At this time, the current connection relationship is updated and the line connection relationship is changed. At this time, relevant Ethernet data can be obtained.

[0076] When the activation voltage is a preset voltage value, the specific steps of switching the current Ethernet physical layer protocol mode to the second mode include sending an enable signal to the built-in network card when the activation voltage is the preset voltage value, so that the built-in network card enters an enabled state, and switching the current Ethernet physical layer protocol mode to the 100BASE-TX mode.

[0077] When the activation voltage is a preset voltage value, an enable signal is sent to the built-in network card to enable the built-in network card to enter an enabled state, and the steps of switching the current Ethernet physical layer protocol mode to a second mode include: when the activation voltage is a preset voltage value, an enable signal is sent to the built-in network card to enable the built-in network card to enter an enabled state; based on the enable state, the third pin and the eleventh pin are activated to activate the communication connection between the first end, the second end, the third end and the fourth end of the main control module and the external diagnostic device, and the communication connection between the fifth end and the sixth end of the main control module and the Ethernet switch is disconnected.

[0078] The present embodiment provides a vehicle-mounted Ethernet physical layer conversion method. When the current protocol mode of the vehicle-mounted Ethernet physical layer conversion device is the first mode, the vehicle-mounted Ethernet physical layer conversion device obtains an activation voltage through the eighth pin of the conversion interface, and when the activation voltage is a preset voltage, the protocol mode is switched to the second mode; when the protocol mode is the second mode, the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface are respectively connected to the first end, the second end, the third end and the fourth end of the main control module; the external diagnostic device is connected to the Ethernet switch through four communication lines; the first end, the second end, the third end and the fourth end of the main control module are respectively connected to the four communication lines between the external diagnostic device and the Ethernet switch to obtain relevant Ethernet data, so that the external diagnostic device can simultaneously support different Ethernet physical layers.

[0079] The vehicle Ethernet physical layer conversion device provided by the present application adopts the vehicle Ethernet physical layer conversion method in the above embodiment, which can solve the technical problem that the OBD interface Ethernet of different models of the same car manufacturer is inconsistent in the prior art, resulting in the need for two sets of technical problems to deal with different Ethernet physical layers. Compared with the prior art, the beneficial effects of the vehicle Ethernet physical layer conversion device provided by the present application are the same as the beneficial effects of the vehicle Ethernet physical layer conversion method provided by the above embodiment, and the other technical features of the vehicle Ethernet physical layer conversion device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0080] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0081] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0082] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle-mounted Ethernet physical layer conversion method in the above-mentioned embodiment.

[0083] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0084] The computer-readable storage medium may be included in the vehicle-mounted Ethernet physical layer conversion device; or may exist independently without being assembled into the vehicle-mounted Ethernet physical layer conversion device.

[0085] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the vehicle-mounted Ethernet physical layer conversion device, the vehicle-mounted Ethernet physical layer conversion device:

[0086] When the current protocol mode of the Ethernet physical layer is the first mode, detecting the voltage of the activation line to obtain the activation voltage;

[0087] When the activation voltage is a preset voltage value, switching the current Ethernet physical layer protocol mode to a second mode;

[0088] Determine the data line connection relationship of the second mode;

[0089] The connection relationship of the data lines is updated according to the connection relationship of the data lines to obtain relevant Ethernet data.

[0090] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0091] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0092] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0093] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle Ethernet physical layer conversion method, and can solve the technical problem that the OBD interface Ethernet of different models of the same car company is inconsistent in the prior art, resulting in the need for two sets of technical problems to deal with different Ethernet physical layers. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle Ethernet physical layer conversion method provided by the above-mentioned embodiment, and will not be repeated here.

[0094] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle-mounted Ethernet physical layer conversion method when executed by a processor.

[0095] The computer program product provided by the present application can solve the technical problem that the OBD interface Ethernet of different models of the same car manufacturer is inconsistent in the prior art, resulting in the need for two sets of technical problems to deal with different Ethernet physical layers. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle Ethernet physical layer conversion method provided in the above embodiment, and will not be repeated here.

[0096] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A vehicle-mounted Ethernet physical layer conversion device, characterized in that: The vehicle-mounted Ethernet physical layer conversion device includes an external diagnostic device, a main control module, an Ethernet switch and a conversion interface; When the current protocol mode of the vehicle Ethernet physical layer conversion device is the first mode, the vehicle Ethernet physical layer conversion device obtains an activation voltage through the eighth pin of the conversion interface, and when the activation voltage is a preset voltage, switches the protocol mode to the second mode; When the protocol mode is the second mode, the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface are connected to the first end, the second end, the third end and the fourth end of the main control module respectively; The external diagnostic device is connected to the Ethernet switch via four communication lines; The first end, the second end, the third end and the fourth end of the main control module are respectively connected to four communication lines between the external diagnostic device and the Ethernet switch to obtain relevant Ethernet data.

2. The vehicle-mounted Ethernet physical layer conversion device according to claim 1, characterized in that: The third pin of the conversion interface is the positive pole of the Ethernet receiving end, the eleventh pin is the negative pole of the Ethernet receiving end, the twelfth pin is the positive pole of the Ethernet sending end, and the thirteenth pin is the negative pole of the Ethernet sending end.

3. The vehicle-mounted Ethernet physical layer conversion device according to claim 1, characterized in that: The first end, the second end, the third end and the fourth end of the main control module are respectively connected to the third pin, the eleventh pin, the twelfth pin and the thirteenth pin of the conversion interface, the fifth end and the sixth end are disconnected from the Ethernet switch, and the first end, the second end, the third end and the fourth end of the main control module are respectively connected to the external diagnostic device and the Ethernet switch.

4. The vehicle-mounted Ethernet physical layer conversion device according to claim 1, characterized in that: When the current protocol mode of the vehicle Ethernet physical layer conversion device is the first mode, the twelfth pin is activated, and the thirteenth pin is connected to the communication with the main control module; Activate the communication connection between the fifth terminal and the sixth terminal of the main control module and the Ethernet switch; Activate a communication connection between the external diagnostic device and the Ethernet switch.

5. The vehicle-mounted Ethernet physical layer conversion device according to claim 4, characterized in that: The conversion interface includes sixteen pins, wherein the twelfth pin is the positive pole of the communication line, and the thirteenth pin is the negative pole of the communication line.

6. The vehicle-mounted Ethernet physical layer conversion device according to claim 4, characterized in that: The third end and the fourth end of the main control module are respectively connected to the twelfth pin and the thirteenth pin of the conversion interface, the fifth end and the sixth end of the main control module are connected to the Ethernet switch, and the first end, the second end, the third end and the fourth end of the main control module are respectively connected to the external diagnostic device and the Ethernet switch.

7. The vehicle-mounted Ethernet physical layer conversion device according to any one of claims 1 to 6, characterized in that: The eighth pin of the conversion interface is an activation line pin.

8. A vehicle Ethernet physical layer conversion method, characterized in that: The vehicle Ethernet physical layer conversion method is applied to the vehicle Ethernet physical layer conversion device according to any one of claims 1 to 7, and the vehicle Ethernet physical layer conversion method includes: When the current protocol mode of the Ethernet physical layer is the first mode, detecting the voltage of the activation line to obtain the activation voltage; When the activation voltage is a preset voltage value, switching the current Ethernet physical layer protocol mode to a second mode; Determine the data line connection relationship of the second mode; The connection relationship of the data lines is updated according to the connection relationship of the data lines to obtain relevant Ethernet data.

9. The method according to claim 8, characterized in that The step of switching the current Ethernet physical layer protocol mode to the second mode when the activation voltage is a preset voltage value comprises: When the activation voltage is a preset voltage value, an enable signal is sent to the built-in network card to enable the built-in network card and switch the current Ethernet physical layer protocol mode to the second mode.

10. The method according to claim 8, characterized in that The step of sending an enable signal to the built-in network card when the activation voltage is a preset voltage value, so that the built-in network card enters an enabled state, and switching the current Ethernet physical layer protocol mode to the second mode comprises: When the activation voltage is a preset voltage value, an enable signal is sent to the built-in network card to enable the built-in network card; Based on the enable state, the third pin and the eleventh pin are activated, the communication connection between the first end, the second end, the third end and the fourth end of the main control module and the external diagnostic device is activated, and the communication connection between the fifth end and the sixth end of the main control module and the Ethernet switch is disconnected.

Citation Information

Patent Citations

  • Vehicle diagnosis method and device and medium

    CN111813095A

  • Vehicle fault diagnosis method and system and vehicle

    CN112578764A

  • Vehicle diagnosis method, diagnosis equipment and readable storage medium

    CN114035552A

  • Ethernet-based automobile diagnosis equipment

    CN220290096U

  • USB (Universal Serial Bus)-to-vehicle-mounted Ethernet equipment

    CN220292038U