CN103646443A - Intelligent driving diagnostic instrument based on platform time service - Google Patents

Intelligent driving diagnostic instrument based on platform time service Download PDF

Info

Publication number
CN103646443A
CN103646443A CN201310689768.XA CN201310689768A CN103646443A CN 103646443 A CN103646443 A CN 103646443A CN 201310689768 A CN201310689768 A CN 201310689768A CN 103646443 A CN103646443 A CN 103646443A
Authority
CN
China
Prior art keywords
time
data
timer
platform
intelligence
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.)
Granted
Application number
CN201310689768.XA
Other languages
Chinese (zh)
Other versions
CN103646443B (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.)
Beijing wisdom Travel Technology Co., Ltd.
Original Assignee
BEIJING 95 ZHIJIA INFORMATION 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 BEIJING 95 ZHIJIA INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING 95 ZHIJIA INFORMATION TECHNOLOGY Co Ltd
Priority to CN201310689768.XA priority Critical patent/CN103646443B/en
Publication of CN103646443A publication Critical patent/CN103646443A/en
Application granted granted Critical
Publication of CN103646443B publication Critical patent/CN103646443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses an intelligent driving diagnostic instrument based on platform time service. The intelligent driving diagnostic instrument comprises a timing unit, a data acquisition unit, a data processing unit, a platform communication unit, a storage unit and a time calibrating unit, wherein the time calibrating unit is used for receiving timer time sent by the timing unit and standard time sent by an intelligent driving service platform, comparing the timer time with the standard time to obtain a compensation value, and calibrating the timer time through the compensation value to obtain time-service time. Therefore, time recorded by an intelligent driving diagnostic instrument system can be in accordance with the standard time.

Description

