CN-121982797-A - Method and device for realizing multi-vehicle diagnosis through soft AP local area network
Abstract
The invention relates to the technical field of vehicle diagnosis, and discloses a method and a device for realizing multi-vehicle diagnosis through a soft AP (access point) local area network, wherein the method comprises the following steps: and establishing a first communication link between the diagnostic equipment and the VCI equipment through the workstation hot spot mode of the diagnostic equipment and the AP hot spot mode of the VCI equipment, sending a configuration instruction to the VCI equipment through the first communication link, establishing a second communication link between the diagnostic equipment and each VCI equipment after the hot spot modes of the diagnostic equipment and the VCI equipment are switched, establishing a diagnostic client of each VCI equipment according to the second communication link, and executing vehicle diagnostic operation on a vehicle to be diagnosed, which is connected with each VCI equipment, based on each diagnostic client. Therefore, by implementing the invention, a plurality of vehicles can be diagnosed by single person and single diagnosis equipment at the same time, the labor and hardware cost is reduced, the diagnosis efficiency of a plurality of vehicles is improved, a communication link is constructed based on a soft AP local area network, the overall scene adaptability is improved, and the accuracy and reliability of diagnosis data transmission are improved.
Inventors
- ZHOU ZHENBIN
- LOU KE
- LI JIANFENG
- BIN CHAOLIN
- YANG FANFAN
Assignees
- 深圳鼎匠科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251226
Claims (10)
- 1. A method for implementing multiple vehicle diagnostics over a soft AP local area network, the method comprising: acquiring equipment hot spot modes of equipment corresponding to a current vehicle diagnosis task, wherein the equipment comprises diagnosis equipment and at least one VCI (virtual control interface) equipment, the equipment hot spot modes of the diagnosis equipment comprise workstation hot spot modes, and the equipment hot spot modes of each VCI equipment comprise AP hot spot modes; For each of the VCI devices, establishing a first communication link between the diagnostic device and the VCI device through the workstation hotspot mode of the diagnostic device and the AP hotspot mode of the VCI device, and transmitting a configuration instruction of the diagnostic device to the VCI device through the first communication link; Switching the equipment hot spot mode of the diagnostic equipment to an AP hot spot mode, and switching the equipment hot spot mode of each VCI equipment to a workstation hot spot mode; establishing a second communication link between the diagnostic device and each of the VCI devices through the AP hotspot mode of the diagnostic device and the workstation hotspot mode of each of the VCI devices; And creating a diagnosis client corresponding to each VCI device in the diagnosis device according to the second communication link, and executing vehicle diagnosis operation on the vehicle to be diagnosed connected with each VCI device based on each diagnosis client in the diagnosis device.
- 2. The method for implementing multi-vehicle diagnostics over a soft AP lan according to claim 1, wherein said creating a diagnostic client in said diagnostic device corresponding to each of said VCI devices according to said second communication link comprises: Acquiring a preset broadcast port, and constructing a broadcast data packet of each VCI device, wherein the broadcast data packet comprises a VCI device identifier and an IP address of the VCI device; Broadcasting a broadcast data packet of each VCI device at the broadcast port according to a preset time interval; The diagnostic equipment is controlled to monitor the broadcast port, and a broadcast data packet of each monitored VCI equipment is obtained; Analyzing the broadcast data packet of each VCI device in the diagnostic device to obtain the analyzed broadcast data packet, and generating a device information index table corresponding to each VCI device according to the analyzed broadcast data packet; and in the diagnostic equipment, creating a diagnostic client corresponding to each VCI equipment according to the equipment information index table.
- 3. The method for implementing a multiple vehicle diagnosis over a soft AP lan according to claim 2, wherein the performing a vehicle diagnosis operation on the vehicle to be diagnosed to which each of the VCI devices is connected based on each of the diagnosis clients in the diagnosis device includes: Assigning a separate communication thread to each of the diagnostic clients in the diagnostic device; for any currently selected diagnosis client, sending a diagnosis instruction to VCI equipment corresponding to the diagnosis client through the communication thread corresponding to the diagnosis client, wherein the diagnosis instruction comprises a data reading instruction and/or a fault code detection instruction; Receiving vehicle response data fed back by the VCI equipment corresponding to the diagnosis client, and displaying the vehicle response data in the diagnosis equipment, wherein the vehicle response data comprises vehicle system data and/or fault code data; and when the currently selected diagnosis client is closed and is switched to another diagnosis client, recovering the communication thread corresponding to the currently selected diagnosis client or reserving the communication thread corresponding to the currently selected diagnosis client.
- 4. The method for enabling multiple vehicle diagnostics over a soft AP local area network according to claim 3, further comprising: detecting a connection state of a second communication link corresponding to each diagnostic client through a communication thread corresponding to each diagnostic client in the process of executing vehicle diagnosis operation on a vehicle to be diagnosed connected with each VCI device based on each diagnostic client in the diagnostic devices; For each second communication link, when the connection state of the second communication link is in a disconnection state, controlling the VCI equipment corresponding to the second communication link to be reconnected with the diagnostic equipment according to the configuration instruction; And when the reconnection is successful, continuing to execute the vehicle diagnosis operation based on the communication thread corresponding to the second communication link, when the reconnection fails, recording the reconnection times, determining link interruption information when the reconnection times are greater than a preset reconnection times threshold, and displaying the link interruption information to a user through the diagnosis equipment, wherein the link interruption information comprises a VCI equipment identifier and interruption time.
- 5. The method for performing multiple vehicle diagnostics over a soft AP local area network according to any one of claims 1-4 wherein the method further comprises: acquiring corresponding hot spot information when the diagnostic equipment is in the AP hot spot mode, and constructing a configuration instruction of the diagnostic equipment according to the hot spot information, wherein the hot spot information comprises a hot spot name and a hot spot password; And for each of the VCI devices, the transmitting configuration instructions of the diagnostic device to the VCI device over the first communication link includes: transmitting configuration instructions of the diagnostic device to the VCI device over the first communication link; after the VCI equipment receives the configuration instruction, extracting a check code corresponding to the configuration instruction, and judging whether the configuration instruction meets a preset check condition according to the check code; When the configuration instruction meets the verification condition, generating a response code according to the configuration instruction, and feeding back the response code to the diagnosis equipment through the first communication link; And when the configuration instruction does not meet the check condition, retransmitting the configuration instruction to the VCI equipment through the first communication link, recording the retransmission times, and disconnecting the first communication link when the retransmission times are larger than a preset retransmission times threshold value.
- 6. The method for enabling multiple vehicle diagnostics over a soft AP local area network according to claim 3 or 4, further comprising: Acquiring vehicle information of each vehicle to be diagnosed corresponding to the current vehicle diagnosis task, and determining the diagnosis priority of each VCI device according to the vehicle information of each vehicle to be diagnosed; distributing data transmission capacity to the communication thread corresponding to each VCI device according to the diagnosis priority of each VCI device; In the process of executing vehicle diagnosis operation on a vehicle to be diagnosed connected with current VCI equipment, when a diagnosis request for target VCI equipment is detected, controlling a communication thread of the current VCI equipment to be suspended, and storing the current diagnosis progress of the current VCI equipment, wherein the diagnosis priority of the target VCI equipment is higher than that of the current VCI equipment; And when the vehicle diagnosis operation aiming at the target VCI equipment is completed, recovering the communication thread of the current VCI equipment according to the current diagnosis progress, and generating a priority scheduling record.
- 7. The method for performing multiple vehicle diagnostics over a soft AP local area network according to any one of claims 1-4 wherein the method further comprises: In the process of executing vehicle diagnosis operation on the to-be-diagnosed vehicle connected with each VCI device based on each diagnosis client in the diagnosis devices, when any diagnosis client meets a preset diagnosis data storage condition, collecting diagnosis data corresponding to the diagnosis client, wherein the diagnosis data storage condition comprises at least one of completing the vehicle diagnosis operation, receiving a storage instruction output by a user and detecting a key fault code; the diagnosis data and the corresponding vehicle identification of the vehicle to be diagnosed are stored in a preset association index table in an association mode; when a diagnosis data tracing instruction triggered by a user is received, matching target diagnosis data is screened in the association index table according to a query condition carried in the diagnosis data tracing instruction, a visual graph of the target diagnosis data is generated, the visual graph is displayed in the diagnosis equipment, and the query condition comprises a VCI equipment identifier and a vehicle identifier.
- 8. An apparatus for enabling multiple vehicle diagnostics over a soft AP local area network, the apparatus comprising: The device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a device hot spot mode of a device corresponding to a current vehicle diagnosis task, the device comprises diagnosis equipment and at least one VCI device, the device hot spot mode of the diagnosis equipment comprises a workstation hot spot mode, and the device hot spot mode of each VCI device comprises an AP hot spot mode; The establishing module is used for establishing a first communication link between the diagnostic equipment and the VCI equipment through the workstation hot spot mode of the diagnostic equipment and the AP hot spot mode of the VCI equipment and sending a configuration instruction of the diagnostic equipment to the VCI equipment through the first communication link; the switching module is used for switching the equipment hot spot mode of the diagnostic equipment into an AP hot spot mode and switching the equipment hot spot mode of each VCI equipment into a workstation hot spot mode; The establishing module is further configured to establish a second communication link between the diagnostic device and each VCI device through the AP hotspot mode of the diagnostic device and the workstation hotspot mode of each VCI device; The diagnosis module is used for creating a diagnosis client corresponding to each VCI device in the diagnosis device according to the second communication link, and executing vehicle diagnosis operation on the vehicle to be diagnosed connected with each VCI device based on each diagnosis client in the diagnosis device.
- 9. An apparatus for enabling multiple vehicle diagnostics over a soft AP local area network, the apparatus comprising: A memory storing executable program code; A processor coupled to the memory; the processor invokes the executable program code stored in the memory to perform the method of performing multiple vehicle diagnostics over a softap local area network as claimed in any one of claims 1 to 7.
- 10. A computer storage medium storing computer instructions which, when invoked, are operable to perform the method of performing multiple vehicle diagnostics over a softap local area network as claimed in any one of claims 1 to 7.
Description
Method and device for realizing multi-vehicle diagnosis through soft AP local area network Technical Field The invention relates to the technical field of vehicle diagnosis, in particular to a method and a device for realizing multi-vehicle diagnosis through a soft AP local area network. Background With the deep transformation of the global automobile industry to new energy, intellectualization and networking, the complexity of an automobile electronic architecture is exponentially improved, and the number of electronic control units of an automobile is remarkably increased, so that the automobile diagnosis requirement is improved from single fault code reading to full system function detection, ECU online programming, battery health evaluation and other composite requirements, the diagnosis frequency and data interaction quantity are remarkably increased, and the requirement on diagnosis efficiency is gradually increased. At present, the large-scale diagnosis needs for automobiles in different application scenes are urgent, for example, in the scenes of whole car offline detection scenes, 4S shop after-sales service scenes, third-party automobile maintenance factory scenes, automobile operation and maintenance scenes and the like, a one-to-one diagnosis mode is generally adopted at present, namely, a single diagnosis device can only establish a diagnosis communication link with one vehicle through VCI equipment. When a plurality of vehicles simultaneously need fault diagnosis, ECU programming or system detection, operators, diagnosis equipment and VCI equipment matched with the number of the vehicles need to be configured, so that not only are the labor cost and hardware investment greatly increased, but also the problems of complicated equipment scheduling, scattered diagnosis flow and the like are caused, and the requirements of large-scale and efficient diagnosis operation are difficult to meet. Therefore, it is important to provide a technical solution that can improve the diagnosis efficiency of multiple vehicles without increasing additional hardware investment. Disclosure of Invention The invention provides a method and a device for realizing multi-vehicle diagnosis through a soft AP local area network, which can be beneficial to improving the multi-vehicle diagnosis efficiency without additional hardware investment. In order to solve the technical problem, the first aspect of the present invention discloses a method for implementing multi-vehicle diagnosis through a soft AP local area network, the method comprising: acquiring equipment hot spot modes of equipment corresponding to a current vehicle diagnosis task, wherein the equipment comprises diagnosis equipment and at least one VCI (virtual control interface) equipment, the equipment hot spot modes of the diagnosis equipment comprise workstation hot spot modes, and the equipment hot spot modes of each VCI equipment comprise AP hot spot modes; For each of the VCI devices, establishing a first communication link between the diagnostic device and the VCI device through the workstation hotspot mode of the diagnostic device and the AP hotspot mode of the VCI device, and transmitting a configuration instruction of the diagnostic device to the VCI device through the first communication link; Switching the equipment hot spot mode of the diagnostic equipment to an AP hot spot mode, and switching the equipment hot spot mode of each VCI equipment to a workstation hot spot mode; establishing a second communication link between the diagnostic device and each of the VCI devices through the AP hotspot mode of the diagnostic device and the workstation hotspot mode of each of the VCI devices; And creating a diagnosis client corresponding to each VCI device in the diagnosis device according to the second communication link, and executing vehicle diagnosis operation on the vehicle to be diagnosed connected with each VCI device based on each diagnosis client in the diagnosis device. As an optional implementation manner, in the first aspect of the present invention, the creating, in the diagnostic device, a diagnostic client corresponding to each of the VCI devices according to the second communication link includes: Acquiring a preset broadcast port, and constructing a broadcast data packet of each VCI device, wherein the broadcast data packet comprises a VCI device identifier and an IP address of the VCI device; Broadcasting a broadcast data packet of each VCI device at the broadcast port according to a preset time interval; The diagnostic equipment is controlled to monitor the broadcast port, and a broadcast data packet of each monitored VCI equipment is obtained; Analyzing the broadcast data packet of each VCI device in the diagnostic device to obtain the analyzed broadcast data packet, and generating a device information index table corresponding to each VCI device according to the analyzed broadcast data packet; and in the diagnostic equipment, creating a diag