A vehicle data conversion method, device, equipment and storage medium

By using the XML protocol to parse vehicle documents and construct real-time frame packets in the vehicle operation data system, the problem of the vehicle data system being incompatible with multiple systems was solved, the efficiency of data import and export was improved, and the reuse of host and slave computers was realized.

CN117056282BActive Publication Date: 2026-01-16GUANGZHOU ASENSING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311001621.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2026-01-16
Estimated Expiration
2043-08-09

AI Technical Summary

Technical Problem

The existing vehicle operation data system's data import and export functions are not compatible with multiple systems, resulting in a large development workload and low efficiency.

Method used

By responding to the vehicle document data import command, the path of the vehicle document is obtained, and the vehicle document is parsed using the XML protocol to obtain vehicle operation data. Real-time frame packet assembly is then constructed and directly imported into the vehicle control system.

Benefits of technology

It achieves compatibility of vehicle data across multiple systems, improves data import and export efficiency, and supports the reuse of host and slave computers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117056282B_ABST
    Figure CN117056282B_ABST
Patent Text Reader

Abstract

The application discloses a kind of vehicle data conversion method, device, equipment and storage medium, comprising: in response to receiving vehicle document data import instruction, according to vehicle document data import instruction, the path of vehicle document to be imported is obtained;Through the path of vehicle document to be imported, vehicle document is acquired, and vehicle document is parsed, so that in the unpacking process of vehicle document, vehicle operation data is directly obtained from vehicle document according to XML protocol;According to the directly obtained vehicle operation data, the construction of real-time frame group packet is carried out, so that vehicle operation value and its annotation data are obtained;Vehicle operation value and its annotation data are imported into vehicle control system, so that vehicle control system directly according to annotation data, corresponding vehicle operation value is handled, to complete vehicle data conversion.The application solves the technical problems that vehicle data cannot be compatible with multiple systems in the prior art, and the data import and export efficiency is low.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and in particular to a vehicle data conversion method, device, equipment and storage medium. BACKGROUND

[0002] The vehicle operation data system is a system provided for vehicle control, and is an information system for providing targeted support for the control of the vehicle by the driver or engineer, and can provide strong data support for accurate control and execution of the vehicle. The import and export functions of the vehicle data of the vehicle operation data system are very common functions in various vehicle operation data systems.

[0003] The import and export of the vehicle data of the current vehicle operation data system generally only provides a single import or export function, such as uploading the vehicle data to the vehicle operation data system or exporting the corresponding data document from the vehicle operation data system. The format of the document and the format of the data in the document are complex and changeable, and when a new format appears, different codes need to be written for different formats, and the code of the vehicle operation data system needs to be changed to meet the import or export of the new format document or vehicle data, resulting in a large amount of development work, so that the existing data document format cannot be compatible with multiple data systems, resulting in low efficiency of data import and export.

[0004] Therefore, there is an urgent need for a method that can make vehicle data compatible with multiple systems and improve the efficiency of data import and export. SUMMARY

[0005] The present application provides a vehicle data conversion method, device, equipment and storage medium to solve the technical problems that the vehicle data cannot be compatible with multiple systems and the data import and export efficiency is low in the prior art.

[0006] To solve the above technical problems, the present application provides a vehicle data conversion method, comprising:

[0007] In response to receiving a vehicle document data import instruction, obtaining the path of a vehicle document to be imported according to the vehicle document data import instruction;

[0008] Obtaining the vehicle document through the path of the vehicle document to be imported, and analyzing the vehicle document, so that in the unpacking process of the vehicle document, the vehicle operation data is directly obtained from the vehicle document according to the XML protocol;

[0009] According to the directly obtained vehicle operation data, constructing a real-time frame packet, thereby obtaining the vehicle operation data and the annotation data thereof;

[0010] The vehicle operation data and the comment data thereof are imported into the vehicle control system, so that the vehicle control system processes the corresponding vehicle operation data according to the comment data, thereby completing the vehicle data conversion.

[0011] As a preferred solution, the path of the vehicle document to be imported is obtained according to the vehicle document data import instruction in response to receiving the vehicle document data import instruction, specifically:

[0012] In response to receiving the vehicle document data import instruction sent by the vehicle control system, all data collected within a preset time period is labeled according to the current local time.

[0013] According to the vehicle document data import instruction, busy detection is performed on all transmission links to obtain an idle transmission link as the path of the vehicle document to be imported.

