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:
In formula, p
1iby following formula (4), determined,
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:
In formula, q
1iby following formula (7), determined,
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:
In formula, p
1i, q
1iby formula (10), (11), determined,
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.
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:
In formula, p
1iby following formula (4), determined,
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:
In formula, q
1iby following formula (7), determined,
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:
In formula, p
1i, q
1iby formula (10), (11), determined,
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.