Automobile data acquisition method and device
By using Bluetooth reconnection mode and local network communication in diagnostic equipment, the problem of outdoor non-network connection in new energy vehicle fault diagnosis is solved, fast and effective data collection and diagnosis are achieved, and diagnosis efficiency is improved.
Patent Information
- Application Number
- CN202410689953.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-23
AI Technical Summary
During the fault diagnosis process of new energy vehicles, the lack of network connection in the outdoor environment causes the diagnostic equipment to be unable to transmit data in real time, resulting in low efficiency.
By adding online documents to the diagnostic device and using Bluetooth back-connection mode and local network communication, a local area network is formed, allowing maintenance personnel to remotely control the device on the client to automatically collect vehicle data and achieve rapid data transmission and diagnosis.
It provides the ability to quickly diagnose and troubleshoot, reduces dependence on network connections, improves diagnostic efficiency, and facilitates maintenance personnel to remotely obtain vehicle diagnostic data in the office area.
Smart Images

Figure CN118540347A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile data collection, and in particular to an automobile data collection method and device. Background Art
[0002] When auto repair shops or maintenance service stations diagnose new energy vehicles, they need to connect to the Internet to transmit data. However, if the car breaks down while driving and breaks down halfway, the problem needs to be solved outdoors. But the problem is that there is no network connection outdoors for diagnosis.
[0003] In order to diagnose vehicles and transmit diagnostic data results to the internal testing platform, the current solution of new energy testing stations is to use diagnostic equipment according to the instructions, and it is necessary to ensure that the diagnostic equipment is connected to the Internet throughout the diagnostic process in order to transmit data. This diagnostic method is relatively inefficient. Summary of the invention
[0004] The main purpose of the present application is to provide a method and device for collecting automobile data, aiming to solve the problem of cumbersome automobile data collection by diagnostic equipment in the prior art.
[0005] The present application proposes a method for collecting automobile data, which is applied to diagnostic equipment. The improvement includes:
[0006] Use the connector to connect to the car, and command the server of the diagnostic device to connect to the client of the intelligent terminal device;
[0007] Call online files to replace online functions to form local network communication;
[0008] Obtaining and calling a command protocol that is compatible with the online file so as to enter a data collection mode;
[0009] sending a collection instruction to the vehicle, and collecting vehicle information according to the collection instruction;
[0010] The vehicle information is transmitted to the server, and is organized into a data report and transmitted to the client.
[0011] As an improvement of the above technical solution, the use of the connector to connect with the car includes commanding the connector to start a Bluetooth back-connection mode to connect with the car.
[0012] As a further improvement of the above technical solution, the method further includes starting a monitoring event:
[0013] When the connector starts the Bluetooth back-connection mode and connects to the car, instruct the server to monitor the connection action between the connector and the car;
[0014] If a response is detected to the connection action, the server is commanded to send a collection instruction to the car to notify the car to enter a data collection mode.
[0015] As a further improvement of the above technical solution, the method further includes storing online files, and the storing steps are as follows:
[0016] Test the current network to determine whether it is in the global network;
[0017] If the judgment result shows that the current network is a global network, communication is performed using the current global network, and online files are downloaded and stored inside the diagnostic device, wherein the online files include the vehicle model data corresponding to the collected vehicle.
[0018] As a further improvement of the above technical solution, the collecting of automobile information according to the collecting instruction further includes:
[0019] Test the current network to determine whether it is in a local area network;
[0020] If it is determined that the current network is in a local area network, communication is performed using the current local area network;
[0021] The car is scanned according to the acquisition instruction to obtain the car information.
[0022] As a further improvement of the above technical solution, the method further includes:
[0023] When the server receives multiple pieces of automobile information, it calls a command protocol that is compatible with the collection command;
[0024] splicing multiple copies of vehicle information according to the command protocol to form a data report;
[0025] The server is commanded to send the data report to the client for preservation.
[0026] The present application also discloses a vehicle data collection device, the improvement of which is that it includes:
[0027] A connection module, the connection module is used to connect to the car using a connector and command the server of the diagnostic device to connect to the client of the intelligent terminal device;
[0028] A local area network module, the local area network module is used to call online files to replace online functions and form local network communication;
[0029] A data processing module, the data processing module is used to obtain and call a command protocol that is compatible with the online file, so as to enter a data collection mode;
[0030] A collection module, the collection module is used to send a collection instruction to the car, and collect car information according to the collection instruction;
[0031] A transmission module is used to transmit the vehicle information to the server, and to organize the information into a data report and transmit it to the client.
[0032] The application also provides a computer program product, including a computer program or an instruction, characterized in that when the computer program or the instruction is executed by a processor, the steps of any one of the above-mentioned methods for collecting automobile data are implemented.
[0033] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned vehicle data collection method when executing the computer program.
[0034] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned vehicle data collection method are implemented.
[0035] The beneficial effects of the present application are as follows: by adding online documents to the diagnostic equipment, if all the data of the car needs to be called, it is necessary to connect to the network to obtain it, that is, to replace the online documents with online functions, form local network communication, and provide a local area network for maintenance personnel to facilitate the download of all data information of the car, assist in car diagnosis, provide diagnostic speed, and solve fault problems in a timely manner. Maintenance personnel only need to operate on the client and can collect the required diagnostic data of the car. Specifically, the computer command remote control equipment is used for automatic collection. When the car needs to be diagnosed, the maintenance personnel only need to keep the equipment turned on, and then plug the VCI connector into the corresponding car. There is no need to do any subsequent operations on the diagnostic equipment. The operator can obtain the diagnostic data of the car by remotely operating the client in the office area. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 The present invention is a flow chart of a method for collecting automobile data according to an embodiment of the present application.
[0037] Figure 2 The present invention is a flow chart of a method for collecting automobile data according to an embodiment of the present application.
[0038] Figure 3 The present invention is a flow chart of a method for collecting automobile data according to an embodiment of the present application.
[0039] Figure 4 The present invention is a flow chart of a method for collecting automobile data according to an embodiment of the present application.
[0040] Figure 5 The present invention is a flow chart of a method for collecting automobile data according to an embodiment of the present application.
[0041] Figure 6 The present invention is a flow chart of a method for collecting automobile data according to an embodiment of the present application.
[0042] Figure 7 This is a structural schematic diagram of an automobile data acquisition device according to an embodiment of the present application.
[0043] Figure 8 This is a structural schematic diagram of an automobile data acquisition device according to an embodiment of the present application.
[0044] Fig. 9 A schematic diagram of the internal structure of a computer device according to an embodiment of the present application.
[0045] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings.
[0046] 100, connection module, 200, local area network module, 300, data processing module, 400, acquisition module, 500, transmission module. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] Example 1
[0049] like Figure 1 As shown, the present application proposes a vehicle data collection method, which is applied to a diagnostic device, comprising:
[0050] Step S1: Use a connector to connect to the car, and command the server of the diagnostic device to connect to the client of the intelligent terminal device;
[0051] Step S2: calling the online file to replace the online function to form a local network communication;
[0052] Step S3: obtaining and calling a command protocol compatible with the online file to enter a data collection mode;
[0053] Step S4: sending a collection instruction to the car, and collecting car information according to the collection instruction;
[0054] Step S5: Transmitting the automobile information to the server, and compiling the information into a data report and transmitting it to the client.
[0055] In the above embodiment, the present application proposes a scheme that supports local network to transmit diagnostic data. For the above steps S1-S5, the present application preferentially uses VCI connector to connect the diagnostic device to the car, and preferentially builds a wired connection channel so that the diagnostic device can diagnose the faulty car. Command the server of the diagnostic device to connect to the client of the intelligent terminal device. In order to facilitate the maintenance personnel to get complete car information, it is necessary to connect to the network to retrieve all car information. Therefore, the scheme calls the internal online file of the diagnostic device in step S2, replaces the online file with the online function, and establishes local network communication. The present application preferentially uses TCP communication mode (TCP is the transmission control protocol, which can be used in wide area networks and local area networks, and is the cornerstone of Intermnet / Intranet). After the network is built, it is necessary to obtain the instruction protocol compatible with the online file and call it to enter the data collection mode. At this moment, as long as the collection instruction is sent to the car, the client receives the collection instruction, collects the car information according to the collection instruction, and transmits the car information from the client to the server through the communication link to complete the data collection of the car information. This application adds online documents to the diagnostic equipment. If all the car data needs to be called, it is necessary to connect to the network to obtain it. The online documents are replaced with online functions to form local network communication, provide a local area network for maintenance personnel, facilitate downloading all the car data information, assist in the car diagnosis process, increase the diagnosis speed, and solve the fault problems in time.
[0056] Alternatively, when maintenance personnel are making preliminary judgments about a car, if they do not need to obtain all the car information, they do not need to build a local network. Figure 2 As shown, the present application proposes a method for collecting automobile data, further comprising:
[0057] Step S111: Use a connector to connect to the car, and instruct the server of the diagnostic device to connect to the client of the intelligent terminal device;
[0058] Step S112: sending a collection instruction to the car, and collecting car information according to the collection instruction;
[0059] Step S113: Transmitting the vehicle information to the server, and compiling the information into a data report and transmitting it to the client.
[0060] The car information is transmitted to the server, and the car information is transmitted to the client, and the data waiting mode is directly entered. At this moment, as long as the collection instruction is sent to the car, the client receives the collection instruction, collects the car information according to the collection instruction, transmits the car information to the server, and organizes the data report to the client for archiving, and completes the collection of car information. When the car data is collected, the diagnostic software inside the diagnostic device automatically sends a collection end notification to the server. The server immediately ends the collection process after receiving the collection end notification, and finally completes the automatic collection process. If the client of the intelligent terminal device issues a termination of collection during the collection process, it can directly send an instruction to the server of the diagnostic device, and the server of the diagnostic device can also terminate internally. Through the improvement of this application, maintenance personnel only need to operate and collect the required car diagnostic data on the client. Specifically, the diagnostic device is automatically collected through the client remote control through the computer instruction. When the car needs to be diagnosed, the maintenance personnel only need to keep the device turned on, and then plug the VCI connector into the corresponding car. There is no need to do any operation on the diagnostic device later. The operator can obtain the diagnostic data of the car by remotely operating the client in the office area.
[0061] Further, such as Figure 3 As shown, using the connector to connect with the car includes commanding the connector to start a Bluetooth back-connection mode to connect with the car.
[0062] The method also includes starting a listening event:
[0063] Step S6: when the connector starts the Bluetooth back-connection mode to connect to the car, instruct the server to monitor the connection action between the connector and the car;
[0064] Step S7: If a response to the connection action is detected, the server is commanded to send a collection instruction to the car to notify the car to enter a data collection mode.
[0065] In the above embodiments, in order to ensure that the diagnosis is correct and improve the diagnosis speed, events for detecting each step are set up in each link. This application makes improvements in hardware, and starts a monitoring event for the connection between the car and the connector to monitor whether the car and the diagnostic equipment are connected. When the connector starts the Bluetooth back-connection mode and connects to the car, the server is commanded to monitor the connection action between the connector and the car; if a response is detected to the connection action, the server is commanded to send a collection instruction to the car to notify the car to enter the data collection mode. After the client receives the collection instruction, it can collect car information according to the collection instruction, and transmit the car information from the client to the server through the communication link to complete the data collection of the car information.
[0066] Furthermore, in order to obtain all the data of the car, a network environment needs to be established, and the diagnostic software of the diagnostic equipment needs to use the online function to collect the car data. Using the global network to download the online file, the online file can be converted into an online replacement function, which can provide a local network for the diagnostic equipment outdoors to obtain all the data of the car. Therefore, if Figure 4 As shown, the method described in the present application also includes the following steps S8-S12, and the online file storage steps are as follows:
[0067] Step S8: Test the current network to determine whether the current network is in the global network;
[0068] Step S9: If the judgment result shows that the current network is a global network, the current global network is used for communication, and the online file is downloaded and stored in the diagnostic device, wherein the online file includes the vehicle model data corresponding to the collected vehicle.
[0069] like Figure 5 As shown, the collecting of automobile information according to the collecting instruction also includes forming a local area network, the steps are as follows:
[0070] Step S10: Testing the current network to determine whether the current network is in a local area network;
[0071] Step S11: If it is determined that the current network is in a local area network, communication is performed using the current local area network;
[0072] Step S12: Scan the car according to the acquisition instruction to obtain car information.
[0073] Finally, if Figure 6 As shown, the method also includes:
[0074] Step S13: When the server receives multiple pieces of automobile information, the server calls a command protocol that matches the acquisition command;
[0075] Step S14: splicing multiple copies of automobile information according to the command protocol to form a data report;
[0076] Step S15: command the server to send the data report to the client for retention.
[0077] In the above embodiment, for steps S13-S15, whether it is a local area network or a global network, the diagnostic device can receive a large amount of automobile information, including but not limited to fault code information, wheel height information, camera parameters, mileage data, ADAS calibration data, tire pressure data, etc. These data are disorganized. Therefore, when the diagnostic device receives these automobile information, it needs to be reorganized and call the instruction protocol compatible with the acquisition instruction. According to the instruction protocol, multiple copies of automobile information are spliced to form a data report. In addition to being a reference for maintenance personnel, this report needs to be sent to the client for archiving for reference for the next diagnosis.
[0078] Example 2
[0079] like Figure 7 As shown, the present application also discloses a vehicle data collection device, comprising:
[0080] A connection module 100, the connection module 100 is used to connect to the car using a connector and instruct the server of the diagnostic device to connect to the client of the intelligent terminal device;
[0081] A local area network module 200, the local area network module 200 is used to call online files to replace online functions to form local network communication;
[0082] A data processing module 300, the data processing module 300 is used to obtain and call a command protocol that is compatible with the online file, so as to enter a data collection mode;
[0083] A collection module 400, the collection module 400 is used to send a collection instruction to the car, and collect car information according to the collection instruction;
[0084] The transmission module 500 is used to transmit the automobile information to the server, and to organize the information into a data report and transmit it to the client.
[0085] The connection module 100 of the present application preferentially uses a VCI connector to connect the diagnostic device to the car, and preferentially builds a wired connection channel so that the diagnostic device can diagnose the faulty car. Establish a communication link between the client of the intelligent terminal device and the server of the diagnostic device. In order to facilitate maintenance personnel to obtain complete car information, it is necessary to connect to the network to retrieve all car information. Therefore, this solution commands the local area network module 200 to call the internal online file of the diagnostic device, replace the online file with the online function, and establish a local network communication. After the network is built, it is necessary to command the data processing module 300 to obtain the instruction protocol compatible with the online file and call it in order to enter the data collection mode. At this moment, as long as the collection module 400 sends a collection instruction to the car, the client receives the collection instruction and collects the car information according to the collection instruction. The command transmission module 500 transmits the car information to the server, and the car information is made into a data report and transmitted to the client for archiving, completing the data collection of the car information. This application adds online documents to the diagnostic equipment. If all the car data needs to be called, it is necessary to connect to the network to obtain it. The online documents are replaced with online functions to form local network communication, provide a local area network for maintenance personnel, facilitate downloading all the car data information, assist in the car diagnosis process, increase the diagnosis speed, and solve the fault problems in time.
[0086] Alternatively, when maintenance personnel are making preliminary judgments about a car, if they do not need to obtain all the car information, they do not need to build a local network. Figure 8 As shown, the present application also proposes a car data collection device, which also includes a command connection module 100 to transmit the car information to the server, and transmit the car information to the client, and directly enter the data collection mode. At this time, as long as the command collection module 400 sends a collection instruction to the car, the client collects the car information according to the collection instruction after receiving the collection instruction, and the command transmission module 500 transmits the car information to the server, and makes the car information into a data report and transmits it to the client for archiving, thereby completing the data collection of the car information.
[0087] When the vehicle data collection is completed, the diagnostic software inside the diagnostic device automatically sends a collection end notification to the server. The server immediately ends the collection process upon receiving the collection end notification, and finally completes the automatic collection process. If the client of the intelligent terminal device issues an order to terminate the collection during the collection process, it can directly send an instruction to the server of the diagnostic device, and the server of the diagnostic device can also terminate internally.
[0088] Through the improvement of this application, maintenance personnel only need to operate on the client and can collect the required car diagnostic data. Specifically, the diagnostic equipment is automatically collected through the client remote control through computer instructions. When the car needs to be diagnosed, the maintenance personnel only need to keep the equipment turned on and then plug the VCI connector into the corresponding car. There is no need to do any subsequent operation on the diagnostic equipment. The operator can obtain the diagnostic data of the car by remotely operating the client in the office area.
[0089] The remaining fault diagnosis steps of the automobile data acquisition device of the present application are consistent with those of Example 1, and Example 2 will not be repeated here.
[0090] Example 3
[0091] like Fig. 9 As shown, the present application also provides a computer device, which may be a server, and its internal structure may be as shown in Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store all data required for the process of a vehicle data collection method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a vehicle data collection method is implemented.
[0092] The present application also provides a computer program product, including a computer program or an instruction, characterized in that when the computer program or the instruction is executed by a processor, the steps of any one of the above-mentioned methods for collecting automobile data are implemented.
[0093] Those skilled in the art will understand that Fig. 9 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.
[0094] The present application provides a computer program product, including a computer program or an instruction, characterized in that when the computer program or the instruction is executed by a processor, any one of the above-mentioned vehicle data collection methods is implemented.
[0095] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned vehicle data collection methods is implemented.
[0096] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0097] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0098] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for collecting automobile data, applied to diagnostic equipment, characterized in that: include: Use the connector to connect to the car, and command the server of the diagnostic device to connect to the client of the intelligent terminal device; Call online files to replace online functions to form local network communication; Obtaining and calling a command protocol that is compatible with the online file so as to enter a data collection mode; sending a collection instruction to the vehicle, and collecting vehicle information according to the collection instruction; The vehicle information is transmitted to the server, and is organized into a data report and transmitted to the client.
2. The method for collecting automobile data according to claim 1, characterized in that: The using the connector to connect with the car includes commanding the connector to start a Bluetooth back-connection mode to connect with the car.
3. The method for collecting automobile data according to claim 2, characterized in that: The method also includes starting a listening event: When the connector starts the Bluetooth back-connection mode and connects to the car, instruct the server to monitor the connection action between the connector and the car; If a response is detected to the connection action, the server is commanded to send a collection instruction to the car to notify the car to enter a data collection mode.
4. The automobile data collection method according to claim 1, characterized in that: The method further includes storing the online file, the storing steps being as follows: Test the current network to determine whether it is in the global network; If the judgment result shows that the current network is a global network, communication is performed using the current global network, and online files are downloaded and stored inside the diagnostic device, wherein the online files include the vehicle model data corresponding to the collected vehicle.
5. The automobile data collection method according to claim 1, characterized in that: The collecting of automobile information according to the collecting instruction further comprises: Test the current network to determine whether it is in a local area network; If it is determined that the current network is in a local area network, communication is performed using the current local area network; The car is scanned according to the acquisition instruction to obtain the car information.
6. The automobile data collection method according to claim 1, characterized in that: The method further comprises: When the server receives multiple pieces of automobile information, it calls a command protocol that is compatible with the collection command; splicing multiple copies of vehicle information according to the command protocol to form a data report; The server is commanded to send the data report to the client for preservation.
7. An automobile data collection device, characterized in that: include: A connection module, the connection module is used to connect to the car using a connector and command the server of the diagnostic device to connect to the client of the intelligent terminal device; A local area network module, the local area network module is used to call online files to replace online functions and form local network communication; A data processing module, the data processing module is used to obtain and call a command protocol that is compatible with the online file, so as to enter a data collection mode; A collection module, the collection module is used to send a collection instruction to the car, and collect car information according to the collection instruction; A transmission module is used to transmit the vehicle information to the server, and to organize the information into a data report and transmit it to the client.
8. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the vehicle data collection method described in any one of claims 1 to 6 are implemented.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the vehicle data collection method described in any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the vehicle data collection method described in any one of claims 1 to 6 are implemented.