[0014] As a preferred solution, the busy detection is performed on all transmission links to obtain an idle transmission link according to the vehicle document data import instruction, specifically:

[0015] According to the vehicle document data import instruction, the current data transmission flow value of all transmission links is obtained.

[0016] When the current data transmission flow value of the transmission link is greater than a first preset value, the transmission link is marked as a busy transmission link.

[0017] When the current data transmission flow value of the transmission link is not greater than the first preset value and is greater than a second preset value, whether the data transmitted by the transmission link and the data type thereof are at an important level is determined according to a preset transmission importance database; if yes, the transmission link is marked as a busy transmission link; if no, the transmission link is marked as a transmissible link; wherein the transmission importance database stores a plurality of data types and corresponding important levels thereof, and the important levels include a primary processing level and a temporary processing level.

[0018] When the current data transmission flow value of the transmission link is not greater than the second preset value, the transmission link is marked as a transmissible link.

[0019] The transmission tasks of all transmissible links are suspended, and the transmissible links that are successfully suspended are marked as idle transmission links.

[0020] As a preferred solution, the vehicle document is obtained through the path of the vehicle document to be imported, and the vehicle document is parsed, so that the vehicle operation data is directly obtained from the vehicle document according to an XML protocol during the unpacking process of the vehicle document, specifically:

[0021] Obtaining a vehicle document through the path of the vehicle document to be imported, and analyzing the vehicle document to identify the format type of the vehicle document;

[0022] According to the format type of the vehicle document, a corresponding parsing program is called to parse the vehicle document, so that in the unpacking process of the vehicle document, libxml and boost spirit x3 are called to directly obtain vehicle running data corresponding to a definition signal from the vehicle document according to the definition signal in the XML protocol; wherein the definition signal is set by the vehicle document data import instruction.

[0023] As a preferred solution, the directly obtained vehicle running data is used to construct a real-time frame group package, thereby obtaining vehicle running values and their annotation data, specifically:

[0024] The directly obtained vehicle running data is constructed into a real-time frame through an XML protocol;

[0025] Each real-time frame is packaged by adding corresponding annotation information of each real-time frame to obtain a real-time frame group package; wherein the real-time frame group package includes vehicle running values and their annotation data.

[0026] As a preferred solution, the vehicle running values and their annotation data are imported into a vehicle control system, so that the vehicle control system directly processes corresponding vehicle running values according to the annotation data, specifically:

[0027] The vehicle running values and their annotation data are imported into the vehicle control system in the form of a real-time frame group package, so that the vehicle control system directly reads real-time frames according to the annotation data, calls a corresponding parsing program for parsing processing to obtain corresponding structures and their type attributes, thereby constructing a table corresponding to each structure, fills vehicle running values in each real-time frame into the constructed table, and thereby completes the processing of the vehicle running values.

[0028] As a preferred solution, the vehicle running values include vehicle real-time position, driving trajectory, engine start and stop time, engine temperature, engine speed, throttle opening, idling time length, engine continuous working hours, battery voltage, whether the air conditioner is on, transmission gear information, transmission shift mode, and vehicle speed; and the annotation data is a description of the vehicle running data.

[0029] Correspondingly, the application also provides a vehicle data conversion device, comprising a document path module, an unpacking module, a packaging module, and an import module;

[0030] The document path module is configured to, in response to receiving a vehicle document data import instruction, obtain a path of a vehicle document to be imported according to the vehicle document data import instruction.

[0031] The unpacking module is configured to acquire the vehicle document through the path of the vehicle document to be imported, and parse the vehicle document, so that vehicle operation data is directly acquired from the vehicle document according to an XML protocol during the unpacking process of the vehicle document.

[0032] The packet assembling module is configured to perform real-time frame packet assembling according to the directly acquired vehicle operation data, so as to obtain vehicle operation values and annotation data thereof.

[0033] The import module is configured to import the vehicle operation values and the annotation data thereof into a vehicle control system, so that the vehicle control system directly processes corresponding vehicle operation values according to the annotation data, thereby completing vehicle data conversion.

[0034] Correspondingly, the present application also provides a terminal device, which comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the vehicle data conversion method according to any one of the above when executing the computer program.

[0035] Correspondingly, the present application also provides a computer readable storage medium, which comprises a stored computer program, wherein the computer readable storage medium controls a device where the computer readable storage medium is located to execute the vehicle data conversion method according to any one of the above when the computer program runs.

[0036] Compared with the prior art, the embodiment of the present application has the following beneficial effects:

[0037] The technical scheme of the present application obtains a path of a vehicle document to be imported in response to a vehicle document data import instruction, and then acquires the vehicle document, so as to parse the vehicle document, and directly acquire vehicle operation data from the vehicle document according to an XML protocol during the unpacking process of the vehicle document, thereby improving the efficiency of data parsing and conversion, and then constructing real-time frame packet assembling according to the directly acquired vehicle operation data, so as to import vehicle operation values and annotation data thereof into a vehicle control system, which can ensure that the acquired vehicle operation values are compatible with multiple systems, realize reuse of an upper computer and a lower computer of a vehicle, and further improve the efficiency of data import and export. BRIEF DESCRIPTION OF DRAWINGS

[0038] Figure 1 It is a step flowchart of a vehicle data conversion method provided by the embodiment of the present application.

[0039] Figure 2 Fig. 1 is a structural schematic diagram of a vehicle data conversion device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be clearly and completely described in connection with the drawings of the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0041] Embodiment one

[0042] Please refer to Figure 1 A vehicle data conversion method provided by an embodiment of the present application includes the following steps S101-S104:

[0043] Step S101: in response to receiving a vehicle document data import instruction, obtaining a path of a vehicle document to be imported according to the vehicle document data import instruction.

[0044] In the embodiment, the vehicle data conversion method is mainly applied to a vehicle data integrated collection system. It can be understood that the vehicle data integrated collection system is used for collecting vehicle control network and Ethernet information network, and has core functions such as collection and fusion of all state data of the vehicle, preprocessing, data analysis, centralized recording, and unified transmission.

[0045] As a preferred solution, in response to receiving a vehicle document data import instruction, the path of the vehicle document to be imported is obtained according to the vehicle document data import instruction, specifically:

[0046] In response to receiving a vehicle document data import instruction sent by a vehicle control system, all data collected in a preset time period is marked according to the current local time; all transmission links are detected for busy, and an idle transmission link is obtained as the path of the vehicle document to be imported.

[0047] In the embodiment, the vehicle document data import instruction sent by the vehicle control system can enable the vehicle data integrated collection system to respond quickly and efficiently, and through acquisition of the local time, all data in the preset time period is marked, which is convenient for determining the data information of the time interval to be imported to the vehicle control system, avoiding that the imported data information is too large to affect the efficiency of data transmission and occupy too much system computing power.

[0048] As a preferred solution, the busy detection is performed on all transmission links according to the vehicle document data import instruction, and idle transmission links are obtained, specifically as follows:

[0049] According to the vehicle document data import instruction, the current data transmission flow value of all transmission links is obtained; when the current data transmission flow value of the transmission link is greater than a first preset value, the transmission link is marked as a busy transmission link; when the current data transmission flow value of the transmission link is not greater than the first preset value and is greater than a second preset value, whether the data transmitted by the transmission link and the data type thereof are at an important level is determined according to a preset transmission importance database; if yes, the transmission link is marked as a busy transmission link; if no, the transmission link is marked as a transmissible link; wherein the transmission importance database stores a plurality of data types and corresponding important levels thereof, the important levels include a primary processing level and a temporary processing level; when the current data transmission flow value of the transmission link is not greater than the second preset value, the transmission link is marked as a transmissible link; the transmission tasks of all transmissible links are suspended, and the transmissible links that are successfully suspended are marked as idle transmission links.

[0050] In the embodiment, the busy detection is performed on all transmission links according to the vehicle document data import instruction, and the busy state of the transmission link is determined through the flow value of all transmission links. Then, the transmission link whose current data transmission flow value is not greater than the first preset value and is greater than the second preset value is taken as a transmissible link, and it is further determined that the data transmitted in the transmission link is at the primary processing level or the temporary processing level, so that the data information with small data volume but high data importance level is avoided to be interrupted in the transmission link, and the vehicle is prevented from being unable to normally operate due to the lack of important operation data.

[0051] Further, the transmission link whose current data transmission flow value is not greater than the second preset value is also taken as a transmissible link, and the transmission tasks of all transmissible links are suspended, and the transmissible links that are successfully suspended are marked as idle transmission links. Preferably, when the transmission link whose current data transmission flow value is not greater than the second preset value is taken as a transmissible link, the transmission importance database is further used to screen the transmissible link that can be suspended.

