Summary of the invention
The object of the present invention is to provide a kind of data to mend the intelligence passing and drive diagnostic equipment in order to overcome above-mentioned technological deficiency.
For achieving the above object, the intelligence that the invention provides a kind of data benefit biography is driven diagnostic equipment, and it comprises a data acquisition unit, a data processing unit, it is characterized in that, it also comprises a communication unit, a memory cell and an authenticating unit;
Described data acquisition unit is connected with an automatic vehicle diagnosis system, and described data acquisition unit is for gathering and this real time data is carried out to signal conversion the real time data of vehicle;
Described data processing unit comprises data processing subelement and a data processing and control subelement, described data processing unit is for processing the real time data of described data acquisition unit, and the transfer of data after processing is to described memory cell as the first reference signal and to transfer to described communication unit etc. to be uploaded; Described data processing subelement is converted into the real time data in described data acquisition unit the message format that will transmit, described message format comprises header, type of message and data, described header is for needing the message SN of transmission, described data are the data after described processing, and described data processing subelement is stored the type of message as the first reference signal to be as the criterion base type and type of messages to be uploaded such as transferring to described communication unit is stored as to contrast type;
Described communication unit comprises an input subelement and a data upload subelement; Described communication unit is connected with described data processing unit, and when the communication signal strength detecting when described communication unit is more than or equal to setting threshold, described intelligence is driven diagnostic equipment and intelligence and driven service platform and carry out exchanges data;
Described memory cell is connected with described communication unit, when the communication signal strength detecting when described communication unit is less than setting threshold, stores the data after described processing; When described communication signal strength is greater than setting threshold, the data after the described processing of storage are carried out to accuracy verification and sequencing control;
Described authenticating unit is connected with described communication unit, described authenticating unit when switching on power and described intelligence drive service platform and carry out authentication verification.
Preferably, described memory cell comprises that a benefit passes storing sub-units and a sequencing control subelement;
Described benefit passes storing sub-units when described input subelement detects communication signal strength and is less than setting threshold, and the data that needs are uploaded are stored in described benefit and pass storing sub-units;
Described sequencing control subelement, when described input subelement detects signal of communication recovery, the data of notifying described benefit to pass in storing sub-units are transmitted in advance according to the described message SN of storing in described message format header, then notify transfer of data in described data processing and control subelement to described data upload subelement, thereby sequentially upload by the described message SN of storing in described message format header.
Preferably, described memory cell also comprises a signal checking subelement;
Described signal checking subelement, when communication signal strength being detected and be greater than described setting threshold, the first reference signal that the described data processing and control subelement receiving is sent passes the data of storing in storing sub-units with benefit and carries out accuracy verification, first by the identical message extraction of the described message SN of storing in header in described message format out, then the data message that the data message that is contrast type by type of message in described message format is benchmark type with type of message in described message format is compared, if described data message is identical, send the data of described storage,
If described data message is not identical, change type of message in described message format into request repeat type, to described data processing and control subelement, send request, ask again transmitted signal as the second reference signal again with described message format in type of message for contrast type data message and the first reference signal jointly compare, contrast the data message in described message format and choose any two identical described data messages, above-mentioned data information memory is passed in storing sub-units and sent to data upload subelement in described benefit;
If the identical message of described message SN of storing in header in described message format, only having type of message in message format is the data message of contrast type, above-mentioned message is described input subelement direct canned data when communication signal strength being detected and being less than setting threshold, do not need accuracy verification, send the data of described storage.
Preferably, described data processing unit also comprises a data processing subelement and an interim storing sub-units;
Described data processing subelement, processes and format conversion the data that obtain in described data acquisition unit;
Described interim storing sub-units, the data after described data processing subelement is processed, storage temporarily and etc. to be uploaded;
Described data processing and control subelement, when signal of communication being detected and be less than setting threshold, controls data in described data processing subelement and is stored in described benefit and passes in storing sub-units, when waiting signal recovers, and transmission chronologically; And data are directly sent to described memory cell, data in memory cell are carried out to Accuracy Verification.
Preferably, described communication unit, comprises command reception subelement and data upload subelement;
Described command reception subelement, receives intelligence and drives the instruction between the exterior terminals such as service platform, mobile phone, and is transferred to data processing unit execution;
Described data upload subelement, drives the transfer of data of storing in described interim storing sub-units in service platform to described intelligence; If data transmission fails, transmission again; If the continuous frequency of failure of transfer of data is more than or equal to 3 times, send to described memory cell save data, wait for uploading data when signal of communication recovers.
Preferably, described input subelement, described input subelement detects signal of communication, and when signal strength signal intensity is less than setting threshold, described data upload subelement suspends uploading data, by data storage, waits for that signal of communication resends while recovering.
Preferably, described input subelement is every time interval T again search signal.
Preferably, described authenticating unit comprises an authentication storing sub-units, and an authentication uploads subelement and an authentication is controlled subelement,
Described authentication storing sub-units is stored described intelligence and is driven the registration code that diagnostic equipment carries;
Described authentication is uploaded subelement, drives the system terminal Shi Xiangzhi that switches on power drive service platform and send authentication message in described intelligence;
Described authentication is controlled subelement the transmission of messages of authenticating unit is realized and being controlled; Described intelligence is driven the authentication message that service platform sends according to described authenticating unit, whether legally identifies that described intelligence is driven diagnostic equipment, legal if Intelligent Service Platform identifies that described intelligence is driven system terminal, opens intelligence and drives system; If it is illegal that Intelligent Service Platform identifies that described intelligence is driven system terminal, close intelligence and drive system and drive service platform transmission message to intelligence.
Preferably, described data acquisition unit comprises that a vehicle condition data acquisition subelement and an alert data gather subelement; Described vehicle condition data acquisition subelement, the real-time data acquisition to vehicle;
Described alert data gathers subelement and comprises a fault alarm acquisition module, and described fault alarm acquisition module, when vehicle breaks down, sends to intelligence by diagnosis to diagnostic trouble code and alarm signal and drives service platform.
Preferably, described alert data gathers subelement and also comprises a collision warning acquisition module, and it comprises a three-axis gyroscope, and described three-axis gyroscope detects collision information, and described collision warning acquisition module is driven service platform to described intelligence and sent alarm signal.
Preferably, described alert data collection subelement also comprises a low-voltage warning acquisition module;
Described low-voltage warning acquisition module, after vehicle lay-off, when described low-voltage warning acquisition module detects battery voltage lower than setting low voltage value, drives service platform to described intelligence and sends alarm signal.
Beneficial effect of the present invention is compared with the prior art: a kind of data mend pass intelligence drive diagnostic equipment, the place of or serious interference poor at mobile communication signal when vehicle, while causing data upload failure maybe can not upload, intelligence is driven diagnostic equipment and is stored data in memory cell, after signal recovers normally, automatic makeup passes the data in described memory cell, realizes data and does not omit, and these are not sent to successful signal carry out verification, strengthened the accuracy of signal; The data of before data upload, needs being uploaded are encrypted, and key is along with message SN changes, and prevents that in upload procedure, data are intercepted and prevent that encryption method is cracked, and has guaranteed the fail safe of data; Once communication recovery be detected, upload immediately the data of storage; When starting after vehicle in the no signal region such as storehouse, ground, once enter, upload immediately the upper cycle data (travelling data, flame-out data, voltage data, vibrations alert data) of storage and these igniting data etc. behind signal of communication region; When intelligence is driven diagnostic equipment access power supply, drive service platform with intelligence and carry out authentication verification, can guarantee user and user information safety.
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, its intelligence passing for data benefit of the present invention is driven the structure chart of diagnostic equipment, described intelligence is driven diagnostic equipment 2 one end and is connected withOBD 1, and connected mode is that conductor interface inserts the reserved socket of automobile, for extracting travelling data fromOBD 1; Described intelligence is driven diagnostic equipment 2 and by network and intelligence, is drivenservice platform 3 and be connected, and by being transferred to described intelligence after the data processing collecting,driving service platform 3 or drivesservice platform 3 from intelligence and receive instructions and carry out.
Described intelligence is driven diagnostic equipment 2 and is comprised adata acquisition unit 21, adata processing unit 22, acommunication unit 23, amemory cell 24 and anauthenticating unit 25.
Refer to shown in Fig. 2, its intelligence passing for data benefit of the present invention is driven the data acquisition unit structure chart of diagnostic equipment, it comprises adata acquisition unit 21, describeddata acquisition unit 21 is driven other devices that diagnostic equipment 2 and intelligence drives diagnostic equipment 2 image data and is transferred to follow-up unit from intelligence, it comprises a vehicle conditiondata acquisition module 211 and an alertdata acquisition module 212, described vehicle conditiondata acquisition module 211, to real-time data acquisition, car state, diagnostic equipment initiatively reads vehicle operating real-time stream all the time, diagnostic trouble code information, battery voltage, oil consumption, gyroscope information, described alertdata acquisition module 212 comprises fault alarm module, collision warning module and low-voltage alarm module.Described fault alarm module is when vehicle breaks down, and diagnostic equipment care diagnostic uploads to platform to diagnostic trouble code warning.Described collision warning module, three-axis gyroscope detects collision information, and diagnostic equipment is reported to the police immediately and is uploaded to platform; Described low-voltage alarm module, after vehicle lay-off, when diagnostic equipment detects battery voltage lower than setting low voltage value (11.5V), reports to the police and uploads to platform immediately.
Refer to shown in Fig. 3, it mends for data of the present invention the data processing unit structure chart that the intelligence passing is driven diagnostic equipment, and describeddata processing unit 22 comprisesdata processing subelement 221, oneinterim storing sub-units 222 and a data processing andcontrol subelement 223.
The data that obtain in 221 pairs of acquisition modules of described data processing subelement are processed, be converted into the message format that will transmit, described message format comprises header, type of message and data, described header is for needing message SN and the priority level number of transmission, if data message is flame-out data or igniting data, mark priority level number is p, and other data markers priority levels number are o; Described type of message comprises benchmark type and contrast type, described data are the data after described processing, and described data processing subelement is stored the type of message as the first reference signal to be as the criterion base type and type of messages to be uploaded such as transferring to describedcommunication unit 23 is stored as to contrast type.
Described interim storingsub-units 222, the data after describeddata processing subelement 221 is processed store temporarily, prepare to be transferred to intelligence and drive service platform 3.Described data processing andcontrol subelement 223, in the time cannot signal of communication being detected, controls the data that collect and is stored in describedmemory cell 24, when waiting signal recovers, and transmission chronologically; And data are directly backed up to signal checking subelement, to being about to realize data, mending the data that pass and carry out Accuracy Verification.
Refer to shown in Fig. 4, its intelligence passing for data benefit of the present invention is driven the communication unit structure chart of diagnostic equipment, describedcommunication unit 23, comprises an input subelement 231, command reception subelement 232, a data upload subelement 233 and a data encryption subelement 234.231 pairs of signals of communication of described input subelement detect, when signal strength signal intensity is less than setting threshold K, described intelligence is driven diagnostic equipment cannot normally receive and dispatch the instruction that intelligence is drivenservice platform 3, described data upload subelement 233 suspends uploading datas, and data are stored inmemory cell 24 when waiting signal recovers and are sent.Described input subelement 231 is every time interval T (0.1s) again search signal.Described command reception subelement 232, receives intelligence and drives the instruction between the exterior terminals such asservice platform 3, mobile phone, and is transferred todata processing unit 22 execution, can realize the outside functions such as instruction control that intelligence is driven to diagnostic equipment.Described data upload subelement 233 is driven the transfer of data of storage in interim storingsub-units 222 inservice platform 3 to described intelligence; If data are not uploaded successfully, again upload; If unsuccessfully upload and be greater than 3 times continuously, send tomemory cell 24 save datas, wait for data upload when signal of communication recovers.
Data encryption subelement 234, after described data arrive data upload subelement 233 (input subelement detects signal strength signal intensity and is greater than setting threshold, when data can be uploaded), data are encrypted, prevent from being intercepted in upload procedure, guaranteed the fail safe of signal.Data encryption in 234 pairs of message formats of described data encryption subelement, and by initial key k0be stored in header, in intelligence,drive service platform 3 and receive after enciphered message, use initial key k0be stored in intelligence and drive the reserved key k inservice platform 3 systems1to data message deciphering, thereby obtain initial data.The correction value formula of key in ciphering process:
Ciphering process formula is
Y=Xλ%(m*ΔK) (3)
Wherein, λ is encryption exponent, from (0, θ-1), chooses at random a number relatively prime with θ, and m is message SN, the correction value that Δ K is key, and X is that expressly Y is ciphertext.Described ciphering process, the difference along with the difference of message SN m, has prevented the insecurity that intercepted in data upload process, A, B are two constants.
Described is the correction value Δ K of key, along with the difference of sequence number m, change, thereby cause encryption exponent difference in cryptographic algorithm, thus the fail safe that has strengthened key.Key k1be one group of 16 character string, key k0pre-storedly in intelligence, drive inservice platform 3 systems, along with the transmission of data, key k1change and cause Δ K to change, but key k0do not change.
Decrypting process corresponding to above-mentioned ciphering process driven in there is a deciphering module inservice platform 3 and carried out in intelligence, and described decrypting process is
δ=(1%θ)/λ (4)
X=Yδ%(m*ΔK) (5)
Wherein, δ is decryption exponent, and X is that expressly Y is ciphertext.
The message format of described uploading data, shown in following table, storing message sequence number and initial key k in header0, type of message reads from the message format receiving, and does not make any change, the data in data after storage encryption, ciphertext Y.After ciphering process completes, described data encryption subelement 234
After ciphering process completes, described data encryption subelement 234 is uploaded to data upload subelement 233 by ciphertext, is uploaded to intelligence and drives service platform 3.The data of before data upload, needs being uploaded are encrypted, and key is along with message SN m changes, and prevents that in upload procedure, data are intercepted and prevent that encryption method is cracked, and has guaranteed the fail safe of data.
Described intelligence is driven inservice platform 3, be present in data processing module, the igniting that this data processing module is p to priority level and flame-out data are stored separately, when memory space is full, abandon the data that priority level is o, but igniting and flame-out data that preservation priority level is p are driven the reference data of navigator as intelligence, for contrasting judgement travel condition of vehicle.
Refer to shown in Fig. 5, it mends for data of the present invention the memory cell structure figure that the intelligence passing is driven diagnostic equipment, and describedmemory cell 24, comprises that a benefit passes storing sub-units 241, a sequencing control subelement 242 and a signal checking subelement 243.
Described benefit passes storing sub-units 241 and detects while there is no signal of communication at described input subelement 231, and the signal storage that needs are uploaded passes storing sub-units 241 in described benefit.Described sequencing control subelement 242, when described input subelement detects signal of communication recovery, the data of notifying described benefit to pass in storing sub-units 241 are transmitted in advance according to the described message SN of storing in described message format header, then notify transfer of data in described data processing andcontrol subelement 223 to described data upload subelement 233, thereby by the described message SN order (sequential) of storing in described message format header, upload, like this intelligence drive thatservice platform 3 receives data arrange chronologically.
Described signal checking subelement 243, when input subelement 231 detects communication signal strength and is greater than described setting threshold, the first reference signal that the described data processing and control subelement receiving 223 is sent is carried out accuracy verification with the data of mending storage in biography storing sub-units 241, first by the identical message extraction of the described message SN of storing in header in described message format out, then the data message that the data message that is contrast type by type of message in described message format is benchmark type with type of message in described message format is compared, if described data message is identical, send the data of described storage.
If described data message is not identical, change type of message in described message format into request repeat type, to described data processing and control subelement, send request, ask again transmitted signal as the second reference signal again with described message format in type of message for contrast type data message and the first reference signal jointly compare, choosing two identical data information memory is comparative information the data that send described storage to data upload subelement 233, now in described benefit biography storing sub-units 241 there is mistake in the data of storage, at signal checking subelement 243, correct.
If the identical message of described message SN of storing in header in described message format, only having type of message in message format is the data message of contrast type, above-mentioned message is described input subelement 231 direct canned data when communication signal strength being detected and being less than setting threshold, do not need to carry out accuracy verification, directly to data upload subelement 233, send the data of described storage.
Refer to shown in Fig. 6, it mends for data of the present invention the authenticating unit structure chart that the intelligence passing is driven diagnostic equipment, and described authenticatingunit 25, comprises thatauthentication storing sub-units 251, one authentications are controlledsubelement 252 and an authentication is uploaded subelement 253.Vehicle ignition, intelligence is driven diagnostic equipment and is switched on power, described authentication is uploadedsubelement 253 and is driven to intelligence the registration code thatservice platform 3 sends describedauthentication storing sub-units 251 storages, intelligence is drivenservice platform 3 and is driven system terminal transmission authentication code to registered intelligence, the authentication that described intelligence is driven system terminal authenticating unit is uploadedsubelement 253 and to intelligence, is drivenservice platform 3 and send authentication message, and by described intelligencedrive service platform 3 identify whether legal.If it is legal thatIntelligent Service Platform 3 identifies that described intelligence is driven system terminal, open intelligence and drive system; If it is illegal thatIntelligent Service Platform 3 identifies that described intelligence is driven system terminal, close intelligence and drive system and driveservice platform 3 transmission message to intelligence.
Refer to shown in Fig. 2, it is mended for data of the present invention the intelligence passing and drives the flow chart of diagnostic equipment transfer of data,
Step a1, automotive ignition, intelligence is driven diagnostic equipment and is switched on power, and authenticatingunit 25 sends authentication request toIntelligent Service Platform 3, if authentication success performs step a2; If unsuccessful process ends.Authentication process has guaranteed the fail safe of vehicle operation data, prevents that intelligence from driving the illegal access of diagnostic equipment.
Refer to shown in Fig. 7, its intelligence passing for data benefit of the present invention is driven the authentication process flow diagram of diagnostic equipment;
Step a11, during igniting, intelligence is driven diagnostic equipment and is switched on power, and described authenticatingunit 25 drives to intelligence the registration code thatservice platform 3 sends storing sub-units storage;
Step a12, intelligence is driven afterservice platform 3 authentications, drives system terminal send authentication code to registered intelligence;
Step a13, the authentication that described intelligence is driven system terminal authenticating unit is uploadedsubelement 253 and to intelligence, is drivenservice platform 3 and send authentication message;
Step a14, whether described intelligence to identify that intelligence are driven system terminal legal if being driven service platform 3.If it is legal thatIntelligent Service Platform 3 identifies that described intelligence is driven system terminal, perform step 16; If it is illegal thatIntelligent Service Platform 3 identifies that described intelligence is driven system terminal, perform step 15;
Step a15, closes intelligence and drives system and driveservice platform 3 transmission message to intelligence;
Step a16, opens intelligence and drives system, reads and drives service platform transmission data to intelligence;
Intelligence is driven terminal and to platform, is sent positional information, warning etc. as required, and platform sends dispatching platforms information to terminal as required simultaneously, repeats reading information and the information of transmission step, and terminal and platform constantly carry out alternately.
Step a2,211 pairs of travelling datas of described vehicle condition data acquisition subelement gather;
Step a3, the data of 221 pairs of surveys of described data processing subelement are calculated and are processed;
Step a4, the data upload that described data upload subelement 233 is uploaded needs;
Refer to shown in Fig. 8, the data that its intelligence passing for data benefit of the present invention is driven diagnostic equipment are mended and are passed process flow diagram,
Step a41, described data upload unit 233 receives data to be sent;
Step a42, described detecting signal unit 231 detects whether there is signal of communication, and assay intervals is time interval Ts, has judged whether signal of communication, if having, performs step a43; If do not have transmitted signal to perform step a44;
Step a43, to data encryption and upload, judges whether data are successfully uploaded, if successfully upload terminal procedure; If successfully do not upload and again upload after elapsed time interval t0; If unsuccessfully upload and be greater than 3 times continuously, perform step a44; This process is the compensation process that data mend to pass, and in data upload, unsuccessful rear interval time of t0 attempts transmission again, and what prevent that error of transmission from causing cannot upload.
Step a44, describedmemory cell 24 save datas, data upload while recovering in order to signal of communication; And perform step a41.
Step a5, described vehicle condition gatherssubelement 211 and judges that whether automobile is flame-out, performs step a6 if flame-out; If flame-out, do not repeat above-mentioned steps a1-a5, to vehicle operation data collection.
Step a6, described data upload subelement 233 is according to step in step a4, and the data upload that needs are uploaded, successfully performs step a8 if upload; If upload the unsuccessful a7 that performs step;
Step a7, described benefit passes storing sub-units 241 save datas;
Step a8, data when described vehicle conditiondata acquisition subelement 211 reads stationary vehicle;
Step a9, whether described data upload 233 unit judges are uploaded, and perform step a4 uploading data if uploaded; If do not upload, perform step a10;
Step a10, described vehicle condition gatherssubelement 211 and judge that described intelligence drives diagnostic equipment and whether shut down, if shutdown performs step 11; If shutdown does not perform step a1;
Step a11, described interim storing sub-units save data.
The foregoing is only preferred embodiment of the present invention, is only illustrative for 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 invention claim, revise, and even equivalence, but all will fall within the scope of protection of the present invention.