Communication configuration method and device of vehicle communication interface
By acquiring device information and dynamically adjusting communication configuration strategies, the compatibility issue between the vehicle diagnostic terminal and different types of communication interface devices was resolved, achieving higher configuration accuracy and reliability.
Patent Information
- Application Number
- CN202611695777.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
When the same vehicle diagnostic terminal is used with different models of vehicle communication interface devices, there is a problem of mismatched communication unit configuration, which leads to the target communication unit being unavailable, the path configuration being incorrect, or the diagnostic port being inaccessible, resulting in poor adaptability.
By acquiring device information of the vehicle communication interface device, the target device type is determined, and the communication configuration strategy is dynamically adjusted in conjunction with the diagnostic mode, protocol and current connection mode to ensure that the target communication unit and path match the actual hardware configuration.
This improves the vehicle diagnostic terminal's adaptability to different communication unit configurations, reduces errors in communication unit selection and path configuration, and enhances the accuracy and reliability of diagnostic communication channels.
Smart Images

Figure CN123185064A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle communication technology, and in particular to a communication configuration method and apparatus for a vehicle communication interface. Background Technology
[0002] As vehicles become increasingly electronic, when performing fault detection, parameter reading, program flashing, or function configuration, vehicle diagnostic terminals typically need to interact with the vehicle's electronic control unit via a vehicle communication interface device. Furthermore, when establishing diagnostic communication with the vehicle communication interface device, current vehicle diagnostic terminals usually configure the diagnostic link according to a pre-defined communication method, or the user manually selects the appropriate communication method based on the model of the vehicle communication interface device.
[0003] However, practice has revealed that due to potential differences in communication unit configurations among different vehicle communication interface devices, when the same vehicle diagnostic terminal needs to adapt to multiple vehicle communication interface devices, if the communication configuration method used by the vehicle diagnostic terminal does not match the communication unit configuration of the current vehicle communication interface device, situations such as the target communication unit being unavailable, communication path configuration errors, or diagnostic ports being inaccessible may occur. In other words, the same vehicle diagnostic terminal has poor compatibility with vehicle communication interface devices with different communication unit configurations, thus hindering the improvement of the configuration accuracy of vehicle diagnostic communication channels. Therefore, proposing a technical solution to improve the compatibility of the same vehicle diagnostic terminal with vehicle communication interface devices with different communication unit configurations is particularly important. Summary of the Invention
[0004] This invention provides a communication configuration method and apparatus for a vehicle communication interface, which can improve the adaptability of the same vehicle diagnostic terminal to vehicle communication interface devices with different communication unit configurations.
[0005] To address the aforementioned technical problems, the first aspect of this invention discloses a communication configuration method for a vehicle communication interface. The method is applied to a vehicle diagnostic terminal, which has a diagnostic application installed. Communication configuration between the vehicle diagnostic terminal and a vehicle communication interface device is achieved by accessing the diagnostic application. The vehicle communication interface device is communicatively connected to the vehicle's electronic control unit. The method includes: In response to a diagnostic request triggered by the diagnostic application, the device information of the vehicle communication interface device is obtained, including device model information, communication unit configuration information, communication unit status information, and Internet Protocol address information; Based on the device model information and the communication unit configuration information, the target device type corresponding to the vehicle communication interface device is determined; Based on the diagnostic mode information and diagnostic protocol information carried in the obtained diagnostic request, the current connection mode of the vehicle diagnostic terminal currently accessing the vehicle communication interface device is determined. Based on the target device type, the communication unit status information, the diagnostic mode information, the diagnostic protocol information, and the current connection mode, a target communication configuration strategy is determined. The target communication configuration strategy includes target communication unit information and target communication path information. The target communication path information is used to indicate switching the target communication path to the hardware communication path corresponding to the first path category or the hardware communication path corresponding to the second path category. According to the target communication configuration strategy, a communication configuration operation is performed on the vehicle diagnostic terminal and the vehicle communication interface device. The communication configuration operation is used to instruct the vehicle communication interface device to switch the target communication path to the corresponding hardware communication path according to the target communication path information.
[0006] As an optional implementation, in a first aspect of the present invention, the vehicle communication interface device includes a controller unit and a communication interface unit, the communication interface unit being used to connect to the electronic control unit; The target device type includes a first device type or a second device type; The first device type is a device type in which the vehicle communication interface device is equipped with a wireless network unit, and the wireless network unit is communicatively connected to the controller unit; The second device type is a device type in which the vehicle communication interface device is provided with at least a wireless network unit and a communication bus conversion unit. The communication bus conversion unit is used to convert a universal serial bus interface into a network interface and can switch communication connections between the controller unit and the communication interface unit.
[0007] As an optional implementation, in the first aspect of the present invention, the diagnostic mode information is used to indicate a local diagnostic mode or a remote diagnostic mode, and the current connection mode includes a wireless network connection mode or a universal serial bus connection mode. And, determining the target communication configuration strategy based on the target device type, the communication unit status information, the diagnostic mode information, the diagnostic protocol information, and the current connection mode includes: When the target device type is the first device type, the wireless network unit is determined as the target communication unit according to the communication unit status information, and the first communication path is determined as the target communication path. The first communication path is a communication path that passes through the wireless network unit, the controller unit, and the communication interface unit. When the target device type is the second device type, it is detected whether the diagnostic mode information indicates the local diagnostic mode and whether the current connection mode is the wireless network connection mode; When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the wireless network connection mode, the wireless network unit is identified as the target communication unit and the first communication path is identified as the target communication path. When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, the controller unit is determined as the target communication unit and the second communication path is determined as the target communication path. The second communication path is a communication path that passes through the controller unit and the communication interface unit. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the wireless network connection mode, the wireless network unit is identified as the target communication unit and the first communication path is identified as the target communication path. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, if the diagnostic protocol information indicates a diagnostic protocol based on the Internet Protocol, then the communication bus conversion unit is determined as the target communication unit, and the third communication path is determined as the target communication path. The third communication path is a communication path that passes through the communication bus conversion unit and the communication interface unit. The first communication path and the second communication path belong to the first path category, and the third communication path belongs to the second path category.
[0008] As an optional implementation, in the first aspect of the present invention, when the target device type is the first device type, the step of performing a communication configuration operation on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy includes: The system controls the vehicle diagnostic terminal to establish a wireless network communication channel with the wireless network unit of the vehicle communication interface device. When the diagnostic mode information indicates the local diagnostic mode, a local communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information; When the diagnostic mode information indicates the remote diagnostic mode, remote communication configuration information is obtained, and a remote communication transmission channel passing through the wireless network unit, the controller unit, and the communication interface unit is configured according to the Internet Protocol address information and the remote communication configuration information.
[0009] As an optional implementation, in the first aspect of the present invention, when the target device type is the second device type, the step of performing communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy includes: When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the wireless network connection mode, a local communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information; When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, the Universal Serial Bus communication connection between the vehicle diagnostic terminal and the controller unit is maintained, and a local communication transmission channel is configured through the controller unit and the communication interface unit. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the wireless network connection mode, a remote communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information. When the diagnostic mode information indicates the remote diagnostic mode, the diagnostic protocol information indicates the Internet Protocol-based diagnostic protocol, and the current connection mode is the Universal Serial Bus connection mode, a first switching command is generated; Send the first switching command to the vehicle communication interface device so that the vehicle communication interface device switches the communication bus conversion unit to a communication connection with the communication interface unit; Configure a remote communication transmission channel through the communication bus conversion unit and the communication interface unit based on the Internet protocol address information.
[0010] As an optional implementation, in the first aspect of the present invention, the target communication configuration strategy further includes expected communication state information, which includes at least one of expected activated communication unit, expected formed communication path, and expected activated communication port. After performing communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy, the method further includes: Obtain the actual communication status information after the vehicle communication interface device performs the communication configuration operation; Calculate the information difference between the actual communication status information and the expected communication status information; Based on the information difference degree, determine whether the actual communication status information matches the expected communication status information; When it is determined that the actual communication status information matches the expected communication status information, the communication transmission channel is successfully configured. When it is determined that the actual communication status information does not match the expected communication status information, the vehicle communication interface device is controlled to restore to the communication status before the communication configuration operation was performed, and the target communication configuration strategy is adjusted according to the information difference to obtain the adjusted target communication configuration strategy. Based on the adjusted target communication configuration strategy, the communication configuration operation is re-executed between the vehicle diagnostic terminal and the vehicle communication interface device.
[0011] As an optional implementation, in the first aspect of the present invention, calculating the information difference between the actual communication state information and the expected communication state information includes: According to the preset communication status items, multiple actual status values are extracted from the actual communication status information, and multiple expected status values corresponding to the multiple actual status values are extracted from the expected communication status information. The communication status items include at least one of communication unit activation status, communication path connection status, and communication port activation status. For each of the communication status items, the actual status value corresponding to the communication status item is compared with the expected status value; When the actual state value is the same as the expected state value, the item difference value corresponding to the communication state item is determined as the first preset value; When the actual state value is different from the expected state value, the item difference value corresponding to the communication state item is determined as a second preset value, and the second preset value is greater than the first preset value. Obtain the item weights corresponding to each of the aforementioned communication status items; Based on the difference value of each communication status item and the weight of each communication status item, the information difference degree between the actual communication status information and the expected communication status information is calculated for each communication status item.
[0012] A second aspect of the present invention discloses a communication configuration device for a vehicle communication interface. The device is applied to a vehicle diagnostic terminal, which has a diagnostic application installed. Communication configuration between the vehicle diagnostic terminal and a vehicle communication interface device is achieved by accessing the diagnostic application. The vehicle communication interface device is communicatively connected to the vehicle's electronic control unit. The device includes: The acquisition module is used to acquire device information of the vehicle communication interface device in response to a diagnostic request triggered by the diagnostic application. The device information includes device model information, communication unit configuration information, communication unit status information, and Internet protocol address information. The determination module is used to determine the target device type corresponding to the vehicle communication interface device based on the device model information and the communication unit configuration information; The determining module is further configured to determine the current connection mode of the vehicle diagnostic terminal currently accessing the vehicle communication interface device based on the diagnostic mode information and diagnostic protocol information carried in the acquired diagnostic request. The determining module is further configured to determine a target communication configuration strategy based on the target device type, the communication unit status information, the diagnostic mode information, the diagnostic protocol information, and the current connection mode. The target communication configuration strategy includes target communication unit information and target communication path information. The target communication path information is used to indicate switching the target communication path to the hardware communication path corresponding to the first path category or the hardware communication path corresponding to the second path category. The configuration module is used to perform communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy. The communication configuration operations are used to instruct the vehicle communication interface device to switch the target communication path to the corresponding hardware communication path according to the target communication path information.
[0013] As an optional implementation, in a second aspect of the present invention, the vehicle communication interface device includes a controller unit and a communication interface unit, the communication interface unit being used to connect to the electronic control unit; The target device type includes a first device type or a second device type; The first device type is a device type in which the vehicle communication interface device is equipped with a wireless network unit, and the wireless network unit is communicatively connected to the controller unit; The second device type is a device type in which the vehicle communication interface device is provided with at least a wireless network unit and a communication bus conversion unit. The communication bus conversion unit is used to convert a universal serial bus interface into a network interface and can switch communication connections between the controller unit and the communication interface unit.
[0014] As an optional implementation, in a second aspect of the invention, the diagnostic mode information is used to indicate a local diagnostic mode or a remote diagnostic mode, and the current connection mode includes a wireless network connection mode or a universal serial bus connection mode. Furthermore, the specific method by which the determining module determines the target communication configuration strategy based on the target device type, the communication unit status information, the diagnostic mode information, the diagnostic protocol information, and the current connection mode includes: When the target device type is the first device type, the wireless network unit is determined as the target communication unit according to the communication unit status information, and the first communication path is determined as the target communication path. The first communication path is a communication path that passes through the wireless network unit, the controller unit, and the communication interface unit. When the target device type is the second device type, it is detected whether the diagnostic mode information indicates the local diagnostic mode and whether the current connection mode is the wireless network connection mode; When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the wireless network connection mode, the wireless network unit is identified as the target communication unit and the first communication path is identified as the target communication path. When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, the controller unit is determined as the target communication unit and the second communication path is determined as the target communication path. The second communication path is a communication path that passes through the controller unit and the communication interface unit. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the wireless network connection mode, the wireless network unit is identified as the target communication unit and the first communication path is identified as the target communication path. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, if the diagnostic protocol information indicates a diagnostic protocol based on the Internet Protocol, then the communication bus conversion unit is determined as the target communication unit, and the third communication path is determined as the target communication path. The third communication path is a communication path that passes through the communication bus conversion unit and the communication interface unit. The first communication path and the second communication path belong to the first path category, and the third communication path belongs to the second path category.
[0015] As an optional implementation, in a second aspect of the present invention, when the target device type is the first device type, the specific method by which the configuration module performs communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy includes: The system controls the vehicle diagnostic terminal to establish a wireless network communication channel with the wireless network unit of the vehicle communication interface device. When the diagnostic mode information indicates the local diagnostic mode, a local communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information; When the diagnostic mode information indicates the remote diagnostic mode, remote communication configuration information is obtained, and a remote communication transmission channel passing through the wireless network unit, the controller unit, and the communication interface unit is configured according to the Internet Protocol address information and the remote communication configuration information.
[0016] As an optional implementation, in a second aspect of the present invention, when the target device type is the second device type, the specific method by which the configuration module performs communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy includes: When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the wireless network connection mode, a local communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information; When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, the Universal Serial Bus communication connection between the vehicle diagnostic terminal and the controller unit is maintained, and a local communication transmission channel is configured through the controller unit and the communication interface unit. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the wireless network connection mode, a remote communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information. When the diagnostic mode information indicates the remote diagnostic mode, the diagnostic protocol information indicates the Internet Protocol-based diagnostic protocol, and the current connection mode is the Universal Serial Bus connection mode, a first switching command is generated; Send the first switching command to the vehicle communication interface device so that the vehicle communication interface device switches the communication bus conversion unit to a communication connection with the communication interface unit; Configure a remote communication transmission channel through the communication bus conversion unit and the communication interface unit based on the Internet protocol address information.
[0017] As an optional implementation, in a second aspect of the present invention, the target communication configuration strategy further includes expected communication state information, which includes at least one of expected activated communication units, expected established communication paths, and expected activated communication ports. The acquisition module is further configured to acquire the actual communication status information of the vehicle communication interface device after the configuration module performs the communication configuration operation on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy; The device also includes: The calculation module is used to calculate the information difference between the actual communication status information and the expected communication status information; The judgment module is used to determine whether the actual communication status information matches the expected communication status information based on the information difference degree. The determining module is further configured to determine that the communication transmission channel is successfully configured when the judging module determines that the actual communication status information matches the expected communication status information. The control module is used to control the vehicle communication interface device to restore the communication state before the communication configuration operation was performed when the judgment module determines that the actual communication state information does not match the expected communication state information, and to obtain the adjusted target communication configuration strategy based on the information difference degree. The configuration module is also used to re-execute the communication configuration operation between the vehicle diagnostic terminal and the vehicle communication interface device according to the adjusted target communication configuration strategy.
[0018] As an optional implementation, in a second aspect of the present invention, the specific method by which the calculation module calculates the information difference between the actual communication state information and the expected communication state information includes: According to the preset communication status items, multiple actual status values are extracted from the actual communication status information, and multiple expected status values corresponding to the multiple actual status values are extracted from the expected communication status information. The communication status items include at least one of communication unit activation status, communication path connection status, and communication port activation status. For each of the communication status items, the actual status value corresponding to the communication status item is compared with the expected status value; When the actual state value is the same as the expected state value, the item difference value corresponding to the communication state item is determined as the first preset value; When the actual state value is different from the expected state value, the item difference value corresponding to the communication state item is determined as a second preset value, and the second preset value is greater than the first preset value. Obtain the item weights corresponding to each of the aforementioned communication status items; Based on the difference value of each communication status item and the weight of each communication status item, the information difference degree between the actual communication status information and the expected communication status information is calculated for each communication status item.
[0019] A third aspect of the present invention discloses another communication configuration device for a vehicle communication interface, the device comprising: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the communication configuration method of the vehicle communication interface disclosed in the first aspect of the present invention.
[0020] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the communication configuration method of the vehicle communication interface disclosed in the first aspect of the present invention.
[0021] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: Implementing this invention allows for the determination of the target device type by combining device model information and actual communication unit configuration information. Furthermore, it determines the target communication configuration strategy by combining communication unit status, diagnostic mode, diagnostic protocol, and current connection mode. This ensures that the selected target communication unit and target communication path match the actual hardware configuration of the current vehicle communication interface device and the current diagnostic scenario. This reduces the occurrence of communication unit selection errors and communication path configuration errors caused by mismatches in device type, diagnostic mode, or connection mode. It also improves the adaptability of the same vehicle diagnostic terminal to vehicle communication interface devices with different communication unit configurations, thereby enhancing the accuracy and reliability of vehicle diagnostic communication channel configuration. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart illustrating a communication configuration method for a vehicle communication interface disclosed in an embodiment of the present invention; Figure 2 This is a flowchart illustrating another communication configuration method for a vehicle communication interface disclosed in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a communication configuration device for a vehicle communication interface disclosed in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of another vehicle communication interface communication configuration device disclosed in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of another vehicle communication interface communication configuration device disclosed in an embodiment of the present invention. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0026] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0027] This invention discloses a communication configuration method and apparatus for a vehicle communication interface. It can determine the target device type by combining device model information and actual communication unit configuration information, and then determine the target communication configuration strategy by combining communication unit status, diagnostic mode, diagnostic protocol, and current connection mode. This ensures that the selected target communication unit and target communication path match the actual hardware configuration of the current vehicle communication interface device and the current diagnostic scenario. This reduces the occurrence of communication unit selection errors and communication path configuration errors caused by mismatches in device type, diagnostic mode, or connection mode. It also improves the adaptability of the same vehicle diagnostic terminal to vehicle communication interface devices with different communication unit configurations, thereby improving the accuracy and reliability of vehicle diagnostic communication channel configuration. Detailed descriptions follow.
[0028] Example 1 Please see Figure 1 , Figure 1 This is a flowchart illustrating a communication configuration method for a vehicle communication interface disclosed in an embodiment of the present invention. Figure 1The described vehicle communication interface communication configuration method can be applied to a vehicle diagnostic terminal. Optionally, the vehicle diagnostic terminal can be a tablet computer, personal computer, mobile terminal, or dedicated vehicle diagnostic equipment. A diagnostic application is installed on the vehicle diagnostic terminal, and users can access this application to initiate vehicle diagnostic requests and configure the communication method between the vehicle diagnostic terminal and the vehicle communication interface device. This embodiment of the invention does not impose limitations. Figure 1 As shown, the communication configuration method for this vehicle communication interface may include the following operations: 101. In response to a diagnostic request triggered by a diagnostic application, obtain device information of the vehicle communication interface device.
[0029] In this embodiment of the invention, optionally, the vehicle communication interface device may include a controller unit and a communication interface unit. The controller unit can be used to perform operations such as communication control, protocol processing, diagnostic data processing, and communication path control, while the communication interface unit is used to connect to the electronic control unit. The communication interface unit may include an Ethernet interface, a CAN (Controller Area Network) interface, a K-line interface, or other interfaces capable of communicating with the vehicle's electronic control unit; this embodiment of the invention does not impose limitations.
[0030] In this embodiment of the invention, optionally, the device information may include device model information, communication unit configuration information, communication unit status information, and Internet Protocol address information. The device model information indicates the specific model or model category of the vehicle communication interface device. The communication unit configuration information indicates the communication units configured in the vehicle communication interface device, such as a wireless network unit, a communication bus conversion unit, a controller unit, and a communication interface unit. The communication unit status information indicates the enabled status, connected status, occupied status, or current communication object of each communication unit. The Internet Protocol address information indicates the network address used by the vehicle diagnostic terminal when accessing the vehicle communication interface device; this embodiment of the invention does not limit the network address used.
[0031] After detecting a diagnostic request triggered by a user through a diagnostic application, the vehicle diagnostic terminal obtains the device information of the vehicle communication interface device to be connected. Optionally, the vehicle diagnostic terminal can send UDP (User Datagram Protocol) broadcast data via a wireless network connection or a Universal Serial Bus to Network Interface (USB-to-Network) connection. Upon receiving the UDP broadcast data, the vehicle communication interface device returns broadcast response data, enabling the vehicle diagnostic terminal to obtain the Internet Protocol (IP) address information of the vehicle communication interface device. After obtaining the IP address information, the vehicle diagnostic terminal can send a device information retrieval request to the vehicle communication interface device based on this IP address information. The vehicle communication interface device responds to the device information retrieval request, returning device model information, communication unit configuration information, and communication unit status information. Alternatively, the device model information can be directly included in the broadcast response data, allowing the vehicle diagnostic terminal to obtain both device model information and IP address information in a single device discovery process; this embodiment of the invention does not impose limitations on this.
[0032] 102. Based on the equipment model information and communication unit configuration information, determine the target equipment type corresponding to the vehicle communication interface equipment.
[0033] In this embodiment of the invention, the target device type may optionally include a first device type or a second device type. The first device type is a vehicle communication interface device equipped with a wireless network unit. The wireless network unit is communicatively connected to the controller unit. The vehicle diagnostic terminal can access the vehicle communication interface device through the wireless network unit and interact with the electronic control unit via the controller unit and the communication interface unit. The second device type is a vehicle communication interface device equipped with at least a wireless network unit and a communication bus conversion unit. The communication bus conversion unit is used to convert a universal serial bus interface into a network interface and can switch the communication connection between the controller unit and the communication interface unit. By classifying vehicle communication interface devices into a first device type and a second device type with different communication unit configurations, the actual communication capability boundaries of different device types can be clearly defined. This allows the vehicle diagnostic terminal to determine the appropriate communication configuration method for devices equipped only with a wireless network unit and devices equipped with both a wireless network unit and a communication bus conversion unit. This avoids issuing invalid configuration commands to vehicle communication interface devices without corresponding communication units, improving the accuracy of target device type identification and communication unit selection. This, in turn, improves the adaptability of the same vehicle diagnostic terminal to different vehicle communication interface devices, thereby improving the configuration accuracy and reliability of the vehicle diagnostic communication channel.
[0034] Optionally, the communication bus conversion unit may include a switch switching subunit and a USB network port subunit. The switch switching subunit may be implemented using a physical switch to select the target unit connected to the USB network port subunit; alternatively, the switch switching subunit may also be implemented using a solid-state electronic switch, and the corresponding path selection function may be implemented using electronic switching devices such as MUX (Multiplexer) switching chips. This embodiment of the invention does not impose any limitations.
[0035] The first device type mentioned above may correspond to a VCI (Vehicle Communication Interface) device that only has a wireless network unit, and the second device type mentioned above may correspond to a VCI device that has both a wireless network unit and a communication bus conversion unit. The communication bus conversion unit may be, for example, a USB (Universal Serial Bus) to Ethernet unit.
[0036] The vehicle diagnostic terminal determines the target device type corresponding to the vehicle communication interface device based on the device model information and communication unit configuration information. For example, the vehicle diagnostic terminal can pre-store the correspondence between device model, communication unit configuration, and device type. When the device model information corresponds to a first model, and the communication unit configuration information indicates that the vehicle communication interface device is equipped with a wireless network unit, the target device type can be determined to be the first device type.
[0037] When the device model information corresponds to the second model, and the communication unit configuration information indicates that the vehicle communication interface device is equipped with at least a wireless network unit and a communication bus conversion unit, the target device type can be determined to be the second device type.
[0038] By using both device model information and communication unit configuration information to determine the target device type, it is possible to avoid discrepancies between the device identification results and the actual communication capabilities of the vehicle communication interface device caused by relying solely on device model information.
[0039] 103. Based on the diagnostic mode information and diagnostic protocol information carried in the obtained diagnostic request, determine the current connection mode of the vehicle diagnostic terminal currently connected to the vehicle communication interface device.
[0040] In this embodiment of the invention, optionally, the diagnostic mode information is used to indicate a local diagnostic mode or a remote diagnostic mode, and the current connection mode includes a wireless network connection mode or a universal serial bus connection mode.
[0041] In this embodiment of the invention, the vehicle diagnostic terminal obtains the diagnostic mode information and diagnostic protocol information carried in the diagnostic request, and determines the current connection mode of the vehicle diagnostic terminal currently accessing the vehicle communication interface device. Optionally, the diagnostic mode information can be used to indicate a local diagnostic mode or a remote diagnostic mode. The local diagnostic mode can be a mode where the vehicle diagnostic terminal and the vehicle communication interface device are located at the same vehicle site and perform diagnostics through a local connection. The remote diagnostic mode can be a mode where the vehicle diagnostic terminal communicates with the vehicle communication interface device at the vehicle site via a network and remotely accesses the electronic control unit; this embodiment of the invention does not limit this.
[0042] In this embodiment of the invention, optionally, the diagnostic protocol information may indicate the DoIP (Diagnostics over Internet Protocol) protocol, or the PassThru protocol or other vehicle diagnostic protocols. This embodiment of the invention does not limit the scope of the information.
[0043] Optionally, the current connection mode may include a wireless network connection mode or a universal serial bus connection mode. The vehicle diagnostic terminal can determine the current connection mode based on the currently enabled interface, device enumeration results, network interface information, or the interface that has received response data from the vehicle communication interface device.
[0044] 104. Determine the target communication configuration strategy based on the target device type, communication unit status information, diagnostic mode information, diagnostic protocol information, and current connection mode.
[0045] In this embodiment of the invention, the vehicle diagnostic terminal determines the target communication configuration strategy based on the target device type, communication unit status information, diagnostic mode information, diagnostic protocol information, and current connection mode.
[0046] In this embodiment of the invention, optionally, the target communication configuration strategy includes at least target communication unit information and target communication path information. The target communication unit information indicates the communication unit used when executing the current communication configuration, and the target communication path information indicates switching the target communication path to the hardware communication path corresponding to the first path category or the hardware communication path corresponding to the second path category. Further optionally, the target communication configuration strategy may also include at least one of target communication port information, path switching information, network address information, and expected communication state information; this embodiment of the invention does not impose limitations on these aspects.
[0047] 105. Perform communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy.
[0048] In this embodiment of the invention, after determining the target communication configuration strategy, the vehicle diagnostic terminal performs communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication unit information and the target communication path information.
[0049] In this embodiment of the invention, the communication configuration operation is used to instruct the vehicle communication interface device to switch the target communication path to the corresponding hardware communication path according to the target communication path information. For example, when the target communication unit is a wireless network unit or a controller unit, the target communication path is switched to the hardware communication path corresponding to the first path category; when the target communication unit is a communication bus conversion unit, the target communication path is switched to the hardware communication path corresponding to the second path category.
[0050] It is evident that implementation Figure 1 The described vehicle communication interface communication configuration method can determine the target device type by combining device model information and actual communication unit configuration information, and then determine the target communication configuration strategy by combining communication unit status, diagnostic mode, diagnostic protocol and current connection mode. This ensures that the selected target communication unit and target communication path match the actual hardware configuration of the current vehicle communication interface device and the current diagnostic scenario. This can reduce the occurrence of communication unit selection errors and communication path configuration errors caused by mismatches in device type, diagnostic mode or connection mode. It can also improve the adaptability of the same vehicle diagnostic terminal to vehicle communication interface devices with different communication unit configurations, thereby improving the configuration accuracy and reliability of vehicle diagnostic communication channels.
[0051] In an optional embodiment, step 104 above, determining the target communication configuration strategy based on the target device type, communication unit status information, diagnostic mode information, diagnostic protocol information, and current connection mode, includes: When the target device type is the first device type, the wireless network unit is determined as the target communication unit according to the communication unit status information, and the first communication path is determined as the target communication path. The first communication path is a communication path that passes through the wireless network unit, the controller unit, and the communication interface unit. When the target device type is the second device type, check whether the diagnostic mode information indicates the local diagnostic mode and whether the current connection mode is the wireless network connection mode; When the diagnostic mode information indicates a local diagnostic mode and the current connection mode is a wireless network connection mode, the wireless network unit is identified as the target communication unit, and the first communication path is identified as the target communication path. When the diagnostic mode information indicates local diagnostic mode and the current connection mode is universal serial bus connection mode, the controller unit is identified as the target communication unit and the second communication path is identified as the target communication path. The second communication path is a communication path that passes through the controller unit and the communication interface unit. When the diagnostic mode information indicates remote diagnostic mode and the current connection mode is wireless network connection mode, the wireless network unit is identified as the target communication unit and the first communication path is identified as the target communication path. When the diagnostic mode information indicates remote diagnostic mode and the current connection mode is universal serial bus connection mode, if the diagnostic protocol information indicates a diagnostic protocol based on Internet Protocol, then the communication bus conversion unit is determined as the target communication unit, and the third communication path is determined as the target communication path. The third communication path is the communication path that passes through the communication bus conversion unit and the communication interface unit.
[0052] In this embodiment of the invention, a first communication path, a second communication path, and a third communication path can be pre-defined. The first and second communication paths belong to the first path category, and the third communication path belongs to the second path category. The first communication path passes sequentially through the wireless network unit, the controller unit, and the communication interface unit. The second communication path passes through the controller unit and the communication interface unit. The third communication path passes through the communication bus conversion unit and the communication interface unit.
[0053] When the target device type is the first device type, the vehicle diagnostic terminal determines whether the wireless network unit is available based on the communication unit status information. When the wireless network unit is available, it is identified as the target communication unit, and the first communication path is identified as the target communication path.
[0054] When the target device type is the second device type, the vehicle diagnostic terminal further detects diagnostic mode information and the current connection mode.
[0055] When the diagnostic mode information indicates local diagnostic mode and the current connection mode is wireless network connection mode, the wireless network unit is identified as the target communication unit, and the first communication path is identified as the target communication path.
[0056] When the diagnostic mode information indicates local diagnostic mode and the current connection mode is Universal Serial Bus (USB) connection mode, the controller unit is identified as the target communication unit, and the second communication path is identified as the target communication path. In this case, the vehicle diagnostic terminal can maintain the original USB communication relationship with the controller unit without triggering a remote switching operation of the communication bus conversion unit.
[0057] When the diagnostic mode information indicates remote diagnostic mode and the current connection mode is wireless network connection mode, the wireless network unit is identified as the target communication unit, and the first communication path is identified as the target communication path.
[0058] When the diagnostic mode information indicates remote diagnostic mode, the current connection mode is universal serial bus connection mode, and the diagnostic protocol information indicates a diagnostic protocol based on Internet Protocol, the communication bus conversion unit is determined as the target communication unit, and the third communication path is determined as the target communication path.
[0059] Therefore, the target communication configuration strategy can be determined through the following configuration relationships: In the wireless network connection mode, the first device type defines the wireless network unit and the first communication path as the target communication unit and the target communication path, respectively. When the second device type performs local diagnostics using a wireless network connection, the wireless network unit and the first communication path are respectively identified as the target communication unit and the target communication path. When the second type of device uses a universal serial bus connection to perform local diagnostics, the controller unit and the second communication path are respectively identified as the target communication unit and the target communication path. When the second type of device performs remote diagnostics using a wireless network connection, the wireless network unit and the first communication path are respectively identified as the target communication unit and the target communication path. When the second device type uses a universal serial bus connection to perform remote DoIP diagnostics, the communication bus conversion unit and the third communication path are respectively determined as the target communication unit and the target communication path.
[0060] As can be seen, this optional embodiment can use device type, communication unit status, diagnostic mode, diagnostic protocol, and current connection mode as the basis for determining the target communication configuration strategy. This enables the vehicle diagnostic terminal to distinguish the communication unit and communication path required by the same vehicle communication interface device in different diagnostic scenarios. It can improve the matching degree between the target communication unit and target communication path and the actual diagnostic scenario, thereby improving the vehicle diagnostic terminal's adaptability to different communication unit configurations and different connection modes, and is conducive to improving the configuration accuracy and reliability of the vehicle diagnostic communication channel.
[0061] In another optional embodiment, when the target device type is a first device type, the step 105 above, which involves performing a communication configuration operation on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy, may include: The wireless network unit of the vehicle diagnostic terminal and the vehicle communication interface device establishes a wireless network communication channel; When the diagnostic mode information indicates local diagnostic mode, the local communication transmission channel passing through the wireless network unit, controller unit, and communication interface unit is configured according to the Internet Protocol address information. When the diagnostic mode information indicates remote diagnostic mode, the remote communication configuration information is obtained, and the remote communication transmission channel passing through the wireless network unit, controller unit and communication interface unit is configured according to the Internet Protocol address information and the remote communication configuration information.
[0062] In this embodiment of the invention, the vehicle diagnostic terminal first establishes a wireless network communication channel with the wireless network unit of the vehicle communication interface device. The vehicle diagnostic terminal can access the wireless network unit based on the wireless network identifier, network authentication information, and Internet Protocol address information.
[0063] When the diagnostic mode information indicates local diagnostic mode, the vehicle diagnostic terminal configures a local communication transmission channel via the wireless network unit, controller unit, and communication interface unit according to the Internet Protocol address information. In this local communication transmission channel, the vehicle diagnostic terminal sends local diagnostic data to the wireless network unit, which then sends the local diagnostic data to the controller unit. The controller unit processes the local diagnostic data accordingly and then sends the diagnostic data to the electronic control unit via the communication interface unit.
[0064] When the diagnostic mode information indicates remote diagnostic mode, the vehicle diagnostic terminal obtains remote communication configuration information. Optionally, the remote communication configuration information may include at least one of the following: remote service address, remote communication port, diagnostic session identifier, authentication information, and remote diagnostic protocol parameters; however, this embodiment of the invention does not impose any limitations on this information.
[0065] The vehicle diagnostic terminal configures a remote communication transmission channel via a wireless network unit, a controller unit, and a communication interface unit, based on the Internet Protocol address information and remote communication configuration information of the vehicle communication interface device. Within this remote communication transmission channel, the vehicle diagnostic terminal sends diagnostic data to the vehicle communication interface device via the remote network. The vehicle communication interface device receives the diagnostic data via the wireless network unit and then transmits the corresponding diagnostic data to the electronic control unit via the controller unit and the communication interface unit.
[0066] As can be seen, this optional embodiment can configure a wireless local communication transmission channel and a wireless remote communication transmission channel for a first device type that only has a wireless network unit configured. This allows the device type to complete the corresponding communication configuration according to the diagnostic mode even without a communication bus conversion unit. This avoids incorrectly calling the USB network conversion or path switching function for the first device type and helps to improve the matching degree between the communication configuration operation corresponding to the first device type and its actual hardware configuration.
[0067] In another optional embodiment, when the target device type is the second device type, the step 105 above, which involves performing a communication configuration operation on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy, may include: When the diagnostic mode information indicates local diagnostic mode and the current connection mode is wireless network connection mode, configure the local communication transmission channel through the wireless network unit, controller unit and communication interface unit according to the Internet Protocol address information. When the diagnostic mode information indicates local diagnostic mode and the current connection mode is universal serial bus connection mode, maintain the universal serial bus communication connection between the vehicle diagnostic terminal and the controller unit, and configure the local communication transmission channel through the controller unit and the communication interface unit. When the diagnostic mode information indicates remote diagnostic mode and the current connection mode is wireless network connection mode, configure the remote communication transmission channel through the wireless network unit, controller unit and communication interface unit according to the Internet Protocol address information. When the diagnostic mode information indicates remote diagnostic mode, the diagnostic protocol information indicates Internet Protocol-based diagnostic protocol, and the current connection mode is Universal Serial Bus connection mode, a first switching command is generated. Send a first switching command to the vehicle communication interface device to cause the vehicle communication interface device to switch the communication bus conversion unit to a communication connection with the communication interface unit; Configure a remote communication transmission channel through the communication bus conversion unit and the communication interface unit based on Internet Protocol address information.
[0068] In this embodiment of the invention, when the diagnostic mode information indicates a local diagnostic mode and the current connection mode is a wireless network connection mode, the vehicle diagnostic terminal configures a local communication transmission channel through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information. In this case, the vehicle diagnostic terminal sends local diagnostic data to the controller unit through the wireless network unit, and the controller unit interacts with the electronic control unit through the communication interface unit to exchange diagnostic data.
[0069] When the diagnostic mode information indicates local diagnostic mode and the current connection mode is Universal Serial Bus (USB) connection mode, the vehicle diagnostic terminal maintains its USB communication connection with the controller unit and configures a local communication transmission channel through the controller unit and the communication interface unit. In this case, switching between the communication bus conversion unit and the communication interface unit is not triggered. The vehicle diagnostic terminal can invoke the PassThru function in the vehicle communication interface device via the USB communication connection, allowing the controller unit to receive local diagnostic data and the corresponding diagnostic data to be sent to the electronic control unit via the communication interface unit.
[0070] When the diagnostic mode information indicates remote diagnostic mode and the current connection mode is wireless network connection mode, the vehicle diagnostic terminal configures a remote communication transmission channel through the wireless network unit, controller unit, and communication interface unit based on the Internet Protocol address information and remote communication configuration information. Since remote diagnostic data is transmitted through the wireless network unit, there is no need to switch the communication bus conversion unit to the communication interface unit in this scenario.
[0071] When the diagnostic mode information indicates remote diagnostic mode, the diagnostic protocol information indicates an Internet Protocol-based diagnostic protocol, and the current connection mode is a Universal Serial Bus (USB) connection mode, the vehicle diagnostic terminal generates a first switching command and sends it to the vehicle communication interface device. In response to the first switching command, the vehicle communication interface device controls the communication bus conversion unit to switch to a communication connection with the communication interface unit, thereby connecting the network communication path corresponding to the USB-to-network interface to the communication interface unit. After completing the path switching, the vehicle diagnostic terminal configures the remote communication transmission channel through the communication bus conversion unit and the communication interface unit based on the Internet Protocol address information and remote communication configuration information.
[0072] In this optional embodiment, as an alternative implementation, the vehicle diagnostic terminal can determine the remote switching port and the DoIP communication port based on the remote communication configuration information. The vehicle diagnostic terminal sends path switching related data through the remote switching port and transmits remote DoIP diagnostic data for carrying the target Ethernet frame through the DoIP communication port. After obtaining the target Ethernet frame, the vehicle communication interface device sends the target Ethernet frame to the electronic control unit through the communication interface unit. Here, the remote DoIP diagnostic data is used to carry the target Ethernet frame and should not be interpreted as directly equating a regular Ethernet frame with a local DoIP application protocol data packet. The data transmitted in the remote diagnostic scenario can carry data link layer Ethernet frames from the vehicle's field network to meet the need for remote access to vehicle Ethernet data.
[0073] In this optional embodiment, the remote diagnostic process for processing remote diagnostic data can optionally be independent of the local diagnostic process for processing local diagnostic data. The remote diagnostic process can listen to the target Ethernet frames received by the communication interface unit and send corresponding data through the remote communication transmission channel; the local diagnostic process can continue to process local PassThru diagnostic data.
[0074] As can be seen, this optional embodiment can configure corresponding communication transmission channels for the second device type under local wireless diagnostics, local USB diagnostics, remote wireless diagnostics, and remote USB DoIP diagnostics respectively. It can maintain the original communication connection between the vehicle diagnostic terminal and the controller unit during local USB diagnostics, thereby helping to avoid unnecessary communication path switching from affecting local PassThru diagnostics. Furthermore, it can switch the communication bus conversion unit to the communication interface unit during remote USB DoIP diagnostics, enabling remote diagnostic data to be transmitted to the electronic control unit through the corresponding communication path. This improves the communication configuration adaptability of the second device type under different diagnostic modes and different connection modes.
[0075] Example 2 Please see Figure 2 , Figure 2 This is a flowchart illustrating another communication configuration method for a vehicle communication interface disclosed in an embodiment of the present invention. Figure 2 The described vehicle communication interface communication configuration method can be applied to a vehicle diagnostic terminal. Optionally, the vehicle diagnostic terminal can be a tablet computer, personal computer, mobile terminal, or dedicated vehicle diagnostic equipment. A diagnostic application is installed on the vehicle diagnostic terminal, and users can access this application to initiate vehicle diagnostic requests and configure the communication method between the vehicle diagnostic terminal and the vehicle communication interface device. This embodiment of the invention does not impose limitations. Figure 2 As shown, the communication configuration method for this vehicle communication interface may include the following operations: 201. In response to a diagnostic request triggered by the diagnostic application, obtain device information of the vehicle communication interface device.
[0076] 202. Based on the equipment model information and communication unit configuration information, determine the target equipment type corresponding to the vehicle communication interface equipment.
[0077] 203. Based on the diagnostic mode information and diagnostic protocol information carried in the obtained diagnostic request, determine the current connection mode of the vehicle diagnostic terminal currently connected to the vehicle communication interface device.
[0078] 204. Determine the target communication configuration strategy based on the target device type, communication unit status information, diagnostic mode information, diagnostic protocol information, and current connection mode.
[0079] In this embodiment of the invention, optionally, the target communication configuration strategy further includes expected communication status information. The expected communication status information includes at least one of the following: expected to be activated communication unit, expected to be formed communication path, and expected to be activated communication port. This embodiment of the invention does not limit the scope of the information. For example, when the target communication configuration strategy is used to configure a third communication path, the expected communication status information may include the communication bus conversion unit being in an enabled state, the communication bus conversion unit being connected to the communication interface unit, the remote switching port being in an enabled state, and the DoIP communication port being in an enabled state.
[0080] Specifically, before performing the communication configuration operation, the vehicle diagnostic terminal can acquire and save the current communication status information of the vehicle communication interface device as the expected communication status information before performing the communication configuration operation. Optionally, the communication status information may include at least one of the following: currently enabled communication unit, currently formed communication path, connection relationship between currently enabled communication units, and currently enabled communication port. This embodiment of the invention does not limit the scope of the information.
[0081] 205. Perform communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy.
[0082] In this embodiment of the invention, for other descriptions of steps 201-205, please refer to the detailed description of steps 101-105 in Embodiment 1. This embodiment of the invention is not limited.
[0083] 206. Obtain the actual communication status information after the vehicle communication interface device performs communication configuration operations.
[0084] In this embodiment of the invention, after performing the communication configuration operation, the vehicle diagnostic terminal obtains the actual communication status information of the vehicle communication interface device. Specifically, the vehicle diagnostic terminal can send a status query request to the vehicle communication interface device. In response to the status query request, the vehicle communication interface device reads the working status of the communication unit, the connection status between the communication units, the enabled status of the communication port, or the running status of the diagnostic process, and generates actual communication status information.
[0085] 207. Calculate the information difference between the actual communication status information and the expected communication status information.
[0086] 208. Based on the degree of information discrepancy, determine whether the actual communication status information matches the expected communication status information.
[0087] In this embodiment of the invention, a difference threshold can be preset. When the information difference is less than or equal to the difference threshold, it is determined that the actual communication status information matches the expected communication status information; when the information difference is greater than the difference threshold, it is determined that the actual communication status information does not match the expected communication status information.
[0088] In this embodiment of the invention, when the judgment result of step 208 is yes, that is, when it is determined that the actual communication status information matches the expected communication status information, step 209 is triggered; when the judgment result of step 208 is no, that is, when it is determined that the actual communication status information does not match the expected communication status information, it can be determined that the communication transmission channel configuration has failed; or, it can be determined that the communication transmission channel configuration has failed and step 210 is triggered. This embodiment of the invention does not limit the scope of the invention.
[0089] 209. The communication transmission channel configuration has been successfully confirmed.
[0090] 210. Control the vehicle communication interface device to restore the communication state before the communication configuration operation was performed, and adjust the target communication configuration strategy according to the information difference to obtain the adjusted target communication configuration strategy. Based on the adjusted target communication configuration strategy, re-execute the communication configuration operation between the vehicle diagnostic terminal and the vehicle communication interface device.
[0091] In this embodiment of the invention, when the communication transmission channel configuration fails, the vehicle diagnostic terminal can generate a recovery command based on the communication state saved before the communication configuration operation and send the recovery command to the vehicle communication interface device. In response to the recovery command, the vehicle communication interface device restores the communication unit, communication path, and communication port to the communication state before the communication configuration operation was performed.
[0092] For example, in a remote USB DoIP diagnostic scenario, if the actual communication status information returned by the vehicle communication interface device indicates that the communication bus conversion unit is still connected to the controller unit, it means that the third communication path has not been correctly formed. In this case, it can be determined that the communication transmission channel configuration has failed, and the communication bus conversion unit can be restored to the connection state before the switching operation was performed to avoid the erroneous intermediate state affecting subsequent local diagnostics.
[0093] It is evident that implementation Figure 2The described vehicle communication interface configuration method can determine the target device type by combining device model information and actual communication unit configuration information, and then determine the target communication configuration strategy by combining communication unit status, diagnostic mode, diagnostic protocol, and current connection mode. This ensures that the selected target communication unit and target communication path match the actual hardware configuration of the current vehicle communication interface device and the current diagnostic scenario. This reduces the occurrence of communication unit selection errors and communication path configuration errors caused by mismatches in device type, diagnostic mode, or connection mode. It also improves the adaptability of the same vehicle diagnostic terminal to vehicle communication interface devices with different communication unit configurations, thereby improving the configuration accuracy and reliability of the vehicle diagnostic communication channel. Furthermore, it can compare the actual communication status of the vehicle communication interface device with the expected communication status corresponding to the target communication configuration strategy. This allows for timely identification of abnormal situations such as communication units not being enabled, communication path switching failures, or communication ports not being open. In the event of configuration failure, it restores the original communication status, reducing the impact of incorrect configuration on existing diagnostic connections. This further improves the accuracy of communication configuration and fault recovery capabilities during the adaptation process of different vehicle communication interface devices, thus contributing to improved configuration reliability of the vehicle diagnostic communication channel.
[0094] In an optional embodiment, the calculation of the information difference between the actual communication state information and the expected communication state information in step 207 above includes: According to the preset communication status items, extract multiple actual status values from the actual communication status information, and extract multiple expected status values corresponding to the multiple actual status values from the expected communication status information. For each communication status item, compare the actual status value corresponding to that communication status item with the expected status value; When the actual status value is the same as the expected status value, the item difference value corresponding to the communication status item is determined as the first preset value. When the actual status value differs from the expected status value, the difference value of the item corresponding to the communication status item is determined as the second preset value, and the second preset value is greater than the first preset value. Obtain the project weight corresponding to each communication status item; Based on the difference value and weight of each communication status item, the information difference between the actual communication status information and the expected communication status information is calculated for each communication status item.
[0095] In this embodiment of the invention, the vehicle diagnostic terminal extracts multiple actual status values from the actual communication status information according to preset communication status items, and extracts multiple expected status values corresponding to the multiple actual status values from the expected communication status information. Optionally, the communication status items include at least one of communication unit activation status, communication path connection status, and communication port activation status, which is not limited in this embodiment of the invention.
[0096] For example, the communication unit enable status can be used to indicate whether the wireless network unit, controller unit, or communication bus conversion unit is enabled; the communication path connection status can be used to indicate whether a target communication path is formed between the wireless network unit, controller unit, communication bus conversion unit, and communication interface unit; and the communication port enable status can be used to indicate whether the remote switching port, DoIP communication port, or local diagnostic port is enabled.
[0097] For each communication status item, the vehicle diagnostic terminal compares the actual status value corresponding to that communication status item with the expected status value. For example, assuming the first preset value is 0 and the second preset value is 1, when the actual status value of a communication status item is the same as the expected status value, the corresponding item difference value is set to 0; when the actual status value of a communication status item is different from the expected status value, the corresponding item difference value is set to 1.
[0098] In this embodiment of the invention, the vehicle diagnostic terminal also obtains the item weights corresponding to each communication status item. The item weights represent the degree of influence of the corresponding communication status item on the normal operation of the communication transmission channel. For example, the target communication unit activation status and the target communication path connection status can be set to higher item weights, while the auxiliary communication port activation status can be set to lower item weights.
[0099] The vehicle diagnostic terminal performs a weighted calculation on each communication status item based on the item difference value and item weight, to obtain the information difference degree between the actual communication status information and the expected communication status information.
[0100] In this embodiment of the invention, the calculation formula is as follows:
[0101] in, Indicates the degree of information difference. Indicates the number of communication status items. Indicates the first The project weight corresponding to each communication status item. Indicates the first The difference value of each communication status item.
[0102] In this embodiment of the invention, the smaller the information difference, the closer the actual communication state information is to the expected communication state information; the larger the information difference, the greater the difference between the actual and expected communication states. The vehicle diagnostic terminal can compare the information difference with a preset difference threshold. When the information difference is less than or equal to the preset difference threshold, it is determined that the actual communication state information matches the expected communication state information; when the information difference is greater than the preset difference threshold, it is determined that the actual communication state information does not match the expected communication state information.
[0103] In this optional embodiment, as an alternative implementation, the target communication unit's enabled state or the target communication path's connection state can be set as a key communication state item. When the actual state value of any key communication state item differs from the expected state value, the corresponding item can be assigned a higher weight, or it can be directly determined that the actual communication state information does not match the expected communication state information.
[0104] As can be seen, this optional embodiment can comprehensively reflect the different influences of communication units, communication paths, and communication ports on communication configuration results by setting corresponding item difference values and item weights for different communication status items. This avoids incorrectly judging the overall communication configuration failure based solely on differences in minor status items, and also avoids ignoring anomalies in target communication units or core communication paths. Therefore, it can improve the accuracy of communication configuration result matching judgment, provide a unified and quantifiable judgment basis for communication configuration verification of different types of vehicle communication interface devices, thereby improving the adaptability of vehicle diagnostic terminals to vehicle communication interface devices with different communication unit configurations, and contributing to improving the configuration accuracy and reliability of vehicle diagnostic communication channels.
[0105] Example 3 Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a communication configuration device for a vehicle communication interface disclosed in an embodiment of the present invention. Figure 3 The described vehicle communication interface communication configuration device can be applied to a vehicle diagnostic terminal. Optionally, the vehicle diagnostic terminal can be a tablet computer, personal computer, mobile terminal, or dedicated vehicle diagnostic equipment. A diagnostic application is installed in the vehicle diagnostic terminal, and users can access this application to initiate vehicle diagnostic requests and configure the communication method between the vehicle diagnostic terminal and the vehicle communication interface device. This embodiment of the invention does not impose limitations. Figure 3 As shown, the communication configuration device for the vehicle communication interface may include: The acquisition module 301 is used to acquire device information of the vehicle communication interface device in response to a diagnostic request triggered by the diagnostic application. The device information includes device model information, communication unit configuration information, communication unit status information, and Internet protocol address information.
[0106] In this embodiment of the invention, optionally, the vehicle communication interface device includes a controller unit and a communication interface unit, the communication interface unit being used to connect to the electronic control unit.
[0107] The determination module 302 is used to determine the target device type corresponding to the vehicle communication interface device based on the device model information and communication unit configuration information.
[0108] In this embodiment of the invention, the target device type may optionally include a first device type or a second device type. The first device type is a vehicle communication interface device equipped with a wireless network unit, which is communicatively connected to the controller unit. The second device type is a vehicle communication interface device equipped with at least a wireless network unit and a communication bus conversion unit. The communication bus conversion unit converts a universal serial bus interface into a network interface and can switch the communication connection between the controller unit and the communication interface unit. By classifying vehicle communication interface devices into a first device type and a second device type with different communication unit configurations, the actual communication capability boundaries of different device types can be clearly defined. This allows the vehicle diagnostic terminal to determine the appropriate communication configuration for devices equipped only with a wireless network unit and devices equipped with both a wireless network unit and a communication bus conversion unit. This avoids issuing invalid configuration commands to vehicle communication interface devices without corresponding communication units, improving the accuracy of target device type identification and communication unit selection. This, in turn, enhances the adaptability of the same vehicle diagnostic terminal to different vehicle communication interface devices, thereby improving the configuration accuracy and reliability of the vehicle diagnostic communication channel.
[0109] The determination module 302 is also used to determine the current connection mode of the vehicle diagnostic terminal currently connected to the vehicle communication interface device based on the diagnostic mode information and diagnostic protocol information carried in the acquired diagnostic request.
[0110] The determining module 302 is further configured to determine a target communication configuration strategy based on the target device type, communication unit status information, diagnostic mode information, diagnostic protocol information, and current connection mode. The target communication configuration strategy includes target communication unit information and target communication path information. The target communication path information is used to indicate whether to switch the target communication path to the hardware communication path corresponding to the first path category or the hardware communication path corresponding to the second path category.
[0111] The configuration module 303 is used to perform communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy. The communication configuration operations are used to instruct the vehicle communication interface device to switch the target communication path to the corresponding hardware communication path according to the target communication path information.
[0112] It is evident that implementation Figure 3 The described vehicle communication interface communication configuration device can determine the target device type by combining device model information and actual communication unit configuration information, and then determine the target communication configuration strategy by combining communication unit status, diagnostic mode, diagnostic protocol and current connection mode. This ensures that the selected target communication unit and target communication path match the actual hardware configuration of the current vehicle communication interface device and the current diagnostic scenario. This reduces the occurrence of communication unit selection errors and communication path configuration errors caused by mismatches in device type, diagnostic mode or connection mode. It also improves the adaptability of the same vehicle diagnostic terminal to vehicle communication interface devices with different communication unit configurations, thereby improving the configuration accuracy and reliability of vehicle diagnostic communication channels.
[0113] In an optional embodiment, the diagnostic mode information is used to indicate a local diagnostic mode or a remote diagnostic mode, and the current connection mode includes a wireless network connection mode or a universal serial bus connection mode. Furthermore, the determining module 302 determines the specific method of the target communication configuration strategy based on the target device type, communication unit status information, diagnostic mode information, diagnostic protocol information, and current connection mode, including: When the target device type is the first device type, the wireless network unit is determined as the target communication unit according to the communication unit status information, and the first communication path is determined as the target communication path. The first communication path is a communication path that passes through the wireless network unit, the controller unit, and the communication interface unit. When the target device type is the second device type, check whether the diagnostic mode information indicates the local diagnostic mode and whether the current connection mode is the wireless network connection mode; When the diagnostic mode information indicates a local diagnostic mode and the current connection mode is a wireless network connection mode, the wireless network unit is identified as the target communication unit, and the first communication path is identified as the target communication path. When the diagnostic mode information indicates local diagnostic mode and the current connection mode is universal serial bus connection mode, the controller unit is identified as the target communication unit and the second communication path is identified as the target communication path. The second communication path is a communication path that passes through the controller unit and the communication interface unit. When the diagnostic mode information indicates remote diagnostic mode and the current connection mode is wireless network connection mode, the wireless network unit is identified as the target communication unit and the first communication path is identified as the target communication path. When the diagnostic mode information indicates remote diagnostic mode and the current connection mode is universal serial bus connection mode, if the diagnostic protocol information indicates a diagnostic protocol based on Internet Protocol, then the communication bus conversion unit is determined as the target communication unit, and the third communication path is determined as the target communication path. The third communication path is a communication path that passes through the communication bus conversion unit and the communication interface unit. The first communication path and the second communication path belong to the first path category, and the third communication path belongs to the second path category.
[0114] As can be seen, this optional embodiment can use device type, communication unit status, diagnostic mode, diagnostic protocol, and current connection mode as the basis for determining the target communication configuration strategy. This enables the vehicle diagnostic terminal to distinguish the communication unit and communication path required by the same vehicle communication interface device in different diagnostic scenarios. It can improve the matching degree between the target communication unit and target communication path and the actual diagnostic scenario, thereby improving the vehicle diagnostic terminal's adaptability to different communication unit configurations and different connection modes, and is conducive to improving the configuration accuracy and reliability of the vehicle diagnostic communication channel.
[0115] In another optional embodiment, when the target device type is a first device type, the specific method by which the configuration module 303 performs communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy includes: The wireless network unit of the vehicle diagnostic terminal and the vehicle communication interface device establishes a wireless network communication channel; When the diagnostic mode information indicates local diagnostic mode, the local communication transmission channel passing through the wireless network unit, controller unit, and communication interface unit is configured according to the Internet Protocol address information. When the diagnostic mode information indicates remote diagnostic mode, the remote communication configuration information is obtained, and the remote communication transmission channel passing through the wireless network unit, controller unit and communication interface unit is configured according to the Internet Protocol address information and the remote communication configuration information.
[0116] As can be seen, this optional embodiment can configure a wireless local communication transmission channel and a wireless remote communication transmission channel for a first device type that only has a wireless network unit configured. This allows the device type to complete the corresponding communication configuration according to the diagnostic mode even without a communication bus conversion unit. This avoids incorrectly calling the USB network conversion or path switching function for the first device type and helps to improve the matching degree between the communication configuration operation corresponding to the first device type and its actual hardware configuration.
[0117] In another optional embodiment, when the target device type is the second device type, the specific method by which the configuration module 303 performs communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy includes: When the diagnostic mode information indicates local diagnostic mode and the current connection mode is wireless network connection mode, configure the local communication transmission channel through the wireless network unit, controller unit and communication interface unit according to the Internet Protocol address information. When the diagnostic mode information indicates local diagnostic mode and the current connection mode is universal serial bus connection mode, maintain the universal serial bus communication connection between the vehicle diagnostic terminal and the controller unit, and configure the local communication transmission channel through the controller unit and the communication interface unit. When the diagnostic mode information indicates remote diagnostic mode and the current connection mode is wireless network connection mode, configure the remote communication transmission channel through the wireless network unit, controller unit and communication interface unit according to the Internet Protocol address information. When the diagnostic mode information indicates remote diagnostic mode, the diagnostic protocol information indicates Internet Protocol-based diagnostic protocol, and the current connection mode is Universal Serial Bus connection mode, a first switching command is generated. Send a first switching command to the vehicle communication interface device to cause the vehicle communication interface device to switch the communication bus conversion unit to a communication connection with the communication interface unit; Configure a remote communication transmission channel through the communication bus conversion unit and the communication interface unit based on Internet Protocol address information.
[0118] As can be seen, this optional embodiment can configure corresponding communication transmission channels for the second device type under local wireless diagnostics, local USB diagnostics, remote wireless diagnostics, and remote USB DoIP diagnostics respectively. It can maintain the original communication connection between the vehicle diagnostic terminal and the controller unit during local USB diagnostics, thereby helping to avoid unnecessary communication path switching from affecting local PassThru diagnostics. Furthermore, it can switch the communication bus conversion unit to the communication interface unit during remote USB DoIP diagnostics, enabling remote diagnostic data to be transmitted to the electronic control unit through the corresponding communication path. This improves the communication configuration adaptability of the second device type under different diagnostic modes and different connection modes.
[0119] In yet another optional embodiment, the target communication configuration strategy further includes expected communication state information, which includes at least one of expected enabled communication units, expected established communication paths, and expected enabled communication ports.
[0120] The acquisition module 301 is also used to acquire the actual communication status information of the vehicle communication interface device after the configuration module 303 performs the communication configuration operation on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy.
[0121] And, such as Figure 4 As shown, Figure 4 This is a schematic diagram of another communication configuration device for a vehicle communication interface disclosed in an embodiment of the present invention, wherein the device may further include: The calculation module 304 is used to calculate the information difference between the actual communication status information and the expected communication status information.
[0122] The judgment module 305 is used to determine whether the actual communication status information matches the expected communication status information based on the information difference degree.
[0123] The determination module 302 is also used to determine that the communication transmission channel configuration is successful when the judgment module 305 determines that the actual communication status information matches the expected communication status information.
[0124] The control module 306 is used to control the vehicle communication interface device to restore the communication state before the communication configuration operation was performed when the judgment module 305 determines that the actual communication state information does not match the expected communication state information, and to obtain the adjusted target communication configuration strategy based on the degree of information difference.
[0125] Configuration module 303 is also used to re-execute communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the adjusted target communication configuration strategy.
[0126] As can be seen, this optional embodiment can compare the actual communication status of the vehicle communication interface device with the expected communication status corresponding to the target communication configuration strategy. It can promptly identify abnormal situations such as communication unit not being enabled, communication path switching failure, or communication port not being opened, and restore the original communication status when configuration fails. This reduces the impact of incorrect configuration on existing diagnostic connections, thereby further improving the accuracy of communication configuration and fault recovery capability during the adaptation process of different vehicle communication interface devices, which in turn helps to improve the configuration reliability of vehicle diagnostic communication channels.
[0127] In this optional embodiment, as an optional implementation, the specific method by which the calculation module 304 calculates the information difference between the actual communication state information and the expected communication state information includes: According to the preset communication status items, multiple actual status values are extracted from the actual communication status information, and multiple expected status values corresponding to the multiple actual status values are extracted from the expected communication status information. The communication status items include at least one of communication unit activation status, communication path connection status, and communication port activation status. For each communication status item, compare the actual status value corresponding to that communication status item with the expected status value; When the actual status value is the same as the expected status value, the item difference value corresponding to the communication status item is determined as the first preset value. When the actual status value differs from the expected status value, the difference value of the item corresponding to the communication status item is determined as the second preset value, and the second preset value is greater than the first preset value. Obtain the project weight corresponding to each communication status item; Based on the difference value and weight of each communication status item, the information difference between the actual communication status information and the expected communication status information is calculated for each communication status item.
[0128] As can be seen, this optional implementation method can comprehensively reflect the different influences of communication units, communication paths, and communication ports on the communication configuration results by setting corresponding item difference values and item weights for different communication status items. This avoids incorrectly judging the overall communication configuration failure based solely on differences in minor status items, and also avoids ignoring anomalies in target communication units or core communication paths. Therefore, it can improve the accuracy of communication configuration result matching judgment, provide a unified and quantifiable judgment basis for communication configuration verification of different types of vehicle communication interface devices, thereby improving the adaptability of vehicle diagnostic terminals to vehicle communication interface devices with different communication unit configurations, and contributing to improving the configuration accuracy and reliability of vehicle diagnostic communication channels.
[0129] Example 4 Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of another vehicle communication interface communication configuration device disclosed in an embodiment of the present invention. For example... Figure 5 As shown, the communication configuration device for the vehicle communication interface may include: Memory 401 storing executable program code; Processor 402 coupled to memory 401; The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the communication configuration method of the vehicle communication interface described in Embodiment 1 or Embodiment 2 of the present invention.
[0130] Example 5 This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute the steps in the communication configuration method of the vehicle communication interface described in Embodiment 1 or Embodiment 2 of this invention.
[0131] Example 6 This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the communication configuration method of the vehicle communication interface described in Embodiment 1 or Embodiment 2.
[0132] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0133] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0134] Finally, it should be noted that the communication configuration method and apparatus for a vehicle communication interface disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A communication configuration method for a vehicle communication interface, characterized in that, The method is applied to a vehicle diagnostic terminal, which has a diagnostic application installed. Communication configuration between the vehicle diagnostic terminal and a vehicle communication interface device is achieved by accessing the diagnostic application. The vehicle communication interface device is communicatively connected to the vehicle's electronic control unit. The method includes: In response to a diagnostic request triggered by the diagnostic application, the device information of the vehicle communication interface device is obtained, including device model information, communication unit configuration information, communication unit status information, and Internet Protocol address information; Based on the device model information and the communication unit configuration information, the target device type corresponding to the vehicle communication interface device is determined; Based on the diagnostic mode information and diagnostic protocol information carried in the diagnostic request, the current connection mode of the vehicle diagnostic terminal currently accessing the vehicle communication interface device is determined. Based on the target device type, the communication unit status information, the diagnostic mode information, the diagnostic protocol information, and the current connection mode, a target communication configuration strategy is determined. The target communication configuration strategy includes target communication unit information and target communication path information. The target communication path information is used to indicate switching the target communication path to the hardware communication path corresponding to the first path category or the hardware communication path corresponding to the second path category. According to the target communication configuration strategy, a communication configuration operation is performed on the vehicle diagnostic terminal and the vehicle communication interface device. The communication configuration operation is used to instruct the vehicle communication interface device to switch the target communication path to the corresponding hardware communication path according to the target communication path information.
2. The communication configuration method for the vehicle communication interface according to claim 1, characterized in that, The vehicle communication interface device includes a controller unit and a communication interface unit, wherein the communication interface unit is used to connect to the electronic control unit; The target device type includes a first device type or a second device type; The first device type is a device type in which the vehicle communication interface device is equipped with a wireless network unit, and the wireless network unit is communicatively connected to the controller unit; The second device type is a device type in which the vehicle communication interface device is provided with at least a wireless network unit and a communication bus conversion unit. The communication bus conversion unit is used to convert a universal serial bus interface into a network interface and can switch communication connections between the controller unit and the communication interface unit.
3. The communication configuration method for the vehicle communication interface according to claim 2, characterized in that, The diagnostic mode information is used to indicate local diagnostic mode or remote diagnostic mode, and the current connection mode includes wireless network connection mode or universal serial bus connection mode. And, determining the target communication configuration strategy based on the target device type, the communication unit status information, the diagnostic mode information, the diagnostic protocol information, and the current connection mode includes: When the target device type is the first device type, the wireless network unit is determined as the target communication unit according to the communication unit status information, and the first communication path is determined as the target communication path. The first communication path is a communication path that passes through the wireless network unit, the controller unit, and the communication interface unit. When the target device type is the second device type, it is detected whether the diagnostic mode information indicates the local diagnostic mode and whether the current connection mode is the wireless network connection mode; When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the wireless network connection mode, the wireless network unit is identified as the target communication unit and the first communication path is identified as the target communication path. When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, the controller unit is determined as the target communication unit and the second communication path is determined as the target communication path. The second communication path is a communication path that passes through the controller unit and the communication interface unit. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the wireless network connection mode, the wireless network unit is identified as the target communication unit and the first communication path is identified as the target communication path. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, if the diagnostic protocol information indicates a diagnostic protocol based on the Internet Protocol, then the communication bus conversion unit is determined as the target communication unit, and the third communication path is determined as the target communication path. The third communication path is a communication path that passes through the communication bus conversion unit and the communication interface unit. The first communication path and the second communication path belong to the first path category, and the third communication path belongs to the second path category.
4. The communication configuration method for the vehicle communication interface according to claim 3, characterized in that, When the target device type is the first device type, the step of performing communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration policy includes: The system controls the vehicle diagnostic terminal to establish a wireless network communication channel with the wireless network unit of the vehicle communication interface device. When the diagnostic mode information indicates the local diagnostic mode, a local communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information; When the diagnostic mode information indicates the remote diagnostic mode, remote communication configuration information is obtained, and a remote communication transmission channel passing through the wireless network unit, the controller unit, and the communication interface unit is configured according to the Internet Protocol address information and the remote communication configuration information.
5. The communication configuration method for the vehicle communication interface according to claim 3, characterized in that, When the target device type is the second device type, the step of performing communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration policy includes: When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the wireless network connection mode, a local communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information; When the diagnostic mode information indicates the local diagnostic mode and the current connection mode is the Universal Serial Bus connection mode, the Universal Serial Bus communication connection between the vehicle diagnostic terminal and the controller unit is maintained, and a local communication transmission channel is configured through the controller unit and the communication interface unit. When the diagnostic mode information indicates the remote diagnostic mode and the current connection mode is the wireless network connection mode, a remote communication transmission channel is configured through the wireless network unit, the controller unit, and the communication interface unit according to the Internet Protocol address information. When the diagnostic mode information indicates the remote diagnostic mode, the diagnostic protocol information indicates the Internet Protocol-based diagnostic protocol, and the current connection mode is the Universal Serial Bus connection mode, a first switching command is generated; Send the first switching command to the vehicle communication interface device so that the vehicle communication interface device switches the communication bus conversion unit to a communication connection with the communication interface unit; Configure a remote communication transmission channel through the communication bus conversion unit and the communication interface unit based on the Internet protocol address information.
6. The communication configuration method for the vehicle communication interface according to claim 4 or 5, characterized in that, The target communication configuration strategy also includes expected communication status information, which includes at least one of the expected communication unit, the expected communication path, and the expected communication port. After performing communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy, the method further includes: Obtain the actual communication status information after the vehicle communication interface device performs the communication configuration operation; Calculate the information difference between the actual communication status information and the expected communication status information; Based on the information difference degree, determine whether the actual communication status information matches the expected communication status information; When it is determined that the actual communication status information matches the expected communication status information, the communication transmission channel is successfully configured. When it is determined that the actual communication status information does not match the expected communication status information, the vehicle communication interface device is controlled to restore to the communication status before the communication configuration operation was performed, and the target communication configuration strategy is adjusted according to the information difference to obtain the adjusted target communication configuration strategy. Based on the adjusted target communication configuration strategy, the communication configuration operation is re-executed between the vehicle diagnostic terminal and the vehicle communication interface device.
7. The communication configuration method for the vehicle communication interface according to claim 6, characterized in that, The calculation of the information difference between the actual communication state information and the expected communication state information includes: According to the preset communication status items, multiple actual status values are extracted from the actual communication status information, and multiple expected status values corresponding to the multiple actual status values are extracted from the expected communication status information. The communication status items include at least one of communication unit activation status, communication path connection status, and communication port activation status. For each of the communication status items, the actual status value corresponding to the communication status item is compared with the expected status value; When the actual state value is the same as the expected state value, the item difference value corresponding to the communication state item is determined as the first preset value; When the actual state value is different from the expected state value, the item difference value corresponding to the communication state item is determined as a second preset value, and the second preset value is greater than the first preset value. Obtain the item weights corresponding to each of the aforementioned communication status items; Based on the difference value of each communication status item and the weight of each communication status item, the information difference degree between the actual communication status information and the expected communication status information is calculated for each communication status item.
8. A communication configuration device for a vehicle communication interface, characterized in that, The device is applied to a vehicle diagnostic terminal, which has a diagnostic application installed. Communication configuration between the vehicle diagnostic terminal and a vehicle communication interface device is achieved by accessing the diagnostic application. The vehicle communication interface device is communicatively connected to the vehicle's electronic control unit. The device includes: The acquisition module is used to acquire device information of the vehicle communication interface device in response to a diagnostic request triggered by the diagnostic application. The device information includes device model information, communication unit configuration information, communication unit status information, and Internet protocol address information. The determination module is used to determine the target device type corresponding to the vehicle communication interface device based on the device model information and the communication unit configuration information; The determining module is further configured to determine the current connection mode of the vehicle diagnostic terminal currently accessing the vehicle communication interface device based on the diagnostic mode information and diagnostic protocol information carried in the acquired diagnostic request. The determining module is further configured to determine a target communication configuration strategy based on the target device type, the communication unit status information, the diagnostic mode information, the diagnostic protocol information, and the current connection mode. The target communication configuration strategy includes target communication unit information and target communication path information. The target communication path information is used to indicate switching the target communication path to the hardware communication path corresponding to the first path category or the hardware communication path corresponding to the second path category. The configuration module is used to perform communication configuration operations on the vehicle diagnostic terminal and the vehicle communication interface device according to the target communication configuration strategy. The communication configuration operations are used to instruct the vehicle communication interface device to switch the target communication path to the corresponding hardware communication path according to the target communication path information.
9. A communication configuration device for a vehicle communication interface, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the communication configuration method of the vehicle communication interface as described in any one of claims 1-7.
10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the communication configuration method of the vehicle communication interface as described in any one of claims 1-7.