[0052] It should be noted that the data information and data importance of different types of vehicles are different, and therefore the specific sizes of the first preset value and the second preset value can be set according to actual needs. In addition, the plurality of data types and corresponding important levels stored in the transmission importance database can also be set according to actual needs, vehicle types, purposes and conditions.

[0053] Step S102: obtaining the vehicle document through the path of the vehicle document to be imported, and analyzing the vehicle document, so that in the unpacking process of the vehicle document, vehicle operation data is directly obtained from the vehicle document according to the XML protocol.

[0054] As a preferred solution, the obtaining the vehicle document through the path of the vehicle document to be imported, and analyzing the vehicle document, so that in the unpacking process of the vehicle document, vehicle operation data is directly obtained from the vehicle document according to the XML protocol, specifically comprises:

[0055] The vehicle document is obtained through the path of the vehicle document to be imported, and the vehicle document is analyzed to identify the format type of the vehicle document; according to the format type of the vehicle document, a corresponding analysis program is called to analyze the vehicle document, so that in the unpacking process of the vehicle document, libxml and boost spirit x3 are called to directly obtain vehicle operation data corresponding to the definition signal from the vehicle document according to the definition signal in the XML protocol; wherein the definition signal is set by the vehicle document data import instruction.

[0056] In this embodiment, the corresponding vehicle document can be quickly and accurately obtained through the path of the vehicle document to be imported, so that the format type of the corresponding vehicle document is identified by analyzing the vehicle document, so that the corresponding analysis program can be called according to the format type of the vehicle document, so as to realize different vehicle document analysis for different format types.

[0057] In this embodiment, the xml protocol is used, and the xml protocol converted from dbc / excel is compatible. In terms of data analysis, libxml and boost spirit x3 are used to quickly import data analysis: in real-time frame packing and unpacking, the corresponding structure body does not need to be declared in advance, and according to the definition signal in the xml protocol and the received vehicle document data or the data to be packed, the corresponding vehicle operation data is directly obtained or set.

[0058] It should be noted that libxml is a library for parsing xml files, and boost spirit x3 is a data parser of an interface program. In terms of data analysis, libxml and boost spirit x3 are used to quickly import the data analysis program, thereby improving the analysis speed.

[0059] Step S103: constructing real-time frame packing according to the directly obtained vehicle operation data, so as to obtain vehicle operation data and its annotation data.

[0060] As a preferred solution, the vehicle operation values include real-time position of the vehicle, driving track, engine start and stop time, engine temperature, engine speed, throttle opening, idling time length, engine continuous working hours, battery voltage, whether the air conditioner is on, gear information of the transmission, shift pattern of the transmission and driving speed of the vehicle; and the annotation data is a description of the vehicle operation data.

[0061] In the embodiment, the vehicle operation values mainly include state operation data related to the operation process of the vehicle. With the development of intelligent vehicles, the vehicle operation data is not limited to the data generated during the driving process of the vehicle, but also includes intelligent driving, road information data, positioning information data, lane recognition data and other information.

[0062] As a preferred solution, the vehicle operation values and the annotation data thereof are obtained by constructing a real-time frame group package according to the directly obtained vehicle operation data, specifically as follows:

[0063] The directly obtained vehicle operation data is constructed into a real-time frame through an XML protocol; each real-time frame is packaged by adding corresponding annotation information of the real-time frame, so as to obtain a real-time frame group package; wherein the real-time frame group package includes the vehicle operation values and the annotation data thereof.

[0064] In the embodiment, the vehicle operation data is directly obtained through an XML protocol without declaring a corresponding structure body in advance, and a real-time data frame is constructed by using the obtained vehicle operation data, so that multiple data frames can be bundled together and a header information is added to the data frames for packaging. In the embodiment, the corresponding annotation information is added as the header information of the package. In addition, the packaging can enable multiple frames of data to be sent at the same time, thereby improving the efficiency of communication. Furthermore, the frame package of data can improve the reliability of data transmission.

[0065] Step S104: The vehicle operation values and the annotation data thereof are imported into a vehicle control system, so that the vehicle control system directly processes corresponding vehicle operation values according to the annotation data, thereby completing the conversion of vehicle data.

[0066] As a preferred solution, the vehicle operation values and the annotation data thereof are imported into a vehicle control system, so that the vehicle control system directly processes corresponding vehicle operation values according to the annotation data, specifically as follows:

[0067] The vehicle operation value and its comment data are imported into the vehicle control system in the form of real-time frame group packets, so that the vehicle control system directly reads real-time frames according to the comment data, calls corresponding analysis programs for analysis processing to obtain corresponding structures and type attributes, constructs a table corresponding to each structure, fills the vehicle operation value in each real-time frame into the constructed table, and thus completes the processing of the vehicle operation value.

