Search

CN-122001929-A - Vehicle diagnosis session maintaining method, device, equipment, storage medium and vehicle

CN122001929ACN 122001929 ACN122001929 ACN 122001929ACN-122001929-A

Abstract

The embodiment of the application provides a vehicle diagnosis session maintaining method, device, equipment, storage medium and vehicle. The method comprises the steps that a diagnosis device establishes a diagnosis session between a gateway device and a module to be diagnosed, the diagnosis device periodically sends a first diagnosis service request to the module to be diagnosed through the diagnosis session, the gateway device determines the interval duration between the moment when the diagnosis device receives the first diagnosis service request sent last time and the current moment when the target communication connection between the diagnosis device and the gateway device is not disconnected, and when the interval duration is greater than or equal to a target duration threshold, the gateway device autonomously sends a second diagnosis service request to the module to be diagnosed, so that the module to be diagnosed responds to the second diagnosis service request to maintain the diagnosis session. The application can maintain the diagnosis session when the network connection is unstable.

Inventors

  • LI ZHONGJUN
  • REN WENJING
  • WANG MIAN

Assignees

  • 亿咖通(湖北)技术有限公司

Dates

Publication Date
20260508
Application Date
20260108

Claims (10)

  1. 1. A vehicle diagnostic session maintenance method, the method comprising: the diagnosis equipment establishes a diagnosis session between the gateway device and the module to be diagnosed; the diagnosis equipment periodically sends a first diagnosis service request to the module to be diagnosed through the diagnosis session; The gateway device determines the interval duration between the time when the first diagnosis service request is last sent by the diagnosis device and the current time when the target communication connection between the diagnosis device and the gateway device is not disconnected; And when the interval time length is greater than or equal to a target time length threshold, the gateway device autonomously transmits a second diagnosis service request to the module to be diagnosed so that the module to be diagnosed responds to the second diagnosis service request to maintain the diagnosis session.
  2. 2. The method of claim 1, wherein prior to the determining a duration of an interval between the time at which the diagnostic device last sent the first diagnostic service request was received and a current time, the method further comprises: Periodically sending the interval duration of the first diagnosis service request by the diagnosis equipment as the target duration threshold; Or alternatively And dynamically determining the target duration threshold based on the network signal dynamic parameters of the target communication connection.
  3. 3. The method according to claim 1 or 2, characterized in that the method further comprises: and stopping sending the second diagnosis service request to the module to be diagnosed when the target communication connection is detected to be disconnected.
  4. 4. A method according to claim 3, wherein prior to monitoring the disconnection of the target communication connection, the method further comprises: And stopping sending the second diagnosis service request to the module to be diagnosed when the first diagnosis service request sent by the diagnosis equipment is received, and sending the first diagnosis service request to the module to be diagnosed.
  5. 5. The method according to claim 1 or 2, characterized in that before the target communication connection between the diagnostic device and the gateway apparatus is not broken, the method further comprises: and establishing a wireless diagnosis Transmission Control Protocol (TCP) connection with the diagnosis equipment through the wireless diagnosis Internet protocol address, wherein the wireless diagnosis TCP connection is the target communication connection.
  6. 6. The method according to claim 1 or 2, characterized in that before the gateway device autonomously sends a second diagnostic service request to the module to be diagnosed, the method further comprises: Establishing an internal diagnosis Transmission Control Protocol (TCP) connection with the module to be diagnosed through an internal diagnosis Internet protocol address; And sending the first diagnosis service request or the second diagnosis service request to the module to be diagnosed through the internal diagnosis TCP connection.
  7. 7. A vehicle diagnosis session maintenance apparatus, characterized in that the apparatus is applied to a gateway apparatus of a vehicle, a diagnosis device establishes a diagnosis session with a module to be diagnosed through one gateway apparatus, and the diagnosis device periodically transmits a first diagnosis service request to the module to be diagnosed through the diagnosis session, the apparatus comprising: The processing module is used for determining the interval duration between the time when the diagnostic equipment receives the last transmission of the first diagnostic service request and the current time when the target communication connection between the diagnostic equipment and the gateway device is not disconnected; And the sending module is used for autonomously sending a second diagnosis service request to the module to be diagnosed when the interval time length is greater than or equal to a target time length threshold value, so that the module to be diagnosed responds to the second diagnosis service request and maintains the diagnosis session.
  8. 8. The electronic device is characterized by comprising a processor and a memory, wherein the processor is in communication connection with the memory; the memory stores computer instructions; the processor executes the computer instructions stored by the memory to implement the method of any one of claims 1-6.
  9. 9. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-6.
  10. 10. A vehicle, characterized in that it comprises gateway means and a module to be diagnosed, a diagnostic device establishing a diagnostic session between the diagnostic device and the module to be diagnosed via one gateway means, the diagnostic device periodically sending a first diagnostic service request to the module to be diagnosed via the diagnostic session, the gateway means being adapted to perform the method according to any of claims 1-6.

