WO2024109535A1 - 通信交互方法、装置、设备及存储介质 - Google Patents
通信交互方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2024109535A1 WO2024109535A1 PCT/CN2023/130107 CN2023130107W WO2024109535A1 WO 2024109535 A1 WO2024109535 A1 WO 2024109535A1 CN 2023130107 W CN2023130107 W CN 2023130107W WO 2024109535 A1 WO2024109535 A1 WO 2024109535A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- communication
- electronic control
- communication command
- control unit
- command
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C5/00—Registering or indicating the working of vehicles
- G07C5/08—Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
- G07C5/0808—Diagnosing performance data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40143—Bus networks involving priority mechanisms
- H04L12/4015—Bus networks involving priority mechanisms by scheduling the transmission of messages at the communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/14—Multichannel or multilink protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Definitions
- the present application relates to the field of communications, and in particular to communication interaction methods, devices, equipment and storage media.
- ECUs electronice control units
- ECU has fault self-diagnosis and protection functions. When the system fails, ECU can automatically record the fault code in random access memory (RAM) and prompt by lighting the fault light on the dashboard.
- RAM random access memory
- the fault information stored in ECU can be read by the car diagnostic instrument.
- the car diagnostic instrument can be connected to the car through the car's on-board diagnostics (OBD) interface, and communicate with the ECU in the car through the OBD interface to obtain all fault information in the car and analyze it to obtain the current fault cause, fault description, fault status and other information.
- OBD on-board diagnostics
- the car diagnostic instrument and the car's ECU are based on serial communication, that is, the car diagnostic instrument communicates with the ECU one by one, and only after all the communication commands with the previous ECU are interacted one by one, it will interact with the next ECU one by one, which takes a long time and has low diagnostic efficiency.
- the present application provides a communication interaction method, device, equipment and storage medium to solve the technical problem that communication between an automobile diagnostic instrument and an automobile ECU takes a long time.
- a communication interaction method comprising:
- VIN vehicle identification number
- a plurality of electronic control units and a plurality of communication parameters in the target vehicle are obtained according to the VIN, wherein the plurality of communication parameters include communication parameters corresponding to each of the plurality of electronic control units;
- At least one communication link is created for the plurality of electronic control units, wherein one communication link corresponds to one communication parameter;
- multiple electronic control units in the vehicle and communication parameters of the multiple electronic control units are first obtained according to the vehicle identification code of the vehicle; then, according to the communication parameters corresponding to each of the multiple electronic control units, communication links are created for the multiple electronic control units in the vehicle, and one communication link corresponds to one communication parameter, thereby realizing the classification of the electronic control units in the vehicle, and allocating the electronic control units with the same communication parameters into a group to facilitate communication transmission; finally, through the created communication links, parallel communication command interactions are performed with the multiple electronic control units in the vehicle, and the communication command interactions of the multiple electronic control units in the vehicle do not depend on each other, thereby reducing the duration of the communication command interactions and improving the efficiency of communicating with the electronic control units in the vehicle.
- the communication commands are exchanged in parallel with the electronic control units corresponding to the at least one communication link through each communication link, including: generating communication command queues corresponding to the electronic control units according to the communication commands of the target communication link, wherein the target communication link is any one of the at least one communication link, and a communication command queue includes all communication commands of an electronic control unit corresponding to the target communication link; and transmitting and processing the communication commands in the communication command queues corresponding to the electronic control units in parallel through the target communication link.
- the communication commands of the electronic control units are arranged to form a communication command queue, so that the communication command interaction can be carried out in an orderly manner; the communication commands in the communication command queues are transmitted and processed in parallel through the communication link, and the communication command interaction between the electronic control units does not interfere with each other, so that the efficiency of the communication command interaction can be improved.
- the method further includes: in the case of acquiring a first communication command of a first electronic control unit, inserting the first communication command into a first communication command queue, the first electronic control unit being any electronic control unit corresponding to the target communication link, the first communication command being a newly added communication command, and the first communication command queue being a communication command queue corresponding to the first electronic control unit.
- the newly added communication command is inserted into the corresponding communication command queue, so that the newly added communication command can be processed, and the communication commands corresponding to the electronic control unit can be carried out in an orderly manner.
- inserting the first communication command into a first communication command queue includes:
- the first communication command is inserted into a position in the first communication command queue corresponding to the timing of the first communication command.
- the parallel transmission and processing of the communication commands in the communication command queues corresponding to the respective electronic control units through the target communication link includes: sending the i-th communication command in the first communication command queue to the first electronic control unit through the target communication link, the first electronic control unit being the electronic control unit corresponding to the first communication command queue, the first electronic control unit being any electronic control unit corresponding to the target communication link, 1 ⁇ i ⁇ N, N being the total number of communication commands in the first communication command queue; upon receiving the i-th response corresponding to the i-th communication command sent by the first electronic control unit, processing the i-th response, and sending the (i+1)-th communication command in the first communication command queue to the first electronic control unit through the target communication link.
- the method further includes: after receiving the response corresponding to the last communication command in the first communication command queue, generating the communication command processing result of the first electronic control unit according to the processing results of all the response corresponding to the first communication command queue. After processing the communication commands in a communication command queue, generating the communication command processing result of the electronic control unit according to the processing results of all the response corresponding to the communication command queue, thereby realizing timely feedback on the communication command interaction results.
- the sending of the i-th communication command in the first communication command queue to the first electronic control unit through the target communication link includes: based on the first thread, sending the i-th communication command in the first communication command queue to the first electronic control unit through the target communication link; the processing of the i-th response and the (i+1)-th communication command in the first communication command queue includes: based on the second thread, processing the i-th response, and based on the first thread, sending the (i+1)-th communication command in the first communication command queue to the first electronic control unit through the target communication link, the second thread and the first thread are different threads.
- the efficiency of communication command interaction can be improved by completing the sending and receiving of communication commands and data processing through different threads.
- the communication command is used to obtain the fault information of the target vehicle; the method further includes: after the communication commands in the communication command queue corresponding to each communication link are transmitted and processed, generating a fault detection report corresponding to the target vehicle according to all the fault information obtained based on all the communication commands that have been transmitted. After all the communication commands are processed, a fault detection report for the vehicle is generated, which is helpful for the user to understand all the fault information of the vehicle.
- a communication interaction device comprising:
- An acquisition module is configured to acquire, when a vehicle identification code of a target vehicle is acquired, a plurality of electronic control units and a plurality of communication parameters in the target vehicle according to the vehicle identification code, wherein the plurality of communication parameters include communication parameters corresponding to each of the plurality of electronic control units;
- a link creation module configured to create at least one communication link for the plurality of electronic control units according to the plurality of communication parameters, wherein one communication link corresponds to one communication parameter;
- the parallel interaction module is used to perform parallel communication command interaction with the electronic control units corresponding to each communication link through each communication link in the at least one communication link.
- a computer device comprising a memory and one or more processors, wherein the memory is connected to the one or more processors, and the one or more processors are used to execute one or more computer programs stored in the memory, and when the one or more processors execute the one or more computer programs, the computer device implements the communication interaction method of the first aspect.
- a computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the communication interaction method of the first aspect.
- the present application can achieve the following technical effects: reducing the duration of communication command interaction and improving the efficiency of communication with the electronic control unit in the vehicle.
- FIG1 is a schematic diagram of a system architecture of an automobile communication system provided by an embodiment of the present application.
- FIG2 is a flow chart of a communication interaction method provided in an embodiment of the present application.
- FIG. 3 is a schematic diagram of the interaction between the upper layer application and the core communication module of the automobile diagnostic instrument according to the embodiment of the present application;
- 4A-4D are schematic diagrams of a communication command queue provided in an embodiment of the present application.
- FIG. 5 is a schematic diagram of a flow chart of transmitting and processing a communication command in a communication command queue on a communication link according to an embodiment of the present application
- FIG6 is a schematic diagram of the structure of a communication interaction device provided in an embodiment of the present application.
- FIG. 7 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application.
- FIG. 1 is a schematic diagram of the system architecture of an automobile communication system provided by an embodiment of the present application.
- the automobile communication system 10 includes an automobile diagnostic instrument 101, a vehicle communication interface (VCI) module 102 and a vehicle 103, and the automobile diagnostic instrument 101 is connected to the vehicle 103 through the VCI module 102.
- VCI vehicle communication interface
- the automobile diagnostic instrument 101 can also be called an automobile decoder, which is used to communicate with the ECU in the vehicle 103 through a communication module such as a controller area network (CAN) communication module or a local interconnect network (LIN) communication module, and transmit the fault code and engine status information of the vehicle 103 to realize fault scanning detection of the vehicle 103; the automobile diagnostic instrument 101 can also be used for vehicle ECU positioning, vehicle ECU data backup and data restoration of the vehicle 103.
- the VCI module 102 is a vehicle communication connection tool, which is used to connect to the OBD interface of the vehicle 103 to establish a communication connection between the vehicle diagnostic instrument 101 and the vehicle 103.
- the VCI module 102 can be connected to the vehicle diagnostic instrument 101 through Bluetooth, universal serial bus (USB), WiFi, etc.
- the VCI module 102 is connected to the OBD interface of the vehicle through a diagnostic main line.
- the vehicle 103 includes multiple ECUs, and the ECU is composed of integrated circuits such as a microcontroller unit (MCU), RAM, read-only memory (ROM), and input and output interfaces.
- MCU microcontroller unit
- ROM read-only memory
- Different ECUs can be set at different mechanical devices of the vehicle to detect the operation of different mechanical devices and record the fault conditions of different mechanical devices.
- the ECU can be set on mechanical devices such as the engine and anti-lock braking system of the vehicle 103.
- the automobile diagnostic instrument 101 and the ECU in the vehicle 103 perform fault detection by serial communication, that is, the automobile diagnostic instrument 101 interacts with the ECUs one by one in a sequential order, sends communication commands one by one and receives responses to the communication commands, sends the next communication command after receiving the response to the previous communication command, and interacts with the next ECU to obtain the fault information recorded in the next ECU after the communication interaction with the previous ECU is completed and the fault information recorded in the previous ECU is obtained.
- This method takes a long time to obtain all the fault information in the vehicle 103, and the communication efficiency is low.
- the present application proposes a communication interaction method, which groups the vehicle's ECUs according to the communication parameters of the ECUs in the vehicle, divides the ECUs with the same communication parameters into one group, and creates a communication link that matches the communication parameters of the ECUs to transmit communication commands of the ECUs with the same communication parameters; in the same communication link, the communication commands of the ECUs corresponding to the communication link are transmitted and interacted in parallel, so that the communication command interactions of the ECUs do not interfere with each other, thereby reducing the communication interaction time and improving the communication efficiency.
- FIG. 2 is a flow chart of a communication interaction method provided in an embodiment of the present application.
- the method can be applied to the aforementioned automobile diagnostic instrument 101. As shown in FIG. 2 , the method includes the following steps:
- the target vehicle is a vehicle that has established a physical connection with the vehicle diagnostic instrument through the VCI module. After establishing a physical connection with the target vehicle, the VCI module can turn on the ignition key of the target vehicle, start the engine and other functional devices of the target vehicle, so that a communication connection is established between the vehicle diagnostic instrument and the target vehicle, thereby obtaining the vehicle identification code of the target vehicle.
- the multiple electronic control units in the target vehicle refer to the multiple electronic control units that need to communicate with the target vehicle in order to perform a certain task. For example, if the automobile diagnostic instrument is currently performing a fault scan on the target vehicle, and the object of the fault scan is all the electronic control units in the target vehicle, then the multiple electronic control units refer to all the electronic control units in the target vehicle. For another example, if the automobile diagnostic instrument is currently performing a data backup on some electronic control units in the target vehicle, then the multiple electronic control units refer to the electronic control units in the target vehicle that need to perform data backup. The number of electronic control units depends on the task that needs to be performed.
- the multiple communication parameters of the target vehicle include communication parameters corresponding to each electronic control unit in the multiple electronic control units in the target vehicle.
- the communication parameters corresponding to the electronic control unit refer to the parameters required to be adopted/followed for communication with the electronic control unit, and the communication parameters corresponding to the electronic control unit may include the communication protocol, communication pin, baud rate, time parameter, communication command filling format, etc. adopted for communication with the electronic control unit.
- the model of the target vehicle can be obtained based on the vehicle identification code of the target vehicle, and then the preset diagnostic database is queried based on the model of the target vehicle to obtain the entire system set and system configuration of the target vehicle, and then the electronic control unit list is obtained from the entire system set to obtain multiple electronic control units, and the communication parameters of the multiple electronic control units are obtained from the system configuration.
- S202 Create at least one communication link for multiple electronic control units in the target vehicle according to multiple communication parameters of the target vehicle.
- one communication link corresponds to one communication parameter
- different communication links correspond to different communication parameters. If the communication parameters of multiple electronic control units in the target vehicle are the same, the multiple electronic control units share the same communication link.
- the purpose of creating at least one communication link for multiple electronic control units in the target vehicle is to group the multiple electronic control units in the target vehicle and build an environment required for communication for the electronic control units in the same group.
- the process of creating a communication link for the target vehicle may include filtering of ECUs.
- an electronic control unit can be selected from multiple electronic control units in the target vehicle as the target electronic control unit, and a target communication link matching the communication parameters of the target electronic control unit is created according to the communication parameters of the target electronic control unit; then, according to the communication parameters of other electronic control units in the target vehicle, an electronic control unit with the same communication parameters as the target electronic control unit is determined to form a first electronic control unit combination with the target electronic control unit; finally, the target communication link is set to allow the reception of communication messages sent by the electronic control units in the first electronic control unit combination, thereby obtaining a communication link.
- a communication link is created for the electronic control units in the target vehicle that have not yet been assigned to the electronic control unit combination, until all the electronic control units in the target vehicle have corresponding communication links, and one or more communication links can be obtained. It should be understood that, except for the different request addresses and response addresses, the communication parameters of the various electronic control units in the same electronic control unit combination are the same.
- the way the present application creates a communication link is basically the same as the principle of creating a communication link when an automobile diagnostic instrument communicates serially with a vehicle.
- the difference is that a communication link created when an automobile diagnostic instrument communicates serially with a vehicle only allows the reception of messages from one electronic control unit at a time; since the present application creates multiple communication links, and each communication link allows the reception of messages from multiple electronic control units at the same time, it can communicate and interact with all control units in the target vehicle at the same time.
- S203 Perform parallel communication command interaction with the electronic control units corresponding to the at least one communication link through each communication link in the at least one communication link.
- performing parallel communication command interaction with the electronic control unit corresponding to the communication link through the communication link means that for each communication link created, the communication commands of all electronic control units corresponding to the communication link are transmitted in parallel through the communication link.
- the communication commands of each electronic control unit can be obtained by the upper-level application that performs a certain task in the automobile diagnostic instrument. After the upper-level application of the automobile diagnostic instrument obtains the communication commands of each electronic control unit, it can send the communication commands of each electronic control unit to the core communication module of the automobile diagnostic instrument.
- the automobile diagnostic instrument currently performs a fault scanning task for BMW cars, and the upper-level application can refer to the BMW diagnostic software in the automobile diagnostic instrument.
- the core communication module in the automobile diagnostic instrument can be, for example, a multi-channel communication module.
- the upper-level application Q1 of the automobile diagnostic instrument obtains the entry command, positioning command, code reading command and exit command of each ECU respectively, and provides them to the core communication module Q2.
- Each communication link transmits the communication commands of all electronic control units corresponding to the communication link in parallel in the same manner.
- the commands of the various ECUs corresponding to the communication link can be queued in sequence to complete the parallel transmission of the communication commands of the various ECUs.
- parallel transmission on the communication link can be achieved through the following steps A1-A2.
- A1 Generate a communication command queue corresponding to each electronic control unit corresponding to the target communication link according to the communication commands of each electronic control unit corresponding to the target communication link.
- the target communication link may be any one of the at least one communication link created in the aforementioned step S201.
- a communication command queue includes all communication commands of an electronic control unit corresponding to the target communication link.
- the communication commands of each electronic control unit corresponding to the target communication link may be arranged into a communication command queue according to the order in which the commands are executed.
- step A1 By performing the processing of step A1 on the electronic control unit corresponding to each communication link, a communication command queue corresponding to each communication link can be obtained.
- the communication command queues corresponding to the m communication links may be as shown in FIG4B .
- the upper layer application of the vehicle diagnostic instrument can also add a communication command to the core communication module of the electronic control unit. After the above step A1, it can also include: when the first communication command of the first electronic control unit is obtained, insert the first communication command into the first communication command queue.
- the first electronic control unit is any electronic control unit corresponding to the target communication link
- the first communication command is a newly added communication command
- the first communication command queue is a communication command queue corresponding to the first electronic control unit
- the newly added communication command is generally not in the first communication command queue.
- the first communication command may be inserted into a position in the first communication command queue corresponding to the timing of the first communication command according to the timing sequence relationship between the first communication command and the communication commands in the first communication command queue.
- the communication command queue created for ECU (d) according to the communication command of ECU (d) is shown as d1 in FIG. 4C ; assuming that after the entry command of ECU (d) is sent to ECU (d) through the communication link (d), the upper layer application sends the code reading command of ECU (d) to the core communication module. Since the timing of the code reading command is after the timing of the positioning command, the code reading command of ECU (d) is inserted into the position after the positioning command, that is, inserted into the end of the communication command queue. After the code reading command is inserted into the end of the communication command queue of ECU (d), the communication command queue of ECU (d) is shown as d2 in FIG. 4C .
- the communication command queue created for ECU(e) according to the communication command of ECU(e) is shown as e1 in FIG4C ;
- the upper layer application sends a code reading command of ECU(e) to the core communication module, and the timing of the code reading command is after the timing of the positioning command and before the timing of command E, the code reading command is inserted after the code reading command and before command E.
- the communication command queue of ECU(e) is shown as e2 in FIG4C .
- the newly added communication command can occur at any stage of the parallel communication command interaction between the vehicle diagnostic instrument and the target vehicle.
- the newly added communication command is inserted into the corresponding communication command queue so that the newly added communication command can be processed and the communication commands corresponding to the electronic control unit can be carried out in an orderly manner.
- A2 Transmit and process, in parallel, through the target communication link, the communication commands in the communication command queues corresponding to the respective electronic control units corresponding to the target communication link.
- parallel transmission and processing of communication commands in the communication command queues corresponding to the respective electronic control units corresponding to the target communication link means sequentially sending the communication commands in the command queues corresponding to the respective electronic control units corresponding to the target communication link, and respectively receiving responses in the command queues corresponding to the respective electronic control units corresponding to the target communication link.
- the sending of communication commands and the receiving of responses in the respective command queues do not interfere with each other.
- the process of parallel transmission and processing of the communication commands in the communication command queues corresponding to the electronic control units corresponding to the target communication link is as follows: an entry command is sent to ECU1, ECU2 and ECU3 in sequence, and upon receiving the entry response sent by ECU1, a positioning command is sent to ECU1; upon receiving the entry response sent by ECU2, a positioning command is sent to ECU2... until the exit commands of ECU1 to ECU3 have all been sent, and the response corresponding to the exit commands of ECU1 to ECU3 has been received.
- Figure 5 is a schematic diagram of a process of transmitting and processing a communication command in a communication command queue on a communication link provided by an embodiment of the present application. As shown in Figure 5, the following steps may be included:
- the first communication command queue is a communication command queue corresponding to the first electronic control unit
- the first electronic control unit is a communication command queue corresponding to any electronic control unit corresponding to the target communication link.
- step 304 and step 307 are executed; when the i-th response corresponding to the i-th communication command is not received, step 303 is continued to be executed.
- N is the total number of communication commands contained in the first communication command queue.
- step 306 When i is equal to N, it means that the response corresponding to the last communication command in the first communication command queue has been received, and step 306 is executed; when i is not equal to N, it means that there are communication commands in the first communication command queue that have not been sent, and step 305 is executed.
- response data may be obtained from the i-th response and analyzed to complete processing of the i-th response.
- the above steps 301 to 306 can all be executed by the first thread; the above step 307 can be executed by the second thread, and the first thread and the second thread are two different threads.
- the efficiency of communication command interaction can be improved by completing the sending, receiving and processing of communication commands through different threads.
- processing of communication commands in different communication command queues may also be completed by different threads.
- the method may further include: generating a communication command processing result of the electronic control unit corresponding to the first communication command queue according to the processing results of all the response responses corresponding to the first communication command queue.
- the communication command processing result is a result of the pointer executing a certain task for the electronic control unit corresponding to the first communication command queue.
- the communication command processing result of the electronic control unit corresponding to the first communication command queue refers to the fault information of the electronic control unit corresponding to the first communication command queue.
- the communication command processing result of the electronic control unit is generated according to all the responses corresponding to the communication command queue, thereby realizing timely feedback on the communication command interaction result.
- the communication command in the solution of FIG. 1 may be a communication command for obtaining fault information of a target vehicle.
- the method of FIG. 1 may also include: after all communication commands in the communication command queue corresponding to each communication link are transmitted and processed, generating a fault detection report corresponding to the target vehicle according to all fault information of the target vehicle obtained based on all the transmitted communication commands.
- All communication commands refer to the communication commands in all communication command queues. Taking Figure 3 as an example, all communication commands include the communication commands of ECU1 to ECUn.
- all fault information of the target vehicle can be obtained according to the fault information included in the response corresponding to all the communication commands, so as to generate a fault detection report corresponding to the target vehicle.
- a fault detection report of the vehicle is generated, which helps users understand all the fault information of the vehicle.
- broadcast instructions can also be sent to each electronic control unit through each communication link, and instruction responses sent by each electronic control unit in response to the broadcast instructions can be received to achieve parallel communication command interaction with each electronic control unit, thereby obtaining data of each electronic control unit in the target vehicle.
- FIG. 6 is a schematic diagram of the structure of a communication interaction device provided in an embodiment of the present application.
- the communication interaction device may be the aforementioned automobile diagnostic instrument 101.
- the communication interaction device 40 includes:
- a configuration acquisition module 401 is configured to acquire, when a vehicle identification code of a target vehicle is acquired, a plurality of electronic control units and a plurality of communication parameters in the target vehicle according to the vehicle identification code, wherein the plurality of communication parameters include communication parameters corresponding to each of the plurality of electronic control units;
- a link creation module 402 configured to create at least one communication link for the plurality of electronic control units according to the plurality of communication parameters, wherein one communication link corresponds to one communication parameter;
- the parallel interaction module 403 is used to perform parallel communication command interaction with the electronic control units corresponding to each communication link through each communication link in the at least one communication link.
- the above-mentioned parallel interaction module 403 is specifically used to: generate a communication command queue corresponding to each electronic control unit according to the communication commands of each electronic control unit corresponding to the target communication link, the target communication link is any one of the at least one communication link, and a communication command queue includes all communication commands of an electronic control unit corresponding to the target communication link; and transmit and process the communication commands in the communication command queues corresponding to the each electronic control unit in parallel through the target communication link.
- the parallel interaction module 403 is also used to: when a first communication command of a first electronic control unit is obtained, insert the first communication command into a first communication command queue, the first electronic control unit is any electronic control unit corresponding to the target communication link, the first communication command is a newly added communication command, and the first communication command queue is a communication command queue corresponding to the first electronic control unit.
- the above-mentioned parallel interaction module 403 is specifically used to: insert the first communication command into the position in the first communication command queue corresponding to the timing of the first communication command according to the timing sequence relationship between the first communication command and the communication commands in the first communication command queue.
- the above-mentioned parallel interaction module 403 is specifically used to: send the i-th communication command in the first communication command queue to the first electronic control unit through the target communication link, the first electronic control unit is the electronic control unit corresponding to the first communication command queue, the first electronic control unit is any electronic control unit corresponding to the target communication link, 1 ⁇ i ⁇ N, N is the total number of communication commands in the first communication command queue; when receiving the i-th response corresponding to the i-th communication command sent by the first electronic control unit, process the i-th response, and send the (i+1)-th communication command in the first communication command queue to the first electronic control unit through the target communication link.
- the parallel interaction module 403 is also used to: after receiving the response corresponding to the last communication command in the first communication command queue, generate the communication command processing result of the first electronic control unit according to the processing results of all response corresponding to the first communication command queue.
- the above-mentioned parallel interaction module 403 is specifically used to: based on the first thread, send the i-th communication command in the first communication command queue to the first electronic control unit through the target communication link; based on the second thread, process the i-th response, and based on the first thread, send the (i+1)-th communication command in the first communication command queue to the first electronic control unit through the target communication link, and the second thread and the first thread are different threads.
- the communication command is used to obtain fault information of the target vehicle; the above-mentioned device also includes a report generation module 404, which is used to generate a fault detection report corresponding to the target vehicle according to all fault information obtained based on all transmitted communication commands after all communication commands in the communication command queue corresponding to each communication link are transmitted and processed.
- a report generation module 404 which is used to generate a fault detection report corresponding to the target vehicle according to all fault information obtained based on all transmitted communication commands after all communication commands in the communication command queue corresponding to each communication link are transmitted and processed.
- the above-mentioned device After obtaining the vehicle identification code of the vehicle, the above-mentioned device first obtains multiple electronic control units in the vehicle and communication parameters of the multiple electronic control units according to the vehicle identification code of the vehicle; then, according to the communication parameters corresponding to each of the multiple electronic control units, a communication link is created for the multiple electronic control units in the vehicle, and one communication link corresponds to one communication parameter, thereby realizing the classification of the electronic control units in the vehicle, and allocating the electronic control units with the same communication parameters to a group to facilitate communication transmission; finally, through the created communication link, parallel communication command interaction is performed with the multiple electronic control units in the vehicle, and the communication command interaction of the multiple electronic control units in the vehicle does not depend on each other, thereby reducing the duration of the communication command interaction and improving the efficiency of communication with the electronic control units in the vehicle.
- FIG. 7 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application, and the computer device may be the aforementioned automobile diagnostic instrument 101.
- the computer device 50 includes a processor 501, a memory 502, and a communication interface 503.
- the memory 502 and the communication interface 503 are connected to the processor 501, for example, via a bus.
- the processor 501 is configured to support the computer device 50 to perform the corresponding functions in the method in the above method embodiment.
- the processor 501 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof.
- the above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
- the above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
- the memory 502 is used to store program codes, etc.
- the memory 502 may include a volatile memory (VM), such as a random access memory (RAM); the memory 502 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 502 may also include a combination of the above-mentioned types of memories.
- VM volatile memory
- RAM random access memory
- NVM non-volatile memory
- ROM read-only memory
- HDD hard disk drive
- SSD solid-state drive
- the communication interface 503 is used to send a communication command under the instruction of the processor 501, or to receive a response corresponding to the communication command.
- the communication interface 503 can be a hardware interface, such as a USB interface, etc.; the communication interface 503 can also be a software interface, such as a Bluetooth interface, a WiFi interface, etc. The limitations are not limited here.
- the processor 501 may call the program code to perform the following operations:
- a vehicle identification code of a target vehicle When a vehicle identification code of a target vehicle is obtained, a plurality of electronic control units and a plurality of communication parameters in the target vehicle are obtained according to the vehicle identification code, wherein the plurality of communication parameters include communication parameters corresponding to each of the plurality of electronic control units;
- An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method described in the above embodiment.
- the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
其中,各个通信链路对应的通信命令队列中的通信命令均传输处理完毕,是指接收到所有的通信命令对应的应答响应并完成所有的应答响应的处理。所有的通信命令是指所有的通信命令队列中的通信命令。以图3为例,所有的通信命令包括ECU1~ECUn的通信命令。
Claims (11)
- 一种通信交互方法,包括:在获取到目标车辆的车辆识别码的情况下,根据所述车辆识别码,获取所述目标车辆中的多个电子控制单元和多个通信参数,所述多个通信参数包括所述多个电子控制单元中的每个电子控制单元对应的通信参数;根据所述多个通信参数,为所述多个电子控制单元创建至少一个通信链路,其中,一个通信链路对应一种通信参数;通过所述至少一个通信链路中的各个通信链路,分别与所述各个通信链路对应的电子控制单元进行并行通信命令交互。
- 根据权利要求1所述的方法,其中,所述通过所述至少一个通信链路中的各个通信链路,分别与所述各个通信链路对应的电子控制单元进行并行通信命令交互,包括:根据目标通信链路对应的各个电子控制单元的通信命令,生成所述各个电子控制单元对应的通信命令队列,所述目标通信链路为所述至少一个通信链路中的任意一个通信链路,一个通信命令队列包括所述目标通信链路对应的一个电子控制单元的所有通信命令;通过所述目标通信链路,并行传输和处理所述各个电子控制单元对应的通信命令队列中的通信命令。
- 根据权利要求2所述的方法,其中,所述根据目标通信链路对应的各个电子控制单元的通信命令,生成所述各个电子控制单元对应的通信命令队列之后,所述方法还包括:在获取到第一电子控制单元的第一通信命令的情况下,将所述第一通信命令插入第一通信命令队列,所述第一电子控制单元为目标通信链路对应的任意一个电子控制单元,所述第一通信命令为新增的通信命令,所述第一通信命令队列为所述第一电子控制单元对应的通信命令队列。
- 根据权利要求3所述的方法,其中,所述将所述第一通信命令插入第一通信命令队列,包括:根据所述第一通信命令与所述第一通信命令队列中的通信命令之间的时序先后关系,将所述第一通信命令插入到所述第一通信命令队列中与所述第一通信命令的时序对应的位置。
- 根据权利要求2所述的方法,其中,所述通过所述目标通信链路,并行传输和处理所述各个电子控制单元对应的通信命令队列中的通信命令,包括:将第一通信命令队列中的第i个通信命令,通过所述目标通信链路发送给第一电子控制单元,所述第一电子控制单元为所述第一通信命令队列对应的电子控制单元,所述第一电子控制单元为所述目标通信链路对应的任意一个电子控制单元,1≤i≤N,N为所述第一通信命令队列中的通信命令的总数量;在接收到所述第一电子控制单元发送的所述第i个通信命令对应的第i个应答响应的情况下,处理所述第i个应答响应,并将所述第一通信命令队列中的第(i+1)个通信命令,通过所述目标通信链路发送给所述第一电子控制单元。
- 根据权利要求5所述的方法,其中,所述方法还包括:在接收到所述第一通信命令队列中的最后一个通信命令对应的应答响应之后,根据所述第一通信命令队列对应的所有应答响应的处理结果,生成所述第一电子控制单元的通信命令处理结果。
- 根据权利要求5所述的方法,其中,所述将所述第一通信命令队列中的第i个通信命令,通过所述目标通信链路发送给第一电子控制单元,包括:基于第一线程,将所述第一通信命令队列中的第i个通信命令,通过所述目标通信链路发送给第一电子控制单元;所述处理所述第i个应答响应,并将所述第一通信命令队列中的第(i+1)个通信命令,包括:基于第二线程,处理所述第i个应答响应,并基于所述第一线程,将所述第一通信命令队列中的第(i+1)个通信命令,通过所述目标通信链路发送给所述第一电子控制单元,所述第二线程与所述第一线程为不同的线程。
- 根据权利要求2-7任一项所述的方法,其中,所述通信命令用于获取所述目标车辆的故障信息;所述方法还包括:在所述各个通信链路对应的通信命令队列中的通信命令均传输处理完毕之后,根据基于已传输的所有通信命令获取到的所有故障信息,生成所述目标车辆对应的故障检测报告。
- 一种通信交互装置,其中,包括:配置获取模块,用于在获取到目标车辆的车辆识别码的情况下,根据所述车辆识别码,获取所述目标车辆中的多个电子控制单元和多个通信参数,所述多个通信参数包括所述多个电子控制单元中的每个电子控制单元对应的通信参数;链路创建模块,用于根据所述多个通信参数,为所述多个电子控制单元创建至少一个通信链路,其中,一个通信链路对应一种通信参数;并行交互模块,用于通过所述至少一个通信链路中的各个通信链路,分别与所述各个通信链路对应的电子控制单元进行并行通信命令交互。
- 一种计算机设备,其中,包括存储器、处理器以及通信接口,所述通信接口和所述存储器连接至所述处理器,所述处理器用于执行存储在所述存储器中的一个或多个计算机程序,所述处理器在执行所述一个或多个计算机程序时,使得所述计算机设备实现如权利要求1-8任一项所述的方法。
- 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-8任一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP23893626.4A EP4601264A4 (en) | 2022-11-21 | 2023-11-07 | METHOD AND APPARATUS FOR COMMUNICATION INTERACTION, DEVICE AND STORAGE MEDIA |
| US19/215,147 US20250286750A1 (en) | 2022-11-21 | 2025-05-21 | Communication interaction method, apparatus, device, and storage medium |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211458449.3A CN115733871A (zh) | 2022-11-21 | 2022-11-21 | 通信交互方法、装置、设备及存储介质 |
| CN202211458449.3 | 2022-11-21 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US19/215,147 Continuation US20250286750A1 (en) | 2022-11-21 | 2025-05-21 | Communication interaction method, apparatus, device, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024109535A1 true WO2024109535A1 (zh) | 2024-05-30 |
Family
ID=85297491
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/130107 Ceased WO2024109535A1 (zh) | 2022-11-21 | 2023-11-07 | 通信交互方法、装置、设备及存储介质 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20250286750A1 (zh) |
| EP (1) | EP4601264A4 (zh) |
| CN (1) | CN115733871A (zh) |
| WO (1) | WO2024109535A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115733871A (zh) * | 2022-11-21 | 2023-03-03 | 深圳市道通科技股份有限公司 | 通信交互方法、装置、设备及存储介质 |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108536121A (zh) * | 2018-03-16 | 2018-09-14 | 深圳市道通科技股份有限公司 | 逻辑通道的建立方法、装置和交通工具通信接口vci |
| CN112034819A (zh) * | 2020-08-14 | 2020-12-04 | 深圳市元征科技股份有限公司 | 一种车辆诊断方法、车辆诊断装置及诊断设备 |
| US20210012587A1 (en) * | 2018-01-25 | 2021-01-14 | Autel Intelligent Technology Corp., Ltd. | Automobile diagnostic method, apparatus and vehicle communication interface |
| CN112286170A (zh) * | 2020-10-29 | 2021-01-29 | 深圳市元征科技股份有限公司 | 车辆ecu刷写方法、装置、设备及存储介质 |
| CN112927392A (zh) * | 2021-01-19 | 2021-06-08 | 深圳市元征科技股份有限公司 | 一种通信方法、车辆通信接口装置及可读存储介质 |
| CN113985841A (zh) * | 2021-10-26 | 2022-01-28 | 深圳市元征科技股份有限公司 | 车辆故障检测的方法、装置、电子设备及存储介质 |
| CN114879630A (zh) * | 2022-04-25 | 2022-08-09 | 深圳市元征科技股份有限公司 | 车辆故障诊断方法、装置、设备及可读存储介质 |
| CN115733871A (zh) * | 2022-11-21 | 2023-03-03 | 深圳市道通科技股份有限公司 | 通信交互方法、装置、设备及存储介质 |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104181839A (zh) * | 2014-08-07 | 2014-12-03 | 深圳市元征科技股份有限公司 | 一种车辆实时行车数据处理方法和装置 |
| CN106970609A (zh) * | 2017-04-22 | 2017-07-21 | 深圳市元征科技股份有限公司 | 车辆诊断盒的诊断方法及车辆诊断盒 |
| CN110850841A (zh) * | 2019-10-30 | 2020-02-28 | 深圳市元征科技股份有限公司 | 故障诊断方法和相关装置 |
| JP7033580B2 (ja) * | 2019-12-27 | 2022-03-10 | 本田技研工業株式会社 | 車両及びソフトウェア更新方法 |
| CN113366399B (zh) * | 2019-12-30 | 2024-09-20 | 深圳元戎启行科技有限公司 | 基于远程接管的车辆控制方法、装置和计算机设备 |
| CN111600883A (zh) * | 2020-05-15 | 2020-08-28 | 深圳市元征科技股份有限公司 | 一种车辆诊断方法、系统及电子设备和存储介质 |
| CN111880515A (zh) * | 2020-07-30 | 2020-11-03 | 深圳市元征科技股份有限公司 | 一种车辆系统扫描方法以及相关装置 |
| CN113934198B (zh) * | 2021-10-19 | 2025-02-14 | 深圳市元征科技股份有限公司 | 车辆诊断方法、装置、电子设备及存储介质 |
| CN113978394B (zh) * | 2021-10-26 | 2024-06-07 | 深圳市元征科技股份有限公司 | 车辆故障检测的方法、装置、电子设备及存储介质 |
| CN114296428A (zh) * | 2021-12-22 | 2022-04-08 | 深圳市元征科技股份有限公司 | 一种车辆诊断方法、装置、电子设备及存储介质 |
-
2022
- 2022-11-21 CN CN202211458449.3A patent/CN115733871A/zh active Pending
-
2023
- 2023-11-07 WO PCT/CN2023/130107 patent/WO2024109535A1/zh not_active Ceased
- 2023-11-07 EP EP23893626.4A patent/EP4601264A4/en active Pending
-
2025
- 2025-05-21 US US19/215,147 patent/US20250286750A1/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20210012587A1 (en) * | 2018-01-25 | 2021-01-14 | Autel Intelligent Technology Corp., Ltd. | Automobile diagnostic method, apparatus and vehicle communication interface |
| CN108536121A (zh) * | 2018-03-16 | 2018-09-14 | 深圳市道通科技股份有限公司 | 逻辑通道的建立方法、装置和交通工具通信接口vci |
| CN112034819A (zh) * | 2020-08-14 | 2020-12-04 | 深圳市元征科技股份有限公司 | 一种车辆诊断方法、车辆诊断装置及诊断设备 |
| CN112286170A (zh) * | 2020-10-29 | 2021-01-29 | 深圳市元征科技股份有限公司 | 车辆ecu刷写方法、装置、设备及存储介质 |
| CN112927392A (zh) * | 2021-01-19 | 2021-06-08 | 深圳市元征科技股份有限公司 | 一种通信方法、车辆通信接口装置及可读存储介质 |
| CN113985841A (zh) * | 2021-10-26 | 2022-01-28 | 深圳市元征科技股份有限公司 | 车辆故障检测的方法、装置、电子设备及存储介质 |
| CN114879630A (zh) * | 2022-04-25 | 2022-08-09 | 深圳市元征科技股份有限公司 | 车辆故障诊断方法、装置、设备及可读存储介质 |
| CN115733871A (zh) * | 2022-11-21 | 2023-03-03 | 深圳市道通科技股份有限公司 | 通信交互方法、装置、设备及存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4601264A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4601264A1 (en) | 2025-08-13 |
| US20250286750A1 (en) | 2025-09-11 |
| EP4601264A4 (en) | 2026-01-21 |
| CN115733871A (zh) | 2023-03-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114137937B (zh) | 一种自动化诊断功能测试方法及系统 | |
| CN108107875B (zh) | 一种汽车诊断方法、装置和车辆通讯接口 | |
| CN113189970B (zh) | Can总线控制器的硬件在环自动测试方法、系统及存储介质 | |
| CN112463190A (zh) | 一种车辆升级方法和装置 | |
| CN109947465B (zh) | 一种数据处理方法及系统 | |
| CN110324281B (zh) | 一种车载网络控制器刷新系统及方法 | |
| CN108521459A (zh) | 交通工具的诊断方法、相关设备和系统 | |
| CN116319499B (zh) | 车辆的诊断方法、装置、电子设备及存储介质 | |
| WO2022041720A1 (zh) | 一种基于uds的通信方法、ecu及上位机 | |
| CN111775864A (zh) | 远程调试方法、系统以及车辆 | |
| CN104461610A (zh) | 平台化的多ecu在线刷写方法 | |
| CN115118577A (zh) | 远程升级异常原因确定方法、装置、电子设备及存储介质 | |
| CN113406944B (zh) | 车辆诊断方法、装置、设备及计算机可读存储介质 | |
| CN113934198A (zh) | 车辆诊断方法、装置、电子设备及存储介质 | |
| CN108803577A (zh) | 一种诊断方法、上位机及下位机 | |
| CN110554937A (zh) | 车辆用软件诊断系统以及其操作方法 | |
| CN113468070A (zh) | 车载以太网的一致性测试方法 | |
| US20250286750A1 (en) | Communication interaction method, apparatus, device, and storage medium | |
| CN115840434B (zh) | 一种车辆ecu识别方法、装置及相关设备 | |
| CN115344030B (zh) | 一种汽车故障诊断系统及方法 | |
| CN115202323B (zh) | 车辆的服务请求管理方法、装置、车辆及介质 | |
| CN116954653A (zh) | 一种车辆ecu的升级方法、装置、计算机设备和存储介质 | |
| KR102154279B1 (ko) | 차량용 디버깅 시스템의 동작 방법 | |
| CN116775375A (zh) | 数据存储的方法和系统 | |
| CN117857341A (zh) | 一种车端ota并行刷写方法、车辆、介质及设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23893626 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2023893626 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2023893626 Country of ref document: EP Effective date: 20250508 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWP | Wipo information: published in national office |
Ref document number: 2023893626 Country of ref document: EP |