Vehicle diagnosis method and system
Through the communication connection between the server and the diagnostic connector, cloud diagnosis is realized, solving the problem of inconvenient portability of the diagnostic tablet and improving the portability and efficiency of the diagnosis.
Patent Information
- Application Number
- CN202510361615.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-06-17
AI Technical Summary
In the existing automotive diagnostic methods, the diagnostic tablet is bloated due to its durability in mind, which makes it inconvenient to carry.
The server establishes a communication connection with the diagnostic connector, sends remote connection information to the diagnostic connector, receives and responds to the connection request and diagnostic request of the electronic device, performs diagnostic operations, and realizes cloud diagnosis, so that users do not need to carry a diagnostic tablet.
Cloud diagnosis is realized, and users can remotely control the server for vehicle diagnosis through electronic devices, reducing the cost of diagnosis hardware and improving the portability and efficiency of diagnosis.
Smart Images

Figure CN120161815A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of vehicle diagnosis, and particularly relates to a vehicle diagnosis method and system. Background Art
[0002] In existing vehicle diagnosis methods, the diagnostic device includes a diagnostic connector and a diagnostic tablet. Among them, the diagnostic tablet provides devices for programs and interfaces.
[0003] However, when designing the diagnostic tablet, due to factors such as durability, the design is bloated, making the tablet itself large in size and inconvenient to carry. Summary of the Invention
[0004] Embodiments of this application provide a vehicle diagnosis method, system, server, computer-readable storage medium, and computer program product, which can solve the problem that the diagnostic tablet is inconvenient to carry.
[0005] In a first aspect, embodiments of this application provide a vehicle diagnosis method, applied to a server, including:
[0006] When establishing a communication connection with the diagnostic connector, send remote connection information to the diagnostic connector;
[0007] Receive a connection request from an electronic device, where the connection request is generated by the electronic device according to the remote connection information;
[0008] In response to the connection request of the electronic device, establish a communication connection with the electronic device;
[0009] Receive a diagnostic request from the electronic device, and perform a diagnostic operation in response to the diagnostic request.
[0010] In one embodiment, the step of "when establishing a communication connection with the diagnostic connector, send remote connection information to the diagnostic connector" includes:
[0011] When establishing a communication connection with the diagnostic connector, create a virtual machine;
[0012] Generate remote connection information through the virtual machine, and send the remote connection information to the diagnostic connector.
[0013] In one embodiment, the step of "perform a diagnostic operation in response to the diagnostic request" includes:
[0014] In response to the diagnostic request, determine a target protocol according to the network status and the diagnostic request;
[0015] Send a diagnostic request to the diagnostic connector through the target protocol, where the diagnostic request is used to instruct the diagnostic connector to collect and return diagnostic data of a target vehicle;
[0016] Receive diagnostic data from the diagnostic connector and determine a diagnostic result according to the diagnostic data.
[0017] In one embodiment, the determining the target protocol according to the network status and the diagnostic request includes:
[0018] When the transmission delay rate is greater than a first preset delay rate or the transmission packet loss rate is greater than a first preset packet loss rate, determine that the target protocol is the QUIC protocol, where the network status includes the transmission delay rate and / or the transmission packet loss rate;
[0019] When the transmission delay rate is less than a second preset delay rate or the transmission packet loss rate is less than a second preset packet loss rate, determine that the target protocol is the TCP protocol;
[0020] When the delay rate required by the diagnostic request is greater than a third preset delay rate, determine that the target protocol is the UDP protocol.
[0021] In one embodiment, after establishing a communication connection with the diagnostic connector and creating a virtual machine, it further includes:
[0022] When disconnecting from the diagnostic connector, delete the virtual machine.
[0023] In one embodiment, the establishing a communication connection with the diagnostic connector and creating a virtual machine includes:
[0024] Receive configuration information from the diagnostic connector, where the configuration information is sent by the diagnostic connector after being powered on;
[0025] Verify the configuration information to obtain a verification result;
[0026] If the verification result is verification passed, create the virtual machine.
[0027] In one embodiment, the configuration information includes the account information, password information, and serial information of the diagnostic connector; the remote connection information includes device information and key information.
[0028] In a second aspect, an embodiment of the present application provides a vehicle diagnostic system, including: a diagnostic connector, a server, and an electronic device;
[0029] The diagnostic connector is used to establish a communication connection with the server after being powered on;
[0030] The server is used to send remote connection information to the diagnostic connector when establishing a communication connection with the diagnostic connector;
[0031] It is further used to receive a connection request from the electronic device, where the connection request is generated by the electronic device according to the remote connection information;
[0032] It is also used to establish a communication connection with the electronic device in response to a connection request of the electronic device;
[0033] It is also used to receive a diagnostic request from the electronic device and perform a diagnostic operation in response to the diagnostic request;
[0034] The electronic device is used to receive remote connection information from the server;
[0035] It is also used to generate the connection request according to the remote connection information and send the connection request to the server;
[0036] It is also used to generate the diagnostic request in response to a user operation and send the diagnostic request to the server.
[0037] In a third aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method described in any one of the above first aspects is implemented.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the method described in any one of the above first aspects is implemented.
[0039] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a server, the server is caused to execute the method described in any one of the above first aspects.
[0040] The beneficial effects of the embodiments of the present application compared with the prior art are as follows:
[0041] In the embodiments of the present application, when a communication connection is established with a diagnostic adapter, remote connection information is sent to the diagnostic adapter; a connection request from an electronic device is received, and the connection request is generated by the electronic device according to the remote connection information; in response to the connection request of the electronic device, a communication connection is established with the electronic device; a diagnostic request from the electronic device is received, and a diagnostic operation is performed in response to the diagnostic request. By providing remote connection information through the diagnostic adapter, users can use various electronic devices to connect to the server through the remote connection information, and then can instruct the server to diagnose a target vehicle through the diagnostic adapter, realizing cloud diagnosis, so that users do not need to carry a diagnostic tablet.
[0042] It can be understood that the beneficial effects of the above second aspect to fifth aspect can refer to the relevant descriptions in the above first aspect and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0044] Figure 1 It is a schematic diagram of a system provided by an embodiment of the present application;
[0045] Figure 2 It is a schematic flowchart of a vehicle diagnosis method provided by an embodiment of the present application;
[0046] Figure 3 It is a schematic diagram of the structure of a server provided by an embodiment of the present application. Detailed implementation manners
[0047] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are presented in order to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0048] It should be understood that when used in the specification and the appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0049] It should also be understood that the term "and / or" used in the specification and the appended claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0050] As used in the specification and the appended claims of the present application, the term "if" can be interpreted as "when...", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if detecting [the described condition or event]" can be interpreted as meaning "once determined", "in response to determining", "once detecting [the described condition or event]", or "in response to detecting [the described condition or event]" according to the context.
[0051] In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and should not be construed as indicating or implying relative importance.
[0052] The reference to "one embodiment" or "some embodiments" etc. described in the specification of the present application means that a specific feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0053] In one embodiment, please refer to Figure 1 , the system includes: a diagnostic connector 10, a server 11, and an electronic device 12.
[0054] Among them, the server is provided with remote control software and diagnostic software, which provides a basis for the electronic device to remotely control the server to perform diagnostics.
[0055] The diagnostic connector is used to establish a communication connection with the server after being powered on.
[0056] The server, when establishing a communication connection with the diagnostic connector, sends remote connection information to the diagnostic connector;
[0057] It is also used to receive a connection request from the electronic device, and the connection request is generated by the electronic device according to the remote connection information;
[0058] It is also used to establish a communication connection with the electronic device in response to the connection request of the electronic device;
[0059] It is also used to receive a diagnostic request from the electronic device and perform a diagnostic operation in response to the diagnostic request.
[0060] The electronic device is used to receive the remote connection information from the server;
[0061] It is also used to generate a connection request according to the remote connection information and send the connection request to the server;
[0062] It is also used to generate a diagnostic request in response to a user operation and send the diagnostic request to the server.
[0063] In an application, after the user inserts the diagnostic connector into the diagnostic socket and powers it on, the diagnostic connector establishes a communication connection with the server, and then the server sends remote connection information to the diagnostic connector. The remote connection information provides a basis for the electronic device to establish a communication connection with the server. The diagnostic connector displays the remote connection information. The user can pick up a nearby electronic device, generate a connection request based on the remote connection information through the electronic device, and send the connection request to the server. The server establishes a communication connection with the electronic device through the connection request. At this time, the user can remotely control the server through the electronic device. The user uses the electronic device to send a diagnostic request to the server, instructing the server to perform a diagnostic operation. The server performs a diagnostic operation in response to the diagnostic request.
[0064] Among them, the electronic device can be a mobile terminal, a portable computer, a portable tablet and other devices.
[0065] In this embodiment, the server communicates with the diagnostic connector and exchanges remote connection information, enabling the user to use various electronic devices to connect to the server through the remote connection information, and then being able to instruct the server to diagnose the target vehicle through the diagnostic connector, realizing cloud diagnosis, so that the user does not need to carry a diagnostic tablet.
[0066] It can be understood that the diagnostic program is stored in the server and does not need to be stored offline inside the diagnostic tablet, which can reduce the risk of reverse cracking and ensure data security. And the user does not need to carry a dedicated diagnostic tablet and can issue diagnostic requirements through a nearby electronic device, reducing the cost of the diagnostic tablet and lowering the diagnostic hardware cost.
[0067] Corresponding to the system described in the above embodiment, for the sake of convenience of description, only the part related to the embodiment of the present application is shown.
[0068] In one embodiment, please refer to Figure 2 , the method, applied to the server, includes:
[0069] S11: When establishing a communication connection with the diagnostic connector, send remote connection information to the diagnostic connector.
[0070] In a possible implementation manner, step S11 includes:
[0071] S111: When establishing a communication connection with the diagnostic connector, create a virtual machine.
[0072] In a possible implementation manner, S111 includes:
[0073] S21: Receive configuration information from the diagnostic connector.
[0074] Among them, the configuration information is sent by the diagnostic connector after being powered on.
[0075] In an application, a diagnostic adapter is provided with a wireless communication module and a display screen. After the diagnostic adapter is connected to a diagnostic seat, the diagnostic adapter is powered on. The diagnostic adapter powers on and boots up, obtains configuration information, and sends the configuration information to a server.
[0076] Exemplarily, the wireless communication module is 4G or 5G, and the diagnostic adapter can communicate with the server through a SIM card. The display screen can be an OLED screen.
[0077] Among them, the configuration information includes the account information, password information, and serial number information of the diagnostic adapter. The account information and password information can be obtained by setting up a network connection during the first activation after the user purchases the diagnostic adapter. Exemplarily, the account information name: "ming", the password information password: "0613412W", and the serial number information sn: "98754714241".
[0078] S22: Verify the configuration information to obtain a verification result.
[0079] In an application, the server verifies the validity period of the diagnostic adapter according to the configuration information to obtain a verification result.
[0080] S23: If the verification result is verification passed, create a virtual machine.
[0081] In an application, when the verification result is verification passed, it indicates that the diagnostic adapter is legal and valid, and a new virtual machine is created. When the verification result is verification failed, it indicates that the diagnostic adapter is illegal and invalid, and a new virtual machine is not created. The virtual machine is provided with remote control software and diagnostic software.
[0082] Whenever the server is connected to the diagnostic adapter, a corresponding virtual machine is created. One diagnostic adapter corresponds to one virtual machine. The system of the virtual machine is the same as the system of the diagnostic tablet.
[0083] S112: Generate remote connection information through the virtual machine and send the remote connection information to the diagnostic adapter.
[0084] In an application, after the virtual machine is created, remote control software and diagnostic software are installed inside the virtual machine. After the remote control software is started, remote connection information is generated through a remote service. The remote service sends the remote connection information to the diagnostic adapter through the server.
[0085] Among them, the remote connection information includes device information and key information. The device information is the identification information of the Android virtual machine. The key information is a one-time connection key. Exemplarily, the device information device_id: "ABC123456789", and the key information session_key: "4bd8f928e8e4a7".
[0086] S12: Receive a connection request from an electronic device.
[0087] Among them, the connection request is generated by the electronic device according to the remote connection information.
[0088] In the application, after the diagnostic adapter receives the remote connection information, the diagnostic adapter displays the remote connection information and the corresponding QR code on the display screen. The user uses a nearby electronic device to enter the remote connection information in a remote web page or application or generate a connection request through the QR code, and sends the connection request to the server to connect to the virtual machine of the server.
[0089] S13: In response to the connection request of the electronic device, establish a communication connection with the electronic device.
[0090] In a possible implementation manner, the virtual machine of the server responds to the connection request, and the virtual machine establishes a communication connection with the electronic device.
[0091] S14: Receive a diagnostic request from the electronic device, and perform a diagnostic operation in response to the diagnostic request.
[0092] In a possible implementation manner, step S14 includes:
[0093] S141: In response to the diagnostic request, determine the target protocol according to the network status and the diagnostic request.
[0094] In a possible implementation manner, the network status includes a transmission delay rate and / or a transmission packet loss rate. Step S141 includes:
[0095] S31: When the transmission delay rate is greater than the first preset delay rate or the transmission packet loss rate is greater than the first preset packet loss rate, determine that the target protocol is the QUIC protocol.
[0096] In the application, when the network status belongs to a high delay rate or high packet loss rate state, the virtual machine selects the QUIC protocol (Quick UDP Internet Connections) to improve the transmission reliability of the diagnostic request. The QUIC protocol is based on the UDP protocol and optimizes congestion control.
[0097] S32: When the transmission delay rate is less than the second preset delay rate or the transmission packet loss rate is less than the second preset packet loss rate, determine that the target protocol is the TCP protocol.
[0098] In the application, when the network status belongs to a low delay or low packet loss rate state, the virtual machine selects the TCP protocol (Transmission Control Protocol) to ensure the transmission reliability of the diagnostic request. The TCP protocol provides a reliable transmission method.
[0099] S33: When the delay rate required by the diagnostic request is greater than the third preset delay rate, determine that the target protocol is the UDP protocol.
[0100] In an application, when the diagnostic request is a diagnostic request that requires the lowest transmission delay, the virtual machine selects the UDP protocol (User Datagram Protocol) so that the transmission delay rate meets the requirements of the diagnostic request and improves the transmission reliability of the diagnostic request.
[0101] S142: Send a diagnostic request to the diagnostic adapter through the target protocol.
[0102] Among them, the diagnostic request is used to instruct the diagnostic adapter to collect and return the diagnostic data of the target vehicle.
[0103] In a possible implementation, the virtual machine sends a diagnostic request to the diagnostic adapter through protocols such as TCP, UDP, or QUIC. By converting the original local connection method of the diagnostic adapter into a wide-area connection method, it provides a basis for the server to send a diagnostic request to the diagnostic adapter.
[0104] S143: Receive the diagnostic data from the diagnostic adapter and determine the diagnostic result based on the diagnostic data.
[0105] In a possible implementation, after receiving the diagnostic request, the diagnostic adapter interacts with the target vehicle to collect the diagnostic data of the target vehicle in response to the diagnostic request, and returns the diagnostic data to the corresponding virtual machine in the server. The virtual machine analyzes and diagnoses the diagnostic data to obtain the diagnostic result, and then provides it for the user to view so that the user can know the problems of the target vehicle.
[0106] In this embodiment, when establishing a communication connection with the diagnostic adapter, send remote connection information to the diagnostic adapter; receive a connection request from the electronic device, and the connection request is generated by the electronic device according to the remote connection information; in response to the connection request of the electronic device, establish a communication connection with the electronic device; receive a diagnostic request from the electronic device, and perform a diagnostic operation in response to the diagnostic request, and provide remote connection information through the diagnostic adapter. Users can use each electronic device to connect to the server through the remote connection information, and then can instruct the server to diagnose the target vehicle through the diagnostic adapter, realizing cloud diagnosis, so that users do not need to carry a diagnostic tablet.
[0107] In one embodiment, after step S111, it further includes:
[0108] S113: When disconnecting the communication connection with the diagnostic adapter, delete the virtual machine.
[0109] In an application, when the communication connection of the diagnostic adapter corresponding to the virtual machine is disconnected, it means that the virtual machine does not need to provide diagnostic services in a short time. Shut down the system of the virtual machine and log out the logged-in account to delete the virtual machine.
[0110] In this embodiment, when the communication connection with the diagnostic connector is disconnected and the virtual machine is deleted, the virtual machine can be deleted in a timely manner when the virtual machine does not need to provide diagnostic functions and is in an idle state, reducing energy consumption and resource waste.
[0111] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. And the data collection in the above embodiments is compliant, and its use or implementation does not involve harming the public interest.
[0112] Figure 3 It is a schematic structural diagram of a server provided by an embodiment of the present application. As Figure 3 shown, the server of this embodiment includes: at least one processor 20 ( Figure 3 only one is shown in the figure), a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20. When the processor 20 executes the computer program 22, the steps in any of the above method embodiments are implemented.
[0113] The server may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art can understand that Figure 3 this is only an example of the server and does not constitute a limitation on the server. It may include more or fewer components than shown in the figure, or combine some components, or different components. For example, it may also include input / output devices, network access devices, etc.
[0114] The processor 20 may be a central processing unit (CPU), and the processor 20 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0115] In some embodiments, the memory 21 may be an internal storage unit of the server, such as the hard disk or memory of the server. In other embodiments, the memory 21 may also be an external storage device of the server, such as a plug-in hard disk equipped on the server, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Further, the memory 21 may also include both the internal storage unit of the server and the external storage device. The memory 21 is used to store an operating system, application programs, a BootLoader, data, and other programs, such as the program code of the computer program. The memory 21 may also be used to temporarily store data that has been output or will be output.
[0116] It should be noted that, regarding the information interaction, execution process, etc. between the above-mentioned device / units, since they are based on the same concept as the method embodiments of the present application, for their specific functions and the technical effects brought, reference may be specifically made to the method embodiment part, and details will not be elaborated here.
[0117] Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above-mentioned functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiments can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the foregoing method embodiments, and details will not be elaborated here.
[0118] The embodiments of the present application also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0119] The embodiments of the present application provide a computer program product, and when the computer program product runs on an electronic device, the electronic device can execute the steps in the above-mentioned method embodiments.
[0120] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-described embodiment methods of this application, a computer program can be used to instruct the relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some cases, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.
[0121] In the above embodiments, the descriptions of the various embodiments have their own focuses. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0122] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0123] In the embodiments provided in this application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling, direct coupling, or communication connection can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical, or other form.
[0124] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0125] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A vehicle diagnostic method, characterized in that: Applicable to servers, including: When a communication connection is established with the diagnostic connector, remote connection information is sent to the diagnostic connector; receiving a connection request from an electronic device, wherein the connection request is generated by the electronic device according to the remote connection information; In response to a connection request from the electronic device, establishing a communication connection with the electronic device; A diagnostic request is received from the electronic device, and a diagnostic operation is performed in response to the diagnostic request.
2. The method according to claim 1, characterized in that When establishing a communication connection with the diagnostic connector, sending remote connection information to the diagnostic connector includes: When a communication connection is established with the diagnostic connector, a virtual machine is created; Remote connection information is generated through the virtual machine, and the remote connection information is sent to the diagnostic connector.
3. The method according to claim 1, characterized in that The performing a diagnostic operation in response to the diagnostic request comprises: In response to the diagnostic request, determining a target protocol according to a network state and the diagnostic request; Sending a diagnostic request to the diagnostic connector through the target protocol, wherein the diagnostic request is used to instruct the diagnostic connector to collect and return diagnostic data of a target vehicle; The diagnostic data is received from the diagnostic connector, and a diagnostic result is determined according to the diagnostic data.
4. The method according to claim 3, characterized in that: The determining of the target protocol according to the network state and the diagnostic request comprises: When the transmission delay rate is greater than a first preset delay rate or the transmission packet loss rate is greater than a first preset packet loss rate, determining that the target protocol is the QUIC protocol, and the network status includes the transmission delay rate and / or the transmission packet loss rate; When the transmission delay rate is less than a second preset delay rate or the transmission packet loss rate is less than a second preset packet loss rate, determining that the target protocol is the TCP protocol; When the delay rate required by the diagnosis request is greater than a third preset delay rate, it is determined that the target protocol is a UDP protocol.
5. The method according to claim 2, characterized in that: After establishing a communication connection with the diagnostic connector and creating a virtual machine, the method further includes: When disconnected from the diagnostic connector, the virtual machine is deleted.
6. The method according to claim 2, characterized in that When establishing a communication connection with the diagnostic connector, creating a virtual machine includes: receiving configuration information from the diagnostic connector, wherein the configuration information is sent by the diagnostic connector after being powered on; Verifying the configuration information to obtain a verification result; If the verification result is that the verification passes, the virtual machine is created.
7. The method according to any one of claims 1 to 6, characterized in that: The configuration information includes the account information, password information and sequence information of the diagnostic connector; the remote connection information includes device information and key information.
8. A vehicle diagnostic system, characterized in that: include: diagnostic connectors, servers, and electronics; The diagnostic connector is used to establish a communication connection with the server after power is turned on; The server is used to send remote connection information to the diagnostic connector when establishing a communication connection with the diagnostic connector; Also used to receive a connection request from an electronic device, where the connection request is generated by the electronic device according to the remote connection information; Also used to establish a communication connection with the electronic device in response to a connection request of the electronic device; Also used to receive a diagnostic request from the electronic device, and perform a diagnostic operation in response to the diagnostic request; The electronic device is used to receive remote connection information from the server; Also used to generate the connection request according to the remote connection information, and send the connection request to the server; It is also used to generate the diagnosis request in response to user operation and send the diagnosis request to the server.
9. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.