Description

Vehicle diagnosis session maintaining method, device, equipment, storage medium and vehicle Technical Field The present application relates to the field of vehicle technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a vehicle for maintaining a vehicle diagnosis session. Background In the electronic systems of vehicles, on-board diagnostics have become a central tool for vehicle maintenance, software upgrades and troubleshooting. With the development of on-board network technology, on-board diagnostics may be implemented in dependence on wireless diagnostic technology (e.g., wi-Fi). For example, a technician may establish a wireless connection with the vehicle through a Wi-Fi module-mounted diagnostic device (e.g., a handheld device or tablet) and send a diagnostic request to the vehicle electronic control unit (Electronic Control Unit, ECU) through a unified diagnostic service (Unified Diagnostic Services, UDS) to maintain a diagnostic session. However, wi-Fi networks have the natural characteristics of signal fluctuations. In the scenario of unstable Wi-Fi signals (the connection itself is not disconnected), the diagnosis service signals cannot reach the ECU in time, and further the ECU misjudges that the diagnosis session is interrupted, so that the vehicle-mounted diagnosis is interrupted. Disclosure of Invention The embodiment of the application provides a vehicle diagnosis session maintaining method, device, equipment, storage medium and vehicle, which are used for maintaining a diagnosis session when network connection is unstable. In a first aspect, an embodiment of the present application provides a vehicle diagnostic session maintenance method, the method including: the diagnosis equipment establishes a diagnosis session between the gateway device and the module to be diagnosed; the diagnosis equipment periodically sends a first diagnosis service request to the module to be diagnosed through the diagnosis session; The gateway device determines the interval duration between the time when the first diagnosis service request is last sent by the diagnosis device and the current time when the target communication connection between the diagnosis device and the gateway device is not disconnected; And when the interval time length is greater than or equal to a target time length threshold, the gateway device autonomously transmits a second diagnosis service request to the module to be diagnosed so that the module to be diagnosed responds to the second diagnosis service request to maintain the diagnosis session. Optionally, before the determining that the interval duration between the time when the diagnostic device last sent the first diagnostic service request and the current time is received, the method further includes: Periodically sending the interval duration of the first diagnosis service request by the diagnosis equipment as the target duration threshold; Or alternatively And dynamically determining the target duration threshold based on the network signal dynamic parameters of the target communication connection. Optionally, the method further comprises: and stopping sending the second diagnosis service request to the module to be diagnosed when the target communication connection is detected to be disconnected. Optionally, before the target communication connection disconnection is monitored, the method further comprises: And stopping sending the second diagnosis service request to the module to be diagnosed when the first diagnosis service request sent by the diagnosis equipment is received, and sending the first diagnosis service request to the module to be diagnosed. Optionally, before the target communication connection between the diagnostic apparatus and the gateway device is not broken, the method further comprises: and establishing a wireless diagnosis Transmission Control Protocol (TCP) connection with the diagnosis equipment through the wireless diagnosis Internet protocol address, wherein the wireless diagnosis TCP connection is the target communication connection. Optionally, before the gateway device autonomously sends the second diagnostic service request to the module to be diagnosed, the method further includes: Establishing an internal diagnosis Transmission Control Protocol (TCP) connection with the module to be diagnosed through an internal diagnosis Internet protocol address; And sending the first diagnosis service request or the second diagnosis service request to the module to be diagnosed through the internal diagnosis TCP connection. In a second aspect, the present application provides a vehicle diagnostic session maintenance apparatus applied to a gateway apparatus of a vehicle, a diagnostic device establishing a diagnostic session between the diagnostic device and a module to be diagnosed through one gateway apparatus, the diagnostic device periodically transmitting a first diagnostic service request to the module to be diagnosed