[0068] It should be noted that the traditional can transmission uses a DBC file, which has strong relevance but is inconvenient to edit, slow to analyze, and difficult to expand. In addition, the Ethernet uses an excel communication matrix, which is easy to expand but has a non-uniform format and is difficult to be reused by multiple systems or even the host computer and the lower computer of the same system. In the embodiment, the xml protocol is used, and the xml protocol converted from the DBC / excel is compatible. When the real-time frame is packaged and unpacked, the corresponding structure can be directly obtained / set according to the signals defined in the xml protocol and the received data or the data to be packaged, without the need for prior declaration of the corresponding structure. Moreover, the embodiment can be directly reused by the host computer and the lower computer (reusable), and for subsequent changes of the communication matrix, the xml protocol content can be directly modified, which is easy to expand. The modified xml protocol content is mainly the defined signals in the XML protocol, which can also be modified and set by the vehicle document data import instruction, so that the modification of the code is not required.

[0069] The above embodiment has the following effects:

[0070] The technical solution of the present application obtains the path of the imported vehicle document in response to the vehicle document data import instruction, and then obtains the vehicle document, so as to analyze the vehicle document. In the unpacking process of the vehicle document, the corresponding structure can be directly obtained from the vehicle document according to the XML protocol, without the need for prior declaration of the corresponding structure, thereby improving the efficiency of data analysis and conversion. Moreover, the construction of the real-time frame group can be realized according to the directly obtained vehicle operation data, so as to import the vehicle operation value and its comment data into the vehicle control system, which can ensure that the obtained vehicle operation value is compatible with multiple systems, realizes the reuse of the host computer and the lower computer of the vehicle, and further improves the data import and export efficiency.

[0071] Embodiment two

[0072] Please refer to Figure 2 The present application also provides a vehicle data conversion device, which comprises a document path module 201, an unpacking module 202, a packaging module 203, and an import module 204.

[0073] The document path module 201 is configured to, in response to receiving a vehicle document data import instruction, obtain a path of a vehicle document to be imported according to the vehicle document data import instruction.

[0074] The unpacking module 202 is configured to acquire the vehicle document through the path of the vehicle document to be imported, and parse the vehicle document, so that vehicle operation data is directly acquired from the vehicle document according to an XML protocol during the unpacking of the vehicle document.

[0075] The packet assembling module 203 is configured to perform real-time frame packet assembling according to the directly acquired vehicle operation data, so as to obtain vehicle operation values and annotation data thereof.

[0076] The import module 204 is configured to import the vehicle operation values and the annotation data thereof into a vehicle control system, so that the vehicle control system directly processes corresponding vehicle operation values according to the annotation data, thereby completing vehicle data conversion.

[0077] As a preferred solution, the path of the vehicle document to be imported is obtained according to the vehicle document data import instruction in response to receiving the vehicle document data import instruction, and specifically:

[0078] In response to receiving a vehicle document data import instruction sent by a vehicle control system, all data collected in a preset time period is labeled according to a current local time.

[0079] All transmission links are detected for busy according to the vehicle document data import instruction, and an idle transmission link is obtained as the path of the vehicle document to be imported.

[0080] As a preferred solution, the idle transmission link is obtained by detecting all transmission links for busy according to the vehicle document data import instruction, and specifically:

[0081] A current data transmission flow value of all transmission links is obtained according to the vehicle document data import instruction.

[0082] When the current data transmission flow value of the transmission link is greater than a first preset value, the transmission link is marked as a busy transmission link.

[0083] When the current data transmission flow value of the transmission link is not greater than the first preset value and is greater than the second preset value, whether the data transmitted by the transmission link and the data type thereof are at an important level is determined according to a preset transmission importance database; if yes, the transmission link is marked as a busy transmission link; if no, the transmission link is marked as a transmissible link; wherein the transmission importance database stores a plurality of data types and corresponding important levels thereof, and the important levels include a primary processing level and a temporary processing level.

[0084] When the current data transmission flow value of the transmission link is not greater than the second preset value, the transmission link is marked as a transmissible link.

[0085] The transmission tasks of all the transmissible links are suspended, and the transmissible links that are successfully suspended are marked as idle transmission links.

