Vehicle wireless diagnosis method, device, equipment, storage medium and program product
By adopting a dual network connection mechanism in vehicle diagnostic equipment to automatically connect and switch wireless networks, the problem of slow network connection between vehicle diagnostic equipment is solved, and efficient, real-time and safe vehicle diagnosis is achieved.
Patent Information
- Application Number
- CN202411583312.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-02-21
AI Technical Summary
Existing wireless network-based vehicle diagnostic equipment has slow network connections, resulting in low vehicle diagnostic efficiency.
The dual network connection mechanism is adopted, including the configuration file connection mechanism and the batch file connection mechanism, which automatically connects to the wireless network of the diagnostic device and automatically switches to the batch file connection mechanism when the connection fails.
It realizes rapid connection to designated wireless networks, improving the efficiency, real-time and security of vehicle diagnosis, thereby improving diagnostic efficiency and user experience.
Smart Images

Figure CN119497257A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle diagnosis technology, and in particular to a vehicle wireless diagnosis method, device, equipment, storage medium and program product. Background Art
[0002] With the continuous development of automobile technology, vehicle diagnosis has become an indispensable part of automobile repair and maintenance. Traditional wired diagnostic methods have problems such as complex operation and low efficiency. In recent years, wireless diagnostic technology based on wireless network WIFI has gradually emerged. The existing WIFI-based vehicle diagnostic equipment connects to WIFI by setting the automatic connection mode or manually connecting. Both of these connection methods are implemented through the system. After each vehicle diagnosis is completed, it is necessary to reconnect to WIFI to diagnose the next vehicle. The network connection time has certain limitations, which leads to low efficiency of vehicle diagnosis.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a vehicle wireless diagnosis method, device, equipment, storage medium and program product, aiming to solve the technical problem that the existing wireless network-based vehicle diagnostic equipment has slow network connection, resulting in low efficiency of vehicle diagnosis.
[0005] To achieve the above objectives, the present application proposes a vehicle wireless diagnosis method, the method comprising:
[0006] Get vehicle diagnostic requests and wireless connection requests;
[0007] Based on a pre-generated dual network connection mechanism, according to the wireless connection request, a communication connection is established with a preset wireless network of the diagnostic device, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism;
[0008] Based on the connected diagnostic equipment wireless network, according to the vehicle diagnostic request, the vehicle is diagnosed through the preset diagnostic equipment to generate a vehicle wireless diagnostic result.
[0009] In one embodiment, based on the pre-generated dual network connection mechanism, the step of establishing a communication connection with a preset diagnostic device wireless network according to the wireless connection request includes:
[0010] Based on the configuration file connection mechanism, according to the wireless connection request, a network connection instruction is generated through a preset wireless network scanning module and sent to the diagnostic device wireless network;
[0011] According to the wireless connection request, a serial number reading instruction is generated and sent to the diagnostic device;
[0012] When the serial number data sent by the diagnostic device is not received within the preset waiting time, a communication connection is established with the diagnostic device wireless network based on the batch file connection mechanism and according to the wireless connection request.
[0013] In one embodiment, before the step of establishing a communication connection with a preset diagnostic device wireless network according to the wireless connection request based on the pre-generated dual network connection mechanism, the method further includes:
[0014] Based on the pre-generated configuration file, generating the configuration file connection mechanism;
[0015] Based on the pre-generated batch file, generating the batch file connection mechanism;
[0016] The dual network connection mechanism is obtained according to the configuration file connection mechanism and the batch file connection mechanism.
[0017] In one embodiment, before the step of generating the configuration file connection mechanism based on the pre-generated configuration file, the step further includes:
[0018] Obtaining wireless network identifier data, identifier string data, and wireless network password data;
[0019] The wireless network identifier data, identifier character string data and wireless network password data are filled into a preset configuration file template to generate the configuration file.
[0020] In one embodiment, before the step of generating the batch file connection mechanism based on the pre-generated batch file, the step further includes:
[0021] obtaining wireless network identifier data and wireless network name data;
[0022] The wireless network identifier data and the wireless network name data are filled into a preset batch processing file template to generate the batch processing file.
[0023] In one embodiment, the step of obtaining a vehicle diagnosis request and a wireless connection request includes:
[0024] Establishing a connection with the diagnostic device through a preset on-board diagnostic interface;
[0025] The vehicle diagnosis request sent by the diagnostic device is received through the connected on-board diagnostic interface, and the wireless connection request is generated.
[0026] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle wireless diagnostic device, the vehicle wireless diagnostic device comprising:
[0027] A request acquisition module, used to acquire vehicle diagnosis requests and wireless connection requests;
[0028] A wireless connection module, configured to establish a communication connection with a preset wireless network of a diagnostic device according to the wireless connection request based on a pre-generated dual network connection mechanism, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism;
[0029] The vehicle diagnosis module is used to diagnose the vehicle through a preset diagnostic device based on the connected diagnostic device wireless network and according to the vehicle diagnosis request, and generate a vehicle wireless diagnosis result.
[0030] In addition, to achieve the above objectives, the present application also proposes a vehicle wireless diagnostic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle wireless diagnostic method described above.
[0031] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the vehicle wireless diagnostic method described above are implemented.
[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the vehicle wireless diagnostic method described above are implemented.
[0033] The present application provides a vehicle wireless diagnosis method, which quickly connects to a diagnostic device wireless network through a dual network connection mechanism, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism. The configuration file connection mechanism can automatically connect to the diagnostic device wireless network, and when the network connection fails, it automatically switches to the batch file connection mechanism to achieve connection to the designated diagnostic device wireless network. Thus, the designated wireless network can be quickly connected to achieve efficient, real-time and safe vehicle diagnosis, thereby improving diagnostic efficiency and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0036] Figure 1 A flowchart of the first embodiment of the vehicle wireless diagnostic method of the present application is provided;
[0037] Figure 2 A flow chart of the second embodiment of the vehicle wireless diagnostic method of the present application;
[0038] Figure 3 A schematic diagram of the contents of a configuration file provided in Example 2 of the present application;
[0039] Figure 4 A schematic diagram of the first part of the contents of a batch file provided in Example 2 of the present application;
[0040] Figure 5 A schematic diagram of the second part of the contents of the batch file provided in Example 2 of the present application;
[0041] Figure 6 This is a schematic diagram of the module structure of the vehicle wireless diagnostic device according to an embodiment of the present application;
[0042] Figure 7 Schematic diagram of the device structure of the hardware operating environment involved in the vehicle wireless diagnosis method in the embodiment of the present application.
[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0045] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0046] The main solutions of the embodiments of this application are:
[0047] Get vehicle diagnostic requests and wireless connection requests;
[0048] Based on a pre-generated dual network connection mechanism, according to the wireless connection request, a communication connection is established with a preset wireless network of the diagnostic device, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism;
[0049] Based on the connected diagnostic equipment wireless network, according to the vehicle diagnostic request, the vehicle is diagnosed through the preset diagnostic equipment to generate a vehicle wireless diagnostic result.
[0050] In the prior art, WIFI-based vehicle diagnostic equipment connects to WIFI by setting an automatic connection mode or manually connecting each time. Both of these connection modes are implemented through the system. After each vehicle is diagnosed, it is necessary to reconnect to WIFI to diagnose the next vehicle. The network connection time is limited by automatic connection through the system or manual connection to WIFI for vehicle diagnosis, which leads to low efficiency of vehicle diagnosis. In addition, wireless diagnostic technology also faces problems such as network stability, frequent disconnection, and low data transmission efficiency. These problems not only affect the user experience, but also limit the further application and development of wireless diagnostic technology.
[0051] The present application provides a solution for quickly connecting to a wireless network of a diagnostic device through a dual network connection mechanism, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism. The configuration file connection mechanism can automatically connect to the wireless network of the diagnostic device. When the network connection fails, the batch file connection mechanism is automatically switched to realize the connection to the designated wireless network of the diagnostic device. Thus, the designated wireless network can be quickly connected to realize efficient, real-time and safe vehicle diagnosis, thereby improving the diagnostic efficiency and user experience.
[0052] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a vehicle wireless diagnostic system, etc. The following takes the vehicle wireless diagnostic system as an example to illustrate this embodiment and the following embodiments.
[0053] Based on this, the embodiment of the present application provides a vehicle wireless diagnosis method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle wireless diagnostic method of the present application.
[0054] In this embodiment, the vehicle wireless diagnosis method includes steps S10 to S30:
[0055] Step S10, obtaining a vehicle diagnosis request and a wireless connection request;
[0056] It should be noted that a vehicle diagnostic request refers to an inspection request regarding the vehicle status, fault or performance issued by a user, diagnostic equipment or the vehicle itself, including requirements for inspection of specific faults or performance issues. A wireless connection request refers to a request to establish communication with a diagnostic equipment via wireless means.
[0057] In a feasible implementation, step S10 may include steps S101 to S102:
[0058] Step S101, establishing a connection with the diagnostic device through a preset on-board diagnostic interface;
[0059] Step S102 : receiving the vehicle diagnosis request sent by the diagnostic device through the connected on-board diagnostic interface, and generating the wireless connection request.
[0060] The vehicle wireless diagnostic system establishes a connection with the diagnostic device through a preset on-board diagnostic interface, then receives a vehicle diagnostic request sent by the diagnostic device through the connected on-board diagnostic interface and generates a wireless connection request.
[0061] It should be noted that the on-board diagnostic interface refers to a standardized interface inside the vehicle (such as OBD-II), which is used to exchange data with external devices. The vehicle diagnostic request is a request issued by the diagnostic device, which usually contains the fault code, sensor data and other information that you want to obtain. The wireless connection request refers to a request to establish wireless communication after completing the wired connection to facilitate the wireless transmission of subsequent data.
[0062] In this implementation, the preset configuration of the on-board diagnostic interface is used to ensure that the device can complete the connection in the shortest time, reducing the waiting time. Once the connection is successful, the vehicle and the diagnostic device can quickly and in real time exchange data, improving the accuracy and response speed of the diagnosis. The system can automatically generate wireless connection requests, which means that the user does not need manual intervention, thereby reducing the risk of human error. As a result, the efficiency and accuracy of vehicle diagnosis can be significantly improved, the user experience can be improved, and the problems of connection stability and operation complexity existing in traditional vehicle diagnosis can be effectively solved, providing a more intelligent and convenient solution for vehicle maintenance.
[0063] Step S20, based on the pre-generated dual network connection mechanism, according to the wireless connection request, establishing a communication connection with the preset diagnostic device wireless network, the dual network connection mechanism including a configuration file connection mechanism and a batch file connection mechanism;
[0064] The vehicle wireless diagnostic system establishes a communication connection with a preset diagnostic device wireless network based on a pre-generated dual network connection mechanism and according to a wireless connection request.
[0065] It should be noted that the dual network connection mechanism includes two connection methods: the configuration file connection mechanism refers to the use of preset parameters and configuration files for connection, and the batch file connection mechanism refers to processing connection requests in a batch manner. The combination of the two mechanisms can improve the success rate and efficiency of the connection.
[0066] Exemplarily, an implementation of step S20 is as follows:
[0067] 1) Prefer to use the configuration file connection mechanism:
[0068] Read network information from the preset configuration file;
[0069] Try to connect to the designated diagnostic equipment wireless network;
[0070] Check the connection status and enter the data exchange phase if successful.
[0071] 2) Switch to batch file connection mechanism (if necessary):
[0072] If the configuration file connection fails, the batch connection script is automatically called;
[0073] Batch scripts can contain multiple candidate networks and try to connect in sequence;
[0074] Supports multiple protocols and port settings to accommodate different types of diagnostic equipment.
[0075] In a feasible implementation, step S20 may include steps S201 to S203:
[0076] Step S201, based on the configuration file connection mechanism and according to the wireless connection request, a network connection instruction is generated through a preset wireless network scanning module and sent to the diagnostic device wireless network;
[0077] Step S202, generating a serial number reading instruction according to the wireless connection request and sending the instruction to the diagnostic device;
[0078] Step S203, when the serial number data sent by the diagnostic device is not received within the preset waiting time, based on the batch file connection mechanism and according to the wireless connection request, a communication connection is established with the wireless network of the diagnostic device.
[0079] The vehicle wireless diagnostic system is based on a configuration file connection mechanism. According to the wireless connection request, a network connection instruction is generated and sent to the diagnostic device wireless network through a preset wireless network scanning module. The instruction usually contains the name, type and authentication information of the network. The network connection instruction is transmitted to the diagnostic device via a wireless signal. Once the diagnostic device receives the instruction, it will try to establish a connection. Then the system constructs a serial number reading instruction based on the connection status to request the diagnostic device to return its serial number. The serial number is a unique identifier of the device, which helps to confirm the identity of the device and ensure the security of data interaction. The serial number reading instruction is then sent to the diagnostic device through the established wireless connection. Once the device receives the instruction, it will return its serial number information. When the serial number data sent by the diagnostic device is not received within the preset waiting time, it is determined that the network connection has failed. Based on the batch file connection mechanism, according to the wireless connection request, a communication connection is established with the diagnostic device wireless network again to ensure that the system can continue to communicate with the device and obtain the required data as soon as possible.
[0080] It should be noted that the wireless network scanning module is used to scan available wireless networks in order to find the target device. Its function is to identify the surrounding wireless signals and select the appropriate network for connection. The network connection instruction is an instruction from the vehicle wireless diagnostic system to instruct the diagnostic device to establish a connection. Its function is to start the connection process with the specified wireless network. The serial number reading instruction is an instruction for requesting the diagnostic device to return its serial number. Its function is to obtain the identity information of the device for subsequent communication and data processing. The waiting time is the maximum waiting time set by the system when trying to receive serial number data.
[0081] When the vehicle wireless diagnostic system receives the serial number data sent by the diagnostic device within the preset waiting time, it indicates that the vehicle wireless diagnostic system and the diagnostic device are successfully connected, and the system does not need to switch to the batch file connection mechanism.
[0082] The following is an example of the process of connecting to the wireless network of the diagnostic device based on the batch file connection mechanism:
[0083] 1. Get the wireless network information of the diagnostic device. For example, the Wi-Fi network name (SSID) provided by the diagnostic device is DiagnosisDeviceSSID, and the BSSID (MAC address) is 00:11:22:33:44:55.
[0084] 2. Create a batch file.
[0085] In Windows environment, you can use the following command to create a batch file (such as connect_diagnosis_device.bat) to achieve wireless connection.
[0086] 3. Run the batch file.
[0087] 1) The user double-clicks the connect_diagnosis_device.bat file and the batch program starts executing.
[0088] 2) The program will try to connect to the defined wireless network DiagnosisDeviceSSID.
[0089] 3) After the connection is successful, the program will display the current network connection status.
[0090] Among them, the following points should be noted when connecting to a wireless network based on the batch file connection mechanism:
[0091] 1) Make sure the target wireless network has been configured in advance and saved to the computer's network list.
[0092] 2) Modify the PASSWORD in the script as needed to ensure successful connection to the network.
[0093] 3) Other commands can be added to the batch file, such as starting diagnostic software or performing data synchronization.
[0094] In this embodiment, the wireless network scanning module can quickly identify available wireless networks, ensuring that the diagnostic device can quickly find and connect to the appropriate network, thereby improving connection efficiency. The serial number reading instruction can obtain the device's identity information in real time, which helps to confirm the validity and accuracy of the device and enhance the security of the system. The dual network connection mechanism provides redundancy measures. When the serial number data is not received in time, the system can automatically switch to the batch file connection mechanism to ensure that the connection can still be established under special circumstances. In this way, the efficiency, stability and security of wireless connections can be significantly improved, while solving the common connection delays and device verification problems in the traditional diagnostic process, providing users with a smoother and more reliable vehicle diagnostic experience.
[0095] Step S30 , based on the connected diagnostic device wireless network and according to the vehicle diagnostic request, diagnose the vehicle through a preset diagnostic device to generate a vehicle wireless diagnostic result.
[0096] Before performing diagnosis, the vehicle wireless diagnostic system ensures that the connection to the wireless network of the diagnostic equipment is stable and the data transmission is normal. Then the system obtains the valid vehicle diagnostic request from the previous steps, extracts the required fault code or diagnostic item, uses the connected diagnostic equipment, calls the corresponding diagnostic program or tool, and selects the appropriate diagnostic module to execute the diagnostic process according to the specific conditions of the vehicle (such as model, age, etc.) to generate the vehicle wireless diagnostic results.
[0097] It should be noted that the vehicle wireless diagnostic results refer to the vehicle status report obtained after analysis by diagnostic equipment, which usually includes fault codes, performance indicators and other information. These results help technicians or users understand the specific condition of the vehicle.
[0098] Exemplarily, a possible flow of the diagnostic process performed is as follows:
[0099] 1) Data collection: Obtain real-time data from various control units of the vehicle (such as engine, brake system, transmission system, etc.).
[0100] 2) Fault analysis: Analyze the collected data, compare it with preset standards and fault codes, and identify potential problems.
[0101] 3) Generate diagnostic report: Generate a detailed diagnostic report based on the analysis results, including: fault code, fault description, possible causes, and recommended repair measures.
[0102] This embodiment provides a vehicle wireless diagnosis method, which quickly connects to a diagnostic device wireless network through a dual network connection mechanism, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism. The configuration file connection mechanism can automatically connect to the diagnostic device wireless network, and when the network connection fails, the batch file connection mechanism is automatically switched to achieve connection to the designated diagnostic device wireless network. Thus, the designated wireless network can be quickly connected, and efficient, real-time and safe vehicle diagnosis can be achieved, thereby improving diagnostic efficiency and user experience.
[0103] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 Before step S20, the vehicle wireless diagnostic method further includes steps S401 to S403:
[0104] Step S401, generating the configuration file connection mechanism based on the pre-generated configuration file;
[0105] Step S402, generating the batch file connection mechanism based on the pre-generated batch file;
[0106] Step S403: obtaining the dual network connection mechanism according to the configuration file connection mechanism and the batch file connection mechanism.
[0107] The vehicle wireless diagnostic system first reads a pre-generated configuration file, which usually contains the parameters required for connection, such as IP address, port number, connection protocol, etc., to ensure that the system obtains the correct connection information for subsequent connection operations, and then parses the content in the configuration file into available variables or objects and verifies them to facilitate subsequent program calls. According to the parsed and verified parameters, a configuration file connection mechanism is generated, and then a pre-generated batch file is read. The file contains a series of commands or scripts for connection to ensure that the system obtains all operation instructions required for connection and forms the basis for subsequent execution. The content in the batch file is parsed into an executable command list and verified, and a connection mechanism is constructed according to the verified command list. A batch file connection mechanism is generated, and finally the configuration file connection mechanism and the batch file connection mechanism are integrated to form an overall connection strategy to obtain a dual network connection mechanism to ensure that the system can take advantage of the advantages of both mechanisms at the same time to achieve a more reliable connection.
[0108] It should be noted that the configuration file contains the parameters required for the connection (such as IP address, port number, etc.) and is used to normalize and standardize the connection settings. The batch file is a set of predefined commands used to automatically execute connection tasks and improve efficiency.
[0109] In a feasible implementation manner, before step S401, steps S5011 to S5012 may also be included:
[0110] Step S5011, obtaining wireless network identifier data, identifier string data and wireless network password data;
[0111] Step S5012: Fill the wireless network identifier data, identifier string data and wireless network password data into a preset configuration file template to generate the configuration file.
[0112] The vehicle wireless diagnostic system obtains the wireless network identifier data, the identifier string data and the wireless network password data, and then fills the wireless network identifier data (SSID), the identifier string data and the wireless network password data into the corresponding positions in the preset configuration file template, and creates a final configuration file based on the filled data, which is usually saved in a specific format (such as JSON, XML or a specific configuration file format).
[0113] It should be noted that the wireless network identifier data (SSID) is the name of the wireless network, which is used to distinguish different networks. It is the basic information required to connect to the network; the identifier string data is the unique identification information of the user or device, which may be used to track or manage the connected device; the wireless network password data is the password required to protect the security of the wireless network. Only by entering the correct password can you connect to the network; the configuration file template is a predefined file format that contains the required fields to store network connection information. The template ensures that the generated file meets the system requirements; the configuration file contains specific wireless network connection information for the system to read and use.
[0114] For example, refer to Figure 3 , Figure 3 A schematic diagram of the contents of a configuration file provided in Example 2 of the present application.
[0115] The configuration file is in XML format and the file name is WLAN-XXXXXX.xml, where XXXXXXX is the WIFI SSID. It includes information such as the WIFI SSID, WIFI password, and SSID hexadecimal string.
[0116] In this embodiment, by automatically acquiring wireless network information and generating configuration files, the steps of manual input are reduced, and the risk of human error is reduced. This makes the configuration process more efficient and standardized. Whenever the network environment changes (such as changing the network or password), the system can obtain new wireless network information in real time and regenerate the configuration file, thereby ensuring that the device is always connected to the correct network. The generated configuration file is personalized according to the actual acquired data, and can adapt to different types of network environments, thereby enhancing the system's compatibility with a variety of network conditions. In this way, the automation and real-time update of wireless network configuration can be achieved, which significantly improves the flexibility and reliability of the system, while solving the complexity and security issues of manual configuration, and providing more effective technical support for wireless diagnostic methods.
[0117] In another feasible implementation manner, before step S402, steps S5021 to S5022 may also be included:
[0118] Step S5021, obtaining wireless network identifier data and wireless network name data;
[0119] Step S5022: Fill the wireless network identifier data and the wireless network name data into a preset batch processing file template to generate the batch processing file.
[0120] The vehicle wireless diagnostic system obtains the wireless network identifier data and the wireless network name data, and then replaces the placeholders (such as {SSID} and {NetworkName}) in the preset batch file template according to the wireless network identifier data and the wireless network name data. This process can be automated using programming languages (such as Python, PowerShell, etc.) or text processing tools to generate batch files.
[0121] It should be noted that the wireless network identifier data (SSID), Service Set Identifier, indicates the name of the wireless network and is used to distinguish different networks; the wireless network name data is usually a description of the SSID or a more recognizable name, which may include information such as brand or location; a batch file template is a predefined file format used to store and execute a series of commands, usually for automated tasks; a batch file is a file containing a series of commands that can be run in a command line environment to achieve batch processing.
[0122] For example, refer to Figure 4 and Figure 5 , Figure 4 This is a schematic diagram of the first part of the contents of the batch file provided in Example 2 of the present application. Figure 5 A schematic diagram of the second part of the contents of the batch file provided in Example 2 of the present application.
[0123] The batch file format is bat, the file name is ConnectWifi.bat, and it includes information such as WIFI SSID and WIFI name.
[0124] In this implementation, by obtaining the wireless network identifier and name, it is possible to achieve a comprehensive control of the network environment, provide basic information for subsequent configuration and management, and enable network management personnel to have a clearer understanding of the network environment in which they are located. The automatically generated batch file can be used to quickly configure multiple devices or perform specific network operations, thereby improving the efficiency and consistency of network management. The use of preset batch file templates ensures the standardization of configurations between different devices or systems, and reduces errors caused by manual input. As a result, it is possible to quickly obtain and batch process wireless network information, improve the automation, standardization and efficiency of wireless network management, and at the same time, effectively solve technical problems such as information islands, cumbersome manual configuration, and inconsistent device management, providing strong support for network management.
[0125] For example, taking the on-board diagnostic interface as the on-board diagnostic system OBD and the vehicle wireless diagnostic system including the vehicle communication interface VCI as an example, a feasible implementation of the vehicle wireless diagnostic method described in this embodiment is as follows:
[0126] 1. Configure the configuration file and content for connecting to WIFI (WLAN-XXXXXXX.xml), see Figure 3 , where XXXXXXX is the WIFI SSID.
[0127] 2. Configure the batch file and content for connecting to WIFI (ConnectWifi.bat), see Figure 4 and Figure 5 .
[0128] 3. Connect the vehicle's OBD interface to the diagnostic device, which will start up and broadcast the WIFI signal.
[0129] 4. Based on the configuration file connection mechanism, VCI automatically searches for the WIFI signal of the diagnostic device and connects for communication.
[0130] 5. VCI issues a command to read the serial number of the diagnostic device (2103):
[0131] 1) If the diagnostic equipment responds positively, proceed to the next vehicle diagnostic operation;
[0132] 2) If the diagnostic device does not respond, VCI automatically switches to the second WIFI connection method based on the batch file connection mechanism;
[0133] 3) VCI connects to the specified WIFI through a program call batch process, and then performs the next step of vehicle diagnosis operation on the vehicle.
[0134] 6. After the vehicle diagnosis is completed, unplug the diagnostic equipment from the vehicle's OBD interface and replace it with the next vehicle for diagnosis.
[0135] 7. Follow steps 3-6 in order.
[0136] Compared with the existing methods, the vehicle wireless diagnosis method described in this embodiment uses a dual network connection mechanism to quickly connect to WIFI. First, the WIFI is automatically connected through the configuration file connection mechanism. When the VCI automatic connection mode fails, the configuration file connection mechanism can automatically switch the program loading command to connect to WIFI, configure the configuration file for connecting to WIFI, configure the batch file, and VCI calls the batch loading WIFI configuration file to implement the automatic call of the WIFI connection instruction, so as to quickly connect to the specified WIFI, which can realize efficient, real-time and safe vehicle diagnosis, thereby improving the diagnosis efficiency and user experience.
[0137] In this embodiment, the two connection mechanisms enable the system to not only adapt to a single network environment, but also flexibly select the optimal connection method according to different situations. This flexibility improves the availability of the system. Through the dual network connection mechanism, even if one of the connection methods fails, the system can still restore the connection through another method to ensure that the diagnostic process is not interrupted. After integrating these two connection mechanisms, the device can automatically determine and switch the connection method without manual intervention, reducing the possibility of human error and improving work efficiency. As a result, a vehicle wireless diagnostic method with both flexibility and stability is provided, which solves the limitations of traditional methods in a changing network environment and significantly improves the reliability, security and user experience of the system.
[0138] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle wireless diagnostic method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0139] This application also provides a vehicle wireless diagnostic device, please refer to Figure 6 , the vehicle wireless diagnostic device comprises:
[0140] A request acquisition module 10, used to acquire a vehicle diagnosis request and a wireless connection request;
[0141] A wireless connection module 20, configured to establish a communication connection with a preset wireless network of a diagnostic device according to the wireless connection request based on a pre-generated dual network connection mechanism, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism;
[0142] The vehicle diagnosis module 30 is used to diagnose the vehicle through a preset diagnostic device based on the connected diagnostic device wireless network and according to the vehicle diagnosis request, and generate a vehicle wireless diagnosis result.
[0143] Optionally, the wireless connection module 20 is further used for:
[0144] Based on the configuration file connection mechanism, according to the wireless connection request, a network connection instruction is generated through a preset wireless network scanning module and sent to the diagnostic device wireless network;
[0145] According to the wireless connection request, a serial number reading instruction is generated and sent to the diagnostic device;
[0146] When the serial number data sent by the diagnostic device is not received within the preset waiting time, a communication connection is established with the diagnostic device wireless network based on the batch file connection mechanism and according to the wireless connection request.
[0147] Optionally, before the step of establishing a communication connection with a preset diagnostic device wireless network according to the wireless connection request based on the pre-generated dual network connection mechanism, the step further includes:
[0148] Based on the pre-generated configuration file, generating the configuration file connection mechanism;
[0149] Based on the pre-generated batch file, generating the batch file connection mechanism;
[0150] The dual network connection mechanism is obtained according to the configuration file connection mechanism and the batch file connection mechanism.
[0151] Optionally, before the step of generating the configuration file connection mechanism based on the pre-generated configuration file, the step further includes:
[0152] Obtaining wireless network identifier data, identifier string data, and wireless network password data;
[0153] The wireless network identifier data, identifier character string data and wireless network password data are filled into a preset configuration file template to generate the configuration file.
[0154] Optionally, before the step of generating the batch file connection mechanism based on the pre-generated batch file, the step further includes:
[0155] obtaining wireless network identifier data and wireless network name data;
[0156] The wireless network identifier data and the wireless network name data are filled into a preset batch processing file template to generate the batch processing file.
[0157] Optionally, the request acquisition module 10 is further used to:
[0158] Establishing a connection with the diagnostic device through a preset on-board diagnostic interface;
[0159] The vehicle diagnosis request sent by the diagnostic device is received through the connected on-board diagnostic interface, and the wireless connection request is generated.
[0160] The vehicle wireless diagnostic device provided by the present application adopts the vehicle wireless diagnostic method in the above embodiment, which can solve the technical problem that the existing vehicle diagnostic equipment based on the wireless network has a slow network connection, resulting in low efficiency of vehicle diagnosis. Compared with the prior art, the beneficial effects of the vehicle wireless diagnostic device provided by the present application are the same as the beneficial effects of the vehicle wireless diagnostic method provided by the above embodiment, and other technical features in the vehicle wireless diagnostic device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0161] The present application provides a vehicle wireless diagnostic device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle wireless diagnostic method in the above-mentioned embodiment 1.
[0162] Reference below Figure 7 , which shows a schematic diagram of the structure of a vehicle wireless diagnostic device suitable for implementing an embodiment of the present application. The vehicle wireless diagnostic device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The vehicle wireless diagnostic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0163] like Figure 7As shown, the vehicle wireless diagnostic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle wireless diagnostic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle wireless diagnostic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle wireless diagnostic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0164] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0165] The vehicle wireless diagnostic device provided by the present application adopts the vehicle wireless diagnostic method in the above embodiment, which can solve the technical problem that the existing vehicle diagnostic device based on the wireless network has a slow network connection, resulting in low efficiency of vehicle diagnosis. Compared with the prior art, the beneficial effects of the vehicle wireless diagnostic device provided by the present application are the same as the beneficial effects of the vehicle wireless diagnostic method provided by the above embodiment, and the other technical features in the vehicle wireless diagnostic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0166] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0167] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0168] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle wireless diagnostic method in the above-mentioned embodiment.
[0169] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0170] The computer-readable storage medium may be included in the vehicle wireless diagnostic device; or may exist independently without being assembled into the vehicle wireless diagnostic device.
[0171] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the vehicle wireless diagnostic device, the vehicle wireless diagnostic device:
[0172] Get vehicle diagnostic requests and wireless connection requests;
[0173] Based on a pre-generated dual network connection mechanism, according to the wireless connection request, a communication connection is established with a preset wireless network of the diagnostic device, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism;
[0174] Based on the connected diagnostic equipment wireless network, according to the vehicle diagnostic request, the vehicle is diagnosed through the preset diagnostic equipment to generate a vehicle wireless diagnostic result.
[0175] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0176] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0177] The modules involved in the embodiments of the present application may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0178] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle wireless diagnosis method, and can solve the technical problem that the existing vehicle diagnosis equipment based on wireless networks has a slow network connection, resulting in low efficiency of vehicle diagnosis. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle wireless diagnosis method provided by the above-mentioned embodiment, and are not described in detail here.
[0179] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle wireless diagnostic method when executed by a processor.
[0180] The computer program product provided by the present application can solve the technical problem that the existing vehicle diagnostic equipment based on wireless network has a slow network connection, resulting in low efficiency of vehicle diagnosis. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle wireless diagnostic method provided by the above embodiment, which will not be described in detail here.
[0181] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A vehicle wireless diagnostic method, characterized in that: The method comprises: Get vehicle diagnostic requests and wireless connection requests; Based on a pre-generated dual network connection mechanism, according to the wireless connection request, a communication connection is established with a preset wireless network of the diagnostic device, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism; Based on the connected diagnostic equipment wireless network, according to the vehicle diagnostic request, the vehicle is diagnosed through the preset diagnostic equipment to generate a vehicle wireless diagnostic result.
2. The method according to claim 1, characterized in that Based on the pre-generated dual network connection mechanism, the step of establishing a communication connection with a preset diagnostic device wireless network according to the wireless connection request includes: Based on the configuration file connection mechanism, according to the wireless connection request, a network connection instruction is generated through a preset wireless network scanning module and sent to the diagnostic device wireless network; According to the wireless connection request, a serial number reading instruction is generated and sent to the diagnostic device; When the serial number data sent by the diagnostic device is not received within the preset waiting time, a communication connection is established with the diagnostic device wireless network based on the batch file connection mechanism and according to the wireless connection request.
3. The method according to claim 1, characterized in that Before the step of establishing a communication connection with a preset diagnostic device wireless network based on the pre-generated dual network connection mechanism according to the wireless connection request, the method further includes: Based on the pre-generated configuration file, generating the configuration file connection mechanism; Based on the pre-generated batch file, generating the batch file connection mechanism; The dual network connection mechanism is obtained according to the configuration file connection mechanism and the batch file connection mechanism.
4. The method according to claim 3, characterized in that Before the step of generating the configuration file connection mechanism based on the pre-generated configuration file, the method further includes: Obtaining wireless network identifier data, identifier string data, and wireless network password data; The wireless network identifier data, identifier character string data and wireless network password data are filled into a preset configuration file template to generate the configuration file.
5. The method according to claim 3, characterized in that Before the step of generating the batch file connection mechanism based on the pre-generated batch file, the method further includes: obtaining wireless network identifier data and wireless network name data; The wireless network identifier data and the wireless network name data are filled into a preset batch processing file template to generate the batch processing file.
6. The method according to claim 1, characterized in that The step of obtaining a vehicle diagnosis request and a wireless connection request comprises: Establishing a connection with the diagnostic device through a preset on-board diagnostic interface; The vehicle diagnosis request sent by the diagnostic device is received through the connected on-board diagnostic interface, and the wireless connection request is generated.
7. A vehicle wireless diagnostic device, characterized in that: The device comprises: A request acquisition module, used to acquire vehicle diagnosis requests and wireless connection requests; A wireless connection module, configured to establish a communication connection with a preset wireless network of a diagnostic device according to the wireless connection request based on a pre-generated dual network connection mechanism, wherein the dual network connection mechanism includes a configuration file connection mechanism and a batch file connection mechanism; The vehicle diagnosis module is used to diagnose the vehicle through a preset diagnostic device based on the connected diagnostic device wireless network and according to the vehicle diagnosis request, and generate a vehicle wireless diagnosis result.
8. A vehicle wireless diagnostic device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle wireless diagnostic method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle wireless diagnostic method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the vehicle wireless diagnostic method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Vehicle diagnosis method, device and equipment and storage medium
CN121187273A