Heavy truck vehicle framework automatic identification method, device, equipment, medium and product
By automatically identifying the architecture of heavy truck vehicles, the time-consuming and labor-intensive problem of manually configuring the CAN channel and OBD interface in traditional vehicle diagnosis is solved, and fast and accurate communication establishment and diagnostic efficiency are achieved.
Patent Information
- Application Number
- CN202411906389.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-05-13
AI Technical Summary
During the diagnosis and maintenance of traditional vehicles, technicians need to manually configure or guess the baud rate of the CAN channel and the pin configuration of the OBD interface based on experience, which is time-consuming and labor-intensive and prone to diagnostic failure or inefficiency.
It provides an automatic identification method for heavy truck vehicle architecture, sending test online instructions to the test objects of heavy truck vehicle through preset communication modules and test schemes, and automatically detects and recognizes the existence, reception address, supported baud rate and OBD interface configuration of the diagnostic bus DCAN and power bus PCAN.
Fast and accurate communication establishment is achieved, which greatly reduces the risk of human operation errors and improves diagnostic efficiency and accuracy.
Smart Images

Figure CN119987324A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle communication technology, and in particular to a method, device, equipment, medium and product for automatic identification of a heavy truck vehicle architecture. Background Art
[0002] With the rapid development of modern automobile technology, the complexity of electronic control systems inside vehicles is increasing. The on-board controller is like the nervous system of the vehicle, controlling various functions from engine management, braking system, safety assistance to infotainment, etc. The controllers are interconnected through various bus technologies based on a carefully designed topology so as to work efficiently and collaboratively. The CAN bus is one of the most widely used communication protocols among various bus technologies.
[0003] CAN bus has become the core hardware foundation of vehicle-mounted networks with its high reliability, strong real-time performance and low cost. It allows different controllers to exchange data in a standardized format and supports the efficient operation of distributed control systems. However, in the traditional vehicle diagnosis and maintenance process, technicians often need to manually configure or guess the baud rate (data transmission rate) of a specific CAN channel and the pin configuration of the on-board diagnostic system (OBD) interface based on experience in order to successfully access and communicate with each vehicle controller. This process is not only time-consuming and labor-intensive, but also very easy to cause diagnostic failure or inefficiency due to human misjudgment. Summary of the invention
[0004] The present invention provides a method, device, equipment, medium and product for automatic identification of heavy truck vehicle architecture, which realizes rapid and accurate communication establishment and greatly reduces the risk of human operation errors.
[0005] The present invention provides a method for automatically identifying a heavy truck vehicle architecture, comprising: In response to the identification request of the host computer, a test online instruction is sent to the test object of the heavy truck vehicle based on a preset communication module and a preset test scheme, wherein the test object includes a diagnostic bus DCAN and a power bus PCAN; According to the test results corresponding to the test scheme, the architecture of the heavy truck vehicle is determined, and the architecture of the heavy truck vehicle is used to characterize the existence, receiving address, supported baud rate and OBD interface configuration of the test object.
[0006] As an embodiment, the communication module includes a first OBD interface and a second OBD interface. Correspondingly, sending a test online instruction to a test object of a heavy truck vehicle based on a preset communication module and a preset test scheme includes: Set the interface configuration IDs corresponding to the first OBD interface and the second OBD interface, respectively, and set the first test baud rate corresponding to the diagnostic bus DCAN and the second test baud rate corresponding to the power bus PCAN; Generate a first test online instruction corresponding to the first OBD interface and a second test online instruction corresponding to the second OBD interface according to the interface configuration ID, a preset sending address and a preset receiving address; According to the first test baud rate, the second test baud rate, the first test online instruction and the second test online instruction, at least one test scheme is obtained, wherein the test scheme is used to characterize that the first OBD interface sends the first test online instruction according to the first test baud rate or the second test baud rate, or that the second OBD interface sends the second test online instruction according to the first test baud rate or the second test baud rate; Send a test online instruction to the test object of the heavy truck vehicle according to the test plan.
[0007] As an embodiment, determining the architecture of the heavy truck according to the test results corresponding to the test scheme includes: If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is successful, it is determined that the existence of the diagnostic bus DCAN is online, the receiving address is the receiving address corresponding to the first test online instruction, the supported baud rate is the first test baud rate, and the OBD interface configuration is the first OBD interface; If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is successful, then based on the second OBD interface, the second test online instruction is sent at the second test baud rate. If the test result is successful, it is determined that the existence of the power bus PCAN is online, the receiving address is the receiving address corresponding to the second test online instruction, the supported baud rate is the second test baud rate, and the OBD interface is configured as the second OBD interface; If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is a failure, the second test online instruction is sent based on the second OBD interface at the first test baud rate, and if the test result is successful, it is determined that the existence of the diagnostic bus DCAN is online, the receiving address is the receiving address corresponding to the second test online instruction, the supported baud rate is the second test baud rate, and the OBD interface configuration is the second OBD interface; If the test result corresponding to the second test online instruction sent by the second OBD interface at the first test baud rate is successful, the first test online instruction is sent based on the first OBD interface at the second test baud rate, and if the test result is successful, it is determined that the existence of the power bus PCAN is online, the receiving address is the receiving address corresponding to the first test online instruction, the supported baud rate is the second test baud rate, and the OBD interface configuration is the first OBD interface; The existence, receiving address, supported baud rate and OBD interface configuration of the diagnostic bus DCAN and the power bus PCAN are used as the architecture of the heavy truck vehicle.
[0008] As an embodiment, it also includes: If the existence of the diagnostic bus DCAN and / or the power bus PCAN is online, performing the diagnostic operation specified by the host computer on the diagnostic bus DCAN and / or the power bus PCAN; If the diagnostic bus DCAN and / or the power bus PCAN are / is not online, an error message is fed back.
[0009] As an embodiment, the communication module includes serial communication, USB interface, Ethernet interface, Bluetooth module and WiFi module.
[0010] The present invention also provides a heavy truck vehicle architecture automatic identification device, comprising: An automatic identification module is used to respond to an identification request from a host computer, and send a test online instruction to a test object of a heavy-duty truck based on a preset communication module and a preset test scheme, wherein the test object includes a diagnostic bus DCAN and a power bus PCAN; and determine the architecture of the heavy-duty truck according to the test result corresponding to the test scheme, wherein the architecture of the heavy-duty truck is used to characterize the existence, receiving address, supported baud rate, and OBD interface configuration of the test object.
[0011] As an embodiment, it also includes: The manual identification module is used to send manual test instructions to the test object in sequence according to the manual test schemes corresponding to the predetermined different architectures. If the test result corresponding to the manual test scheme is successful, the manual test scheme is used as the architecture of the heavy truck vehicle.
[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for automatically identifying the heavy truck vehicle architecture as described above is implemented.
[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for automatically identifying the heavy truck vehicle architecture as described in any one of the above is implemented.
[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for automatically identifying the heavy truck vehicle architecture as described above is implemented.
[0015] The method, device, equipment, medium and product for automatic identification of heavy truck vehicle architecture provided by the present invention respond to the identification request of the host computer, send a test online instruction to the test object of the heavy truck vehicle based on a preset communication module and a preset test scheme, and the test object includes a diagnostic bus DCAN and a power bus PCAN; according to the test result corresponding to the test scheme, determine the architecture of the heavy truck vehicle, and the architecture of the heavy truck vehicle is used to characterize the existence, receiving address, supported baud rate and OBD interface configuration of the test object. The present invention can send a test online instruction to the test object of the heavy truck vehicle according to the preset test scheme based on the communication module, automatically detect and identify the existence, receiving address, supported baud rate and OBD interface configuration of the diagnostic bus DCAN and power bus PCAN of the heavy truck vehicle, and can realize fast and accurate communication establishment, greatly reducing the risk of human operation errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 This is one of the flow charts of the method for automatic identification of heavy truck vehicle architecture provided by the present invention.
[0018] Figure 2 This is the second flow chart of the method for automatic identification of heavy truck vehicle architecture provided by the present invention.
[0019] Figure 3 It is a structural schematic diagram of the automatic identification device for heavy truck vehicle architecture provided by the present invention.
[0020] Figure 4 It is a test flow diagram corresponding to one of the manual test solutions provided by the present invention.
[0021] Figure 5 It is a test flow diagram corresponding to the second manual test solution provided by the present invention.
[0022] Figure 6 It is a test flow diagram corresponding to the third manual test solution provided by the present invention.
[0023] Figure 7 It is a test flow diagram corresponding to the fourth manual test solution provided by the present invention.
[0024] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] It should be noted that all actions of acquiring signals, information or data in the present invention are performed in compliance with the corresponding data protection laws and policies of the location and with the authorization given by the owner of the corresponding device.
[0027] Figure 1 FIG. 1 is one of the flow charts of the method for automatically identifying the heavy truck vehicle architecture provided by the present invention, such as Figure 1 As shown, the present invention provides a method for automatically identifying a heavy truck vehicle architecture, comprising steps S100 to S200.
[0028] Step S100, in response to the identification request of the host computer, based on the preset communication module and the preset test scheme, a test online instruction is sent to the test object of the heavy truck vehicle, wherein the test object includes the diagnostic bus DCAN and the power bus PCAN. The diagnostic bus DCAN and the power bus PCAN each include a controller, and each controller is connected via a CAN bus.
[0029] As there are more and more controllers on the car, setting up a CAN bus may lead to too high a load rate, and different controllers have different requirements for communication rates. Therefore, the CAN bus is usually divided into several categories according to different functional components on the actual vehicle, such as power CAN (PCAN), body CAN, chassis CAN, diagnostic CAN (DCAN), etc. Different CAN buses exchange information through gateways. A CAN network needs to specify a communication baud rate, and each node communicates data at the same baud rate. Since the characteristics of the diagnostic protocol are often based on the request-response mechanism, the diagnosis of the vehicle through the diagnostic CAN is the basic way for the terminal to realize the vehicle diagnostic function. Most of the terminal's diagnosis of the vehicle occurs on PCAN or DCAN. PCAN is responsible for vehicle power and is the CAN bus with the highest signal priority and signal transmission rate in the vehicle CAN network. The DCAN bus mainly provides remote diagnostic functions. Therefore, the present invention sets the test object as the diagnostic bus DCAN and the power bus PCAN to improve the test efficiency while ensuring the test results.
[0030] Step S200, determining the architecture of the heavy truck vehicle according to the test results corresponding to the test scheme, wherein the architecture of the heavy truck vehicle is used to characterize the existence, receiving address, supported baud rate and OBD interface configuration of the test object.
[0031] It can be understood that the present invention can send test online instructions to the test object of the heavy-duty truck vehicle according to a preset test plan based on the communication module, automatically detect and identify the existence, receiving address, supported baud rate and on-board diagnostic system OBD interface configuration of the diagnostic bus DCAN and power bus PCAN of the heavy-duty truck vehicle, and realize fast and accurate communication establishment, greatly reducing the risk of human operation errors.
[0032] Based on the above embodiment, as an optional embodiment, the communication module includes a first OBD interface and a second OBD interface. Correspondingly, sending a test online instruction to the test object of the heavy truck vehicle based on a preset communication module and a preset test scheme includes the following steps.
[0033] Step S110, setting the interface configuration IDs corresponding to the first OBD interface and the second OBD interface respectively, setting the first test baud rate corresponding to the diagnostic bus DCAN and the second test baud rate corresponding to the power bus PCAN.
[0034] Pins 6 and 14 of the CAN bus interface are set as the first OBD interface, and the interface configuration ID is 72; pins 11 and 12 of the CAN bus interface are set as the second OBD interface, and the interface configuration ID is 73.
[0035] The vehicle controllers of heavy trucks are interconnected through various bus technologies. Controllers with the same CAN bus type and baud rate can be used as a control unit. The present invention divides the vehicle controller into three control units. They are control unit A on DCAN, control unit B on PCAN, and control unit B. The first test baud rate is 500K, and the second test baud rate includes 500K corresponding to control unit B and 250K corresponding to control unit C.
[0036] Step S120: Generate a first test online instruction corresponding to the first OBD interface and a second test online instruction corresponding to the second OBD interface according to the interface configuration ID, a preset sending address and a preset receiving address.
[0037] Taking the address of control unit A as an example, the first test online command sent to DCAN or PCAN using the first OBD interface (pins 6 and 14) is as follows:
[0038] The second test online command sent to DCAN or PCAN using the second OBD interface (pins 11 and 12) is as follows:
[0039] Step S130, obtaining at least one test scheme according to the first test baud rate, the second test baud rate, the first test online instruction and the second test online instruction, wherein the test scheme is used to characterize that the first OBD interface sends the first test online instruction according to the first test baud rate or the second test baud rate, or that the second OBD interface sends the second test online instruction according to the first test baud rate or the second test baud rate.
[0040] Step S140: sending a test online instruction to the test object of the heavy truck according to the test plan.
[0041] Figure 2 FIG. 2 is a flow chart of the automatic identification method for heavy truck vehicle architecture provided by the present invention. Figure 2 As shown, based on the above embodiment, as an optional embodiment, determining the architecture of the heavy truck vehicle according to the test results corresponding to the test scheme includes the following steps.
[0042] Step S210, if the test result corresponding to the first test online instruction sent by the first OBD interface (i.e., port A in the figure, the same below) at the first test baud rate is successful, it is determined that the existence of the diagnostic bus DCAN is online, the receiving address is the receiving address corresponding to the first test online instruction, the supported baud rate is the first test baud rate, and the OBD interface is configured as the first OBD interface.
[0043] Step S220, if the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is successful, then based on the second OBD interface (i.e., port B in the figure, the same below), the second test online instruction is sent at the second test baud rate. If the test result is successful, it is determined that the existence of the power bus PCAN is online, the receiving address is the receiving address corresponding to the second test online instruction, the supported baud rate is the second test baud rate, and the OBD interface is configured as the second OBD interface.
[0044] Step S230, if the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is failure, then based on the second OBD interface, the second test online instruction is sent at the first test baud rate. If the test result is success, it is determined that the existence of the diagnostic bus DCAN is online, the receiving address is the receiving address corresponding to the second test online instruction, the supported baud rate is the second test baud rate, and the OBD interface is configured as the second OBD interface.
[0045] Step S240, if the test result corresponding to the second test online instruction sent by the second OBD interface at the first test baud rate is successful, then based on the first OBD interface, the first test online instruction is sent at the second test baud rate. If the test result is successful, it is determined that the existence of the power bus PCAN is online, the receiving address is the receiving address corresponding to the first test online instruction, the supported baud rate is the second test baud rate, and the OBD interface is configured as the first OBD interface.
[0046] Step S250: The existence, receiving address, supported baud rate and OBD interface configuration of the diagnostic bus DCAN and the power bus PCAN are used as the architecture of the heavy truck vehicle.
[0047] Specifically, the present invention first detects whether the control unit A of the first OBD interface is online, and if it is online, the baud rate of DCAN is fed back as 500K. After the test is successful, the control unit B of the second OBD interface is detected, and if it is online, the baud rate of PCAN is fed back as 500K, and if it is unsuccessful, the baud rate of PCAN is fed back as 250K.
[0048] If the control unit A of the first OBD interface is not online, the second OBD interface is detected to see if the control unit A exists. If the control unit A of the second OBD interface is online, the baud rate of DCAN is reported as 500K. After the test is successful, the control unit B of the first OBD interface is detected to see if it is online. If it is online, the baud rate of PCAN is reported as 500K. If it is unsuccessful, the baud rate of PCAN is reported as 250K.
[0049] It is understandable that the type of electronic control unit is classified according to the type of CAN bus where the control unit is located (on DCAN or PCAN) and the baud rate of the control unit. Controllers with the same CAN bus type and baud rate can be used as a control unit, and a control unit can include multiple on-board controllers. The present invention determines whether the electronic control unit is online by sending a test instruction, and then determines the existence, supported baud rate and OBD interface configuration of the diagnostic bus DCAN and the power bus PCAN respectively according to the feedback. Therefore, the present invention can quickly and accurately determine whether the entire vehicle architecture and the electronic control unit are online.
[0050] On the basis of the above embodiment, as an optional embodiment, the method for automatic identification of heavy truck vehicle architecture provided by the present invention further includes the following steps.
[0051] Step S300: If the diagnostic bus DCAN and / or the power bus PCAN are online, a diagnostic operation specified by the host computer is performed on the diagnostic bus DCAN and / or the power bus PCAN.
[0052] Step S400: If the diagnostic bus DCAN and / or the power bus PCAN are / is not online, an error message is fed back.
[0053] When a diagnostic request is received from the host computer software, the diagnosed object information specified in the request is parsed, and first, according to the automatic test steps provided in step S100 and step S200, it is determined in real time whether the target control unit is online. If the target control unit is online, it automatically enters the next diagnostic operation, including but not limited to reading fault codes, clearing fault codes, program upgrades, actuator testing, etc. If the target control unit is not online, error information is immediately fed back to the user, including but not limited to control unit failure, communication failure, etc., and necessary troubleshooting suggestions are provided. Optionally, if automatic detection cannot be completed, the corresponding architecture can be manually selected according to the vehicle architecture status.
[0054] It can be understood that the present invention can quickly identify the vehicle network architecture and enable operators to quickly locate and solve problems, thereby reducing maintenance time and improving work efficiency.
[0055] Based on the above embodiment, as an optional embodiment, the communication module includes serial communication, USB interface, Ethernet interface, Bluetooth module and WiFi module.
[0056] Specifically, the present invention integrates a variety of hardware interface protocols, including serial communication (such as RS-232, RS-485), USB interface, Ethernet interface, and wireless communication technologies such as Bluetooth and Wi-Fi, covering various communication standards used by the first to third generation diagnostic tools of existing heavy trucks, ensuring seamless connection between software and hardware. Among them, the first generation diagnostic tool (white box) is limited to the use of 32-bit Windows system environment, and exchanges data with the system through the USB interface; the second generation diagnostic tool (black box) supports both 32-bit and 64-bit Windows system environments, and also uses a USB interface for connection; the third generation diagnostic tool (gray box) supports use in 32-bit Windows system and 64-bit Windows system environment, and is further expanded to multiple connection methods such as wired (such as USB, Ethernet, etc.) and wireless (such as WIFI, Bluetooth), to meet the flexible needs in different application scenarios.
[0057] It can be understood that the present invention is compatible with different diagnostic tools, adapts to the flexible needs in different application scenarios, realizes cross-generational compatibility and collaborative work, and facilitates the development of vehicle diagnostic software. Developers can focus more on the realization of diagnostic functions without having to worry about communication compatibility issues between different models.
[0058] The automatic identification device for a heavy truck vehicle structure provided by the present invention is described below. The automatic identification device for a heavy truck vehicle structure described below and the automatic identification method for a heavy truck vehicle structure described above can be referred to each other.
[0059] Figure 3 is a schematic diagram of the structure of the automatic identification device for heavy truck vehicle architecture provided by the present invention, such as Figure 3 As shown, the present invention also provides a heavy truck vehicle architecture automatic identification device, including the following modules.
[0060] The automatic identification module 310 is used to respond to the identification request of the host computer, and send a test online instruction to the test object of the heavy-duty truck vehicle based on a preset communication module and a preset test scheme, wherein the test object includes a diagnostic bus DCAN and a power bus PCAN; according to the test results corresponding to the test scheme, the architecture of the heavy-duty truck vehicle is determined, and the architecture of the heavy-duty truck vehicle is used to characterize the existence of the test object, the receiving address, the supported baud rate, and the OBD interface configuration of the on-board diagnostic system.
[0061] As an embodiment, the communication module includes a first OBD interface and a second OBD interface, and correspondingly, the automatic identification module 310 is further used for: Set the interface configuration IDs corresponding to the first OBD interface and the second OBD interface, respectively, and set the first test baud rate corresponding to the diagnostic bus DCAN and the second test baud rate corresponding to the power bus PCAN; Generate a first test online instruction corresponding to the first OBD interface and a second test online instruction corresponding to the second OBD interface according to the interface configuration ID, a preset sending address and a preset receiving address; According to the first test baud rate, the second test baud rate, the first test online instruction and the second test online instruction, at least one test scheme is obtained, wherein the test scheme is used to characterize that the first OBD interface sends the first test online instruction according to the first test baud rate or the second test baud rate, or that the second OBD interface sends the second test online instruction according to the first test baud rate or the second test baud rate; Send a test online instruction to the test object of the heavy truck vehicle according to the test plan.
[0062] As an embodiment, the automatic identification module 310 is further used for: If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is successful, it is determined that the existence of the diagnostic bus DCAN is online, the receiving address is the receiving address corresponding to the first test online instruction, the supported baud rate is the first test baud rate, and the OBD interface configuration is the first OBD interface; If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is successful, then based on the second OBD interface, the second test online instruction is sent at the second test baud rate. If the test result is successful, it is determined that the existence of the power bus PCAN is online, the receiving address is the receiving address corresponding to the second test online instruction, the supported baud rate is the second test baud rate, and the OBD interface is configured as the second OBD interface; If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is a failure, the second test online instruction is sent based on the second OBD interface at the first test baud rate, and if the test result is successful, it is determined that the existence of the diagnostic bus DCAN is online, the receiving address is the receiving address corresponding to the second test online instruction, the supported baud rate is the second test baud rate, and the OBD interface configuration is the second OBD interface; If the test result corresponding to the second test online instruction sent by the second OBD interface at the first test baud rate is successful, the first test online instruction is sent based on the first OBD interface at the second test baud rate, and if the test result is successful, it is determined that the existence of the power bus PCAN is online, the receiving address is the receiving address corresponding to the first test online instruction, the supported baud rate is the second test baud rate, and the OBD interface configuration is the first OBD interface; The existence, receiving address, supported baud rate and OBD interface configuration of the diagnostic bus DCAN and the power bus PCAN are used as the architecture of the heavy truck vehicle.
[0063] As an embodiment, the automatic identification module 310 is further used for: If the existence of the diagnostic bus DCAN and / or the power bus PCAN is online, performing the diagnostic operation specified by the host computer on the diagnostic bus DCAN and / or the power bus PCAN; If the diagnostic bus DCAN and / or the power bus PCAN are / is not online, an error message is fed back.
[0064] As an embodiment, the communication module includes serial communication, USB interface, Ethernet interface, Bluetooth module and WiFi module.
[0065] As an embodiment, it also includes: The manual identification module 320 is used to send manual test instructions to the test object in sequence according to the manual test schemes corresponding to the predetermined different architectures. If the test result corresponding to the manual test scheme is successful, the manual test scheme is used as the architecture of the heavy truck vehicle.
[0066] Figure 4 is a test flow diagram corresponding to one of the manual test solutions provided by the present invention, such as Figure 4 As shown in the figure, the first default architecture of heavy trucks is (A-DCAN: 500K; B-PCAN: 250K), in which the control unit A is at port A and the control unit C is at port B. Therefore, port A is configured as a 500K DCAN and port B is configured as a 250K PCAN.
[0067] Figure 5 This is a test flow diagram corresponding to the second manual test solution provided by the present invention. Figure 5 As shown in the figure, the second default architecture of heavy trucks is (A-PCAN: 250K; B-DCAN: 500K), in which the control unit C is at port A and the control unit A is at port B. Therefore, port A is configured as a 250K PCAN and port B is configured as a 500K DCAN.
[0068] Figure 6 This is a test flow diagram corresponding to the third manual test solution provided by the present invention. Figure 6 As shown, the third default architecture of heavy trucks is (A-PCAN: 500K; B-DCAN: 500K), in which the control unit B is at port A and the control unit A is at port B. Therefore, port A is configured as a 500K PCAN and port B is configured as a 500K DCAN.
[0069] Figure 7 This is a test flow diagram corresponding to the fourth manual test solution provided by the present invention. Figure 7 As shown in the figure, the fourth default architecture of heavy trucks is (A-DCAN: 500K; B-PCAN: 500K), in which the control unit A is at port A and the control unit B is at port B. Therefore, port A is configured as a 500K DCAN and port B is configured as a 500K PCAN.
[0070] It should be noted that the heavy-duty truck vehicle architecture automatic identification device provided by the present invention can execute the heavy-duty truck vehicle architecture automatic identification method described in any of the above embodiments during specific operation, and has the technical effect corresponding to the method, which will not be elaborated in this embodiment.
[0071] In summary, the heavy-duty truck vehicle architecture automatic identification method and device provided by the present invention integrate multiple functions such as diagnostic tool selection, vehicle architecture automatic identification, controller automatic identification, and vehicle architecture manual selection, and has the ability to dynamically adapt to the electrical architecture of vehicles of different models and years.
[0072] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the automatic identification method of the heavy truck vehicle architecture, the method comprising: in response to the identification request of the host computer, sending a test online instruction to the test object of the heavy truck vehicle based on a preset communication module and a preset test scheme, the test object including a diagnostic bus DCAN and a power bus PCAN; according to the test result corresponding to the test scheme, determining the architecture of the heavy truck vehicle, the architecture of the heavy truck vehicle is used to characterize the existence of the test object, the receiving address, the supported baud rate and the OBD interface configuration of the vehicle-mounted diagnostic system.
[0073] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0074] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the heavy-duty truck vehicle architecture automatic identification method provided by the above-mentioned methods, the method including: in response to an identification request of a host computer, sending a test online instruction to a test object of the heavy-duty truck vehicle based on a preset communication module and a preset test scheme, the test object including a diagnostic bus DCAN and a power bus PCAN; determining the architecture of the heavy-duty truck vehicle according to the test results corresponding to the test scheme, the architecture of the heavy-duty truck vehicle is used to characterize the existence of the test object, the receiving address, the supported baud rate and the OBD interface configuration of the on-board diagnostic system.
[0075] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the heavy-duty truck vehicle architecture automatic identification method provided by the above-mentioned methods, the method comprising: in response to an identification request of a host computer, sending a test online instruction to a test object of the heavy-duty truck vehicle based on a preset communication module and a preset test scheme, the test object comprising a diagnostic bus DCAN and a power bus PCAN; determining the architecture of the heavy-duty truck vehicle according to the test results corresponding to the test scheme, the architecture of the heavy-duty truck vehicle being used to characterize the existence of the test object, the receiving address, the supported baud rate and the OBD interface configuration of the on-board diagnostic system.
[0076] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0077] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatically identifying a heavy truck vehicle architecture, characterized in that: include: In response to the identification request of the host computer, a test online instruction is sent to the test object of the heavy truck vehicle based on a preset communication module and a preset test scheme, wherein the test object includes a diagnostic bus DCAN and a power bus PCAN; According to the test results corresponding to the test scheme, the architecture of the heavy truck vehicle is determined, and the architecture of the heavy truck vehicle is used to characterize the existence, receiving address, supported baud rate and OBD interface configuration of the test object.
2. The method for automatic identification of heavy truck vehicle architecture according to claim 1 is characterized in that: The communication module includes a first OBD interface and a second OBD interface. Correspondingly, sending a test online instruction to a test object of a heavy truck vehicle based on a preset communication module and a preset test scheme includes: Set the interface configuration IDs corresponding to the first OBD interface and the second OBD interface, respectively, and set the first test baud rate corresponding to the diagnostic bus DCAN and the second test baud rate corresponding to the power bus PCAN; Generate a first test online instruction corresponding to the first OBD interface and a second test online instruction corresponding to the second OBD interface according to the interface configuration ID, a preset sending address and a preset receiving address; According to the first test baud rate, the second test baud rate, the first test online instruction and the second test online instruction, at least one test scheme is obtained, wherein the test scheme is used to characterize that the first OBD interface sends the first test online instruction according to the first test baud rate or the second test baud rate, or that the second OBD interface sends the second test online instruction according to the first test baud rate or the second test baud rate; Send a test online instruction to the test object of the heavy truck vehicle according to the test plan.
3. The method for automatic identification of heavy truck vehicle architecture according to claim 2 is characterized in that: The step of determining the architecture of the heavy truck vehicle according to the test results corresponding to the test scheme includes: If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is successful, it is determined that the existence of the diagnostic bus DCAN is online, the receiving address is the receiving address corresponding to the first test online instruction, the supported baud rate is the first test baud rate, and the OBD interface configuration is the first OBD interface; If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is successful, then based on the second OBD interface, the second test online instruction is sent at the second test baud rate. If the test result is successful, it is determined that the existence of the power bus PCAN is online, the receiving address is the receiving address corresponding to the second test online instruction, the supported baud rate is the second test baud rate, and the OBD interface is configured as the second OBD interface; If the test result corresponding to the first test online instruction sent by the first OBD interface at the first test baud rate is a failure, the second test online instruction is sent based on the second OBD interface at the first test baud rate, and if the test result is successful, it is determined that the existence of the diagnostic bus DCAN is online, the receiving address is the receiving address corresponding to the second test online instruction, the supported baud rate is the second test baud rate, and the OBD interface configuration is the second OBD interface; If the test result corresponding to the second test online instruction sent by the second OBD interface at the first test baud rate is successful, the first test online instruction is sent based on the first OBD interface at the second test baud rate, and if the test result is successful, it is determined that the existence of the power bus PCAN is online, the receiving address is the receiving address corresponding to the first test online instruction, the supported baud rate is the second test baud rate, and the OBD interface configuration is the first OBD interface; The existence, receiving address, supported baud rate and OBD interface configuration of the diagnostic bus DCAN and the power bus PCAN are used as the architecture of the heavy truck vehicle.
4. The method for automatic identification of heavy truck vehicle architecture according to claim 3 is characterized in that: Also includes: If the existence of the diagnostic bus DCAN and / or the power bus PCAN is online, performing the diagnostic operation specified by the host computer on the diagnostic bus DCAN and / or the power bus PCAN; If the diagnostic bus DCAN and / or the power bus PCAN are / is not online, an error message is fed back.
5. The method for automatic identification of heavy truck vehicle architecture according to any one of claims 1 to 4, characterized in that: The communication module includes serial communication, USB interface, Ethernet interface, Bluetooth module and WiFi module.
6. A heavy truck vehicle structure automatic identification device, characterized in that: include: An automatic identification module is used to respond to an identification request from a host computer, and send a test online instruction to a test object of a heavy-duty truck based on a preset communication module and a preset test scheme, wherein the test object includes a diagnostic bus DCAN and a power bus PCAN; and determine the architecture of the heavy-duty truck according to the test result corresponding to the test scheme, wherein the architecture of the heavy-duty truck is used to characterize the existence, receiving address, supported baud rate, and OBD interface configuration of the test object.
7. The heavy truck vehicle structure automatic identification device according to claim 6 is characterized in that: Also includes: The manual identification module is used to send manual test instructions to the test object in sequence according to the manual test schemes corresponding to the predetermined different architectures. If the test result corresponding to the manual test scheme is successful, the manual test scheme is used as the architecture of the heavy truck vehicle.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for automatic identification of the heavy truck vehicle architecture as described in any one of claims 1 to 5 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for automatic identification of the heavy truck vehicle architecture as claimed in any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for automatic identification of the heavy truck vehicle architecture as claimed in any one of claims 1 to 5 is implemented.