[0086] As a preferred solution, the vehicle document is obtained through the path of the vehicle document to be imported, and the vehicle document is parsed, so that in the unpacking process of the vehicle document, vehicle operation data is directly obtained from the vehicle document according to an XML protocol, specifically:

[0087] The format type of the vehicle document is identified by analyzing the vehicle document obtained through the path of the vehicle document to be imported.

[0088] According to the format type of the vehicle document, a corresponding parsing program is called to parse the vehicle document, so that in the unpacking process of the vehicle document, libxml and boost spirit x3 are called to directly obtain vehicle operation data corresponding to a definition signal from the vehicle document according to the definition signal in the XML protocol; wherein the definition signal is set by the vehicle document data import instruction.

[0089] As a preferred solution, the vehicle operation data directly obtained is used to construct a real-time frame group package, so as to obtain vehicle operation values and annotation data thereof, specifically:

[0090] The directly obtained vehicle operation data is constructed into real-time frames through an XML protocol.

[0091] Each real-time frame is packaged by adding annotation information corresponding to each real-time frame, so as to obtain a real-time frame group package; wherein the real-time frame group package includes vehicle operation values and annotation data thereof.

[0092] As a preferred solution, the vehicle operation values and the annotation data thereof are imported into a vehicle control system, so that the vehicle control system directly processes corresponding vehicle operation values according to the annotation data, specifically:

[0093] The vehicle operation value and its annotation data are imported into the vehicle control system in the form of real-time frame group package, so that the vehicle control system directly reads the real-time frame according to the annotation data, calls the corresponding analysis program to perform analysis processing, obtains the corresponding structure and its type attribute, constructs a table corresponding to each structure, fills the vehicle operation value in each real-time frame into the constructed table, and thus completes the processing of the vehicle operation value.

[0094] As a preferred solution, the vehicle operation value includes the vehicle real-time position, the driving track, the engine start and stop time, the engine temperature, the engine speed, the throttle opening, the idling time length, the engine continuous working hours, the battery voltage, whether the air conditioner is on, the gear information of the gearbox, the gearbox shift mode and the driving speed of the vehicle; and the annotation data is the description of the vehicle operation data.

[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the foregoing method embodiment, which will not be described here again.

[0096] The above embodiment has the following effects:

[0097] The technical solution of the present application can obtain the vehicle document according to the vehicle document data import instruction, and then analyze the vehicle document, so that the corresponding structure body can be directly obtained from the vehicle document according to the XML protocol without being declared in advance during the unpacking process of the vehicle document, thereby improving the data analysis and conversion efficiency, and then the construction of the real-time frame group package can be realized according to the directly obtained vehicle operation data, so that the vehicle operation value and its annotation data can be imported into the vehicle control system, which can ensure that the obtained vehicle operation value is compatible with multiple systems, realizes the reuse of the upper computer and the lower computer of the vehicle, and further improves the data import and export efficiency.

[0098] Embodiment three

[0099] Correspondingly, the present application also provides a terminal device, which comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the vehicle data conversion method according to any one of the above embodiments when executing the computer program.

[0100] The terminal device of the embodiment comprises a processor, a memory, and a computer program and computer instructions stored in the memory and executable on the processor. The processor implements each step in Embodiment One above when executing the computer program, for example,Figure 1 The processor executes the computer program to implement the functions of the modules / units in the above-mentioned apparatus embodiments, such as the unpacking module 202.

[0101] For example, the computer program can be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the terminal device. For example, the unpacking module 202 is configured to obtain the vehicle document through the path of the vehicle document to be imported, and parse the vehicle document, so that the vehicle operation data is directly obtained from the vehicle document according to the XML protocol during the unpacking process of the vehicle document.

[0102] The terminal device can be a desktop computer, a notebook computer, a palm computer, a cloud server, and the like. The terminal device can include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the schematic diagram is only an example of the terminal device, and does not constitute a limitation on the terminal device, and can include more or less components than the schematic diagram, or combine certain components, or different components, for example, the terminal device can also include an input / output device, a network access device, a bus, and the like.

[0103] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, and the like. The processor is a control center of the terminal device, and connects all parts of the terminal device through various interfaces and lines.

[0104] The memory can be used to store the computer program and / or modules, and the processor realizes various functions of the terminal device by running or executing the computer program and / or modules stored in the memory, and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function, etc.; and the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a nonvolatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state memory devices.

[0105] The modules / units integrated in the terminal device, if realized in the form of software function units and sold or used as independent products, can be stored in a computer readable storage medium. Based on this understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. The computer program can implement the steps of each method embodiment when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the computer readable medium can include appropriate contents according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0106] Embodiment four

