Vehicle diagnostic method and system
By directly connecting the vehicle diagnostic equipment to the domain controller's wireless communication module, high transmission rate and low latency vehicle diagnostics are achieved, solving the problems of slow transmission rate and high latency in existing technologies, and improving diagnostic efficiency and stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Z-ONE TECH CO LTD
- Filing Date
- 2025-08-05
- Publication Date
- 2026-07-24
Smart Images

Figure CN120935654B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle diagnostic technology, and in particular to a vehicle diagnostic method and system. Background Technology
[0002] As automotive component application technologies evolve towards intelligent connectivity, in-vehicle systems are becoming increasingly complex, and the number of various software programs installed in vehicles is multiplying. This makes quickly locating and repairing faults when they occur extremely difficult. To reduce the cost of defect location and repair, vehicle diagnostic technology has become a topic that automotive industry professionals need to continuously research.
[0003] Currently, near-field wireless diagnostics technology is commonly used for vehicle diagnostics. This technology involves vehicle diagnostic equipment accessing the gateway wireless communication module of the vehicle gateway via a local wireless network. Based on this gateway wireless communication module, communication with various Electronic Control Units (ECUs) within the vehicle is achieved, enabling diagnostics of each ECU. The diagnostic results from each ECU are converted into bus signals and sent to the gateway wireless communication module. The gateway wireless communication module then converts the bus signals into wireless communication signals and transmits them to the vehicle diagnostic equipment.
[0004] While near-field wireless diagnostics (NFC) technology eliminates the need for wiring harnesses, making it easier to connect vehicle diagnostic equipment to the vehicle, it suffers from drawbacks. For scenarios with extremely high diagnostic efficiency requirements, such as whole-vehicle software updates, the software needs to be updated sequentially, resulting in a relatively slow transmission rate and consequently low diagnostic efficiency. Furthermore, since diagnostic information from each electronic control unit (ECU) and vehicle diagnostic results are transmitted through the gateway channel, large data volumes can cause channel congestion, leading to delayed transmission of diagnostic information and results, resulting in high latency. Moreover, all ECU diagnostic results must first be converted into bus signals and then into wireless communication signals via the gateway's wireless communication module. This long transmission link further contributes to slow transmission speeds and high latency. Additionally, if the transmission speed is slow and latency is high, and the vehicle diagnostic equipment times out while waiting for a response, the delayed results will be discarded, leading to low diagnostic efficiency, reduced diagnostic stability, and decreased reliability.
[0005] Therefore, existing near-field wireless diagnostic technologies suffer from slow transmission rates and high transmission latency, which leads to a decrease in the stability and reliability of vehicle diagnostics. Summary of the Invention
[0006] This application provides a vehicle diagnostic method and system. The vehicle diagnostic device directly establishes a communication connection with the wireless communication module of the corresponding domain controller, enabling the domain controller to directly send diagnostic results to the diagnostic device. Thus, each domain controller performs synchronous diagnostics upon receiving a target diagnostic task and synchronously uploads diagnostic results based on its respective wireless communication module. Multiple signal transmission channels accelerate the transmission rate of diagnostic results, reduce transmission latency, and thereby improve vehicle diagnostic efficiency. The high transmission rate and low transmission latency of the vehicle diagnostic system enhance diagnostic stability and reliability.
[0007] To address the aforementioned technical problems, in a first aspect, embodiments of this application provide a vehicle diagnostic method applied to a vehicle diagnostic system. The vehicle diagnostic system includes a vehicle diagnostic device and a vehicle. The vehicle includes a gateway and multiple domain controllers. Each domain controller includes a domain controller upper-layer application and a domain controller wireless communication module. The vehicle diagnostic device establishes a near-field wireless communication connection with the vehicle through the gateway. The method includes: the vehicle diagnostic device sending vehicle diagnostic task information to the gateway; the gateway receiving the vehicle diagnostic task information, determining a target diagnostic task based on the vehicle diagnostic task information, and sending the target diagnostic task to the domain controller upper-layer application included in the corresponding domain controller; the domain controller upper-layer application determining vehicle status information, and based on the vehicle status information and... In the target diagnostic task, if the corresponding domain control wireless communication module is enabled, the domain control wireless communication module is enabled, put into low-power mode, and emits a wireless communication signal. Upon receiving the wireless communication signal, the vehicle diagnostic device sends a connection request signal to the corresponding domain control wireless communication module. If the domain control wireless communication module receives the connection request signal and passes the validity verification of the vehicle diagnostic device, it establishes a wireless communication connection with the vehicle diagnostic device and enters high-performance mode. The upper-layer application of the domain control executes the target diagnostic task, obtains the diagnostic results, and sends the diagnostic results to the vehicle diagnostic device through the corresponding domain control wireless communication module.
[0008] Using the above technical solution, when the gateway receives vehicle diagnostic task information, it determines the target diagnostic task based on the information and sends it to the corresponding domain controller's upper-layer application. The upper-layer application of the domain controller determines whether to enable the corresponding domain controller wireless communication module based on the target diagnostic task and vehicle status information. If enabling is required, the corresponding domain controller wireless communication module is enabled and placed in a low-power mode, emitting a wireless communication signal. Thus, the domain controller wireless communication module is only enabled and placed in a low-power mode when needed, ensuring only the ability to emit a wireless communication signal, maximizing power savings. Furthermore, after establishing a wireless communication connection with the vehicle diagnostic equipment, the domain controller wireless communication module operates in a high-performance state. Therefore, each domain controller wireless communication module only operates in a high-performance state after successfully establishing a communication connection with the vehicle diagnostic equipment, guaranteeing the quality of wireless transmission communication. Furthermore, the domain controller upper-layer application that performs the target diagnostic task can synchronously upload diagnostic results based on its respective domain controller wireless communication module, which speeds up the transmission rate, reduces the transmission latency of diagnostic results, and thus improves vehicle diagnostic efficiency. The high transmission rate and low transmission latency enhance diagnostic stability and reliability.
[0009] In one possible implementation of the first aspect above, the gateway determines the target diagnostic task based on the vehicle diagnostic task information, including: if the vehicle diagnostic task information includes one vehicle diagnostic task, the gateway takes the vehicle diagnostic task as the target diagnostic task; if the vehicle diagnostic task information includes multiple vehicle diagnostic tasks, the gateway performs task arbitration processing based on the priority of each vehicle diagnostic task to determine the target diagnostic task.
[0010] By adopting the above technical solution, when there are multiple vehicle diagnostic tasks, the vehicle diagnostic tasks can be executed in an orderly manner through priority arbitration.
[0011] In one possible implementation of the first aspect above, the method further includes: the vehicle diagnostic device determining a domain controller with which it has established a wireless communication connection, and sending target diagnostic task information corresponding to the target diagnostic task to the domain controller upper-layer application through the domain controller wireless communication module; the domain controller upper-layer application executing the target diagnostic task according to the target diagnostic task information to obtain a diagnostic result.
[0012] By adopting the above technical solution, the vehicle diagnostic equipment sends the target diagnostic task information to the corresponding domain controller upper-layer application through the domain controller wireless communication module with established communication connection. The target diagnostic task information is sent through multiple transmission channels, which improves the speed at which each domain controller executes vehicle diagnostic tasks, improves diagnostic efficiency, and reduces transmission latency.
[0013] In one possible implementation of the first aspect described above, the gateway includes a gateway wireless communication module, a gateway arbitration module, a gateway routing module, and a gateway upper-layer application. The vehicle diagnostic device establishes a near-field wireless communication connection with the gateway through the gateway wireless communication module. The gateway arbitration module communicates with both the gateway wireless communication module and the gateway upper-layer application. The gateway upper-layer application communicates with each domain controller via the gateway routing module. When the vehicle diagnostic task information includes multiple vehicle diagnostic tasks, the gateway receives the vehicle diagnostic task information, determines the target diagnostic task based on the vehicle diagnostic task information, and sends the target diagnostic task to the domain controller upper-layer application included in the domain controller. This includes: the gateway wireless communication module receiving the vehicle diagnostic task information and sending the vehicle diagnostic task information to the gateway arbitration module; the gateway arbitration module determining the target diagnostic task based on the vehicle diagnostic task information and sending the target diagnostic task to the gateway upper-layer application; and sending the target diagnostic task to the vehicle diagnostic device based on the gateway wireless communication module; and the gateway upper-layer application broadcasting the target diagnostic task to the communication bus via the gateway routing module, so that each domain controller upper-layer application receives the target diagnostic task.
[0014] The above technical solution employs a bus transmission method for broadcasting target diagnostic tasks, and parallel transmission accelerates the transmission efficiency of target diagnostic tasks.
[0015] In one possible implementation of the first aspect above, after the domain controller upper-layer application obtains the diagnostic results, the method further includes: if the domain controller upper-layer application determines that the wireless communication connection between the domain controller wireless communication module and the vehicle diagnostic device is disconnected, and the disconnection time exceeds a preset time, then the domain controller wireless communication module is put into a low-power mode; and the domain controller upper-layer application sends the diagnostic results to the gateway upper-layer application through the gateway routing module; the gateway upper-layer application sends the diagnostic results to the vehicle diagnostic device through the gateway wireless communication module.
[0016] By adopting the above technical solution, when the wireless communication connection between the domain control wireless communication module and the vehicle diagnostic equipment is disconnected and the disconnection time exceeds a preset time, the domain control wireless communication module is put into a low power consumption mode to minimize energy consumption.
[0017] In one possible implementation of the first aspect above, the method further includes: if the vehicle diagnostic device determines that the wireless communication connection between the domain control wireless communication module corresponding to the domain control upper-layer application whose diagnostic processing has not been completed and the vehicle diagnostic device is disconnected, the vehicle diagnostic device resends a connection request signal to the corresponding domain control wireless communication module to re-establish the wireless communication connection with the domain control wireless communication module, and if the number of connection failures exceeds a preset number during the re-establishment process, the connection is stopped; and if the domain control upper-layer application determines that the number of connection failures between the domain control wireless communication module and the vehicle diagnostic device exceeds a preset number, the domain control wireless communication module is put into a low-power mode.
[0018] By adopting the above technical solution, when the wireless communication connection between the domain control wireless communication module and the vehicle diagnostic equipment is disconnected and multiple reconnection attempts fail, the domain control wireless communication module is put into a low-power mode to minimize energy consumption.
[0019] In one possible implementation of the first aspect above, after the domain controller upper-layer application sends the diagnostic results to the vehicle diagnostic device through the corresponding domain controller wireless communication module, the method further includes: if the domain controller upper-layer application determines that the communication connection between the domain controller wireless communication module and the vehicle diagnostic device is disconnected and the disconnection exceeds a preset time, then the domain controller wireless communication module is put into a low-power mode.
[0020] By adopting the above technical solution, after the vehicle diagnostics are completed, the domain control wireless communication module is put into a low-power mode to minimize energy consumption.
[0021] In one possible implementation of the first aspect above, when the domain control wireless communication module and the vehicle diagnostic device are in a wireless communication connection state, the method further includes: when the domain control upper layer application receives a notification message to stop near-field diagnostic processing, or when it determines that the vehicle does not meet the target conditions based on the vehicle status information, it disables the domain control wireless communication module.
[0022] When vehicle diagnostics are not possible using the above technical solution, the domain control wireless communication module is disabled, allowing the domain control wireless communication module to switch modes according to actual needs, making the management of the domain control wireless communication module's working mode more flexible.
[0023] In one possible implementation of the first aspect mentioned above, after the vehicle is woken up, the gateway wireless communication module is always enabled, while the domain control wireless communication modules of each domain controller are disabled by default.
[0024] By adopting the above technical solution, when not in use, the domain controller wireless communication module of each domain controller is in a disabled state by default, thereby minimizing energy consumption.
[0025] Secondly, this application also discloses a vehicle diagnostic system, including a vehicle diagnostic device and a vehicle. The vehicle includes a gateway and multiple domain controllers. Each domain controller includes a domain controller upper-layer application and a domain controller wireless communication module. The vehicle diagnostic device establishes a near-field wireless communication connection with the vehicle through the gateway. The vehicle diagnostic device is used to send vehicle diagnostic task information to the gateway. The gateway receives the vehicle diagnostic task information and uses it to determine the target diagnostic task based on the vehicle diagnostic task information, and sends the target diagnostic task to the domain controller upper-layer application included in the corresponding domain controller. The domain controller upper-layer application is used to determine the vehicle status information, and based on the vehicle status information and the target diagnostic task, determines whether to enable the corresponding domain controller. In the case of the domain control wireless communication module, the domain control wireless communication module is enabled and put into low-power mode while emitting wireless communication signals. The vehicle diagnostic equipment is also used to send a connection request signal to the corresponding domain control wireless communication module upon receiving the wireless communication signal. The domain control wireless communication module is used to establish a wireless communication connection with the vehicle diagnostic equipment upon receiving the connection request signal and after the validity verification of the vehicle diagnostic equipment is passed, and is in high-performance mode. Furthermore, the upper-layer application of the domain control is also used to perform the target diagnostic task, obtain the diagnostic results, and send the diagnostic results to the vehicle diagnostic equipment through the corresponding domain control wireless communication module.
[0026] In one possible implementation of the second aspect described above, the gateway includes a gateway wireless communication module, a gateway arbitration module, a gateway routing module, and a gateway upper-layer application. The vehicle diagnostic device establishes a near-field wireless communication connection with the gateway through the gateway wireless communication module. The gateway arbitration module communicates with both the gateway wireless module and the gateway upper-layer application. The gateway wireless communication module receives vehicle diagnostic task information sent by the vehicle diagnostic device and sends the vehicle diagnostic task information to the gateway arbitration module. The gateway arbitration module determines the target diagnostic task based on the vehicle diagnostic task information and sends the target diagnostic task to the gateway upper-layer application. The gateway upper-layer application broadcasts the target diagnostic task to the communication bus via the gateway routing module in a broadcast manner, so that each domain controller upper-layer application receives the target diagnostic task. Attached Figure Description
[0027] To more clearly illustrate the technical solution of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below.
[0028] Figure 1 A schematic diagram of an existing vehicle diagnostic system;
[0029] Figure 2 A schematic diagram illustrating a data transmission scenario in an existing vehicle diagnostic system;
[0030] Figure 3This is a schematic diagram of a vehicle diagnostic system provided in an embodiment of the present invention;
[0031] Figure 4 This is another structural schematic diagram of the vehicle diagnostic system provided in an embodiment of the present invention;
[0032] Figure 5 This is another structural schematic diagram of the vehicle diagnostic system provided in an embodiment of the present invention;
[0033] Figure 6 This is a schematic flowchart of a vehicle diagnostic method provided in an embodiment of the present invention;
[0034] Figure 7 This is a schematic diagram of one mode of the domain control wireless communication module provided in an embodiment of the present invention;
[0035] Figure 8 This is a schematic diagram illustrating an application scenario of the vehicle diagnostic method provided in an embodiment of the present invention;
[0036] Figure 9 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0037] Currently, vehicle diagnostics can be divided into far-field diagnostics and near-field diagnostics based on the scenario. Far-field diagnostics is not limited by distance and has remote diagnostic capabilities, but the vehicle's connection to the public network depends on base stations or wireless routers. Near-field diagnostics, on the other hand, is limited by distance, and the vehicle diagnostic equipment must be close to the vehicle and access the vehicle through wired cables or local wireless networks.
[0038] Currently, based on the communication medium, vehicle diagnostics can be divided into wired diagnostics and wireless diagnostics. Priority diagnostics connects to the vehicle via a wired cable, such as near-field wired diagnostics, while wireless diagnostics access the vehicle via a wireless network, such as far-field wireless diagnostics and near-field wireless diagnostics.
[0039] like Figure 1 As shown, far-field wireless diagnostics involves the vehicle connecting to a base station via 4G / 5G or a wireless router via Wi-Fi to access the public network of a cloud server. The vehicle diagnostic equipment then initiates remote diagnostics on the vehicle by accessing the cloud backend.
[0040] Near-field wired diagnostics involves vehicle diagnostic equipment connecting to the OBD interface of the vehicle's On-Board Diagnostics (OBD) connector via a solid wire cable (usually a CAN bus or Ethernet cable), thereby enabling diagnostic communication with various electronic control units (ECUs) within the vehicle.
[0041] Near-field wireless diagnostics involves vehicle diagnostic equipment accessing the vehicle's gateway wireless communication module via a local wireless network (such as Bluetooth / Starflash / Ultra Wide Band (UWB)). This allows diagnostic communication between the device and various electronic control units connected to the domain controllers within the vehicle.
[0042] However, all three types of diagnostics—far-field wireless, near-field wired, and near-field wireless—have their own advantages and disadvantages, as shown in Table 1. Far-field wireless diagnostics offers the advantage of remote diagnosis, free from distance limitations, and is commonly used in remote diagnostic systems and Over-the-Air (OTA) technology. However, due to its remote wireless transmission, its disadvantages include slow transmission, high latency, unstable connections, and high costs. Near-field wired diagnostics offers stable and reliable connections. Because it involves short-distance wired transmission, it is fast and has low latency, making it suitable for applications such as vehicle engineering R&D, factory production lines, and after-sales maintenance where diagnostic solutions are primarily used. However, because it involves a wired connection, its disadvantages include being constrained by wiring harnesses and having cumbersome connections. Near-field wireless diagnostics offers the advantage of being unconstrained by wiring harnesses and quick connections, but when diagnosing multiple electronic control units, the data transmission is all through a gateway, resulting in slow transmission and high latency.
[0043] Table 1 - Comparison of the advantages and disadvantages of current far-field wireless diagnostics, near-field wired diagnostics, and near-field wireless diagnostics
[0044]
[0045] Slow transmission rates are a common problem in wireless transmission. Although current short-range wireless communication technologies have developed rapidly (such as StarFlash), their transmission rates are still too low compared to cable transmission. Slow transmission rates lead to low diagnostic efficiency, failing to meet the demands of highly efficient diagnostic scenarios, such as updating vehicle software on a production line. A slow transmission rate would increase the update time and reduce production line efficiency.
[0046] In addition, there are two reasons for the high transmission latency: one is transmission channel congestion, which causes data transmission delays. Current near-field wireless diagnostic systems are essentially single-point serial diagnostic communication architectures, meaning that diagnostic data from all domain controllers must communicate with the vehicle diagnostic equipment through a single wireless communication node (gateway wireless communication module). When all domain controllers share a single transmission channel, transmission channel congestion is inevitable, a common problem in serial diagnostic communication architectures. The other reason is excessively long transmission links. Longer transmission links increase transmission time and data arrival latency. Currently, the diagnostic data from the domain controllers must first be converted into bus signals, sent to the gateway wireless communication module via the bus, and then converted back into wireless signals by the gateway wireless module before being sent to the vehicle diagnostic equipment, resulting in an excessively long transmission link.
[0047] like Figure 2 As shown, when vehicle diagnostic equipment sends diagnostic requests to the electronic control units (ECUs) connected to the corresponding domain controller via the transmission link, there is a diagnostic request transmission delay (ΔP2Request). When the ECUs send diagnostic responses to the vehicle diagnostic equipment, there is a diagnostic response transmission delay (ΔP2Response). If the transmission delay increases, the response time (P2Client) of the vehicle diagnostic equipment as a client will also increase. P2Client is the timeout period for the vehicle diagnostic equipment. Once the timeout period expires, the diagnostic equipment will not continue to wait for a diagnostic response, and any diagnostic responses that arrive after the timeout will be discarded. Therefore, high transmission delay will reduce the stability and reliability of the system.
[0048] Therefore, existing near-field wireless diagnostic technologies suffer from slow transmission rates and high transmission latency, which leads to a decrease in the stability and reliability of vehicle diagnostics.
[0049] The vehicle diagnostic method and system provided in this application aim to solve the problems of slow transmission rate and high transmission latency faced by current near-field wireless diagnostic systems. A novel diagnostic communication architecture is designed, enabling vehicle diagnostic equipment to establish direct communication connections with the wireless communication modules of each domain controller. After receiving the target diagnostic task, each domain controller performs synchronous diagnosis and can synchronously upload diagnostic results based on its own wireless communication module. The multiple signal transmission channels accelerate the transmission rate of diagnostic results and reduce transmission latency, thereby improving vehicle diagnostic efficiency. The high transmission rate and low transmission latency of the vehicle diagnostic system enhance the stability and reliability of diagnostic updates.
[0050] The vehicle diagnostic method and system provided in this application will be described in detail below.
[0051] like Figure 3 As shown, in the implementation of this application, the vehicle diagnostic system includes a vehicle diagnostic device and a vehicle. The vehicle includes a gateway and multiple domain controllers. Each domain controller includes a domain controller upper-layer application and a domain controller wireless communication module. The vehicle diagnostic device establishes a near-field wireless communication connection with the vehicle through the gateway.
[0052] Furthermore, the vehicle also includes at least one electronic control unit (ECU), which establishes a wired communication connection with the domain controller in parallel or series.
[0053] Among them, the vehicle diagnostic equipment is used to send vehicle diagnostic task information to the gateway.
[0054] The gateway receives vehicle diagnostic task information, uses it to determine the target diagnostic task based on the vehicle diagnostic task information, and sends the target diagnostic task to the domain controllers and their upper-layer applications.
[0055] Each domain controller includes a domain controller upper-layer application used to determine vehicle status information. Based on the vehicle status information and the target diagnostic task, and when it is determined that the corresponding domain controller wireless communication module is enabled, the domain controller wireless communication module is put into a low-power mode and emits wireless communication signals.
[0056] The vehicle diagnostic equipment is also used to send a connection request signal to the corresponding domain control wireless communication module when a wireless communication signal is received.
[0057] The domain control wireless communication module is used to establish a wireless communication connection with the vehicle diagnostic equipment upon receiving a connection request signal and after the validity of the vehicle diagnostic equipment has been verified, and is in high-performance mode.
[0058] Furthermore, the domain controller upper-layer application is also used to perform target diagnostic tasks to obtain diagnostic results, and then send the diagnostic results to the vehicle diagnostic equipment through the corresponding domain controller wireless communication module.
[0059] In this process, the upper-level application of the domain controller performs the target diagnostic task, sends diagnostic signals to the corresponding electronic control unit, obtains the diagnostic results, and sends the diagnostic results to the corresponding domain controller wireless communication module, which then sends the diagnostic results to the vehicle diagnostic equipment.
[0060] Furthermore, in the implementation of this application, the gateway includes a gateway wireless communication module, a gateway arbitration module, a gateway routing module, and a gateway upper-layer application. The vehicle diagnostic equipment establishes a near-field wireless communication connection (i.e., short-range wireless communication) with the gateway through the gateway wireless communication module. The gateway arbitration module communicates with both the gateway wireless module and the gateway upper-layer application.
[0061] The gateway wireless communication module is used to receive vehicle diagnostic task information sent by the vehicle diagnostic equipment and send the vehicle diagnostic task information to the gateway arbitration module.
[0062] The gateway arbitration module is used to receive vehicle diagnostic task information sent by the gateway wireless communication module, determine the target diagnostic task based on the vehicle diagnostic task information, and send the target diagnostic task to the upper layer application of the gateway.
[0063] The gateway upper-layer application is used to broadcast the target diagnostic task to the communication bus (e.g., CAN bus) in a broadcast manner through the gateway routing module, so that each domain controller upper-layer application can receive the target diagnostic task.
[0064] Furthermore, in another implementation of this application, when the vehicle diagnostic task information includes multiple vehicle diagnostic tasks, the gateway arbitration module is also used to send the target diagnostic task to the vehicle diagnostic device.
[0065] like Figure 4 and Figure 5 As shown, the vehicle diagnostic equipment and the gateway wireless communication module establish a short-range wireless communication connection (RF) based on Bluetooth, StarFlash, UWB, etc. The gateway's arbitration module establishes communication connections with the gateway wireless communication module and the gateway application, respectively. The gateway application also establishes a communication connection with the gateway routing module. The gateway routing module includes connectors. The gateway routing module establishes communication connections with the domain controller application through its own connectors and the connectors of each domain controller (Domain Controller1, Domain Controller2). The domain controller applications of each domain controller establish wireless communication connections with the domain controller wireless communication module (RF wireless module). When vehicle diagnostics are required, the domain controller's wireless communication module (RF wireless module) establishes a near-field wireless communication connection (RF) with the vehicle diagnostic equipment.
[0066] Each domain controller can specifically include a microcontroller or a processor unit. Applications deployed above the domain controller are located on the microcontroller / processor unit.
[0067] Furthermore, a gateway can also be considered a domain controller that establishes a communication connection with an electronic control unit. When a target diagnostic task is obtained by an application at the gateway layer, if it is determined that the target diagnostic task is related to the connected electronic control unit, the target diagnostic task can be executed, a diagnostic signal can be sent to the electronic control unit, a diagnostic result can be obtained, and the diagnostic result can be sent to the vehicle diagnostic equipment through the gateway's wireless communication module.
[0068] The gateway may include a microcontroller or a processor unit. The gateway arbitration module, the gateway upper-layer application, and the gateway routing module are deployed in the microcontroller / processor unit.
[0069] Furthermore, for near-field wired diagnostics based on the vehicle diagnostic system provided in this application, the vehicle diagnostic device connects to the gateway arbitration module via an OBD connector to achieve vehicle diagnostics. For far-field wireless diagnostics, the cloud server connects to the gateway arbitration module wirelessly to achieve vehicle diagnostics.
[0070] Furthermore, in the implementation of this application, if near-field wireless diagnostics are performed, the vehicle diagnostic equipment is used to send vehicle diagnostic task information to the gateway arbitration module through the gateway wireless communication module.
[0071] The gateway arbitration module is used to send the vehicle diagnostic task as the target diagnostic task to the upper-layer application of the gateway if it is determined that the vehicle diagnostic task information includes a vehicle diagnostic task, and to perform task arbitration processing according to the priority of each vehicle diagnostic task if it is determined that the vehicle diagnostic task information includes multiple vehicle diagnostic tasks, determine the vehicle diagnostic task with the highest priority as the target diagnostic task, and send the target diagnostic task to the upper-layer application of the gateway.
[0072] Furthermore, the gateway arbitration module also sends the target diagnostic task to the vehicle diagnostic equipment via the gateway wireless communication module.
[0073] The gateway upper-layer application broadcasts the target diagnostic task to the CAN bus through the gateway routing module. The domain controller upper-layer application of each domain controller receives the target diagnostic task, determines whether diagnostic processing is required, and if diagnostic processing is required, enables its own domain controller wireless communication module, putting the domain controller wireless communication module in an enabled state and a low-power state, and sends out wireless communication signals.
[0074] Furthermore, the vehicle diagnostic equipment is also used to send a connection request signal to the corresponding domain control wireless communication module based on the wireless communication signal received.
[0075] The domain control wireless communication module is used to establish a wireless communication connection with the vehicle diagnostic equipment and operate in high-performance mode when it receives a connection request signal and passes the validity verification of the vehicle diagnostic equipment.
[0076] Furthermore, if the target diagnostic task is a self-diagnostic task (such as a task to diagnose whether a function is normal or whether communication is normal), the domain controller upper-layer application executes the target diagnostic task to obtain the diagnostic results, and sends the diagnostic results to the vehicle diagnostic equipment through the corresponding domain controller wireless communication module.
[0077] Furthermore, if the target diagnostic task is an upgrade / refresh task, the vehicle diagnostic equipment is also used to send the target diagnostic task information (e.g., the upgrade package corresponding to each domain controller) to the upper-layer application of the domain controller through the corresponding domain controller wireless communication module.
[0078] The domain controller upper-layer application is used to execute target diagnostic tasks based on target diagnostic task information to obtain diagnostic results.
[0079] Furthermore, each domain controller upper-layer application sends the diagnostic results to the vehicle diagnostic equipment through its corresponding domain controller wireless communication module.
[0080] Furthermore, in another implementation of this application, the vehicle diagnostic equipment can also determine the target diagnostic task information corresponding to the target diagnostic task of each domain controller based on the domain controllers of the domain controllers with established wireless communication connections, and send the target diagnostic task information to the corresponding domain controller. That is, the target diagnostic task information may be different for different domain controllers.
[0081] Next, see Figure 6 The vehicle diagnostic method provided in this application, applied to a vehicle diagnostic system, specifically includes the following steps:
[0082] S100, the vehicle diagnostic equipment sends vehicle diagnostic task information to the gateway.
[0083] S200: The gateway receives vehicle diagnostic task information, determines the target diagnostic task based on the vehicle diagnostic task information, and sends the target diagnostic task to the domain controller upper layer application included in the corresponding domain controller.
[0084] S310, each domain controller, including the domain controller upper-layer application, determines the vehicle status information. Based on the vehicle status information and the target diagnostic task, and if it is determined that the corresponding domain controller wireless communication module should be enabled, the domain controller wireless communication module should be put into a low-power mode.
[0085] S320, the domain control wireless communication module sends out wireless communication signals.
[0086] In S400, when the vehicle diagnostic equipment receives a wireless communication signal, it sends a connection request signal to the corresponding domain control wireless communication module based on the wireless communication signal.
[0087] The S500 domain control wireless communication module, upon receiving a connection request signal and after successfully verifying the legitimacy of the vehicle diagnostic equipment, establishes a wireless communication connection with the vehicle diagnostic equipment and enters high-performance mode.
[0088] S610: The domain controller upper-layer application executes the target diagnostic task, obtains the diagnostic results, and sends the diagnostic results to the corresponding domain controller wireless communication module.
[0089] The S620 domain control wireless communication module sends diagnostic results to the vehicle diagnostic equipment.
[0090] In this implementation, when the gateway receives vehicle diagnostic task information, it determines the target diagnostic task based on the information and sends it to the domain controller upper-layer applications included in each domain controller. Each domain controller's upper-layer application determines whether to enable the corresponding domain controller wireless communication module based on the target diagnostic task and vehicle status information. If enabling is required, the corresponding domain controller wireless communication module is enabled, enters a low-power mode, and emits a wireless communication signal. Thus, the domain controller wireless communication module is enabled only when needed and operates in a low-power mode, ensuring only the ability to emit a wireless communication signal, thereby maximizing power savings. Furthermore, after establishing a wireless communication connection with the vehicle diagnostic equipment, the domain controller wireless communication module operates in a high-performance state. Therefore, each domain controller wireless communication module only operates in a high-performance state after successfully establishing a communication connection with the vehicle diagnostic equipment, guaranteeing the quality of wireless transmission communication. Furthermore, the domain controller upper-layer applications of each domain controller that performs the target diagnostic task can synchronously upload diagnostic results based on their respective domain controller wireless communication modules, which speeds up the transmission rate, reduces the transmission latency of diagnostic results, and thus improves vehicle diagnostic efficiency. The vehicle diagnostic system with high transmission rate and low transmission latency enhances diagnostic stability and reliability.
[0091] First, when vehicle diagnostics are required and the diagnostic method is near-field wireless diagnostics, the gateway wireless communication module remains enabled after the vehicle is powered on and woken up. The vehicle diagnostic device sends a wireless communication connection request to the gateway wireless communication module based on the wireless communication signal of the gateway wireless communication module. After receiving the wireless communication connection request, the gateway wireless communication module verifies the legitimacy of the vehicle diagnostic device. Once the verification is successful, a wireless communication connection is established with the vehicle diagnostic device, which is the near-field wireless communication connection.
[0092] It should be noted that after the vehicle is woken up, the domain control wireless communication modules of each domain controller do not need to communicate and are in a disabled state by default.
[0093] Specifically, the gateway wireless communication module performs the following legitimacy verification for the vehicle diagnostic equipment: The gateway wireless communication module determines whether the vehicle diagnostic equipment belongs to the whitelist based on the identification information of the vehicle diagnostic equipment included in the wireless communication connection request. If it is determined to be a whitelisted device, the vehicle diagnostic equipment verification passes; otherwise, the verification fails and the connection is rejected. Alternatively, the gateway wireless communication module performs the following legitimacy verification for the vehicle diagnostic equipment: The gateway wireless communication module determines whether the username and password included in the wireless communication connection request are correct. If the username and password are correct, the vehicle diagnostic equipment verification passes; otherwise, the verification fails and the connection is rejected.
[0094] Furthermore, the vehicle diagnostic equipment sends the vehicle diagnostic task information to the gateway wireless communication module, which in turn sends the vehicle diagnostic task information to the gateway arbitration module of the gateway. The gateway arbitration module then determines the target diagnostic task based on the vehicle diagnostic task information.
[0095] In one implementation of this application, the gateway arbitration module determines the target diagnostic task based on the vehicle diagnostic task information, including: when the vehicle diagnostic task information includes a vehicle diagnostic task, the gateway arbitration module takes the vehicle diagnostic task as the target diagnostic task.
[0096] The gateway arbitration module sends the target diagnostic task to the gateway upper-layer application. The gateway upper-layer application then broadcasts the target diagnostic task in real time on the CAN bus via the gateway routing module, based on their respective connectors, so that the domain controller upper-layer application of the corresponding domain controller can receive the target diagnostic task signal.
[0097] After receiving the above signals, each domain controller upper-layer application determines whether to perform corresponding diagnostics based on the target diagnostic task and the current vehicle conditions (such as vehicle speed, gear, and vehicle mode as examples of vehicle status information), in order to determine whether to enable its own domain controller wireless communication module.
[0098] For example, each domain controller upper-layer application first determines whether the target diagnostic task is related to itself, that is, whether the corresponding domain controller needs to perform the corresponding diagnosis. If so, it obtains the vehicle's current speed, gear, and vehicle mode based on the bus to determine whether the corresponding domain controller is not in a working state, that is, whether vehicle diagnostic services can be performed. If it is determined that vehicle diagnostics can be performed, it enables its own domain controller wireless communication module, puts the domain controller wireless communication module in an enabled state, and puts the domain controller wireless communication module into a low-power mode.
[0099] If no corresponding diagnosis is required or if the current vehicle status information indicates that vehicle diagnosis cannot be performed, no action will be taken.
[0100] Furthermore, the domain controller wireless communication module (i.e., the target domain controller wireless communication module) of the domain controller that needs to perform the target diagnostic task (as an example of the target domain controller) sends out wireless communication signals.
[0101] The vehicle diagnostic equipment searches for wireless communication signals and sends a connection request signal to the corresponding target domain control wireless communication module based on the wireless communication signals.
[0102] When the target domain control wireless communication module receives a connection request signal from the vehicle diagnostic device, it verifies the vehicle diagnostic device's permissions. If the verification passes, the connection is successfully established, and the target domain control wireless communication module switches from low-power mode to high-performance mode. Otherwise, it sends a signal indicating that a communication connection could not be established or that the connection failed.
[0103] The verification method of the domain control wireless communication module for the vehicle diagnostic equipment is the same as that of the gateway wireless device for the vehicle diagnostic equipment.
[0104] In this implementation, the vehicle diagnostic equipment can establish communication connections with multiple domain controller wireless communication modules simultaneously, enabling simultaneous diagnostic processing of multiple domain controllers and accelerating diagnostic processing efficiency.
[0105] In one implementation, the target diagnostic task includes target diagnostic task information. The target domain controller upper-layer application that needs to be diagnosed directly executes the target diagnostic task to diagnose the electronic control unit connected to itself, obtains the diagnostic results, and sends the diagnostic results back to the vehicle diagnostic equipment through its own target domain controller wireless communication module.
[0106] In another implementation, the vehicle diagnostic device determines the domain controller (i.e., the target domain controller) that establishes a wireless communication connection with the vehicle diagnostic device, determines the target diagnostic task information corresponding to the target diagnostic task of the target domain controller, and sends the target diagnostic task information to the upper-layer application of the target domain controller through the target domain controller wireless communication module. The upper-layer application of the target domain controller executes the target diagnostic task according to the target diagnostic task information to obtain a diagnostic result.
[0107] Among them, if it is a diagnostic task, the target diagnostic task information is a diagnostic signal; if it is an upgrade and refresh task, the target diagnostic task information is the upgrade software package corresponding to the domain controller that needs software upgrade.
[0108] Exemplarily, taking upgrade and refresh as an example, if the target diagnostic task includes the upgrade software packages corresponding to each target domain controller that needs upgrade and refresh, the target upper-layer applications of each target domain controller directly execute the target diagnostic task. If the target diagnostic task does not include the upgrade software packages corresponding to each target domain controller, after the vehicle diagnostic device establishes a communication connection with each target domain controller, it sends the target diagnostic task information corresponding to the target diagnostic task and corresponding to the target domain controller to the target upper-layer application through the target wireless communication module of the corresponding target domain controller, so that each target upper-layer application performs upgrade and refresh processing according to the received target diagnostic task information.
[0109] For example, if the target domain controllers that need upgrade and refresh are domain controller 1, domain controller 2, and domain controller 3, the upgrade software package corresponding to domain controller 1 is software package 1, the upgrade software package corresponding to domain controller 2 is software package 2, and the upgrade software package corresponding to domain controller 3 is software package 3. Then the vehicle diagnostic device sends software package 1 to the upper-layer application 1 of the domain controller through the domain controller wireless communication module 1 of domain controller 1, sends software package 2 to the upper-layer application 2 of the domain controller through the domain controller wireless communication module 2 of domain controller 2, and sends software package 3 to the upper-layer application 3 of the domain controller through the domain controller wireless communication module 3 of domain controller 3. In this way, based on the target wireless communication modules of each target domain controller, the vehicle diagnostic task information is sent. Compared with the method of the vehicle diagnostic device sending the target diagnostic task information of all target domain controllers to the gateway and then sending the vehicle diagnostic task information to each domain controller through the gateway, it can effectively save the data sending time and improve the vehicle diagnostic efficiency.
[0110] Further, in another implementation of the present application, the gateway arbitration module determines the target diagnostic task according to the vehicle diagnostic task information, including: when the vehicle diagnostic task information includes multiple vehicle diagnostic tasks, the gateway arbitration module performs task arbitration processing according to the priorities of each vehicle diagnostic task to determine the target diagnostic task.
[0111] Exemplarily, if there are multiple service providers diagnosing the vehicle simultaneously, that is, there are multiple vehicle diagnosis tasks, the vehicle diagnosis device sends the vehicle diagnosis task information of the multiple vehicle diagnosis tasks to the gateway arbitration module. The gateway arbitration module receives the vehicle diagnosis task information based on the gateway wireless communication module, performs task arbitration processing according to the priorities of each vehicle diagnosis task, and obtains the vehicle diagnosis task with the highest priority as the target diagnosis task.
[0112] Among them, the priorities of each vehicle diagnosis task can be preset, or the gateway arbitration module determines the priorities according to the task types (fault diagnosis, routine function diagnosis, software refresh, etc.) and task timeliness of the vehicle diagnosis tasks, and selects the vehicle diagnosis task with the highest priority as the target diagnosis task.
[0113] Further, the gateway arbitration module sends the target diagnosis task to the upper-layer application of the gateway. The upper-layer application of the gateway broadcasts the target diagnosis task in real time on the bus in a broadcast form based on their respective connectors through the gateway routing module, so that the domain control upper-layer applications of each domain controller receive the signal of the target diagnosis task.
[0114] After each domain control upper-layer application receives the above signal, when it is determined that corresponding diagnosis needs to be performed according to the target diagnosis task and vehicle status information, it enables its own domain control wireless communication module, makes the target domain control wireless communication module in an enabled state, and enters the low-power mode, and the target domain control wireless communication modules of each target domain controller that need to perform the target diagnosis task send wireless communication signals.
[0115] Further, the vehicle diagnosis device establishes a communication connection with the target upper-layer application of the target domain controller through the target domain control wireless communication module, and the target domain control wireless communication module switches from the low-power mode to the high-performance mode.
[0116] As described above, the domain control upper-layer application of the domain controller that needs to perform diagnosis directly executes the target diagnosis task to diagnose the electronic control unit connected to itself, obtains the diagnosis result, and sends the diagnosis result back to the vehicle diagnosis device through its own domain control wireless communication module.
[0117] Further, in another implementation manner of the present application, the gateway arbitration module also sends the target diagnosis task to the vehicle diagnosis device through the gateway wireless module, so that the vehicle diagnosis device knows which vehicle diagnosis task needs to be performed currently.
[0118] The vehicle diagnosis device determines the target domain controller that establishes a wireless communication connection with the vehicle diagnosis device, and sends the target diagnosis task information corresponding to the target diagnosis task to the target domain control upper-layer application through the target domain control wireless communication module. The target domain control upper-layer application executes the target diagnosis task according to the target diagnosis task information to obtain the diagnosis result.
[0119] Further, the upper-layer applications of each target domain controller performing the target diagnosis task includes: the upper-layer applications of each target domain controller performing the target diagnosis task, generating a diagnosis signal, and sending it to the corresponding electronic control unit, so that each electronic control unit generates a diagnosis result according to the diagnosis signal and sends the diagnosis result to the upper-layer application of the target domain controller.
[0120] Further, the upper-layer applications of each target domain controller send the diagnosis result to the vehicle diagnosis device through their respective target domain controller wireless communication modules. In this way, sending the diagnosis result based on their respective wireless communication modules can accelerate the transmission rate and reduce the data transmission delay compared with the upper-layer applications of each target sending the diagnosis result to the gateway and then the gateway uniformly sending it to the vehicle diagnosis device.
[0121] Further, if the vehicle diagnosis device determines that the wireless communication connection between the domain controller wireless communication module corresponding to the upper-layer application of the domain controller with an unfinished diagnosis process and the vehicle diagnosis device is in a disconnected state, the vehicle diagnosis device reissues a request connection signal to the corresponding domain controller wireless communication module to re-establish a wireless communication connection with the domain controller wireless communication module. And during the process of re-establishing the connection, if the number of connection failures exceeds the preset number, the connection is stopped; and if the upper-layer application of the domain controller determines that the number of connection failures between the domain controller wireless communication module and the vehicle diagnosis device exceeds the preset number, the domain controller wireless communication module is set to the low-power mode.
[0122] Exemplarily, once the vehicle diagnosis device successfully wirelessly communicates with the domain controller wireless communication module, it switches from the low-power mode to the high-performance module. The diagnosis result generated by the upper-layer application of the domain controller no longer passes through the bus to be sent to the gateway, but goes through the wireless channel. If the wireless communication connection is interrupted due to signal interference or other reasons during the unfinished diagnosis process, automatic reconnection is performed a priority number of times. In the case where the connection fails multiple times (for example, five times), the wireless communication module switches from the high-performance mode to the low-power mode.
[0123] Further, in the implementation manner of the present application, after the upper-layer application of the domain controller obtains the diagnosis result, if the upper-layer application of the domain controller determines that the wireless communication connection between the domain controller wireless communication module and the vehicle diagnosis device is in a disconnected state and the disconnected state lasts for more than the preset time, the domain controller wireless communication module is set to the low-power mode. And the upper-layer application of the domain controller sends the diagnosis result to the upper-layer application of the gateway through the gateway routing module, and the upper-layer application of the gateway sends the diagnosis result to the vehicle diagnosis device through the gateway wireless communication module.
[0124] Exemplarily, if the wireless communication connection between the upper-layer application of the domain controller and the vehicle diagnosis device is disconnected and exceeds the preset time, the bus channel is used instead, and the diagnosis result is sent to the vehicle diagnosis device via the gateway. At this time, the domain controller wireless communication module does not need to work, so the low-power mode can be entered.
[0125] Further, when the domain control wireless communication module and the vehicle diagnostic device are in a wireless communication connection state, the upper-layer domain control application makes the domain control wireless communication module in a disabled state when receiving a stop near-field diagnosis processing notification message or when determining that the vehicle does not meet the target conditions according to the vehicle status information.
[0126] Exemplarily, during the wireless communication connection, if the vehicle signal received by the upper-layer domain control application indicates that the current vehicle has lost the near-field wireless diagnosis priority, or the upper-layer domain control application identifies that the current vehicle condition does not meet the requirements of near-field wireless diagnosis, the domain control wireless communication module is immediately disabled to make the domain control wireless communication module in a disabled state.
[0127] Further, after the upper-layer domain control application sends the diagnosis result to the vehicle diagnostic device through the corresponding domain control wireless communication module, the method further includes: if the upper-layer domain control application determines that the communication connection between the domain control wireless communication module and the vehicle diagnostic device is in a disconnected state and the disconnection exceeds a preset time, the domain control wireless communication module is made in a low-power mode.
[0128] Exemplarily, if the communication connection between the vehicle diagnostic device and the domain control wireless communication module is disconnected for more than a preset time (such as 5 minutes) after completing the current vehicle diagnosis, the domain control wireless communication module switches from the high-performance mode to the low-power mode.
[0129] In the implementation manner of this application, by controlling the domain control wireless communication module to enter the high-performance mode when signal transmission is required and to be in the low-power mode when the communication connection has not been established or the communication connection is disconnected, the power consumption is saved to the greatest extent.
[0130] Such as Figure 7As shown, the domain control wireless communication module of the domain controller is divided into a disabled state and an enabled state. When the vehicle is powered on and awakened, each domain control wireless communication module is default in the disabled state (Disable State). In the disabled state, the domain control wireless communication module does not work and is in a sleep state. When it is determined that the vehicle meets the priority of near-field wireless diagnosis and the vehicle condition meets the diagnostic conditions (that is, the priority is allowed && the conditions are met (Priority allowed && conditions met)), it is in the enabled state (Enable State). In the enabled state, the domain control wireless communication module starts to work, which is further divided into a low-power mode and a high-performance mode. First, the domain control wireless communication module enters the low-power mode (Low-power Mode). In the low-power state, the domain control wireless communication module only retains the ability to process requests from clients (such as vehicle diagnostic devices) to establish connections, saving power to the greatest extent. Once the client's request to establish a connection is successful (that is, in the communication connection state (connection)), it switches to the high-performance mode (High-Performance Mode) to ensure the quality of wireless transmission communication. And when the communication connection is disconnected for a period of time (Disconnected for a period of time), it switches back to the low-power mode from the high-performance mode. Also, when the vehicle has lost the priority of near-field wireless diagnosis and / or the upper-layer application of the domain control recognizes that the current vehicle condition does not meet the requirements of near-field wireless diagnosis (Priority not allowed = conditions not met), the domain control wireless communication module is in the disabled state.
[0131] The vehicle diagnosis method and system provided by the present application is actually a near-field wireless diagnosis method and system based on a multi-point parallel diagnosis communication architecture of domain control, that is, the near-field vehicle diagnostic device can directly perform parallel diagnosis communication with each domain controller in the vehicle (the gateway is one of the domain controllers). Each domain controller acts as an independent wireless communication node to perform diagnosis communication with the near-field vehicle diagnostic device. The diagnostic result data sent by the domain controller is no longer uniformly sent to the gateway via the bus, but is directly sent to the near-field vehicle diagnostic device through the wireless communication module inside the domain controller.
[0132] As shown in Table 2, the difference between the vehicle diagnosis method and system of the implementation mode of the present application and the existing vehicle diagnosis method and system is that the existing diagnostic communication architecture is a single-point serial diagnosis communication architecture, and the diagnostic communication link is domain controller → bus → gateway routing module → gateway wireless communication module → wireless network → near-field vehicle diagnostic device. The diagnostic communication architecture of the present application is a multi-point parallel diagnosis communication architecture based on domain control, and the diagnostic communication link is domain controller → domain control wireless communication module → wireless network → near-field vehicle diagnostic device.
[0133] Table 2 - Comparison between the existing vehicle diagnostic system and the vehicle diagnostic system of the present application
[0134]
[0135] The vehicle diagnostic method and system provided by the implementation manner of the present application can effectively improve the diagnostic efficiency and enhance the reliability and stability of the near - field wireless diagnostic system.
[0136] As Figure 8 shown, taking the software refresh scenario of the factory production line as an example, the efficiency improvement brought by the multi - point parallel diagnostic communication architecture based on the domain controller is described: Assume that when the vehicle comes off the production line, the software of the intelligent computing domain controller, intelligent driving domain controller, and intelligent cabin domain controller needs to be upgraded. The software package size of the intelligent computing domain controller is 3G, the software package size of the intelligent driving domain controller is 12G, and the software package size of the intelligent cabin domain controller is 5G. Assume that Bluetooth is used as the wireless short - range communication carrier, and its wireless transmission rate is 24 Mbps. Then the time required for the software package transmission of each vehicle at the refresh station is:
[0137] Serial transmission of the prior art:
[0138]
[0139] Substituting the above data for calculation, it is obtained that the time required for the software package transmission of each vehicle at the refresh station is 114 minutes.
[0140] Parallel transmission of the present application:
[0141]
[0142] Substituting the above data for calculation, it is obtained that the time required for the software package transmission of each vehicle at the refresh station is 68 minutes.
[0143] In this way, the diagnostic efficiency is effectively improved. Parallel transmission can preferentially reduce the probability of channel congestion and effectively reduce the transmission delay.
[0144] The vehicle diagnostic device provided by the implementation manner of the present application can specifically be an electronic device such as a computer or an industrial control computer.
[0145] Please refer to Figure 9 Figure 9 shown in the structural schematic diagram of the electronic device provided by the embodiment of the present application. As Figure 9 shown, the electronic device may include: a transceiver 121, a processor 122, and a memory 123.
[0146] The processor 122 executes the computer-executable instructions stored in the memory, enabling the processor 122 to execute some of the technical solutions of the vehicle diagnosis method in the above embodiments. The processor 122 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital data processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0147] The memory 123 is connected to the processor 122 through the system bus and completes the communication therebetween. The memory 123 is used to store computer program instructions.
[0148] By way of example and not limitation, the memory 123 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 123 may include a removable or non-removable (or fixed) medium. In a suitable case, the memory 123 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 123 is a non-volatile solid-state memory. In a particular embodiment, the memory 123 includes a read-only memory (ROM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or a flash memory, or a combination of two or more of these. The transceiver 121 can be used to obtain the tasks to be run and the configuration information of the tasks to be run.
[0149] The system bus can be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to implement communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include a Random Access Memory (RAM), and may also include a non-volatile memory.
[0150] An embodiment of the present application also provides a chip for running instructions, and the chip is used to execute the technical solution of the vehicle diagnosis method in the above embodiment.
[0151] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions run on a processor of an electronic device, the processor of the electronic device is caused to execute some technical solutions of the vehicle diagnosis method in the above embodiment.
[0152] In some possible implementation manners, each aspect of the method provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a processor of an electronic device, the program code is used to cause the processor of the electronic device to execute the steps in the method according to various exemplary implementation manners described in this specification of the present application. For example, the electronic device can execute some technical solutions of the vehicle diagnosis method recorded in the embodiment of the present application.
[0153] The program product can adopt any combination of one or more readable media. The readable media can be a readable data medium or a readable storage medium. The readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection with one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM or flash memory), an optical fiber, a portable compact disc read only memory (CDROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0154] The implementation manner of the present application also provides a computer program product. The computer program product includes a computer program, which is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium, and when the at least one processor executes the computer program, the technical solution of the vehicle diagnosis method in the above embodiments can be implemented.
[0155] It should be noted that, in addition to the implementation manner of the present application described in the above specific embodiments, those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. Although the description of the present application is introduced in combination with preferred embodiments, this does not mean that the features of this invention are limited to this implementation manner. On the contrary, the purpose of introducing the invention in combination with the implementation manner is to cover other alternatives or modifications that may extend from the present application. For the purpose of providing a deep understanding of the present application, many specific details are included in the above description, and the present application can also be implemented without using these details. In addition, in order to avoid confusion or obscuring the key points of the present application, some specific details will be omitted in the description. It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
[0156] It should be noted that in this specification, similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0157] It should be noted that in the drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Additionally, including a structural or method feature in a specific figure does not imply that such a feature is required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features. [[ID=lla]]
[0158] Although the present application has been illustrated and described by referring to some preferred implementation manners of the present application, those of ordinary skill in the art should understand that the above content is a further detailed description of the present application in combination with specific implementation manners, and it cannot be determined that the specific implementation of the present application is only limited to these descriptions. Those skilled in the art can make various changes in form and details, including making several simple deductions or substitutions, without departing from the spirit and scope of the present application.
Claims
1. A vehicle diagnostic method, characterized in that, An application is made to a vehicle diagnostic system, the vehicle diagnostic system including a vehicle diagnostic device and a vehicle, the vehicle including a gateway and multiple domain controllers, each domain controller including a domain controller upper-layer application and a domain controller wireless communication module, the vehicle diagnostic device establishing a near-field wireless communication connection with the vehicle through the gateway, the method including: The vehicle diagnostic device sends vehicle diagnostic task information to the gateway; The gateway receives the vehicle diagnostic task information, determines the target diagnostic task based on the vehicle diagnostic task information, and sends the target diagnostic task to the domain controller upper-layer application included in the corresponding domain controller; The domain controller includes the domain controller upper layer application that determines vehicle status information. Based on the vehicle status information and the target diagnostic task, when it is determined that the corresponding domain controller wireless communication module should be enabled, the domain controller wireless communication module should be enabled and put into a low power mode and emit a wireless communication signal. Upon receiving the wireless communication signal, the vehicle diagnostic device sends a connection request signal to the corresponding domain control wireless communication module based on the wireless communication signal. Upon receiving the connection request signal and successfully verifying the legitimacy of the vehicle diagnostic device, the domain control wireless communication module establishes a wireless communication connection with the vehicle diagnostic device and enters high-performance mode; and The domain controller upper-layer application executes the target diagnostic task to obtain diagnostic results, and sends the diagnostic results to the vehicle diagnostic device through the corresponding domain controller wireless communication module.
2. The vehicle diagnostic method according to claim 1, characterized in that, The gateway determines the target diagnostic task based on the vehicle diagnostic task information, including: If the vehicle diagnostic task information includes a vehicle diagnostic task, the gateway will use the vehicle diagnostic task as the target diagnostic task. When the vehicle diagnostic task information includes multiple vehicle diagnostic tasks, the gateway performs task arbitration based on the priority of each vehicle diagnostic task to determine the target diagnostic task.
3. The vehicle diagnostic method according to claim 2, characterized in that, The method further includes: The vehicle diagnostic device identifies the domain controller with which it has established a wireless communication connection and sends the target diagnostic task information corresponding to the target diagnostic task to the upper-layer application of the domain controller through the domain controller's wireless communication module. The domain controller upper-layer application executes the target diagnostic task based on the target diagnostic task information to obtain the diagnostic result.
4. The vehicle diagnostic method according to any one of claims 1-3, characterized in that, The gateway includes a gateway wireless communication module, a gateway arbitration module, a gateway routing module, and a gateway upper-layer application. The vehicle diagnostic device establishes a near-field wireless communication connection with the gateway through the gateway wireless communication module. The gateway arbitration module communicates with both the gateway wireless communication module and the gateway upper-layer application. The gateway upper-layer application communicates with each of the domain controllers via the gateway routing module. The gateway receives vehicle diagnostic task information, determines the target diagnostic task based on the vehicle diagnostic task information, and sends the target diagnostic task to the domain controller upper-layer application included in the domain controller, including: The gateway wireless communication module receives the vehicle diagnostic task information and sends the vehicle diagnostic task information to the gateway arbitration module; The gateway arbitration module determines the target diagnostic task based on the vehicle diagnostic task information and sends the target diagnostic task to the upper-layer application of the gateway. The gateway upper-layer application broadcasts the target diagnostic task to the communication bus via the gateway routing module, so that each domain controller upper-layer application receives the target diagnostic task.
5. The vehicle diagnostic method according to any one of claims 1-4, characterized in that, After the domain controller upper-layer application obtains the diagnostic results, the method further includes: If the domain controller upper-layer application determines that the wireless communication connection between the domain controller wireless communication module and the vehicle diagnostic equipment is disconnected, and the disconnection period exceeds a preset time, then Put the domain-controlled wireless communication module into a low-power mode; and The domain controller upper-layer application sends the diagnostic results to the gateway upper-layer application through the gateway routing module; The upper-layer application of the gateway sends the diagnostic results to the vehicle diagnostic device through the gateway's wireless communication module.
6. The vehicle diagnostic method according to any one of claims 1-5, characterized in that, The method further includes: If the vehicle diagnostic device determines that the wireless communication connection between the domain controller wireless communication module corresponding to the domain controller upper-layer application whose diagnostic processing has not yet ended and the vehicle diagnostic device is in a disconnected state, the vehicle diagnostic device will resend a connection request signal to the corresponding domain controller wireless communication module to re-establish the wireless communication connection. Furthermore, if the number of connection failures exceeds a preset number during the re-establishment process, the connection will be stopped. If the domain controller upper-layer application determines that the number of connection failures between the domain controller wireless communication module and the vehicle diagnostic device exceeds a preset number, then the domain controller wireless communication module is put into a low-power mode.
7. The vehicle diagnostic method according to any one of claims 1-6, characterized in that, After the domain controller upper-layer application sends the diagnostic results to the vehicle diagnostic device through the corresponding domain controller wireless communication module, the method further includes: If the domain controller upper-layer application determines that the communication connection between the domain controller wireless communication module and the vehicle diagnostic device is disconnected and the disconnection exceeds a preset time, then the domain controller wireless communication module is put into a low-power mode.
8. The vehicle diagnostic method according to any one of claims 1-7, characterized in that, When the domain control wireless communication module and the vehicle diagnostic equipment are in a wireless communication connection state, the method further includes: When the domain control upper-layer application receives a notification to stop near-field diagnostic processing, or when it determines, based on the vehicle status information, that the vehicle does not meet the target conditions, it disables the domain control wireless communication module.
9. The vehicle diagnostic method according to any one of claims 1-8, characterized in that, After the vehicle is awakened, the gateway wireless communication module remains enabled, while the domain controller wireless communication module of each domain controller is disabled by default.
10. A vehicle diagnostic system, characterized in that, The vehicle diagnostic system includes vehicle diagnostic equipment and a vehicle. The vehicle includes a gateway and multiple domain controllers. Each domain controller includes a domain controller upper-layer application and a domain controller wireless communication module. The vehicle diagnostic equipment establishes a near-field wireless communication connection with the vehicle through the gateway. The vehicle diagnostic device is used to send vehicle diagnostic task information to the gateway; The gateway receives the vehicle diagnostic task information and uses it to determine the target diagnostic task based on the vehicle diagnostic task information, and sends the target diagnostic task to the domain controller upper layer application included in the corresponding domain controller; The domain controller includes an upper-layer application for determining vehicle status information. Based on the vehicle status information and the target diagnostic task, when it is determined that the corresponding domain controller wireless communication module should be enabled, the domain controller wireless communication module should be enabled and put into a low-power mode and emit a wireless communication signal. The vehicle diagnostic device is also used to send a connection request signal to the corresponding domain control wireless communication module based on the wireless communication signal when the wireless communication signal is received; The domain-controlled wireless communication module is used to establish a wireless communication connection with the vehicle diagnostic equipment and operate in high-performance mode upon receiving the connection request signal and passing the validity verification of the vehicle diagnostic equipment; and The domain controller upper-layer application is also used to execute the target diagnostic task to obtain diagnostic results, and send the diagnostic results to the vehicle diagnostic device through the corresponding domain controller wireless communication module.