A kind of intelligence of platform time service is driven diagnostic equipment
Technical field
The present invention relates to the safety detection device of vehicle, be specifically related to a kind of platform time service intelligence and drive diagnostic equipment.
Background technology
The research that various countries scholar is devoted to traffic safety is last 100 years, for prevention and the loss that reduces traffic hazard and bring, the human factor of advising in traffic safety accident especially in improvement, intelligent transportation system, traffic safety assessment and accident forecast, the law on road traffic safety of vehicle safety design, road traffic facility and environment has respectively been carried out a large amount of research.These researchs have promoted many to guaranteeing that road safety traffic hazard played the birth of the Auto analyzer of positive effect.
Chinese invention patent < < individual driving behavior analysis management system > >, the patent No.: CN201010280297.3, a kind of individual driving behavior analysis management control system of openly knowing clearly, comprise: data reading terminals, be used for obtaining vehicle ECU service data, read automobile running working condition data, set up driver's operation behavioral data analysis and assessment model, dangerous driving behavior is reported to the police, urgent registration of vehicle casualty data, vehicle driving mileage statistics and oil consumption, whether detect vehicular discharge exceeds standard, GPS positioning equipment, for vehicle location, server, for record and analysis driving behavior data, reminds the maintenance fault of vehicle in time in conjunction with the vehicle diagnostics function of OBD, and carries out information interaction by interconnection platform and user.This invention is by multiple behavior model, extract security, economy situation that car owner drives, give car owner's guiding opinion and suggestion, and carry out warning reminding and suggestion in car steering process and internet terminal interface, thereby improve driving behavior, reach energy-saving and emission-reduction, safety guarantee, the effect of economic environmental protection.
But the time attribute of undeclared how to confirm data also wherein, and the data time that current diagnosis instrument adopts is all the relative integer time.When opening, diagnostic equipment starts by timing second, close and finish, open the reclocking of starting from scratch next time, the absolute time of its output data depends on the conventional time in diagnostic equipment, therefore the time attribute of data can not guarantee accurately, to have brought a lot of difficulties to data analysis.
Based on to the considering of diagnostic equipment function, we think that said system also lacks platform time service function, fundamentally to solve accuracy and the validity of data time, the time of system log (SYSLOG) and standard time are consistent.
In view of above-mentioned defect, creator of the present invention is through research and test have obtained the present invention finally for a long time.
Summary of the invention
The object of the invention is to overcome above-mentioned technological deficiency, provide the platform time service intelligence that a kind of time that can make system log (SYSLOG) and standard time are consistent to drive diagnostic equipment.
For achieving the above object, the technical solution used in the present invention is: provide a kind of platform time service intelligence to drive diagnostic equipment, it comprises:
One timing unit, starts timing for driving in described intelligence when diagnostic equipment is opened, and drives diagnostic equipment timer time data is provided for described intelligence;
One data acquisition unit, it is connected with described timing unit, for gathering described timer time data;
One data processing unit, it is connected with described data acquisition unit, for receiving described timer time data, and it is processed;
One platform communication single unit, its input end be connected with described data processing unit and, its output terminal is driven service platform with described intelligence and is connected, for receiving the data that described data processing unit processes and uploading to described intelligence, drive service platform, or receive described intelligence and drive the instruction of service platform and be transferred to described data processing unit;
One storage unit, its input end is connected with described data processing unit, its output terminal is connected with described platform communication single unit, when described platform communication single unit cannot uploading data, store the data that this cannot be uploaded, or when described platform communication single unit and described intelligence are driven service platform and recovered to be connected, the described data transmission that cannot upload is first to described platform communication single;
One time alignment unit, unit received described timer time and described intelligence and drove the standard time that service platform sends described time calibration, described timer time and described standard time are contrasted to rear acquisition offset, and with described offset, described timer is obtained to the time service time after time calibration; Described time calibration, unit was also encrypted the described time service time, encrypted formula to be:
C=[C 1÷8]×10+C 1%8 (12)
In formula, C 1by following formula (13), determined,
C 1=P 11%48 (13)
In above formula, P represents that expressly C represents ciphertext, C 1represent intermediate variable.
Preferably, described time calibration, unit comprised a timer time processing module, a standard time processing module, an offset acquisition module and a time calibration and encrypting module; Described timer time processing module receives the timer time data of described timing unit transmission and processes; Described standard time processing module receives described intelligence and drives the standard time data of service platform transmission and process; The data that described offset acquisition module receives described timer time processing module and described standard time processing module transmission calculate offset; Described time calibration and encrypting module receive the described offset of described offset acquisition module transmission and the described timer time data of described timing unit transmission, and the timer time data that calibration is described is also encrypted the described timer time data after calibration.
Be divided into two embodiment, embodiment mono-:
The computing formula that described timer time processing module is processed the described timer time is:
X = &alpha; &Sigma; i = 1 n ( x i + p 2 i - p 1 i ) n + &beta; - - - ( 3 )
In formula, p 1iby following formula (4), determined,
p 1 i = p 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B ) - - - ( 4 )
In above formula, α, β are respectively modifying factor and modified value, are used for update the system error, and i is order of transmission, and n is transmission times, x ibe the timer time sending for the i time, p 1ifor the timer module delivery time of the i time transmission timer time, p 2ifor timer time processing module is accepted time of reception of timer time of sending for the i time, p 11be to send the delivery time of timer time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
The computing formula that described standard time processing module is processed the described standard time is:
Y = &gamma; &Sigma; i = 1 n ( y i + q 2 i - q 1 i ) n + &delta; - - - ( 6 )
In formula, q 1iby following formula (7), determined,
q 1 i = q 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B ) - - - ( 7 )
In above formula, γ, δ are respectively modifying factor and modified value, are used for update the system error, and i is for sending sequence number, and n is transmission times, y ibe the standard time sending for the i time, q 1ifor intelligence is driven the delivery time that service platform sends the standard time for the i time, q 2ifor standard time processing module is accepted time of reception of standard time of sending for the i time, q 11be to send the delivery time of standard time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
The computing formula that described offset acquisition module obtains described offset Z is:
Z=Y-X (8)
In above formula, X is the timer time, and Y is the standard time, and Z is offset.
Embodiment bis-:
The computing formula that described offset acquisition module obtains described offset Z is:
Z = &Sigma; i = 1 n { [ &gamma; ( y i + q 2 i - q 1 i ) + &delta; ] - [ &alpha; ( x i + p 2 i - p 1 i ) + &beta; ] } n - - - ( 9 )
In formula, p 1i, q 1iby formula (10), (11), determined,
p 1 i = p 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B ) - - - ( 10 )
q 1 i = q 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B ) - - - ( 11 )
In above formula, α, β are respectively the modifying factor of timer time and modifying factor and the modified value that modified value γ, δ are respectively the standard time, and being used for update the system error i is order of transmission, and n is total transmission times, x ibe the timer time sending for the i time, p 1ifor the timer module delivery time of the i time transmission timer time, p 2ifor timer time processing module is accepted time of reception of timer time of sending for the i time, p 11be to send the delivery time of timer time, y the 1st time ibe the standard time sending for the i time, q 1ifor intelligence is driven the delivery time that service platform sends the standard time for the i time, q 2ifor standard time processing module is accepted time of reception of standard time of sending for the i time, q 11be to send the delivery time of standard time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
Preferably, described data acquisition unit comprises:
One vehicle condition data acquisition module, the real time data during for the inherent data from OBD collection vehicle and vehicle operating, to judge the running status of vehicle;
One alert data acquisition module, for gathering diagnostic trouble code information, battery voltage, gyroscope information, to judge whether fault of vehicle.
One time data acquisition module, described time data acquisition module gathers the described timer time data of described timing unit.
Preferably, described data processing unit comprises a data processing module and a temporary storage module; The described timer time data that described data processing module collects described data acquisition unit is analyzed, be transferred to described temporary storage module after format transformation; Described temporary storage module receives after the data of described data processing module transmission, and it is temporarily stored.
Preferably, described platform communication single unit comprises a data upload module and a command reception module; Described data upload module receives the data of described temporary storage module storage and uploads to described intelligence drives service platform; Described command reception module receives described intelligence and drives the instruction that service platform sends and be transferred to data processing unit.
Preferably, described timing unit comprises a timer module and a time compensating module; Described timer module is driven and when diagnostic equipment starts, is started timing from intelligence, and initial time is intelligence stopping constantly when driving diagnostic equipment and shutting down last time; Described time bias module can compensate the initial time of timer module, and after compensation, timing unit is output as the time service time.
Beneficial effect of the present invention is compared with the prior art: provide a kind of intelligence of platform time service to drive diagnostic equipment, guaranteed that intelligence drives time and the standard time of diagnostic equipment system log (SYSLOG) and be consistent; Calculating process is easy, saves system resource; Good confidentiality, has guaranteed the security of time tranfer.
Accompanying drawing explanation
Fig. 1 is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment;
Fig. 2 A is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment timing unit;
Fig. 2 B is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment data acquisition unit;
Fig. 2 C is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment data processing unit;
Fig. 2 D is that platform time service intelligence of the present invention is driven the structural drawing of diagnostic equipment platform communication single unit;
Fig. 2 E is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment unit time calibration;
Fig. 3 is the process flow diagram that platform time service intelligence of the present invention is driven diagnostic equipment embodiment mono-timer time processing;
Fig. 4 is the process flow diagram that platform time service intelligence of the present invention is driven diagnostic equipment embodiment mono-standard time processing;
Fig. 5 is that platform time service intelligence of the present invention is driven the process flow diagram that diagnostic equipment embodiment mono-obtains offset;
Fig. 6 is that platform time service intelligence of the present invention is driven the diagnostic equipment embodiment process flow diagram of bis-time calibrations;
Fig. 7 is that platform time service intelligence of the present invention is driven the process flow diagram of diagnostic equipment data transmission;
Fig. 8 is the platform time service process flow diagram that platform time service intelligence of the present invention is driven diagnostic equipment;
Fig. 9 is platform time service and the data upload process flow diagram that platform time service intelligence of the present invention is driven diagnostic equipment.
Embodiment
Below in conjunction with accompanying drawing, to the present invention is above-mentioned, be described in more detail with other technical characterictic and advantage.
Refer to shown in Fig. 1, it drives the structural drawing of diagnostic equipment for intelligence of the present invention, and wherein, OBD 1 is the original diagnostic system of vehicle, and inherent data and the real time data of vehicle can be provided; Intelligence is driven service platform 3 for manual service platform, can receive intelligence drive diagnostic equipment 2 data and to described data process, preservation etc., can also be according to circumstances between diagnostic equipment 2 send instruction; Intelligence is driven diagnostic equipment 2 and is connected with OBD 1, connected mode is that conductor interface inserts the reserved socket of vehicle, for extracting from OBD 1 travelling data that OBD 1 gathers, described intelligence is driven diagnostic equipment 2 and by network and intelligence, is driven service platform 3 and be connected, and by being transferred to described intelligence after the data processing collecting, driving service platform 3 or drives service platform 3 from intelligence and receive instructions and carry out.
Described intelligence is driven diagnostic equipment 2 and is comprised:
One timing unit 24, described 24 output timer time or the time service times of timing unit; One data acquisition unit 21, described data acquisition unit 21 is connected with OBD 1, from OBD 1 and intelligence, drives image data diagnostic equipment 2; One data processing unit 22, is connected with described data acquisition unit 21, receives all data of described data acquisition unit 21 and processes; One platform communication single unit 23, described platform communication single first 23 is driven service platform 3 with described data processing unit 22 and described intelligence and is connected, and receives the data of described data processing unit 22 transmission and uploads or receive described intelligence and drive the instruction of service platform 3 and be transferred to described data processing unit 22; One storage unit 25, described storage unit 25 and described data processing unit 22 and described platform communication single unit 23 are connected, in the time of cannot uploading the data to intelligence in data upload unit and drive on service platform 3, the data that reception cannot be uploaded also store, and after upload function is recovered by the data transmission of preserving to platform communication single unit 23, make its uploading data again; One time alignment unit 25, be connected with timing unit 24, data processing unit 22 and platform communication single unit 23, it receives the timer time of described timing unit 24 transmission and the standard time that described intelligence is driven platform 3 transmission, after contrasting, draw offset, and calibrate the described timer time with offset.
Refer to shown in Fig. 2 A, it is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment timing unit, and wherein, timing unit 24 comprises a timer module 241 and a time compensating module 242; Described timer module 241 is driven and when diagnostic equipment 2 starts, is started timing from intelligence, and initial time is intelligence stopping constantly when driving diagnostic equipment and shutting down for 2 last time; Described time bias module 242 can compensate the initial time of timer module 241, and after compensation, timing unit 24 is output as the time service time.Timing unit is driven after diagnostic equipment 2 starts and is started timing in intelligence, and timer is started from scratch, by a second timing, until diagnostic equipment closes, and after intelligence is driven diagnostic equipment and is restarted, the timer timing of again starting from scratch.
Refer to shown in Fig. 2 B, it is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment data acquisition unit, and wherein, data acquisition unit 21 comprises a vehicle condition data acquisition module 211, an alert data acquisition module 212 and a time data acquisition module 213; The real time data during vehicle operatings such as the inherent data of described vehicle condition data acquisition module 211 vehicle such as collection vehicle model, engine model from OBD 1 and engine speed, temperature, to judge that the running status of vehicle is good or has failure risk; Described alert data acquisition module 212 gathers diagnostic trouble code information, battery voltage, gyroscope information, to judge whether fault of vehicle; Described time data acquisition module 213 gathers timer time or the time service time of timing units 24, to guarantee that intelligence drives the diagnostic equipment accuracy of 2 times.
Refer to shown in Fig. 2 C, it is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment data processing unit, and wherein, data processing unit 22 comprises a data processing module 221 and a temporary storage module 222; The various data analysis that 221 pairs of described data acquisition units 21 of described data processing module collect, after converting analysis conclusion to specific format, be transferred to described temporary storage module 223, described temporary storage module 223 receives after the data of described data processing module 222 transmission, it is temporarily stored, and transmission.
Refer to shown in Fig. 2 D, it drives the structural drawing of diagnostic equipment platform communication single unit for platform time service intelligence of the present invention, wherein, platform communication single unit 23 comprises a data upload module 232 and a command reception module 231, described data upload module 232 receives the data of described data processing unit 22 transmission and uploads to described intelligence drives service platform 3, and described command reception module 231 receives described intelligence and drives the instruction that service platform 3 sends and be transferred to data processing unit 22.
Refer to shown in Fig. 2 E, it is the structural drawing that platform time service intelligence of the present invention is driven diagnostic equipment unit time calibration, wherein, time calibration, unit 25 comprised a timer time processing module 251, a standard time processing module 252, an offset acquisition module 253 and a time calibration and encrypting module 254; Described timer time processing module 251 receives the timer time data of described timing unit 24 transmission and processes; Described standard time processing module 252 receives described intelligence and drives the standard time data of service platform 2 transmission and process; Described offset acquisition module 253 receives described timer time processing module 251 and calculates offset with the data of described standard time processing module 252 transmission; Described time calibration and encrypting module 254 receive the described offset of described offset acquisition module 253 transmission and the described timer time data of described timing unit 24 transmission, and the timer time data that calibration is described is also encrypted the described timer time data after calibration.
Time calibration, unit 25 also can be transferred to offset timing unit 24 and data processing unit 22, to calibrate the interior unregulated timer time of timing unit 24 and data processing unit 22.
Timing unit 24 receives after the offset of described time calibration of unit 25 transmission, its time compensating module 242 can compensate the initial time of timer module 241 according to offset, original initial time and offset and be new initial time, after compensation, 24 outputs of described timing unit is the time service time.
Data processing unit 22 receives after the offset of described time calibration of unit 25 transmission, temporary storage module 222 can compensate all timers time of temporary storage module 222 interior storages according to offset, timer time and offset sum are the time service time, the time service time that is of data processing unit transmission afterwards.
The process of 25 alignment times of unit time calibration has two kinds of embodiment.
Embodiment mono-:
Refer to shown in Fig. 3, it drives the process flow diagram of diagnostic equipment embodiment mono-timer time processing for platform time service intelligence of the present invention, and the step that timer time processing module 251 is processed the timer times is:
A1, timer module will send timer time data to timer time processing module at set intervals;
Wherein, the data that send for the first time comprise timer time x iwith delivery time p 11the data that send for the i time comprise timer time x iwith delivery time p 1i, the adjacent time interval that sends data for twice is:
p 1i=p 1(i-1)+ΔT i (1)
In formula, Δ T iaccording to following formula (2), calculate,
ΔT i=ΔTsin(Ai+B) (2)
In above formula, p 1ibe to send the delivery time of timer time, p the i time 1 (i-1)be to send the delivery time of timer time, Δ T the i-1 time ibe the delivery time interval that the i time and the i-1 time send the timer time, the maximum time interval that Δ T is adjacent twice delivery time, A, B are constant.
Its basic ideas are if only send the timer time one time, once mistake appears in process of transmitting, will make whole time service procedure failure, so need to send repeatedly the timer time.To send for the first time the delivery time p of timer time 11for starting point, just send one time more at set intervals the timer time, in the situation that Δ T, A, B are definite, by order of transmission i is unique, determine interval time.
Above-mentioned computing method, get sine value to (Ai+B), define codomain, and simple operation is saved program resource; And repeatedly send the timer time, can reduce the error of process of transmitting.
A2, timer time processing module receive described timer time data, and record the p time of reception 2i;
A3, calculating timer time X now.
Wherein, computing formula is:
X = &alpha; &Sigma; i = 1 n ( x i + p 2 i - p 1 i ) n + &beta; - - - ( 3 )
In formula, p 1iby following formula (4), determined,
p 1 i = p 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B ) - - - ( 4 )
In above formula, α, β are respectively modifying factor and modified value, are used for update the system error, and i is order of transmission, and n is transmission times, x ibe the timer time sending for the i time, p 1ifor the timer module delivery time of the i time transmission timer time, p 2ifor timer time processing module is accepted time of reception of timer time of sending for the i time, p 11be to send the delivery time of timer time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
According to system value judgement, 0.95≤α≤1, | β |≤0.25.
Its basic ideas are, at delivery time p for the first time 11in fixed situation, according to transmission interval definite in (2) each delivery time p that adds up out 1i, and send timer time x at each delivery time i, calculate as p time time of reception 2iwith delivery time p 1idifference, then with as time timer time x isummation, and the timer time when receiving, finally ask the mean value of all n timer times of receiving update the system error.
Above-mentioned computing method, the time interval between adjacent delivery time is not identical, has increased randomness; Increase modifying factor and modified value, revised systematic error; A plurality of timer time is averaged, reduced the error of makeing mistakes and causing because sending; Calculating process is easy, has saved system resource.
Refer to shown in Fig. 4, it is the process flow diagram that platform time service intelligence of the present invention is driven diagnostic equipment embodiment mono-standard time processing; The step of 252 cleanup standard times of standard time processing module is:
B1, intelligence are driven service platform will send standard time data to standard time processing module at set intervals;
Wherein, the data that send for the first time comprise standard time y 1with delivery time q 1i, the data that send for the i time comprise standard time y iwith delivery time q 1i, the adjacent time interval that sends data for twice is:
q 1i=q 1(i-1)+ΔT i (5)
In formula, Δ T iaccording to formula (2), calculate,
In above formula, q 1ibe to send the delivery time of standard time, q the i time 1 (i-1)be to send the delivery time of standard time, Δ T the i-1 time iit is the delivery time interval that the i time and the i-1 time send the standard time.
Its basic ideas are if only send the standard time one time, once mistake appears in process of transmitting, will make whole time service procedure failure, so need to send the repeatedly standard time.To send for the first time the delivery time q of standard time 11for starting point, just send one time more at set intervals the standard time, interval time Δ T iin the situation that Δ T, A, B are definite, by order of transmission i is unique, determine.
Above-mentioned computing method, get sine value to (Ai+B), define codomain, and simple operation is saved program resource; And repeatedly send the standard time, can reduce the error of process of transmitting; The time interval that same order sends timer time and transmission standard time is Δ T i, guaranteed the consistance of timer time and standard time.
B2, standard time processing module receive described standard time data, and record the q time of reception 2i;
B3, calculating standard time Y now.
Wherein, computing formula is:
Y = &gamma; &Sigma; i = 1 n ( y i + q 2 i - q 1 i ) n + &delta; - - - ( 6 )
In formula, q 1iby following formula (7), determined,
q 1 i = q 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B ) - - - ( 7 )
In above formula, γ, δ are respectively modifying factor and modified value, are used for update the system error, and i is for sending sequence number, and n is transmission times, y ibe the standard time sending for the i time, q 1ifor intelligence is driven the delivery time that service platform sends the standard time for the i time, q 2ifor standard time processing module is accepted time of reception of standard time of sending for the i time, q 11be to send the delivery time of standard time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
According to system value judgement, 0.95≤γ≤1, | δ |≤0.25.
Its basic ideas are, at delivery time q for the first time 11in fixed situation, according to transmission interval definite in (2) each delivery time q that adds up out 1i, and send standard time y at each delivery time i, calculate as q time time of reception 2iwith delivery time q 1idifference, then with as time standard time y isummation, and the standard time when receiving, finally ask the mean value of all n standard time of receiving update the system error.
Above-mentioned computing method, the time interval between adjacent delivery time is not identical, has increased randomness; Send the timer time identical with the time interval that sends the standard time, guaranteed the consistance of timer time and standard time; A plurality of timer time is averaged, reduced the error of makeing mistakes and causing because sending; Increase modifying factor and modified value, revised systematic error; Calculating process is easy, has saved system resource.
Refer to shown in Fig. 5, it drives for platform time service intelligence of the present invention the process flow diagram that diagnostic equipment embodiment mono-obtains offset; The step that offset acquisition module obtains offset is:
C1, offset acquisition module receive the timer time X that timer time processing module sends;
C2, offset acquisition module receive the standard time Y that standard time processing module sends;
C3, calculating offset Z now, computing formula is:
Z=Y-X (8)
In above formula, X is the timer time, and Y is the standard time, and Z is offset.
The absolute value of c4, contrast offset Z and the contrast territory of setting, if offset is not within the scope in contrast territory, restarts intelligence and drive diagnostic equipment.
The method that time calibration and the encrypting module 254 pairs of timer time calibrates is to timer time and offset Z summation, and value is the time service time after calibration.Time calibration and encrypting module 254 are transferred to data processing unit 22 after also the time service time after calibration being encrypted.
Embodiment bis-:
Refer to shown in Fig. 6, it drives the diagnostic equipment embodiment process flow diagram of bis-time calibrations for platform time service intelligence of the present invention;
D1, timer module will send timer time data to timer time processing module at set intervals;
D2, intelligence are driven service platform will send standard time data to standard time processing module at set intervals;
D3, timer time processing module receive described timer time data, record the time of reception;
D4, standard time processing module receive described standard time data, record the time of reception;
D5, offset acquisition module receive the data of timer time processing module transmission and the data that standard time processing module sends;
D6, calculating offset Z now, computing formula is:
Z = &Sigma; i = 1 n { [ &gamma; ( y i + q 2 i - q 1 i ) + &delta; ] - [ &alpha; ( x i + p 2 i - p 1 i ) + &beta; ] } n - - - ( 9 )
In formula, p 1i, q 1iby formula (10), (11), determined,
p 1 i = p 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B ) - - - ( 10 )
q 1 i = q 1 1 + &Delta;T &Sigma; m = 2 i sin ( Am + B ) - - - ( 11 )
In above formula, α, β are respectively the modifying factor of timer time and modifying factor and the modified value that modified value γ, δ are respectively the standard time, and being used for update the system error i is order of transmission, and n is total transmission times, x ibe the timer time sending for the i time, p 1ifor the timer module delivery time of the i time transmission timer time, p 2ifor timer time processing module is accepted time of reception of timer time of sending for the i time, p 11be to send the delivery time of timer time, y the 1st time ibe the standard time sending for the i time, q 1ifor intelligence is driven the delivery time that service platform sends the standard time for the i time, q 2ifor standard time processing module is accepted time of reception of standard time of sending for the i time, q 11be to send the delivery time of standard time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
According to system value judgement, 0.95≤α≤1,0.95≤γ≤1, | β |≤0.25, | δ |≤0 .25.
Its basic ideas are, in the situation that delivery time has been determined for the first time, cumulatively obtain current delivery time p with the adjacent time interval 1i, q 1i; Timer time x iadd the p time of reception 2ideduct again delivery time p 1i, the timer time during for reception, by modifying factor, α multiplies each other with it, and adds modified value β, revises; Standard time y iadd the q time of reception 2ideduct again delivery time q 1i, the standard time during for reception, by modifying factor, γ multiplies each other with it, and adds modified value δ, revises; Revised timer time and revised standard time subtract each other, and difference is the mistiming when inferior; After cumulative to n mistiming, divided by n, be the mean value of mistiming, be offset Z.
Above-mentioned computing method, the timer time of calculating and standard time, for once, have guaranteed the consistance of timer time and standard time; The transmission interval of the adjacent delivery time of same order is identical, has reduced the error that delivery time causes offset; Modifying factor and modified value correction systematic error; Repeatedly calculate and average, reduced the systematic error that data transmission fault causes; Whole process there is no the large number computing method of waste system resource such as multiply each other, and computation process is clear, calculates easyly, has saved system resource.
The absolute value of d7, contrast offset Z and the contrast territory of setting, if offset is not within the scope in contrast territory, restarts intelligence and drive diagnostic equipment;
D8, to the summation of timer time and offset, and be the time service time after calibration.
Time calibration and encrypting module 254 are transferred to data processing unit 22 after also the time service time after calibration being encrypted.
Embodiment mono-with the encryption formula in embodiment bis-is:
C=[C 1÷8]×10+C 1%8 (12)
In formula, C 1by following formula (13), determined,
C 1=P 11%48 (13)
In above formula, P represents that expressly C represents ciphertext, C 1represent intermediate variable.
Its basic ideas are, ask 11 powers of P, then divided by 48, carry out complementation computing, the C obtaining 1must be interval [0,48) in integer; To C 1carry out complementation computing divided by 8, the units that the value obtaining is C, to C 1business divided by 8 carries out rounding operation, and the value obtaining is multiplied by 10, is the tens of C.
Above-mentioned computing method, whole ciphering process has carried out twice encryption, make the data of transmission safer, and twice ciphering process is all relatively simple, has saved encryption time and system resource.
The ciphertext that this cipher mode obtains can be decrypted, and deciphering formula is:
P=C 1 16%48 (14)
In formula, C 1by following formula (15), determined,
C 1=[C÷10]×8+C%10 (15)
In above formula, P represents that expressly C represents ciphertext, C 1represent intermediate variable.
Its basic ideas are, C is rounded divided by 10, obtain the tens of C, and C, divided by 10 complementations, is obtained to the units of C, and the tens of C is multiplied by 8 unitss of adding C, obtains intermediate variable C 1, get C 116 powers, and carry out complementation computing divided by 48, be worth for plaintext P.
Above-mentioned computing method, decipher respectively according to twice ciphering process, and computation process is simple, have saved deciphering time and system resource.
In above-mentioned encryption method, if the data that will encrypt are integer data, directly encrypt; If time data, can after year, month, day, hour, min, second time data being divided into six parts, encrypt successively, after encryption, be arranged in order from front to back ciphertext, after same deciphering by six plaintexts according to converting year, month, day, hour, min, second time data to; Also after can converting time data to integer data, encrypt again.
Embodiment mono-determines by standard time Y with the contrast territory in embodiment bis-, and concrete interval is (Y-86400, Y+86400), and its critical point is Y ± 86400.
Refer to shown in Fig. 7, it drives the process flow diagram of diagnostic equipment data transmission for platform time service intelligence of the present invention, and the job step that described intelligence is driven diagnostic equipment is:
A1, intelligence are driven diagnostic equipment and are started working;
A2, intelligence are driven the ignition signal of diagnostic equipment identification vehicle;
A3, data acquisition unit read the acceleration information of vehicle operation data and vehicle:
A4, data processing unit to the data analysis reading, calculate and be processed into corresponding format;
A5, platform communication single unit upload the data to intelligence and drive service platform;
A6, judge that vehicle is whether flame-out, flame-outly return to steps A 2, meanwhile, storage unit preserves data;
Data when A7, data acquisition unit read stationary vehicle;
A8, judge whether to upload, need to return to steps A 5;
A9, judge whether to need shutdown, do not need to return steps A 2;
A10, storage unit preserve data;
A11, intelligence are driven diagnostic equipment shutdown.
Shown in Fig. 8, it is the platform time service process flow diagram that platform time service intelligence of the present invention is driven diagnostic equipment, the steps include:
After e1, vehicle ignition, diagnostic equipment is opened;
E2, timer start timing;
E3, intelligence are driven diagnostic equipment and intelligence and are driven service platform and connect;
Unit obtained intelligence and drove standard time that service platform provides and the timer time of timing unit transmission e4, time calibration;
E5, time calibration, unit was with contrast timer time standard time, obtained offset;
E6, time calibration, unit was the standard time with offset by timer time modification.
Intelligence is driven after diagnostic equipment starts and is carried out a platform time service.In addition, each platform communication single unit and intelligence drive service platform connect or recover to be connected after all can re-start a platform time service.
Shown in Fig. 9, it is platform time service and data upload process flow diagram that platform time service intelligence of the present invention is driven diagnostic equipment, and its process is:
After f1, vehicle ignition, diagnostic equipment is opened, and connects with service platform, and timing unit starts timing simultaneously;
F2, diagnostic equipment obtain the timer time X of timing unit and the standard time Y of service platform, and judge whether to read standard time Y, and wherein, timer time X is integer data, and standard time Y is time data;
If f3, diagnostic equipment cannot obtain standard time Y, finish, at diagnostic equipment and service platform, re-establish after being connected and obtain the standard time again, after obtaining, standard time Y and timer time X are stored;
F4, diagnostic equipment receive the timer time X of timing unit and read standard time Y from depository, if can read Y, complete platform time service, calculate time service time T output, if can not export timer time X, wherein, T is also time data;
F5, diagnostic equipment also can reading out datas after opening, and these data comprise vehicle condition data, alert data, storage data and output time data;
F6, diagnostic equipment are stored the data that receive send temporarily, and whether the time attribute that judgement will send data has been time service time T;
If f7 time service time T, sends, if timer time X reads standard time Y from depository;
F8, diagnostic equipment judge whether to read Y from depository, can calculate time service time T, can not the data type conversion of timer time X be become to time type and above, add that YYYY-MM-DD usings as time service time T, that is:
T=YYYY-MM-DD+X (16)
Wherein, YYYY-MM-DD represents the date, and service platform, after receiving the time data of beginning for YYYY-MM-DD, just can be judged diagnostic equipment in this case and close all and could not connect with service platform from being opened to like this.
F9, diagnostic equipment judge whether data send successfully, successful finish, and unsuccessfully data are stored.
Standard time described above is the statutory standards time, in China, is Beijing time.
The foregoing is only preferred embodiment of the present invention, is only illustrative for the purpose of the present invention, and nonrestrictive.Those skilled in the art is understood, and in the spirit and scope that limit, can carry out many changes to it in the claims in the present invention, revise, and even equivalence, but all will fall within the scope of protection of the present invention.