[0107] Correspondingly, the present application also provides a computer readable storage medium, including stored computer programs, wherein the computer programs control the device where the computer readable storage medium is located to execute the vehicle data conversion method as described in any one of the above embodiments when running.

[0108] The above-described specific embodiments further illustrate the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above-described specific embodiments are merely examples of the present application and are not intended to limit the protection scope of the present application. It is particularly pointed out that any modification, equivalent replacement, improvement, etc. made by those skilled in the art within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A vehicle data conversion method characterized by, The method comprises the following steps: In response to receiving the vehicle document data import instruction, the path of the vehicle document to be imported is obtained according to the vehicle document data import instruction; The path of the vehicle document to be imported is obtained according to the vehicle document data import instruction, and the path of the vehicle document to be imported is obtained according to the vehicle document data import instruction. In response to receiving the vehicle document data import instruction sent by the vehicle control system, all data collected in a preset time period is labeled according to the current local time; all transmission links are detected according to the vehicle document data import instruction, and the idle transmission link is obtained as the path of the vehicle document to be imported; The idle transmission link is obtained by detecting the busy state of all transmission links according to the vehicle document data import instruction. According to the vehicle document data import instruction, the current data transmission flow value of all transmission links is obtained. When the current data transmission flow value of the transmission link is greater than the first preset value, the transmission link is marked as a busy transmission link. When the current data transmission flow value of the transmission link is not greater than the first preset value and is greater than the second preset value, the transmission importance database is used to determine whether the data transmitted by the transmission link and the data type thereof are in an important level. If yes, the transmission link is marked as a busy transmission link. If no, the transmission link is marked as a transmissible link. The transmission importance database stores a plurality of data types and their corresponding important levels. The important levels include a primary processing level and a temporary processing level. When the current data transmission flow value of the transmission link is not greater than the second preset value, the transmission link is marked as a transmissible link. The transmission tasks of all transmissible links are suspended, and the transmissible links that are successfully suspended are marked as idle transmission links; The vehicle document is obtained through the path of the vehicle document to be imported, and the vehicle document is parsed, so that the vehicle running data is directly obtained from the vehicle document according to the XML protocol during the unpacking process of the vehicle document; According to the directly obtained vehicle running data, the real-time frame packet is constructed, so as to obtain the vehicle running value and the annotation data thereof; The vehicle running value and the annotation data thereof are imported into the vehicle control system, so that the vehicle control system directly processes the corresponding vehicle running value according to the annotation data, thereby completing the vehicle data conversion.

2. The vehicle data conversion method of claim 1, wherein, The path of the vehicle document to be imported is obtained according to the vehicle document data import instruction, and the path of the vehicle document to be imported is obtained according to the vehicle document data import instruction. In response to receiving the vehicle document data import instruction sent by the vehicle control system, all data collected in a preset time period is labeled according to the current local time; all transmission links are detected according to the vehicle document data import instruction, and the idle transmission link is obtained as the path of the vehicle document to be imported; The idle transmission link is obtained by detecting the busy state of all transmission links according to the vehicle document data import instruction. According to the vehicle document data import instruction, the current data transmission flow value of all transmission links is obtained. When the current data transmission flow value of the transmission link is greater than the first preset value, the transmission link is marked as a busy transmission link. When the current data transmission flow value of the transmission link is not greater than the first preset value and is greater than the second preset value, the transmission importance database is used to determine whether the data transmitted by the transmission link and the data type thereof are in an important level. If yes, the transmission link is marked as a busy transmission link. If no, the transmission link is marked as a transmissible link. The transmission importance database stores a plurality of data types and their corresponding important levels. The important levels include a primary processing level and a temporary processing level. When the current data transmission flow value of the transmission link is not greater than the second preset value, the transmission link is marked as a transmissible link. The transmission tasks of all transmissible links are suspended, and the transmissible links that are successfully suspended are marked as idle transmission links; The vehicle document is obtained through the path of the vehicle document to be imported, and the vehicle document is parsed, so that the vehicle running data is directly obtained from the vehicle document according to the XML protocol during the unpacking process of the vehicle document; According to the directly obtained vehicle running data, the real-time frame packet is constructed, so as to obtain the vehicle running value and the annotation data thereof; The vehicle running value and the annotation data thereof are imported into the vehicle control system, so that the vehicle control system directly processes the corresponding vehicle running value according to the annotation data, thereby completing the vehicle data conversion. According to the format type of the vehicle document, a corresponding parsing program is called to parse the vehicle document, so that in the unpacking process of the vehicle document, libxml and boost spirit x3 are called to directly obtain vehicle operation data corresponding to a definition signal from the vehicle document according to the definition signal in the XML protocol; wherein the definition signal is set by the vehicle document data import instruction.

