CN112804165B - Vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition - Google Patents

Vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition Download PDF

Info

Publication number
CN112804165B
CN112804165B CN202011546170.1A CN202011546170A CN112804165B CN 112804165 B CN112804165 B CN 112804165B CN 202011546170 A CN202011546170 A CN 202011546170A CN 112804165 B CN112804165 B CN 112804165B
Authority
CN
China
Prior art keywords
track
vehicle
data
message
mileage
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
CN202011546170.1A
Other languages
Chinese (zh)
Other versions
CN112804165A (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.)
Dongfeng Motor Corp
Original Assignee
Dongfeng Motor Corp
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 Dongfeng Motor Corp filed Critical Dongfeng Motor Corp
Priority to CN202011546170.1A priority Critical patent/CN112804165B/en
Publication of CN112804165A publication Critical patent/CN112804165A/en
Application granted granted Critical
Publication of CN112804165B publication Critical patent/CN112804165B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The invention provides a vehicle running track calculation method based on data acquisition of a vehicle-mounted communication terminal, which comprises the following steps: acquiring vehicle acquisition data through a vehicle-mounted communication terminal, extracting engine state data in the vehicle acquisition data, and forming a corresponding track message according to the engine state data; combining the track messages into a data packet, transferring the data packet to a data packet queue, and uploading the data packet queue; and calculating the vehicle running track according to the message data in the data packet queue, extracting the engine state data in the vehicle acquisition data, and forming a corresponding track message according to the state data, thereby ensuring the orderliness of the track message.

Description

Vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition
Technical Field
The invention relates to the field of automotive electronics, in particular to a vehicle running track calculation method based on data acquisition of a vehicle-mounted communication terminal.
Background
At present, only 1 track message queue buffer area is arranged in the normal uploading process of vehicle-mounted communication terminal data T-Box, and messages are immediately sent after being combined into data packets. And the sending priority of the data packet consisting of the current message is higher than that of the data packet which is failed to be sent historically. This results in that the trace data cannot be uploaded when the T-Box encounters poor network conditions, and thus enters the upload failure packet queue. When the T-Box network returns to normal, the currently formed data packet is uploaded first, so that the data received by the server is in disorder in sequence. Further, the server may generate more uncertainty when calculating the trajectory, for example, the trajectory is lost, and the acquisition time of the message is the GPS time used by the T-Box, but the GPS time may not be acquired occasionally after practice. At this time, the collection time in the message becomes invalid, and the background analyzes from the collection time, so that the track message time is disordered, and therefore a vehicle running track calculation method based on vehicle-mounted communication terminal data collection is urgently needed, and the ordering of the track message is ensured.
Disclosure of Invention
The invention aims to provide a vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition, which ensures the orderliness of track messages by extracting engine state data in vehicle acquisition data and forming corresponding track messages according to the state data.
The invention also aims to divide the message packet uploading process into a message packet uploading process and a data uploading process, so that the data uploading sequence is ensured, and the track loss is effectively avoided.
The invention also aims to provide a method for calculating the vehicle running track, which is used for calculating the track according to the track message types respectively, so that the accuracy of track calculation is ensured.
The technical scheme provided by the invention is as follows:
a vehicle driving track calculation method based on vehicle-mounted communication terminal data acquisition comprises the following steps:
acquiring vehicle acquisition data through a vehicle-mounted communication terminal, extracting engine state data in the vehicle acquisition data, and forming a corresponding track message according to the state data;
combining the track messages into a data packet, transferring the data packet to a data packet queue, and uploading the data packet queue;
and calculating the vehicle running track according to the message data in the data packet queue.
Preferably, the track message forming process includes the following steps:
judging the corresponding engine running state according to the engine state data;
if the running state of the transmitter is changed and the engine is in the running state, forming an ignition track message;
if the running state of the transmitter is not changed and the engine is in the running state, forming a common track message;
and if the running state of the transmitter is changed and the engine is in a non-running state, forming a flameout point track message.
Preferably, the method further comprises the following steps:
extracting vehicle condition data in the vehicle acquisition data, and acquiring driving data of the vehicle;
forming a track message and transferring the track message to a track message queue;
wherein the vehicle condition data comprises driving mileage and average fuel consumption;
the travel data of the vehicle includes vehicle travel position coordinates in a global positioning system and vehicle location time in a corresponding global positioning system.
Preferably, the process of combining the trace packets into the data packet includes the following steps:
acquiring the number of the track message queues, and comparing the number with a threshold value;
if the number of the track message queues is not zero and is less than a threshold value, if the engine is in a non-running state, combining all the track message queues into a data packet;
if the number of the track message queues is not zero and is smaller than the threshold value, the engine is in a running state, and waiting is delayed until the number of the track message queues is larger than the threshold value;
if the number of the track message queues is larger than the threshold value, combining the threshold value and one track message queue into one data packet;
and creating a data packet queue, moving the data packet to the tail of the data packet queue, and deleting all messages in the trace message queue in the data packet.
Preferably, the process of uploading the data packet queue includes the following steps:
acquiring the number of the data packet queues, and delaying waiting until the number of the data packet queues is larger than zero;
and uploading the data packets in the data packet queue one by one, and deleting the data contained in the data packets in the data packet queue.
Preferably, the calculation process of the vehicle travel track includes the steps of:
acquiring message data in the data packet queue and judging the type of the track message;
respectively carrying out track calculation according to the types of the track messages;
the track message types comprise an ignition track message, a common track message and a flameout point track message.
Preferably, the type of the track message is an ignition track message, and the track calculation process is as follows:
setting the ignition track message acquisition time as an effective value by modifying the system receiving time;
calculating the difference value between the acquisition time of the ignition track message and the acquisition time of the last flameout point;
if the difference is larger than the time threshold, generating track calculation data;
if the difference is smaller than the time threshold, closing a timer;
modifying the track message of the previous flameout point and the track message of the current ignition point into a common track message;
recording the ignition track message and performing track tracing;
setting mileage limiting conditions and oil consumption limiting conditions;
if the total driving mileage of the vehicle meets the mileage limiting condition, covering the total driving mileage of the vehicle to a total ending mileage cache;
if the average oil consumption meets the oil consumption limiting condition, covering the oil consumption numerical value to an average oil consumption cache, and generating track calculation data;
wherein, the total mileage traveled by the vehicle satisfying the mileage limiting condition includes: the total vehicle mileage is greater than zero, the total vehicle mileage is an effective value, and the total vehicle mileage is greater than an initial total mileage;
the mileage limiting condition includes: the average oil consumption is more than zero and the average oil consumption is an effective value;
preferably, the type of the track message is a flameout point track message, and the track calculation process is as follows:
setting the flameout point track message acquisition time as an effective value by modifying the system receiving time;
recording the flameout point track message data and performing track tracing;
generating track calculation data, finishing the timer and emptying the track calculation data;
wherein the trajectory situation data comprises: average fuel consumption, initial total mileage and total route caching.
Preferably, the type of the track message is a common track message, and the track calculation process includes the following steps:
setting the common track message acquisition time as an effective value by modifying the system receiving time;
recording the acquisition time of the common track message and performing track tracing;
if the total driving mileage value of the vehicle meets the preset condition at the same time, the initial total mileage is empty, and the mileage value is covered to the initial total mileage cache;
if the total driving mileage value of the vehicle meets the limiting condition at the same time and the initial total mileage is not empty, covering the mileage value to an end total mileage cache;
if the average oil consumption meets the oil consumption limiting condition, covering the oil consumption numerical value to an average oil consumption cache;
wherein the preset conditions include: the total driving mileage of the vehicle is greater than zero and the total driving mileage of the vehicle is an effective value.
Preferably, the trajectory calculation data is obtained by:
if the total driving mileage of the vehicle meets the mileage limiting condition, the total driving mileage of the vehicle is covered to a total finish mileage cache;
and if the average oil consumption meets the oil consumption limiting condition, covering the oil consumption numerical value to an average oil consumption cache.
Advantageous effects
According to the vehicle driving track calculation method based on the vehicle-mounted communication terminal data acquisition, the engine state data in the vehicle acquisition data are extracted, and the corresponding track message is formed according to the state data, so that the orderliness of the track message is ensured, and the problem of disorder of the data of the track message uploaded by the T-Box is solved.
The invention divides the packet uploading process into the packet uploading process and the data uploading process, ensures the data uploading sequence, effectively avoids the track loss, and solves the problems of abnormal track mileage statistics problem solution and abnormal track oil consumption statistics caused by abnormal T-Box data uploading.
According to the method, the track calculation is respectively carried out according to the types of the track messages, the accuracy of the track calculation is ensured, the invalid data are secondarily avoided in the background, the problem of vehicle track segmentation of an automatic start-stop function is solved, the track is ensured to be attached to the reality as much as possible, and the vehicle track is complete and is not lost after the network is switched to the network under good conditions.
Drawings
Fig. 1 is a flowchart of a vehicle driving track calculation method based on data acquisition of a vehicle-mounted communication terminal according to the present invention.
Fig. 2 is a flowchart of a track message forming process according to the present invention.
FIG. 3 is a flow chart of a process for forming a trace message according to engine state data in accordance with the present invention.
Fig. 4 is a flowchart of an ignition trace message forming process according to the present invention.
Fig. 5 is a flowchart of a process for forming a common trace packet according to the present invention.
Fig. 6 is a flowchart of a flameout trace message forming process according to the present invention.
Fig. 7 is a flowchart of combining trace packets into a data packet according to the present invention.
Fig. 8 is a flow chart of transferring a packet to a packet queue and uploading the packet queue according to the present invention.
Fig. 9 is a flowchart illustrating calculation of a vehicle driving trajectory according to the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
It should be noted that in the description of the present invention, the terms "in", "upper", "lower", "lateral", "inner", etc. indicate directions or positional relationships based on those shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected; may be a mechanical connection; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
As shown in fig. 1-2, based on the technical problems of the background art, the present invention provides a vehicle driving track calculation method based on vehicle-mounted communication terminal data acquisition, including:
step S110, vehicle acquisition data are obtained through a vehicle-mounted communication terminal, engine state data in the vehicle acquisition data are extracted, and a corresponding track message is formed according to the state data;
step S120, combining the track messages into data packets, transferring the data packets to a data packet queue, and uploading the data packet queue;
and step S130, calculating the vehicle running track according to the message data in the data packet queue. Furthermore, the engine state data in the vehicle collected data are extracted, and the corresponding track message is formed according to the state data, so that the order of the track message is ensured.
As shown in fig. 3, the track message forming process includes the following steps:
judging the corresponding engine running state according to the engine state data;
and the T-Box judges whether the state of the engine of the vehicle is changed, if the running state of the transmitter is changed, the engine is in a running state or the electric vehicle is in a high-voltage state: immediately entering a T-Box data acquisition and forming an ignition track message flow;
the T-Box judges whether the state of the vehicle engine is changed, if the running state of the transmitter is not changed, the engine is in the running state or the electric vehicle is in the high-pressure state, the T-Box acquires data after 10 seconds and forms a 'common track message' flow;
and the T-Box judges whether the state of the engine of the vehicle is changed, if the running state of the transmitter is changed, the engine is in a non-running state or the electric vehicle is in a non-high-pressure state: and immediately entering a T-Box to acquire data and forming a 'flameout track message' flow.
And the T-Box judges whether the state of the engine of the vehicle is changed, if the running state of the transmitter is not changed, the engine is in a non-running state or the electric vehicle is in a non-high-pressure state, and the T-Box monitors the state service logic of the engine again after 1 second. Wherein, the T-Box is a vehicle-mounted communication terminal. The track message type is judged according to the change of the engine state and the running state, the accuracy is high, and the order of the track message is ensured.
As shown in fig. 4, the ignition trace message forming process includes the following steps:
extracting vehicle condition data in the vehicle acquisition data, wherein the vehicle condition data comprises a driving mileage and an average oil consumption as a preferable option;
collecting driving data of the vehicle; preferably, the running data of the vehicle is collected by satellite signals, and comprises vehicle running position coordinates in a global positioning system and vehicle positioning time in a corresponding global positioning system;
the vehicle-mounted communication terminal T-Box forms the ignition track message by the collected data;
transferring the ignition track message to a track message queue;
and repeating the steps, extracting the engine state data in the vehicle collected data, and forming a corresponding track message according to the state data.
As shown in fig. 5, the process of forming a common trace packet includes the following steps:
extracting vehicle condition data in the vehicle acquisition data, wherein the vehicle condition data comprises a driving mileage and an average oil consumption as a preferable option;
collecting driving data of the vehicle; preferably, the running data of the vehicle is acquired by satellite signals, and comprises vehicle running position coordinates in a global positioning system and vehicle positioning time in a corresponding global positioning system;
the vehicle-mounted communication terminal T-Box forms the collected data into a common track message;
transferring the common track message to a track message queue;
and repeating the steps, extracting the engine state data in the vehicle acquisition data, and forming a corresponding track message according to the state data.
As shown in fig. 6, the process of forming the misfire trace message includes the following steps:
extracting vehicle condition data in the vehicle acquisition data, wherein the vehicle condition data comprises a driving mileage and an average oil consumption as a preferable option;
collecting driving data of the vehicle; preferably, the running data of the vehicle is acquired by satellite signals, and comprises vehicle running position coordinates in a global positioning system and vehicle positioning time in a corresponding global positioning system;
the vehicle-mounted communication terminal T-Box forms flameout track messages by the collected data;
transferring the flameout track message to a track message queue;
and repeating the steps, extracting the engine state data in the vehicle collected data, and forming a corresponding track message according to the state data.
As shown in fig. 7, the uploading process of the trace message in step 120 includes two parts, which are respectively:
combining the track messages into a data packet;
transferring the data packet to a data packet queue and uploading the data packet queue;
the process of combining the track messages into the data packets comprises the following steps:
step S121, obtaining the number of track message queues, and comparing the number of track message queues with a threshold value, wherein the threshold value is a positive integer and is selected to be 4 in this embodiment as a preferred choice;
step S122, if the number of the track message queues is more than 4, combining the first 1-5 track message queues into a data packet and executing step S126;
if the number of the track message queues is less than 4, executing step S123;
step S123, judging whether the number of the track message queues is larger than zero, and if the number of the track message queues is larger than zero, executing step S124; if the number of the trace message queues is zero, executing step S127;
step S124, if the transmitter state is the running state, executing step S127;
if the engine state is the non-running state, executing step S125;
step S125, combining all the track message queues into a data packet;
step S126, a data packet queue is established, and the data packet is moved to the tail of the data packet queue; deleting all messages in the trace message queue in the data packet, and moving up the subsequent messages;
step S127 is executed with a delay of 1 second to execute step 121.
As shown in fig. 8, the process of uploading the data packet queue includes the following steps:
step S1221, judging whether the number of the data packet queues is larger than zero;
if the number of the data packet queues is greater than zero, go to step S1222; if the number of the data packet queues is zero, executing step S12225;
step S1222, uploading the degree and the data packet in the data packet queue;
step S1223, if the data packet is successfully uploaded, performing step S1224, and if the data packet is unsuccessfully uploaded, performing step S1225;
step S1224, delete successful upload data packet from data packet queue, delete step S1225, delay 3 seconds, then execute step S12221.
The invention divides the packet uploading process into the packet uploading process and the data uploading process, ensures the data uploading sequence, effectively avoids the track loss, and solves the problems of abnormal track mileage statistics problem solution and abnormal track oil consumption statistics caused by abnormal T-Box data uploading.
As shown in fig. 9, the calculation process of the vehicle travel track includes the following steps:
step S131, obtaining message data in a data packet queue, and judging and distinguishing the type of the track message; respectively calculating the track according to the type of the track message; the track message types comprise an ignition track message, a common track message and a flameout point track message.
Step S132, if the type of the track message is an ignition track message, the track calculation process is as follows:
step S133, judging whether the ignition track message acquisition time is an effective value; if not, executing step S134, and if the value is a valid value, executing step S135;
s134, modifying the track message time to the system receiving time minus 1 second;
step S135, judging whether the track calculation is started, if the track calculation is started, executing the ending operation, and if the track calculation is not started, executing the step S136;
step S136, calculating the difference value between the ignition track message acquisition time and the previous flameout point acquisition time; determining whether the difference is greater than a time threshold, which is set to 3 minutes in this embodiment
If the difference is greater than the time threshold, executing step S137;
if the difference is smaller than the time threshold, go to step S143;
step S137, starting track calculation to generate track calculation data;
step S138, recording the ignition track message and performing track tracing;
step S139, setting mileage limiting conditions; if the total driving mileage of the vehicle meets the mileage limiting condition, executing the step S140; if the total driving mileage of the vehicle does not satisfy the mileage limiting condition, executing step S141;
step S140, caching the total mileage after the total mileage of the vehicle is covered to the total mileage finishing;
step S141, setting oil consumption limiting conditions; if the average oil consumption meets the oil consumption limiting condition, executing the step S142; if the average oil consumption does not meet the oil consumption limiting condition, ending the process
Step S142; and covering the oil consumption value to an average oil consumption cache.
Step S143, judging whether the timer is started;
if the timer is started, executing step S144, and if the timer is closed, executing step S145;
and step S144, closing the timer.
S145, modifying the previous flameout point track message into a common track message;
and step S146, modifying the track message of the current ignition point into a common track message, and executing step S141.
Wherein, the vehicle total mileage that traveles satisfies the mileage limiting condition includes: the total driving mileage of the vehicle is more than zero, the total driving mileage of the vehicle is an effective value, and the total driving mileage of the vehicle is more than the initial total driving mileage
The mileage limiting conditions include: the average oil consumption is larger than zero and the average oil consumption is an effective value.
As shown in fig. 9, the type of the trace message is a misfire point trace message, and the trace calculation process is as follows:
step S151, if the type of the track message is a flameout track message, the track calculation process is as follows:
step S152, judging whether the flameout track message acquisition time is an effective value; if not, executing step S153, and if the value is a valid value, executing step S154;
step S153, modifying the track message time to be the system receiving time plus 1 second;
step S154, judging whether the track calculation is started, if so, executing the ending operation, and if not, executing step S155;
step S155, recording the flame-out point track message data and carrying out track tracing;
step S156, mileage limiting conditions are set; if the total driving mileage of the vehicle meets the mileage limiting condition, executing step S157; if the total driving mileage of the vehicle does not satisfy the mileage limiting condition, executing step S158;
step S157, the total mileage value of the vehicle is covered to the total mileage finishing cache;
step S158, setting oil consumption limiting conditions; if the average oil consumption meets the oil consumption limiting condition, executing a step S159; and if the average oil consumption does not meet the oil consumption limiting condition, ending the operation.
Step S159, covering the oil consumption value to an average oil consumption cache
Step S160, judging whether the timer is started or not;
if the timer is closed, executing step S161, and if the timer is closed, executing step S162;
step S161, start the timer.
And step S162, determining whether the timer is normally ended, if the timer is normally ended, executing step S163, and if the timer is abnormally ended, executing an ending operation.
Step S163, ending the trajectory calculation;
step S164, settlement of data such as mileage oil consumption and the like;
and S165, emptying the average oil consumption, starting the total mileage and finishing the total journey caching.
As shown in fig. 9, the type of the trace packet is a normal trace packet, and the trace calculation process includes the following steps:
step S171, if the type of the track message is a common track message, the track calculation process is as follows:
step S172, judging whether the flameout track message acquisition time is an effective value; if not, the execution is finished, and if the value is a valid value, the step S173 is executed;
step S173, determining whether the track calculation is started, if not, executing the ending operation, and if so, executing step S174;
step S174, recording the flameout point track message data and performing track tracing;
step S175, determining whether the total mileage is greater than 0 and is an invalid value, if the total mileage satisfies the condition, performing step S176, and if the total mileage does not satisfy the condition, performing step S179;
step S176, the numerical value is covered to the initial total mileage cache, and step S179 is executed
Judging whether the condition is met, if so, the total mileage is more than 0& < > invalid value & > initial total mileage, the condition that the execution numerical value is covered to the end of total mileage caching is met, and if not, executing the step S179;
and S179, judging whether the conditions are met or not, wherein the average oil consumption is more than 0& < > invalid value, if the conditions are met, executing S180, and if the conditions are not met, ending the step.
And step S180, covering the numerical value to an average oil consumption cache.
And a calculation method of the vehicle running track is provided, and track calculation is respectively carried out according to the track message types, so that the accuracy of track calculation is ensured.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is apparent to those skilled in the art that the scope of the present invention is not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (9)

1. A vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition is characterized by comprising the following steps:
acquiring vehicle acquisition data through a vehicle-mounted communication terminal, extracting engine state data in the vehicle acquisition data, and forming a corresponding track message according to the engine state data;
combining the track messages into a data packet, transferring the data packet to a data packet queue, and uploading the data packet queue;
the process of combining the track messages into the data packet comprises the following steps:
acquiring the number of the track message queues, and comparing the number with a threshold value;
if the number of the track message queues is not zero and is less than a threshold value, if the engine is in a non-running state, combining all the track message queues into a data packet;
if the number of the track message queues is not zero and is smaller than the threshold, the engine is in a running state, and waiting is delayed until the number of the track message queues is larger than the threshold;
if the number of the track message queues is larger than the threshold value, combining the threshold value and one track message queue into one data packet;
creating a data packet queue, moving the data packet to the tail of the data packet queue, and deleting all messages in the track message queue in the data packet;
and calculating the vehicle running track according to the message data in the data packet queue.
2. The vehicle driving track calculation method based on the vehicle-mounted communication terminal data acquisition as claimed in claim 1, wherein the track message forming process comprises the following steps:
judging the corresponding engine running state according to the engine state data;
if the running state of the transmitter is changed and the engine is in the running state, forming an ignition track message;
if the running state of the transmitter is not changed and the engine is in the running state, forming a common track message;
and if the running state of the transmitter is changed and the engine is in a non-running state, forming a flameout point track message.
3. The vehicle driving track calculation method based on the data acquisition of the vehicle-mounted communication terminal according to claim 1 or 2, further comprising the steps of:
extracting vehicle condition data in the vehicle acquisition data, and acquiring driving data of the vehicle;
forming a track message and transferring the track message to a track message queue;
wherein the vehicle condition data comprises driving mileage and average fuel consumption;
the travel data of the vehicle includes vehicle travel position coordinates in the global positioning system and vehicle positioning time in the corresponding global positioning system.
4. The vehicle driving track calculation method based on the data acquisition of the vehicle-mounted communication terminal according to claim 3, wherein the uploading process of the data packet queue comprises the following steps:
acquiring the number of the data packet queues, and delaying for waiting until the number of the data packet queues is greater than zero;
and uploading the data packets in the data packet queue one by one, and deleting the data contained in the data packets in the data packet queue.
5. The vehicle driving track calculation method based on the data acquisition of the vehicle-mounted communication terminal as claimed in claim 4, wherein the calculation process of the vehicle driving track comprises the following steps:
acquiring message data in the data packet queue and judging the type of the track message;
respectively carrying out track calculation according to the track message types;
the track message types comprise an ignition track message, a common track message and a flameout point track message.
6. The vehicle driving track calculation method based on the vehicle-mounted communication terminal data acquisition as claimed in claim 5, wherein the type of the track message is an ignition track message, and the track calculation process is as follows:
setting the ignition track message acquisition time as an effective value by modifying the system receiving time;
calculating the difference value between the acquisition time of the ignition track message and the acquisition time of the last flameout point;
if the difference value is larger than the time threshold value, generating track calculation data;
if the difference is smaller than the time threshold, closing a timer;
modifying the track message of the last flameout point and the track message of the current ignition point into a common track message;
recording the ignition track message and performing track tracing;
setting mileage limiting conditions and oil consumption limiting conditions;
if the total driving mileage of the vehicle meets the mileage limiting condition, the total driving mileage of the vehicle is covered to a total finish mileage cache;
if the average oil consumption meets the oil consumption limiting condition, covering the oil consumption value to an average oil consumption cache, and generating track calculation data;
wherein, the total mileage traveled by the vehicle satisfying the mileage limiting condition includes: the total driving mileage of the vehicle is greater than zero, the total driving mileage of the vehicle is an effective value, and the total driving mileage of the vehicle is greater than an initial total mileage; the mileage limiting condition includes: the average oil consumption is more than zero, and the average oil consumption is an effective value.
7. The vehicle driving track calculation method based on the vehicle-mounted communication terminal data acquisition as claimed in claim 6, wherein the type of the track message is a flameout point track message, and the track calculation process is as follows:
setting the flameout point track message acquisition time as an effective value by modifying the system receiving time;
recording the flameout point track message data and performing track tracing;
generating track calculation data, finishing the timer and emptying the track calculation data;
wherein the trajectory calculation data comprises: average fuel consumption, initial total mileage and total route caching.
8. The vehicle driving track calculation method based on the data acquisition of the vehicle-mounted communication terminal according to claim 6 or 7, wherein the type of the track message is a common track message, and the track calculation process comprises the following steps:
setting the common track message acquisition time as an effective value by modifying the system receiving time;
recording the acquisition time of the common track message and performing track tracing;
if the total driving mileage value of the vehicle meets the preset condition at the same time, the initial total mileage is empty, and the mileage value is covered to the initial total mileage cache;
if the total driving mileage value of the vehicle meets the limiting condition at the same time and the initial total mileage is not empty, covering the mileage value to an end total mileage cache;
if the average oil consumption meets the oil consumption limiting condition, covering the oil consumption numerical value to an average oil consumption cache;
wherein the preset conditions include: the total driving mileage of the vehicle is greater than zero and the total driving mileage of the vehicle is an effective value.
9. The vehicle driving track calculation method based on the vehicle-mounted communication terminal data acquisition as claimed in claim 8, wherein the track calculation data is obtained by the steps of:
if the total driving mileage of the vehicle meets the mileage limiting condition, covering the total driving mileage of the vehicle to a total ending mileage cache;
and if the average oil consumption meets the oil consumption limiting condition, covering the oil consumption numerical value to an average oil consumption cache.
CN202011546170.1A 2020-12-23 2020-12-23 Vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition Active CN112804165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011546170.1A CN112804165B (en) 2020-12-23 2020-12-23 Vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011546170.1A CN112804165B (en) 2020-12-23 2020-12-23 Vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition

Publications (2)

Publication Number Publication Date
CN112804165A CN112804165A (en) 2021-05-14
CN112804165B true CN112804165B (en) 2022-11-15

Family

ID=75805397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011546170.1A Active CN112804165B (en) 2020-12-23 2020-12-23 Vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition

Country Status (1)

Country Link
CN (1) CN112804165B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5150396B2 (en) * 2008-07-23 2013-02-20 三洋電機株式会社 Navigation device
CN106370190B (en) * 2015-07-20 2019-05-28 腾讯科技(深圳)有限公司 Automobile navigation, position mark method, apparatus and system
US9657675B1 (en) * 2016-03-31 2017-05-23 Etagen Inc. Control of piston trajectory in a free-piston combustion engine
CN106157677B (en) * 2016-08-29 2019-06-04 江苏亿科达科技发展有限公司 Vehicle scheduling management system based on intelligent back vision mirror
CN108364372B (en) * 2017-12-29 2021-02-02 广州展讯信息科技有限公司 Vehicle driving state detection method and device
CN110723132B (en) * 2019-10-24 2020-11-24 深圳技术大学 Hybrid vehicle, control method thereof and storage medium
CN111693295B (en) * 2020-05-15 2022-09-20 南斗六星系统集成有限公司 Journey analysis method and device based on vehicle engine state
CN111750948B (en) * 2020-06-02 2022-05-17 重庆长安汽车股份有限公司 Vehicle oil consumption calculation method and system