Claims (10)

1. platform time service intelligence is driven a diagnostic equipment, it is characterized in that, comprising:
One timing unit, starts timing for driving in described intelligence when diagnostic equipment is opened, and drives diagnostic equipment timer time data is provided for described intelligence;
One data acquisition unit, it is connected with described timing unit, for gathering described timer time data;
One data processing unit, it is connected with described data acquisition unit, for receiving described timer time data, and it is processed;
One platform communication single unit, its input end be connected with described data processing unit and, its output terminal is driven service platform with described intelligence and is connected, for receiving the data that described data processing unit processes and uploading to described intelligence, drive service platform, or receive described intelligence and drive the instruction of service platform and be transferred to described data processing unit;
One storage unit, its input end is connected with described data processing unit, its output terminal is connected with described platform communication single unit, when described platform communication single unit cannot uploading data, store the data that this cannot be uploaded, or when described platform communication single unit and described intelligence are driven service platform and recovered to be connected, the described data transmission that cannot upload is first to described platform communication single;
One time alignment unit, unit received described timer time and described intelligence and drove the standard time that service platform sends described time calibration, described timer time and described standard time are contrasted to rear acquisition offset, and with described offset, described timer is obtained to the time service time after time calibration; Described time calibration, unit was also encrypted the described time service time, encrypted formula to be:
C=[C 1÷8]×10+C 1%8
In formula, C 1by following formula, determined,
C 1=P 11%48
In above formula, P represents that expressly C represents ciphertext, C 1represent intermediate variable.
2. platform time service intelligence according to claim 1 is driven diagnostic equipment, it is characterized in that, described time calibration, unit comprised a timer time processing module, a standard time processing module, an offset acquisition module and a time calibration and encrypting module; Described timer time processing module receives the timer time data of described timing unit transmission and processes; Described standard time processing module receives described intelligence and drives the standard time data of service platform transmission and process; The data that described offset acquisition module receives described timer time processing module and described standard time processing module transmission calculate offset; Described time calibration and encrypting module receive the described offset of described offset acquisition module transmission and the described timer time data of described timing unit transmission, and the timer time data that calibration is described is also encrypted the described timer time data after calibration.
3. platform time service intelligence according to claim 2 is driven diagnostic equipment, it is characterized in that, the computing formula that described timer time processing module is processed the described timer time is:
X = &alpha; &Sigma; i = 1 n ( x i + p 2 i - p 1 i ) n + &beta;
In formula, p 1iby following formula, determined,
p 1 i = p 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B )
In above formula, α, β are respectively modifying factor and modified value, are used for update the system error, and i is order of transmission, and n is transmission times, x ibe the timer time sending for the i time, p 1ifor the timer module delivery time of the i time transmission timer time, p 2ifor timer time processing module is accepted time of reception of timer time of sending for the i time, p 11be to send the delivery time of timer time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
4. platform time service intelligence according to claim 3 is driven diagnostic equipment, it is characterized in that, the computing formula that described standard time processing module is processed the described standard time is:
Y = &gamma; &Sigma; i = 1 n ( y i + q 2 i - q 1 i ) n + &delta;
In formula, q 1iby following formula, determined,
q 1 i = q 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B )
In above formula, γ, δ are respectively modifying factor and modified value, are used for update the system error, and i is for sending sequence number, and n is transmission times, y ibe the standard time sending for the i time, q 1ifor intelligence is driven the delivery time that service platform sends the standard time for the i time, q 2ifor standard time processing module is accepted time of reception of standard time of sending for the i time, q 11be to send the delivery time of standard time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
5. platform time service intelligence according to claim 4 is driven diagnostic equipment, it is characterized in that, the computing formula that described offset acquisition module obtains described offset Z is:
Z=Y-X
In above formula, X is the timer time, and Y is the standard time, and Z is offset.
6. platform time service intelligence according to claim 1 is driven diagnostic equipment, it is characterized in that, the computing formula that described offset acquisition module obtains described offset Z is:
Z = &Sigma; i = 1 n { [ &gamma; ( y i + q 2 i - q 1 i ) + &delta; ] - [ &alpha; ( x i + p 2 i - p 1 i ) + &beta; ] } n
In formula, p 1i, q 1iby following formula, determined,
p 1 i = p 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B )
q 1 i = q 11 + &Delta;T &Sigma; m = 2 i sin ( Am + B )
In above formula, α, β are respectively the modifying factor of timer time and modifying factor and the modified value that modified value γ, δ are respectively the standard time, and being used for update the system error i is order of transmission, and n is total transmission times, x ibe the timer time sending for the i time, p 1ifor the timer module delivery time of the i time transmission timer time, p 2ifor timer time processing module is accepted time of reception of timer time of sending for the i time, p 11be to send the delivery time of timer time, y the 1st time ibe the standard time sending for the i time, q 1ifor intelligence is driven the delivery time that service platform sends the standard time for the i time, q 2ifor standard time processing module is accepted time of reception of standard time of sending for the i time, q 11be to send the delivery time of standard time the 1st time, the maximum time interval that Δ T is adjacent twice delivery time, m is for sending sequence number.
7. according to the platform time service intelligence described in any one in claim 1-6, drive diagnostic equipment, it is characterized in that, described data acquisition unit comprises:
One vehicle condition data acquisition module, the real time data during for the inherent data from OBD collection vehicle and vehicle operating, to judge the running status of vehicle;
One alert data acquisition module, for gathering diagnostic trouble code information, battery voltage, gyroscope information, to judge whether fault of vehicle.
One time data acquisition module, described time data acquisition module gathers the described timer time data of described timing unit.
8. platform time service intelligence according to claim 7 is driven diagnostic equipment, it is characterized in that, described data processing unit comprises a data processing module and a temporary storage module; The described timer time data that described data processing module collects described data acquisition unit is analyzed, be transferred to described temporary storage module after format transformation; Described temporary storage module receives after the data of described data processing module transmission, and it is temporarily stored.
9. platform time service intelligence according to claim 8 is driven diagnostic equipment, it is characterized in that, described platform communication single unit comprises a data upload module and a command reception module; Described data upload module receives the data of described temporary storage module storage and uploads to described intelligence drives service platform; Described command reception module receives described intelligence and drives the instruction that service platform sends and be transferred to data processing unit.
10. platform time service intelligence according to claim 9 is driven diagnostic equipment, it is characterized in that, described timing unit comprises a timer module and a time compensating module; Described timer module is driven and when diagnostic equipment starts, is started timing from intelligence, and initial time is intelligence stopping constantly when driving diagnostic equipment and shutting down last time; Described time bias module can compensate the initial time of timer module, and after compensation, timing unit is output as the time service time.
CN201310689768.XA 2013-12-17 2013-12-17 A kind of intelligence of platform time service drives diagnostic equipment Active CN103646443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310689768.XA CN103646443B (en) 2013-12-17 2013-12-17 A kind of intelligence of platform time service drives diagnostic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310689768.XA CN103646443B (en) 2013-12-17 2013-12-17 A kind of intelligence of platform time service drives diagnostic equipment