3. The vehicle data conversion method of claim 2, wherein, According to the directly obtained vehicle operation data, real-time frame group packets are constructed to obtain vehicle operation values and their annotation data, specifically: Through the XML protocol, the directly obtained vehicle operation data is constructed into real-time frames; By adding annotation information corresponding to each real-time frame, each constructed real-time frame is packaged to obtain real-time frame packets; wherein the real-time frame packets include vehicle operation values and their annotation data.

4. The vehicle data conversion method of claim 3, wherein, The vehicle operation values and their annotation data are imported into the vehicle control system, so that the vehicle control system directly processes the corresponding vehicle operation values according to the annotation data, specifically: The vehicle operation values and their annotation data are imported into the vehicle control system in the form of real-time frame packets, so that the vehicle control system directly reads real-time frames according to the annotation data, calls a corresponding parsing program for parsing processing to obtain a corresponding structure and its type attribute, thereby constructing a table corresponding to each structure, filling the vehicle operation values in each real-time frame into the constructed table, and thus completing the processing of the vehicle operation values.

5. A vehicle data conversion method according to any one of claims 1 to 4, wherein, The vehicle operation values include vehicle real-time position, driving track, engine start and stop time, engine temperature, engine speed, throttle opening, idling time length, engine continuous working hours, battery voltage, whether the air conditioner is on, transmission gear information, transmission shift mode and vehicle speed; the annotation data is the description of the vehicle operation data.

6. A vehicle data conversion device characterized by comprising: It includes: Document path module, unpacking module, packetizing module and importing module; The document path module is configured to, in response to receiving the vehicle document data import instruction, obtain a path of a vehicle document to be imported according to the vehicle document data import instruction. Specifically, in response to receiving the vehicle document data import instruction sent by the vehicle control system, all data collected within a preset time period is labeled according to the current local time. According to the vehicle document data import instruction, busy detection is performed on all transmission links to obtain an idle transmission link as the path of the vehicle document to be imported. Specifically, according to the vehicle document data import instruction, a current data transmission flow value of all transmission links is obtained. When the current data transmission flow value of the transmission link is greater than a first preset value, the transmission link is marked as a busy transmission link. When the current data transmission flow value of the transmission link is not greater than the first preset value and is greater than a second preset value, whether the data transmitted by the transmission link and the data type thereof are at an important level is determined according to a preset transmission importance database. If yes, the transmission link is marked as a busy transmission link. If no, the transmission link is marked as a transmissible link. The transmission importance database stores a plurality of data types and corresponding important levels thereof, and the important levels include a primary processing level and a temporary processing level. When the current data transmission flow value of the transmission link is not greater than the second preset value, the transmission link is marked as a transmissible link. Transmission tasks of all transmissible links are suspended, and a transmissible link that is successfully suspended is marked as an idle transmission link. The unpacking module is configured to acquire a vehicle document through the path of the vehicle document to be imported, and analyze the vehicle document, so that vehicle running data is directly acquired from the vehicle document according to an XML protocol during the unpacking process of the vehicle document. The packet assembling module is configured to construct real-time frame packet assembly according to the directly acquired vehicle running data, so as to obtain vehicle running values and annotation data thereof. The import module is configured to import the vehicle running values and the annotation data thereof into the vehicle control system, so that the vehicle control system directly processes corresponding vehicle running values according to the annotation data, thereby completing vehicle data conversion.

7. A terminal device, characterized by comprising: The computer readable storage medium includes a stored computer program, wherein the computer readable storage medium controls a device in which the computer readable storage medium is located to execute the vehicle data conversion method according to any one of claims 1 to 5 when the computer program is running.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium includes a stored computer program, wherein the computer readable storage medium controls a device in which the computer readable storage medium is located to execute the vehicle data conversion method according to any one of claims 1 to 5 when the computer program is running.

Citation Information

Patent Citations

  • LEO / GEO-double-layer-satellite-network-oriented routing policy

    CN105791118A

  • Document data import method and device, document data export method and device and storage medium

    CN111460017A