Also Published As

Publication number Publication date
CN112804165A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
US10332321B2 (en) In-vehicle unit and in-vehicle unit diagnosis system
EP3073224A1 (en) Sensor data fusion based on digital map information
US20090209282A1 (en) Wireless communication control apparatus and method for mobile objects
EP4002090A1 (en) Extrema-retentive data buffering and simplification
EP4002091A1 (en) Extrema-retentive data buffering and simplification
CN112804165B (en) Vehicle running track calculation method based on vehicle-mounted communication terminal data acquisition
CN111123336A (en) Water conservancy patrol positioning and offline track optimization method
CN111126807A (en) Stroke segmentation method and device, storage medium and electronic device
CN111930874A (en) Data acquisition method and electronic equipment
CN111721299A (en) Real-time positioning time synchronization method and device
US9817127B2 (en) Method for determining the position and/or speed of a guided vehicle and associated system
CN103634380A (en) Updating method, device and system for automobile diagnosis equipment
EP2503358A1 (en) Apparatus for decoding global navigation satellite systems navigation data and associated method
US20230119474A1 (en) Data collection system, collection center and data collection method
US20180018876A1 (en) Vehicular communication device
CN111277677B (en) ADS-B-based aircraft address code conflict detection method and system
CN110634199B (en) Terminal device, vehicle travel recording method, and computer-readable storage medium
CN108663700B (en) GPS signal loss processing system and method
CN116820611A (en) Vehicle function pushing method and system
JP2020091252A (en) Probe data evaluation device, and probe data evaluation program
CN112581776B (en) Intelligent traffic scheduling method and device and scheduling center
CN110945848B (en) Client device, data collection system, data transmission method, and program
CN116678430B (en) Driving track determining method and device, electronic equipment and readable storage medium
JP5444577B2 (en) Traffic information calculation device, program, and traffic information calculation method
JP7050903B2 (en) On-board unit, on-board unit communication method, and program

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
GR01 Patent grant
GR01 Patent grant