Publications (2)

Publication Number Publication Date
CN103646443A true CN103646443A (en) 2014-03-19
CN103646443B CN103646443B (en) 2016-03-09

Family

ID=50251653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310689768.XA Active CN103646443B (en) 2013-12-17 2013-12-17 A kind of intelligence of platform time service drives diagnostic equipment

Country Status (1)

Country Link
CN (1) CN103646443B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318510A (en) * 2014-11-14 2015-01-28 西北农林科技大学 Image encryption and interpretation method based on Matlab

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004111950A1 (en) * 2003-06-19 2004-12-23 Scania Cv Ab (Publ) A device and a method for calibrating a time unit
CN201698502U (en) * 2010-06-18 2011-01-05 四川科泰智能电子有限公司 Big dipper/GPS bi-module vehicle travelling data recorder
CN102142160A (en) * 2011-03-19 2011-08-03 河南光彩电器有限公司 Ship telegraph recorder
JP2011257849A (en) * 2010-06-07 2011-12-22 Yupiteru Corp Video recording apparatus for vehicle and on-board system
CN102915578A (en) * 2011-08-02 2013-02-06 航天信息股份有限公司 Vehicle-mounted cargo monitoring system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004111950A1 (en) * 2003-06-19 2004-12-23 Scania Cv Ab (Publ) A device and a method for calibrating a time unit
JP2011257849A (en) * 2010-06-07 2011-12-22 Yupiteru Corp Video recording apparatus for vehicle and on-board system
CN201698502U (en) * 2010-06-18 2011-01-05 四川科泰智能电子有限公司 Big dipper/GPS bi-module vehicle travelling data recorder
CN102142160A (en) * 2011-03-19 2011-08-03 河南光彩电器有限公司 Ship telegraph recorder
CN102915578A (en) * 2011-08-02 2013-02-06 航天信息股份有限公司 Vehicle-mounted cargo monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318510A (en) * 2014-11-14 2015-01-28 西北农林科技大学 Image encryption and interpretation method based on Matlab
CN104318510B (en) * 2014-11-14 2018-11-30 西北农林科技大学 A kind of image encryption and decomposition method based on Matlab

Also Published As

Publication number Publication date
CN103646443B (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN108563214B (en) Vehicle diagnosis method, device and equipment
CN108803580B (en) Method for matching vehicle CAN protocol and related equipment
US8032277B2 (en) Driver activity and vehicle operation logging and reporting
US8626377B2 (en) Method for data communication between a vehicle and fuel pump
CN109240222A (en) Car fault diagnosis method, system and its intelligent diagnostics server end
US20110231055A1 (en) Maintenance system and method for vehicle fleets
CN109765879A (en) A kind of remote monitoring system of new-energy automobile
Buquerin et al. A generalized approach to automotive forensics
CA2838632A1 (en) Method and apparatus for translating vehicle diagnostic trouble codes
CN104114993A (en) Vehicle data gathering apparatus, and vehicle data gathering method
CN112947137A (en) Hydrogen energy automobile control method, hydrogen energy automobile and Internet of things system
KR20090030664A (en) Active database based total management system and method for diagnostic information and positioning information of vehicle
CN110286666B (en) Vehicle travel state calibration method and device and computer readable storage medium
EP4064651A1 (en) Systems and methods for data message decoding and asset type fingerprinting
EP4064648A1 (en) Systems and methods for asset type fingerprinting and data message decoding
Chen et al. The implementation of real-time on-line vehicle diagnostics and early fault estimation system
CN109918377A (en) Drive run-length data generation method and device
CN103646443B (en) A kind of intelligence of platform time service drives diagnostic equipment
US10808634B2 (en) Method, device and mobile user terminal for adapting an energy utilization process of a motor vehicle
CN113011852A (en) Vehicle maintenance reminding method and device, vehicle-mounted equipment and storage medium
CN111775698B (en) Vehicle mileage information processing method and device and automobile
CN111475865A (en) Automobile data verification method and verification device
US11309591B2 (en) Method and device for estimating a state of an energy storage system of a vehicle
CN112163016A (en) Driving capability evaluation method based on Internet of vehicles cloud cooperation and related device
CN105911939A (en) Automobile work mode determination realization method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20161223

Address after: 100081 Beijing City, Haidian District, No. 14 Building No. 1 hospital 515

Patentee after: Beijing Xin Hong Zhi Technology Development Co., Ltd.

Address before: 100083 Beijing city Haidian District Shangyuan Village No. 3 building nine room 901 Zhixing

Patentee before: BEIJING 95 ZHIJIA INFORMATION TECHNOLOGY CO., LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170814

Address after: 100044 Beijing city Haidian District Shangyuan Village No. 3 Building 8 layer 805 Jiaotong University Knowledge

Patentee after: Beijing wisdom Travel Technology Co., Ltd.

Address before: 100081 Beijing City, Haidian District, No. 14 Building No. 1 hospital 515

Patentee before: Beijing Xin Hong Zhi Technology Development Co., Ltd.

TR01 Transfer of patent right