CN109597813B - Vehicle data processing method and device - Google Patents

Vehicle data processing method and device Download PDF

Info

Publication number
CN109597813B
CN109597813B CN201811435025.9A CN201811435025A CN109597813B CN 109597813 B CN109597813 B CN 109597813B CN 201811435025 A CN201811435025 A CN 201811435025A CN 109597813 B CN109597813 B CN 109597813B
Authority
CN
China
Prior art keywords
key value
data
data list
key
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811435025.9A
Other languages
Chinese (zh)
Other versions
CN109597813A (en
Inventor
刘均
刘新
郭朝晖
兰飞
李向煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Golo Iov Data Technology Co ltd
Original Assignee
Golo Iov Data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Golo Iov Data Technology Co ltd filed Critical Golo Iov Data Technology Co ltd
Priority to CN201811435025.9A priority Critical patent/CN109597813B/en
Publication of CN109597813A publication Critical patent/CN109597813A/en
Application granted granted Critical
Publication of CN109597813B publication Critical patent/CN109597813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application belongs to the technical field of vehicles and provides a vehicle data processing method and device, wherein the method comprises the following steps: if the first preset time is within the first preset time, M first data returned by the ECU are received; taking M first data as first key values, configuring corresponding key value names, and storing the first key values and the corresponding configured key value names into a first data list as first key value pairs; if I second data are received within second preset time, taking the I second data as second key values, configuring corresponding key value names and storing the key value names into a second data list; judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list; and if the key value exists, sending a second key value pair which is the same as the key value name in the first data list and different in key value to the upper computer. The efficiency of the lower computer for transmitting data can be improved, the power consumption of the lower computer can be reduced, and meanwhile, the working efficiency of the upper computer can also be improved.

Description

Vehicle data processing method and device
Technical Field
The application belongs to the technical field of vehicles, and particularly relates to a vehicle data processing method and device.
Background
With the development of vehicle Electronic Control technology, after communication is performed between a lower computer (such as a vehicle diagnostic device) and each Electronic Control Unit (ECU) in a vehicle, various data of vehicle operation are acquired, the acquired data are sent to the upper computer (such as a mobile terminal, a notebook or a palm computer), and the upper computer analyzes the various data, so that vehicle faults are diagnosed.
However, in the current diagnostic method for vehicle faults, the lower computer has serious power consumption and low data transmission efficiency in the process of transmitting various data of vehicle operation acquired by communicating with each ECU in the vehicle to the upper computer in real time.
Disclosure of Invention
In view of this, the embodiment of the present application provides a vehicle data processing method and device, and aims to solve the problems of serious power consumption and low data transmission efficiency in the process that the existing lower computer sends various pieces of data of a vehicle to the upper computer.
A first aspect of an embodiment of the present application provides a vehicle data processing method, including:
if the vehicle is detected to be in a starting or running state, respectively sending a request instruction for acquiring data to N Electronic Control Units (ECUs) of the vehicle; wherein N is ≧ 1 and an integer;
if the first preset time after the request instruction is sent is within the first preset time, M first data returned by the ECU based on the request instruction are received; wherein M is ≧ 1 and an integer;
taking the M first data as first key values, configuring corresponding key value names, storing the first key values and the corresponding configured key value names into a first data list as first key value pairs, and sending the first data list to an upper computer;
if the first data list is sent to the upper computer within a second preset time, I second data returned by the ECU based on the request instruction are received; wherein I is ≧ 1 and an integer;
taking the I second data as second key values, configuring corresponding key value names, and storing the second key values and the corresponding configured key value names into a second data list as second key value pairs;
judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list; the first data list and the second data list are stored in a memory configured by the lower computer;
and if the key value exists, sending the second key value pair which has the same key value name and different key values in the first data list to the upper computer.
In one embodiment, after sending the second key-value pair having the same key-value name and different key-values as those in the first data list to the upper computer, the method further includes:
and deleting the first data list stored in the lower computer, and storing the second data list as the first data list.
In one embodiment, after deleting the first data list stored in the lower computer and storing the second data list as the first data list, the method further includes:
if the Kth data list is sent to the upper computer within the Kth preset time, Q Kth data returned by the ECU based on the request instruction are received; wherein Q is ≧ 1 and an integer, and K is ≧ 3 and an integer;
taking the Q Kth data as Kth key values, configuring corresponding key value names, and storing the Kth key values and the corresponding configured key value names into a Kth data list as Kth key value pairs;
judging whether a Kth key value pair with the same key value name and different key values as those in the first data list exists in the Kth data list or not;
if yes, sending the Kth key value pair different from the key value name in the first data list to an upper computer;
and deleting the first data list stored in the lower computer, and storing the Kth data list as a first data list.
In one embodiment, the sending the first data list to an upper computer includes:
and decoding the key value pairs in the first data list into first data information and then sending the first data information to an upper computer, so that the upper computer judges the vehicle running state according to the first data information.
In one embodiment, the sending, to the upper computer, the second key-value pair that is the same in key-value name and different in key value as in the first data list includes:
and decoding the second key value pairs with the same key value name and different key values in the first data list into second data information, and sending the second data information to the upper computer, so that the upper computer judges the running state of the vehicle according to the second data information.
In one embodiment, the sending a request instruction for acquiring data to N electronic control units ECUs of the vehicle, if it is detected that the vehicle is in a start or running state, includes:
and if the vehicle is detected to be in a starting or driving state, respectively sending request instructions for acquiring N different types of data to N Electronic Control Units (ECUs) of the vehicle.
In one embodiment, the step of storing the first key values and the correspondingly configured key value names into a first data list as first key value pairs includes:
taking the M first data as M first key values, and judging whether request instruction types associated with the M first key values are different;
if the request instruction types associated with the M first key values are different, respectively configuring corresponding key value names according to the request instruction types associated with the M first key values;
if L request instructions of the same type exist in the request instruction types related to the M first key values, selecting one first key value corresponding to the request instruction of the same type according to a preset condition and configuring a corresponding key value name, and respectively configuring the M-L first key values corresponding to the request instructions of different types with the corresponding key value names; wherein 2 ≦ L ≦ M and L is an integer;
and storing the first key value and the correspondingly configured key value name as a first key value pair into a first data list.
A second aspect of the embodiments of the present application provides a vehicle data processing apparatus, including:
the first sending module is used for respectively sending a data acquisition request instruction to N Electronic Control Units (ECU) of the vehicle if the vehicle is detected to be in a starting or running state; wherein N is ≧ 1 and an integer;
the first receiving module is used for receiving M pieces of first data returned by the ECU based on the request instruction if the first preset time is within the first preset time after the request instruction is sent; wherein M is ≧ 1 and an integer;
the first configuration module is used for taking the M first data as first key values, configuring corresponding key value names, storing the first key values and the corresponding configured key value names into a first data list as first key value pairs, and sending the first data list to an upper computer;
the second receiving module is used for receiving I second data returned by the ECU based on the request instruction if the first data list is sent to the upper computer within second preset time; wherein I is ≧ 1 and an integer;
the second configuration module is used for taking the I second data as second key values, configuring corresponding key value names and storing the second key values and the corresponding configured key value names into a second data list as second key value pairs;
the first judging module is used for judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list; the first data list and the second data list are stored in a memory configured by the lower computer;
and the second sending module is used for sending the second key value pair which has the same key value name and different key values in the first data list to the upper computer if the second key value pair exists.
In one embodiment, the vehicle data processing apparatus further includes:
and the first storage module is used for deleting the first data list stored in the lower computer and storing the second data list as the first data list.
In one embodiment, the vehicle data processing apparatus further includes:
the third receiving module is used for receiving Q Kth data returned by the ECU based on the request instruction if the Kth data list is sent to the upper computer within the Kth preset time; wherein Q is ≧ 1 and an integer, and K is ≧ 3 and an integer;
the second configuration module is used for taking the Q Kth data as Kth key values, configuring corresponding key value names and storing the Kth key values and the corresponding configured key value names into a Kth data list as Kth key value pairs;
the second judgment module is used for judging whether a Kth key value pair which has the same key value name and different key values as those in the first data list exists in the Kth data list or not;
the third sending module is used for sending the Kth key value pair different from the key value name in the first data list to the upper computer if the first data list exists;
and the second storage module is used for deleting the first data list stored in the lower computer and storing the Kth data list as the first data list.
In one embodiment, the first configuration module is specifically configured to:
and the M pieces of first data are used as first key values, corresponding key value names are configured, the key value pairs in the first data list are decoded into first data information and then sent to an upper computer, and the upper computer is enabled to judge the vehicle running state according to the first data information.
In one embodiment, the second sending module is specifically configured to:
if a second key value pair which is the same as the key value name in the first data list and different in key value exists, the second key value pair which is the same as the key value name in the first data list and different in key value is decoded into second data information and then sent to an upper computer, and the upper computer is enabled to judge the running state of the vehicle according to the second data information.
In one embodiment, the first sending module is specifically configured to:
and if the vehicle is detected to be in a starting or driving state, respectively sending request instructions for acquiring N different types of data to N Electronic Control Units (ECUs) of the vehicle.
In one embodiment, the first configuration module comprises:
a first judging unit, configured to use the M first data as M first key values, and judge whether request instruction types associated with the M first key values are all different;
a first configuration unit, configured to, if the request instruction types associated with the M first key values are all different, configure corresponding key value names according to the request instruction types associated with the M first key values, respectively;
a second configuration unit, configured to, if there are L request instructions of the same type in the request instruction types associated with the M first key values, select one of the L first key values corresponding to the request instructions of the same type according to a preset condition and configure a corresponding key value name, and configure the M-L first key values corresponding to the request instructions of different types with corresponding key value names, respectively; wherein 2 ≦ L ≦ M and L is an integer;
and the first storing unit is used for storing the first key value and the correspondingly configured key value name as a first key value pair into a first data list.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, implements the steps of the above-described method.
In the embodiment of the invention, if the request instruction is sent within a first preset time, M first data returned by the ECU based on the request instruction are received; taking the M first data as first key values, configuring corresponding key value names, storing the first key values and the corresponding configured key value names into a first data list as first key value pairs, and sending the first data list to an upper computer; if the first data list is sent to the upper computer within a second preset time, I pieces of second data returned by the ECU based on the request instruction are received, the I pieces of second data are used as second key values and are configured with corresponding key value names, and the second key values and the corresponding configured key value names are used as second key value pairs and are stored into a second data list; judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list; and if the key value exists, sending the second key value pair which has the same key value name and different key values in the first data list to the upper computer. Only the data changed in the second data list and the data changed in the first data list are sent to the upper computer, so that the data transmission efficiency of the lower computer can be improved, the power consumption of the lower computer can be reduced, and the working efficiency of the upper computer can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a vehicle data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a vehicle data processing method according to a second embodiment of the present invention;
FIG. 3 is a schematic flow chart of a vehicle data processing method according to a third embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a vehicle data processing device according to a fourth embodiment of the present invention
Fig. 5 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The vehicle data processing method provided by the embodiment of the application can be applied to a lower computer (such as a vehicle diagnosis device) and is used for screening data sent to the upper computer (such as a diagnosis computer), so that the efficiency of data transmission of the lower computer can be improved, the power consumption of the lower computer can be reduced, and the working efficiency of the upper computer can be improved. In order to explain the technical means of the present invention, the following description will be given by way of specific examples. It should be understood that the sequence numbers of the steps in the method embodiments described below do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of each embodiment.
Example one
The vehicle data processing method provided by the embodiment of the invention can be applied to terminal equipment such as a lower computer for acquiring vehicle data, and as shown in fig. 1, the vehicle processing method comprises the following steps:
step S101, if the vehicle is detected to be in a starting or running state, sending a request instruction for acquiring data to N Electronic Control Units (ECUs) of the vehicle respectively;
in the embodiment of the application, N ≧ 1 and is an integer, when the lower computer is powered on, a communication connection between the ECU in the vehicle and the lower computer can be established, and whether the vehicle is in a starting state or a traveling state can be detected, where the starting state can be a state in which the vehicle is started but not traveling, and the traveling state can be a state in which the vehicle is traveling. The detection that the vehicle is in the starting state may be the detection that the vehicle is in an actual starting state or a driving state, or the detection that the vehicle is in a simulated starting state or a driving state.
In one embodiment, the sending a request instruction for acquiring data to N electronic control units ECUs of the vehicle, if it is detected that the vehicle is in a start or running state, includes: and if the vehicle is detected to be in a starting or driving state, respectively sending request instructions for acquiring N different types of data to N Electronic Control Units (ECUs) of the vehicle. The sent request commands for acquiring the N different types of data include, but are not limited to, a request command for acquiring vehicle speed data, a request command for acquiring rotating speed data and a request command for acquiring vehicle liquid temperature.
Step S102, if the request instruction is sent within a first preset time, M first data returned by the ECU based on the request instruction are received;
in the embodiment of the application, M ≧ 1 and is an integer, after the lower computer sends the request instruction to the internal ECU of the vehicle, the ECU inside the vehicle returns corresponding first data to the lower computer according to the received request instruction, and the lower computer can receive M first data returned by the ECU based on the request instruction.
Step S103, taking the M first data as first key values, configuring corresponding key value names, storing the first key values and the corresponding configured key value names into a first data list as first key value pairs, and sending the first data list to an upper computer;
in the embodiment of the application, the M pieces of first data returned by the ECU in the vehicle according to the request command are received through step S102, the M pieces of first data may be allocated with corresponding key value names, and the M pieces of data and the correspondingly allocated key value names are stored in the first data list. And storing the first data list into a small memory which is arranged in the lower computer in advance, and sending the first data list to the upper computer.
In one embodiment, sending the first data list to an upper computer includes: and decoding the key value pairs in the first data list into first data information and then sending the first data information to an upper computer, so that the upper computer judges the vehicle running state according to the first data information. The data in the first data list can be decoded and packaged according to a preset format, the corresponding serial port and other parameters are configured to be packaged into first data information, the first data information is sent to the upper computer, and the upper computer can analyze the received first data information so as to judge the running state of the vehicle.
Step S104, if the first data list is sent to the upper computer within a second preset time, I second data returned by the ECU based on the request instruction are received;
in this embodiment of the application, where I ≧ 1 and is an integer, the sending of the first data list to the upper computer in the second preset time may be in a second preset time after the sending of the first data list to the upper computer, or may be in a second preset time after receiving an mth data returned by the ECU, and then the receiving of the I second data returned by the ECU continues.
Step S105, taking the I second data as second key values, configuring corresponding key value names, and storing the second key values and the correspondingly configured key value names into a second data list as second key value pairs;
in the embodiment of the application, the first data and the second data are stored in the second data list, and the first data and the second data are respectively configured with corresponding key value names after the first data and the second data are received from the ECU in the vehicle according to the request command in step S104. And storing the second data list into a small memory which is pre-arranged in the lower computer, and sending the second data list to the upper computer.
Step S106, judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list;
in this embodiment of the application, the first data list and the second data list are stored in a memory pre-configured by the lower computer. And comparing the key value names stored in the first data list and the second data list, judging whether the key values in the key value pairs with the same key value name in the first data list and the second data list are the same, and if the key value pairs with the same key value name but different key values exist in the first data list and the second data list, taking the key value pairs as second key value pairs.
And S107, if the key value name exists, sending the second key value pair which is the same as the key value name in the first data list and has different key values to the upper computer.
In this embodiment of the application, sending the second key-value pair, which has the same key-value name and different key-values as those in the first data list, in the second data list to the upper computer may be understood as: and sending the data which changes in a second preset time period relative to the first preset time period in the running process of the vehicle to the upper computer, wherein the data which does not change is not sent to the upper computer.
In one embodiment, the sending, to the upper computer, the second key-value pair that is the same in key-value name and different in key value as in the first data list includes: and decoding the second key value pairs with the same key value name and different key values in the first data list into second data information, and sending the second data information to the upper computer, so that the upper computer judges the running state of the vehicle according to the second data information. The data in the second data list can be decoded and packaged according to a preset format, the corresponding serial port isoparametric package second data information is configured again, the second data information is sent to the upper computer, and the upper computer can analyze according to the received second data information, so that the change of the running state of the vehicle is judged.
And S108, deleting the first data list stored in the lower computer, and storing the second data list as the first data list.
In the embodiment of the present application, after the second key-value pair is sent to the upper computer in step S107, the first data list is deleted, and the second data list is stored as the first data list.
Therefore, in the embodiment of the application, if the request instruction is sent within a first preset time, M pieces of first data returned by the ECU based on the request instruction are received; taking the M first data as first key values, configuring corresponding key value names, storing the first key values and the corresponding configured key value names into a first data list as first key value pairs, and sending the first data list to an upper computer; receiving I second data returned by the ECU based on the request instruction, taking the I second data as second key values, configuring corresponding key value names, and storing the second key values and the corresponding configured key value names into a second data list as second key value pairs; judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list; and if the key value exists, sending the second key value pair which has the same key value name and different key values in the first data list to the upper computer. Only the data changed in the second data list and the data changed in the first data list are sent to the upper computer, so that the data transmission efficiency of the lower computer can be improved, the power consumption of the lower computer can be reduced, and the working efficiency of the upper computer can be improved.
Example two
This embodiment is a further description of the first embodiment, and the same or similar places of this embodiment as the first embodiment may specifically refer to the related description of the first embodiment, which is not repeated herein, and as shown in fig. 2, after the step S108, the method further includes:
step S201, if the Kth preset time after the Kth-1 data list is sent to the upper computer is within the Kth preset time, Q Kth data returned by the ECU based on the request instruction are received; wherein Q ≧ 1 is an integer, and K ≧ 3 is an integer.
In the embodiment of the application, the sending of the kth data list to the upper computer in the kth preset time may be in the kth preset time after the sending of the kth data list to the upper computer, or may be in the second preset time after the kth-1 receives the last data returned by the ECU, and the Q kth data returned by the ECU are continuously received.
Step S202, taking the Q Kth data as Kth key values, configuring corresponding key value names, and storing the Kth key values and the corresponding configured key value names into a Kth data list as Kth key value pairs;
in the embodiment of the application, Q kth data returned by the ECU in the vehicle according to the request command are received through step S201, the Q kth data may be respectively configured with corresponding key value names, and the Q kth data and the correspondingly configured key value names are stored in the kth data list. The Kth data list can be stored in a small memory preset in the lower computer, and the Kth data list is sent to the upper computer.
Step S203, determining whether a kth key-value pair having the same key-value name and different key values as those in the first data list exists in the kth data list.
In this embodiment of the application, the first data list and the kth data list are stored in a memory configured by the lower computer. And comparing the key value names stored in the first data list and the Kth data list, judging whether the key values in the key value pairs with the same key value name in the first data list and the Kth data list are the same, and if the key value pairs with the same key value name but different key values exist in the first data list and the Kth data list, taking the key value pair as the Kth key value pair.
Step S204, if the key name exists, the Kth key value pair different from the key value name in the first data list is sent to an upper computer;
in this embodiment of the application, a kth key value pair having the same key value name and different key values as those in the first data list exists in the kth data list, and the kth key value pair having the same key value name and different key values as those in the first data list in the kth data list is sent to the upper computer, which can be understood as: and transmitting the data which changes in the K preset time period relative to the K-1 preset time period in the running process of the vehicle to the upper computer, and not transmitting the data which does not change to the upper computer.
And S205, deleting the first data list stored in the lower computer, and storing the Kth data list as a first data list.
In the embodiment of the application, after the kth key value pair is sent to the upper computer after step S204, the first data list is deleted, and the kth data list is stored as the first data list.
Therefore, in the embodiment of the invention, the data received at the K-1 th time is used as the first data list, and only the data which is changed in the K data list and the first data list is sent to the upper computer, so that the data transmission efficiency of the lower computer can be improved, the power consumption of the lower computer can be reduced, and the working efficiency of the upper computer can be improved.
EXAMPLE III
This embodiment is further described in the first embodiment or the second embodiment, and the same or similar places in this embodiment as those in the first embodiment or the second embodiment may specifically refer to the related descriptions in the first embodiment or the second embodiment, which are not repeated herein, and as shown in fig. 3, the step S103 includes:
step S301, using the M first data as M first key values, and determining whether all request instruction types associated with the M first key values are different.
In this embodiment of the application, the request instruction associated with the first key value may be understood as: the first data corresponding to the first key value is returned according to what type of request instruction. If the first data corresponding to the first key value is the first data returned according to the request command requesting to acquire the vehicle speed data, the request command type associated with the first key value is the request command type for acquiring the vehicle speed data; and if the first data corresponding to the first key value is the first data returned according to the request instruction for requesting to acquire the vehicle liquid temperature data, the request instruction type associated with the first key value is the request instruction type for acquiring the vehicle liquid temperature data.
Step S302, if the request instruction types associated with the M first key values are all different, respectively configuring corresponding key value names according to the request instruction types associated with the M first key values.
In this embodiment of the application, if the request instruction types associated with the M first key values are all different, corresponding key value names are respectively configured according to the request instruction types associated with the M first key values, for example, a key value name corresponding to a vehicle speed corresponds to a key value name representing vehicle speed identification information, a key value name corresponding to a vehicle liquid temperature corresponds to a key value name representing a vehicle liquid temperature identification, and the like.
Step S303, if there are L request instructions of the same type in the request instruction types associated with the M first key values, selecting one first key value corresponding to the request instruction of the same type according to a preset condition and configuring a corresponding key value name, and configuring the M-L first key values corresponding to the request instructions of different types with the corresponding key value names respectively; wherein 2 ≦ L ≦ M and L is an integer.
In this embodiment of the application, if there are L request instructions of the same type in the request instruction types associated with the M first key values, and if there are more than two request instructions of the same type in the M request instructions, one of the L first key values corresponding to the request instructions of the same type is selected according to a preset condition to configure a corresponding key value name, and if the last received data can be selected from a plurality of data returned by the request instructions of the same type as the first key value and configure the corresponding key value name, the data returned by the request instructions of different types are configured with the corresponding key value names, respectively.
Step S304, storing the first key value and the correspondingly configured key value name as a first key value pair in a first data list.
In the embodiment of the application, data with configured key value names is used as a first key value and a corresponding key value name is used as a first key value pair to be stored in a first data list.
Therefore, in the embodiment of the application, only the data changed in the second data list and the data changed in the first data list are sent to the upper computer, so that the data transmission efficiency of the lower computer can be improved, the power consumption of the lower computer can be reduced, and the working efficiency of the upper computer can be improved.
Example four
The embodiment of the present invention provides a vehicle data processing apparatus, which can be integrated into a lower computer for detecting a vehicle state, and is configured to execute the method steps in the first embodiment, the second embodiment and the embodiments, for convenience of description, only the relevant parts of the present invention are shown, as shown in fig. 4, where the vehicle data processing apparatus 400 includes:
a first sending module 401, configured to send a request instruction for acquiring data to N electronic control units ECUs of a vehicle, respectively, if it is detected that the vehicle is in a start or running state; wherein N is ≧ 1 and an integer;
a first receiving module 402, configured to receive, if the first preset time after the request instruction is sent, M first data returned by the ECU based on the request instruction; wherein M is ≧ 1 and an integer;
a first configuration module 403, configured to use the M first data as first key values and configure corresponding key value names, store the first key values and the correspondingly configured key value names as first key value pairs in a first data list, and send the first data list to an upper computer;
a second receiving module 404, configured to receive I second data returned by the ECU based on the request instruction if the first data list is sent to the upper computer within a second preset time; wherein I is ≧ 1 and an integer;
a second configuration module 405, configured to use the I pieces of second data as second key values, configure corresponding key value names, and store the second key values and the correspondingly configured key value names as second key value pairs in a second data list;
a first determining module 406, configured to determine whether a second key-value pair having the same key-value name and different key-values as those in the first data list exists in the second data list; the first data list and the second data list are stored in a memory configured by the lower computer;
and the second sending module 407 is configured to send, if the second key value pair exists, the second key value pair with the same key value name and different key values as those in the first data list to the upper computer.
In one embodiment, the vehicle data processing apparatus further includes:
the first storage module 408 is configured to delete the first data list stored in the lower computer, and store the second data list as the first data list.
In one embodiment, the vehicle data processing apparatus further includes:
a third receiving module 409, configured to receive Q kth data returned by the ECU based on the request instruction if the kth data list is sent to the upper computer within a kth preset time; wherein Q is ≧ 1 and an integer, and K is ≧ 3 and an integer;
a second configuration module 410, configured to use the Q kth data as kth key values and configure corresponding key value names, and store the kth key values and the correspondingly configured key value names as kth key value pairs in a kth data list;
a second determining module 411, configured to determine whether a kth key-value pair with the same key-value name and different key values as those in the first data list exists in the kth data list;
a third sending module 412, configured to send, if the key name exists, the kth key value pair different from the key name in the first data list to the upper computer;
and the second storage module 413 is configured to delete the first data list stored in the lower computer, and store the kth data list as the first data list.
In an embodiment, the first configuration module 403 is specifically configured to:
and the M pieces of first data are used as first key values, corresponding key value names are configured, the key value pairs in the first data list are decoded into first data information and then sent to an upper computer, and the upper computer is enabled to judge the vehicle running state according to the first data information.
In an embodiment, the second sending module 407 is specifically configured to:
if a second key value pair which is the same as the key value name in the first data list and different in key value exists, the second key value pair which is the same as the key value name in the first data list and different in key value is decoded into second data information and then sent to an upper computer, and the upper computer is enabled to judge the running state of the vehicle according to the second data information.
In one embodiment, the first sending module 401 is specifically configured to:
and if the vehicle is detected to be in a starting or driving state, respectively sending request instructions for acquiring N different types of data to N Electronic Control Units (ECUs) of the vehicle.
In one embodiment, the first configuration module 403 includes:
a first judging unit, configured to use the M first data as M first key values, and judge whether request instruction types associated with the M first key values are all different;
a first configuration unit, configured to, if the request instruction types associated with the M first key values are all different, configure corresponding key value names according to the request instruction types associated with the M first key values, respectively;
a second configuration unit, configured to, if there are L request instructions of the same type in the request instruction types associated with the M first key values, select one of the L first key values corresponding to the request instructions of the same type according to a preset condition and configure a corresponding key value name, and configure the M-L first key values corresponding to the request instructions of different types with corresponding key value names, respectively; wherein 2 ≦ L ≦ M and L is an integer;
and the first storing unit is used for storing the first key value and the correspondingly configured key value name as a first key value pair into a first data list.
Therefore, in the embodiment of the invention, if within a first preset time after the request instruction is sent, M first data returned by the ECU based on the request instruction are received; taking the M first data as first key values, configuring corresponding key value names, storing the first key values and the corresponding configured key value names into a first data list as first key value pairs, and sending the first data list to an upper computer; if the first data list is sent to the upper computer within a second preset time, I pieces of second data returned by the ECU based on the request instruction are received, the I pieces of second data are used as second key values and are configured with corresponding key value names, and the second key values and the corresponding configured key value names are used as second key value pairs and are stored into a second data list; judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list; and if the key value exists, sending the second key value pair which has the same key value name and different key values in the first data list to the upper computer. Only the data changed in the second data list and the data changed in the first data list are sent to the upper computer, so that the data transmission efficiency of the lower computer can be improved, the power consumption of the lower computer can be reduced, and the working efficiency of the upper computer can be improved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device 500 includes: a processor 501, a memory 502 and a computer program 503 stored in the memory 502 and executable on the processor 501. The processor 501 executes the computer program 503 to implement the steps of the vehicle data processing method embodiments, such as the method steps of the first embodiment, the method steps of the second embodiment, and/or the method steps of the third embodiment.
Illustratively, the computer program 503 may be divided into one or more units/modules, which are stored in the memory 502 and executed by the processor 501 to implement the present invention. The one or more units/modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 503 in the terminal device 500. For example, the computer program 503 may be divided into a first sending module, a first receiving module, a first configuration module, a second receiving module, a second configuration module, a first determining module, a second sending module, a first storage module, a third receiving module, a second configuration module, a second determining module, a third sending module, a second storage module, and the like, and specific functions of the modules are described in the fourth embodiment, which is not described herein again.
The terminal device 500 may be a lower computer (such as a vehicle diagnosis device or a sensor) for detecting vehicle information, and the upper computer may be a terminal device such as a mobile terminal, a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device 500 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that fig. 5 is only an example of the terminal device 500 and does not constitute a limitation to the terminal device 500, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device 500 may further include an input-output device, a network access device, a bus, etc.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 502 may be an internal storage unit of the terminal device 500, such as a hard disk or a memory of the terminal device 500. The memory 502 may also be an external storage device of the terminal device 500, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 500. Further, the memory 502 may include both an internal storage unit and an external storage device of the terminal device 500. The memory 502 is used to store the computer programs and other programs and data required by the terminal device 500. The memory 502 described above may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the terminal device may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the above-described modules or units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the embodiments of the method when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media excludes electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A vehicle data processing method, characterized by comprising:
if the vehicle is detected to be in a starting or running state, respectively sending a request instruction for acquiring data to N Electronic Control Units (ECUs) of the vehicle;
if the first preset time after the request instruction is sent is within the first preset time, M first data returned by the ECU based on the request instruction are received;
taking the M first data as first key values and configuring corresponding key value names, storing the first key values and the corresponding configured key value names into a first data list as first key value pairs, storing the first data list into a memory of a lower computer in advance, and sending the first data list to the upper computer;
if the first data list is sent to the upper computer within a second preset time, I second data returned by the ECU based on the request instruction are received, wherein the second preset time is a preset time after M data returned by the electronic control unit ECU are received;
taking the I second data as second key values and configuring corresponding key value names, storing the second key values and the corresponding configured key value names into a second data list as second key value pairs, and storing the second data list into a memory which is arranged in the lower computer in advance;
judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list;
if the key value exists in the first data list, the second key value pair which is the same as the key value name in the first data list and different in key value is sent to the upper computer;
the sending the second key value pair with the same key value name and different key values in the first data list to the upper computer comprises:
decoding the second key value pairs which have the same key value name and different key values in the first data list into second data information, and sending the second data information to an upper computer to enable the upper computer to judge the running state of the vehicle according to the second data information;
taking the M first data as first key values, configuring corresponding key value names, and storing the first key values and the corresponding configured key value names as first key value pairs in a first data list, including:
taking the M first data as M first key values, and judging whether request instruction types associated with the M first key values are different;
if the request instruction types associated with the M first key values are different, respectively configuring corresponding key value names according to the request instruction types associated with the M first key values;
if L request instructions of the same type exist in the request instruction types related to the M first key values, selecting one first key value corresponding to the request instruction of the same type according to a preset condition and configuring a corresponding key value name, and respectively configuring the M-L first key values corresponding to the request instructions of different types with the corresponding key value names; wherein 2 ≦ L ≦ M and L is an integer;
and storing the first key value and the correspondingly configured key value name as a first key value pair into a first data list.
2. The vehicle data processing method according to claim 1, further comprising, after sending the second key-value pair having the same key-value name and different key-value as those in the first data list to the host computer:
and deleting the first data list stored in the lower computer, and storing the second data list as the first data list.
3. The vehicle data processing method according to claim 2, further comprising, after deleting the first data list stored in the lower computer and storing the second data list as the first data list:
if the Kth data list is sent to the upper computer within the Kth preset time, Q Kth data returned by the ECU based on the request instruction are received; wherein Q is ≧ 1 and an integer, and K is ≧ 3 and an integer;
taking the Q Kth data as Kth key values, configuring corresponding key value names, and storing the Kth key values and the corresponding configured key value names into a Kth data list as Kth key value pairs;
judging whether a Kth key value pair with the same key value name and different key values as those in the first data list exists in the Kth data list or not;
if yes, sending the Kth key value pair different from the key value name in the first data list to an upper computer;
and deleting the first data list stored in the lower computer, and storing the Kth data list as a first data list.
4. The vehicle data processing method according to any one of claims 1 to 3, wherein the sending the first data list to an upper computer includes:
and decoding the key value pairs in the first data list into first data information and then sending the first data information to an upper computer, so that the upper computer judges the vehicle running state according to the first data information.
5. The vehicle data processing method according to any one of claims 1 to 3, wherein the sending a request instruction for acquiring data to N Electronic Control Units (ECUs) of the vehicle, respectively, if it is detected that the vehicle is in a starting or running state, includes:
and if the vehicle is detected to be in a starting or driving state, respectively sending request instructions for acquiring N different types of data to N Electronic Control Units (ECUs) of the vehicle.
6. A vehicular data processing apparatus characterized by comprising:
the first sending module is used for respectively sending a data acquisition request instruction to N Electronic Control Units (ECU) of the vehicle if the vehicle is detected to be in a starting or running state;
the first receiving module is used for receiving M pieces of first data returned by the ECU based on the request instruction if the first preset time is within the first preset time after the request instruction is sent;
the first configuration module is used for taking the M first data as first key values and configuring corresponding key value names, storing the first key values and the corresponding configured key value names into a first data list as first key value pairs, storing the first data list into a memory which is pre-arranged in a lower computer, and sending the first data list to the upper computer;
the second receiving module is used for receiving I second data returned by the ECU based on the request instruction if the first data list is sent to a second preset time after the first data list is sent to the upper computer, wherein the second preset time is a preset time after the M data returned by the electronic control unit ECU are received;
the second configuration module is used for taking the I second data as second key values and configuring corresponding key value names, storing the second key values and the correspondingly configured key value names into a second data list as second key value pairs, and storing the second data list into a memory which is arranged in the lower computer in advance;
the first judging module is used for judging whether a second key value pair with the same key value name and different key values as those in the first data list exists in the second data list;
the second sending module is used for sending the second key value pair which has the same key value name and different key values in the first data list to the upper computer if the second key value pair exists;
the second sending module is specifically configured to:
if a second key value pair which is the same as the key value name in the first data list and different in key value exists, decoding the second key value pair which is the same as the key value name in the first data list and different in key value into second data information, and then sending the second data information to an upper computer, so that the upper computer judges the running state of the vehicle according to the second data information;
the first configuration module comprises:
a first judging unit, configured to use the M first data as M first key values, and judge whether request instruction types associated with the M first key values are all different;
a first configuration unit, configured to, if the request instruction types associated with the M first key values are all different, configure corresponding key value names according to the request instruction types associated with the M first key values, respectively;
a second configuration unit, configured to, if there are L request instructions of the same type in the request instruction types associated with the M first key values, select one of the L first key values corresponding to the request instructions of the same type according to a preset condition and configure a corresponding key value name, and configure the M-L first key values corresponding to the request instructions of different types with corresponding key value names, respectively; wherein 2 ≦ L ≦ M and L is an integer;
and the first storing unit is used for storing the first key value and the correspondingly configured key value name as a first key value pair into a first data list.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201811435025.9A 2018-11-28 2018-11-28 Vehicle data processing method and device Active CN109597813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811435025.9A CN109597813B (en) 2018-11-28 2018-11-28 Vehicle data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811435025.9A CN109597813B (en) 2018-11-28 2018-11-28 Vehicle data processing method and device

Publications (2)

Publication Number Publication Date
CN109597813A CN109597813A (en) 2019-04-09
CN109597813B true CN109597813B (en) 2022-01-04

Family

ID=65960368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811435025.9A Active CN109597813B (en) 2018-11-28 2018-11-28 Vehicle data processing method and device

Country Status (1)

Country Link
CN (1) CN109597813B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335737A (en) * 2008-08-05 2008-12-31 中兴通讯股份有限公司 Network processor and data processing method thereof
CN102073494A (en) * 2010-12-30 2011-05-25 用友软件股份有限公司 Method and device for managing cache data
CN106716379A (en) * 2016-11-01 2017-05-24 达闼科技(北京)有限公司 Data processing method, device and terminal device
CN108874344A (en) * 2018-06-15 2018-11-23 深圳市轱辘汽车维修技术有限公司 A kind of method for refreshing data, terminal device and computer-readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200634594A (en) * 2005-03-31 2006-10-01 Fortune Motors Co Ltd Automobile inspection and repairs system
KR101542987B1 (en) * 2014-04-25 2015-08-12 현대자동차 주식회사 Diagnostic system and method for vehicle terminal
CN106993056A (en) * 2017-05-12 2017-07-28 深圳市元征科技股份有限公司 Car data stream acquisition methods, system and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335737A (en) * 2008-08-05 2008-12-31 中兴通讯股份有限公司 Network processor and data processing method thereof
CN102073494A (en) * 2010-12-30 2011-05-25 用友软件股份有限公司 Method and device for managing cache data
CN106716379A (en) * 2016-11-01 2017-05-24 达闼科技(北京)有限公司 Data processing method, device and terminal device
CN108874344A (en) * 2018-06-15 2018-11-23 深圳市轱辘汽车维修技术有限公司 A kind of method for refreshing data, terminal device and computer-readable medium

Also Published As

Publication number Publication date
CN109597813A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN111198790B (en) Robot testing method, robot testing device and robot
CN108701044B (en) Interface switching method, system, equipment and computer readable storage medium
CN107682441B (en) Remote control method, mobile terminal and PC (personal computer) terminal
CN111813095A (en) Vehicle diagnosis method, device and medium
CN109857085B (en) Method and system for generating driving data in simulation mode, simulation terminal and test system
CN113703868A (en) Vehicle diagnostic software configuration method, electronic device and readable storage medium
CN108965403B (en) Operation and maintenance monitoring connection establishing method and terminal equipment
CN113114659B (en) Diagnostic equipment detection method and device, terminal equipment and storage medium
CN113489653A (en) Message sending method and device and computer equipment
CN109597813B (en) Vehicle data processing method and device
CN111143092B (en) Fault recording data processing method, system and terminal equipment
CN113094087A (en) Software configuration method, electronic device and storage medium
CN111913472A (en) Operation mode control method of vehicle diagnostic device and related device
CN107885674B (en) Bluetooth device simulator, working method thereof and Bluetooth device operating system
CN112712610B (en) Vehicle diagnosis log processing method and device, terminal equipment and readable storage medium
CN114756585A (en) Vehicle data acquisition method and device, electronic equipment and storage medium
CN114326673A (en) Vehicle remote diagnosis method and device, connector and storage medium
CN112948013B (en) Application probe configuration method and device, terminal equipment and storage medium
CN115687223A (en) Method and device for serial port communication of embedded equipment, embedded equipment and storage medium
CN113985844A (en) ECU parameter configuration method and device, electronic equipment and storage medium
CN114442590A (en) Vehicle diagnosis method, apparatus, diagnosis communication device, server, and storage medium
CN110377272B (en) Method and device for realizing SDK based on TBOX
CN109976778B (en) Software updating method and system of vehicle electronic product, upper computer and storage medium
CN114239301A (en) Simulation scene generation method and device
CN113472611A (en) Method and device for acquiring WiFi signal strength and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Bantian street, Longgang District of Shenzhen City, Guangdong province 518000 yuan and five Avenue sign technology plant No. 1 building 4 floor

Applicant after: SHENZHEN GOLO CHELIAN DATA TECHNOLOGY Co.,Ltd.

Address before: Bantian street, Longgang District of Shenzhen City, Guangdong province 518000 yuan and five Avenue sign technology plant No. 1 building 4 floor

Applicant before: GOLO IOV DATA TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant