CN104732138A - Diagnostic equipment upgrading method and diagnostic equipment - Google Patents

Diagnostic equipment upgrading method and diagnostic equipment Download PDF

Info

Publication number
CN104732138A
CN104732138A CN201410855503.7A CN201410855503A CN104732138A CN 104732138 A CN104732138 A CN 104732138A CN 201410855503 A CN201410855503 A CN 201410855503A CN 104732138 A CN104732138 A CN 104732138A
Authority
CN
China
Prior art keywords
upgrade file
ciphertext
diagnostic device
algorithm
file
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.)
Pending
Application number
CN201410855503.7A
Other languages
Chinese (zh)
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201410855503.7A priority Critical patent/CN104732138A/en
Publication of CN104732138A publication Critical patent/CN104732138A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a diagnostic equipment upgrading method. The method includes the steps that an upgrading file and ciphertext which are sent by a control device connected with diagnostic equipment are received; whether the upgrading file is legal or not is judged according to the ciphertext; when the upgrading file is legal, the diagnostic equipment is upgraded according to the upgrading file. The embodiment of the invention further discloses the diagnostic equipment. By means of the diagnostic equipment upgrading method and the diagnostic equipment, the legality and the performability of the file executed in the diagnostic equipment can be guaranteed, so that the diagnostic equipment can operate more stably and safely.

Description

A kind of upgrade method of diagnostic device and equipment
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of upgrade method and equipment of diagnostic device.
Background technology
Along with the high speed development of automobile, the complicacy of automobile function improves day by day, and in order to improve the security of automobile, automotive diagnostic installation also highlights more and more important in daily life.
At present, because the update of automobile is frequent, in order to the diagnosis making automotive diagnostic installation can support new automobile, automotive diagnostic installation needs to upgrade, and could meet the demand of user.
But, current automotive diagnostic installation is carrying out in the process of upgrading, automotive diagnostic installation is only read upgrade file, and upgrade according to rising file, this makes automotive diagnostic installation may download to illegal upgrade software to upgrade, make automotive diagnostic installation cannot ensure the legitimacy of its upgrade software, as integrality and security, this may cause automotive diagnostic installation to carry out wrong diagnosis to automobile, this brings the inconvenient life security that even may cause user to user, makes the safety of user in the process using automobile can not get ensureing.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, provides a kind of upgrade method and diagnostic device of diagnostic device.The legitimacy of the file run in diagnostic device and the completing property of file can be ensured, diagnostic device can be stablized more and safe operation.
In order to solve the problems of the technologies described above, embodiments provide a kind of upgrade method of diagnostic device, comprising:
The upgrade file that the opertaing device that reception is connected with diagnostic device sends and ciphertext;
Judge that whether described upgrade file is legal according to described ciphertext;
When described upgrade file is legal, according to described upgrade file, described diagnostic device is upgraded.
Wherein, describedly judge that whether described upgrade file is legal according to described ciphertext and comprise:
Pre-arranged public is used to verify described ciphertext;
When described cryptogram validation success, determine that described upgrade file is legal.
Wherein, use public-key described in and checking is carried out to described ciphertext comprise:
Adopt Predistribution Algorithm to calculate described upgrade file, obtain the first digest value;
Use described PKI, adopt decipherment algorithm to verify described ciphertext and described first digest value.
Wherein, described method also comprises:
When described ciphertext is unsuccessful, delete described upgrade file.
Correspondingly, the embodiment of the present invention additionally provides a kind of diagnostic device, comprising:
Receiving element, for receiving the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends;
According to described ciphertext, judging unit, for judging that whether described upgrade file is legal;
Upgrade unit, for when described upgrade file is legal, upgrades to described diagnostic device according to described upgrade file.
Wherein, described judging unit comprises:
First checking subelement, verifies described ciphertext for using pre-arranged public;
Determine subelement, for when described cryptogram validation is successful, determine that described upgrade file is legal.
Wherein, described first checking subelement comprises:
Computation subunit, for adopting Predistribution Algorithm to calculate described upgrade file, obtains the first digest value;
Second checking subelement, for using described PKI, adopts decipherment algorithm to verify described ciphertext and described first digest value.
Wherein, described equipment also comprises:
Delete cells, for when described ciphertext is unsuccessful, deletes described upgrade file.
Implement the embodiment of the present invention, there is following beneficial effect:
In the invention process, diagnostic device receives the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends, judge that whether described upgrade file is legal according to described ciphertext, and when described upgrade file is legal, according to described upgrade file, described diagnostic device is upgraded, this can ensure the legitimacy of the file run in diagnostic device and the completing property of file, diagnostic device can be stablized more and safe operation.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the first embodiment schematic flow sheet of the upgrade method of a kind of diagnostic device of the present invention;
Fig. 2 is the second embodiment schematic flow sheet of the upgrade method of a kind of diagnostic device of the present invention;
Fig. 3 is the first example structure figure of a kind of diagnostic device of the present invention;
Fig. 4 is the second example structure figure of a kind of diagnostic device of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In embodiments of the present invention, executive agent can be diagnostic device, and wherein, diagnostic device can be automotive diagnostic installation.
Referring to Fig. 1, is the first embodiment schematic flow sheet of the upgrade method of a kind of diagnostic device of the present invention.As shown in Figure 1, the upgrade method of a kind of diagnostic device described in the present embodiment comprises step:
S100, the upgrade file that the opertaing device that reception is connected with diagnostic device sends and ciphertext.
In embodiments of the present invention, diagnostic device can be the automotive diagnostic installation for diagnosing technical condition of vehicle.Namely diagnostic device can find out trouble location and the reason of automobile, comprises the Detection and diagnosis of motor car engine, the Detection and diagnosis of automobile chassis, the detection etc. of the Detection and diagnosis of body of a motor car and annex and automobile exhaust contaminant and noise.Wherein, be loaded with program of lower computer under in diagnostic device, this program of lower computer is the kernel program communicated with the ECU of automobile (Electronic Control Unit, electronic control unit), and diagnostic device carries out vehicle diagnosis mainly through program of lower computer.
In embodiments of the present invention, opertaing device can be the host computer be connected with diagnostic device, when user need upgrade the program of lower computer of diagnostic device, when supporting the diagnosis of new automobile to make diagnostic device, host computer can be connected with diagnostic device by user, and by host computer, upgrade file is downloaded to diagnostic device, thus program of lower computer renewal is carried out to diagnostic device, upgrading.
In embodiments of the present invention, host computer can be encrypted the upgrade file that diagnostic device carries out program of lower computer renewal, obtains ciphertext, and upgrade file and ciphertext are sent to diagnostic device.Wherein, host computer can adopt cryptographic algorithm to be encrypted upgrade file, and cryptographic algorithm can comprise symmetric encipherment algorithm or rivest, shamir, adelman etc.Wherein, in a symmetric encryption algorithm, data transmission side will expressly (raw data) and encryption key together after special cryptographic algorithm process, make it become complicated encrypted cipher text and send.After destination receives ciphertext, understand original text if want, then need to use the key of encryption and the algorithm for inversion of identical algorithms to be decrypted ciphertext, it just can be made to revert to readable plaintext.In a symmetric encryption algorithm, the key of use only has one, and send out collection of letters both sides and all use these double secret key data to encrypt and decrypt, this will ask decryption side must know encryption key in advance.In rivest, shamir, adelman, need two keys, PKI and private key, PKI and private key are a pair, if be encrypted data with PKI, only had and could decipher with corresponding private key; If be encrypted data with private key, so only had and could decipher with corresponding PKI.
Preferably, in embodiments of the present invention, host computer can adopt rivest, shamir, adelman to be encrypted upgrade file.Concrete, can be, first, host computer can be compiled into binary file to the program of lower computer that will upgrade, obtain upgrade file, such as: host computer can use IAR EmbeddedWorkbench IDE composing software to compile the program of lower computer that will upgrade, generate slave computer BIN file, wherein, slave computer BIN file can called after Download.bin.We are understandable that, Download.bin file can be upgrade file.After host computer obtains upgrade file, host computer can use private key to the upgrade file encryption generated, generating ciphertext.Wherein, host computer uses private key to the upgrade file encryption generated, generating ciphertext can be: first, host computer can adopt MD5 (Message DigestAlgorithm, Message Digest Algorithm 5) algorithm calculates upgrade file, obtains digest value, secondly, host computer can use private key and adopt RSA Algorithm to calculate digest value, obtains ciphertext.In a particular application, can be, first, host computer can adopt MD5 algorithm to calculate Download.bin file, the digest value obtained is labeled as DigestData_A, secondly, host computer uses private key to carry out RSA Algorithm calculating to DigestData_A, acquisition ciphertext tokens is SignatureData_A, finally, SignatureData_A is added into Download.bin end-of-file by host computer, thus generates the file comprising ciphertext and upgrade file, and this file is labeled as Download_s.bin.Wherein, ciphertext can be digital signature, and private key can be undertaken preset by terminal user.Further, MD5 algorithm is the widely used a kind of hash function of computer safety field, in order to provide the integrity protection of message.The algorithm that RSA Algorithm is proposed together by Peter Lonard Lee Vista (RonRivest), A Di Shamir (Adi Shamir) and Leonard A Deman (Leonard Adleman) is a kind of cryptographic algorithm.
In embodiments of the present invention, when host computer need carry out transmission upgrade file and ciphertext to diagnostic device, first host computer can send to diagnostic device and enter diagnostic device request.Such as: host computer can send to diagnostic device the BOOT entry request entering diagnostic device, diagnostic device is entered with request, wherein, BOOT can be Bootloader program, for initialization diagnostic device, carries out the work such as safety verification, upgrading program of lower computer.When host computer enters diagnostic device success, host computer can send the request of upgrading program of lower computer to diagnostic device; When host computer enter diagnostic device unsuccessful time, then upgrading master computer diagnostic device failure, exit updating operation.When host computer allows the program of lower computer of upgrading diagnostic device, host computer can send upgrade file and ciphertext to diagnostic device.Such as: host computer can send Download_s.bin file to diagnostic device; When host computer is not allowed to the program of lower computer of upgrading diagnostic device, then upgrading master computer diagnostic device failure, exits updating operation.When host computer sends after upgrade file and ciphertext terminate, host computer can send upgrade file to diagnostic device and be sent instruction, and with indication diagnosis device file to be sent completely, diagnostic device can carry out next step operation.Wherein, in the process that host computer sends upgrade file and ciphertext, when occurring communicating interrupt or exception, the failure of upgrading master computer diagnostic device, exits updating operation.
In embodiments of the present invention, when diagnostic device receive host computer send ciphertext and upgrade file after, ciphertext and upgrade file can be stored in the operation of temporary buffer products for further by diagnostic device.
According to described ciphertext, S101, judges that whether described upgrade file is legal.
In embodiments of the present invention, when diagnostic device receives upgrade file and ciphertext, diagnostic device can be verified ciphertext, judges that whether described ciphertext is legal.Wherein, when the ciphertext of host computer encryption is that when adopting private key to be encrypted, diagnostic device can use public-key and to verify ciphertext, and judges whether ciphertext is proved to be successful, and when the authentication succeeds, determines that the upgrade file that diagnostic device receives is legal.Wherein, diagnostic device adopts PKI to verify ciphertext, first, diagnostic device can adopt Predistribution Algorithm to obtain the first digest value, secondly, diagnostic device can use public-key, and adopts decipherment algorithm to ciphertext and the checking of the first digest value, when cryptogram validation success, diagnostic file can determine that upgrade file is legal.Wherein, Predistribution Algorithm can be MD2 algorithm, MD4 algorithm and MD5 algorithm etc.Decipherment algorithm can be RSA Algorithm, ElGamal algorithm, Miller-Rabin algorithm and Diffie-Hellman algorithm etc.
S102, when described upgrade file is legal, upgrades to described diagnostic device according to described upgrade file.
In embodiments of the present invention, when diagnostic device judges that upgrade file is legal, the upgrade file leaving temporary buffer in can be written in flash by diagnostic device, and upgrades.When diagnostic device judges that upgrade file is illegal, the upgrade file leaving temporary buffer in can be deleted by diagnostic device, and diagnostic device is upgraded unsuccessfully.
In the invention process, diagnostic device receives the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends, judge that whether described upgrade file is legal according to described ciphertext, and when described upgrade file is legal, according to described upgrade file, described diagnostic device is upgraded, this can ensure the legitimacy of the file run in diagnostic device and the completing property of file, diagnostic device can be stablized more and safe operation.
Referring to Fig. 2, is the second embodiment schematic flow sheet of the upgrade method of a kind of diagnostic device of the present invention.As shown in Figure 2, the upgrade method of a kind of diagnostic device described in the present embodiment comprises step:
S200, the upgrade file that the opertaing device that reception is connected with diagnostic device sends and ciphertext.
S201, adopts Predistribution Algorithm to calculate described upgrade file, obtains the first digest value.
In embodiments of the present invention, Predistribution Algorithm can be MD2 algorithm, MD4 algorithm and MD5 algorithm etc., and preferably, Predistribution Algorithm can be MD5 algorithm.In a particular application, diagnostic device can adopt MD5 algorithm to calculate Download.bin file, and result of calculation is labeled as DigestData_B.
S202, uses described PKI, adopts decipherment algorithm to verify described ciphertext and described first digest value.
In embodiments of the present invention, decipherment algorithm can be RSA Algorithm, ElGamal algorithm, Miller-Rabin algorithm and Diffie-Hellman algorithm etc., and preferably, decipherment algorithm can be RSA Algorithm.In a particular application, diagnostic device can use public-key, RSA Algorithm is adopted to verify the ciphertext SignatureData_A received and the first digest value, wherein, adopt RSA Algorithm to be verified as prior art to the ciphertext SignatureData_A received and the first digest value, no longer repeat at this.
S203, when described cryptogram validation success, determines that described upgrade file is legal.
S204, when described upgrade file is legal, upgrades to described diagnostic device according to described upgrade file.
In embodiments of the present invention, the embodiment of step S200 and step S204 see the embodiment of the step S100 of above embodiment and step S102, no longer can repeat at this.
In the invention process, diagnostic device receives the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends, judge that whether described upgrade file is legal according to described ciphertext, and when described upgrade file is legal, according to described upgrade file, described diagnostic device is upgraded, this can ensure the legitimacy of the file run in diagnostic device and the completing property of file, diagnostic device can be stablized more and safe operation.
See Fig. 3, it is the first example structure schematic diagram of a kind of diagnostic device of the embodiment of the present invention.Diagnostic device described in the present embodiment, comprising:
Receiving element 100, for receiving the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends.
According to described ciphertext, judging unit 200, for judging that whether described upgrade file is legal.
Upgrade unit 300, for when described upgrade file is legal, upgrades to described diagnostic device according to described upgrade file.
In embodiments of the present invention, diagnostic device can be the automotive diagnostic installation for diagnosing technical condition of vehicle.Namely diagnostic device can find out trouble location and the reason of automobile, comprises the Detection and diagnosis of motor car engine, the Detection and diagnosis of automobile chassis, the detection etc. of the Detection and diagnosis of body of a motor car and annex and automobile exhaust contaminant and noise.Wherein, be loaded with program of lower computer under in diagnostic device, this program of lower computer is the kernel program communicated with the ECU of automobile (Electronic Control Unit, electronic control unit), and diagnostic device carries out vehicle diagnosis mainly through program of lower computer.
In embodiments of the present invention, opertaing device can be the host computer be connected with diagnostic device, when user need upgrade the program of lower computer of diagnostic device, when supporting the diagnosis of new automobile to make diagnostic device, host computer can be connected with diagnostic device by user, and by host computer, upgrade file is downloaded to diagnostic device, thus program of lower computer renewal is carried out to diagnostic device, upgrading.
In embodiments of the present invention, host computer can be encrypted the upgrade file that diagnostic device carries out program of lower computer renewal, obtains ciphertext, and upgrade file and ciphertext are sent to diagnostic device.Wherein, host computer can adopt cryptographic algorithm to be encrypted upgrade file, and cryptographic algorithm can comprise symmetric encipherment algorithm or rivest, shamir, adelman etc.Wherein, in a symmetric encryption algorithm, data transmission side will expressly (raw data) and encryption key together after special cryptographic algorithm process, make it become complicated encrypted cipher text and send.After destination receives ciphertext, understand original text if want, then need to use the key of encryption and the algorithm for inversion of identical algorithms to be decrypted ciphertext, it just can be made to revert to readable plaintext.In a symmetric encryption algorithm, the key of use only has one, and send out collection of letters both sides and all use these double secret key data to encrypt and decrypt, this will ask decryption side must know encryption key in advance.In rivest, shamir, adelman, need two keys, PKI and private key, PKI and private key are a pair, if be encrypted data with PKI, only had and could decipher with corresponding private key; If be encrypted data with private key, so only had and could decipher with corresponding PKI.
Preferably, in embodiments of the present invention, host computer can adopt rivest, shamir, adelman to be encrypted upgrade file.Concrete, can be, first, host computer can be compiled into binary file to the program of lower computer that will upgrade, obtain upgrade file, such as: host computer can use IAR EmbeddedWorkbench IDE composing software to compile the program of lower computer that will upgrade, generate slave computer BIN file, wherein, slave computer BIN file can called after Download.bin.We are understandable that, Download.bin file can be upgrade file.After host computer obtains upgrade file, host computer can use private key to the upgrade file encryption generated, generating ciphertext.Wherein, host computer uses private key to the upgrade file encryption generated, generating ciphertext can be: first, host computer can adopt MD5 (Message DigestAlgorithm, Message Digest Algorithm 5) algorithm calculates upgrade file, obtains digest value, secondly, host computer can use private key and adopt RSA Algorithm to calculate digest value, obtains ciphertext.In a particular application, can be, first, host computer can adopt MD5 algorithm to calculate Download.bin file, the digest value obtained is labeled as DigestData_A, secondly, host computer uses private key to carry out RSA Algorithm calculating to DigestData_A, acquisition ciphertext tokens is SignatureData_A, finally, SignatureData_A is added into Download.bin end-of-file by host computer, thus generates the file comprising ciphertext and upgrade file, and this file is labeled as Download_s.bin.Wherein, ciphertext can be digital signature, and private key can be undertaken preset by terminal user.Further, MD5 algorithm is the widely used a kind of hash function of computer safety field, in order to provide the integrity protection of message.The algorithm that RSA Algorithm is proposed together by Peter Lonard Lee Vista (RonRivest), A Di Shamir (Adi Shamir) and Leonard A Deman (Leonard Adleman) is a kind of cryptographic algorithm.
In embodiments of the present invention, when host computer need carry out transmission upgrade file and ciphertext to diagnostic device, first host computer can send to diagnostic device and enter diagnostic device request.Such as: host computer can send to diagnostic device the BOOT entry request entering diagnostic device, diagnostic device is entered with request, wherein, BOOT can be Bootloader program, for initialization diagnostic device, carries out the work such as safety verification, upgrading program of lower computer.When host computer enters diagnostic device success, host computer can send the request of upgrading program of lower computer to diagnostic device; When host computer enter diagnostic device unsuccessful time, then upgrading master computer diagnostic device failure, exit updating operation.When host computer allows the program of lower computer of upgrading diagnostic device, host computer can send upgrade file and ciphertext to diagnostic device.Such as: host computer can send Download_s.bin file to diagnostic device; When host computer is not allowed to the program of lower computer of upgrading diagnostic device, then upgrading master computer diagnostic device failure, exits updating operation.When host computer sends after upgrade file and ciphertext terminate, host computer can send upgrade file to diagnostic device and be sent instruction, and with indication diagnosis device file to be sent completely, diagnostic device can carry out next step operation.Wherein, in the process that host computer sends upgrade file and ciphertext, when occurring communicating interrupt or exception, the failure of upgrading master computer diagnostic device, exits updating operation.
In embodiments of the present invention, when receiving element 100 receive host computer send ciphertext and upgrade file after, ciphertext and upgrade file can be stored in the operation of temporary buffer products for further by receiving element 100.
In embodiments of the present invention, when receiving element 100 receives upgrade file and ciphertext, judging unit 200 can be verified ciphertext, judges that whether described ciphertext is legal.Wherein, when the ciphertext of host computer encryption is that when adopting private key to be encrypted, judging unit 200 can use public-key and to verify ciphertext, and judges whether ciphertext is proved to be successful, and when the authentication succeeds, determines that the upgrade file that diagnostic device receives is legal.Wherein, judging unit 200 adopts PKI to verify ciphertext, first, judging unit 200 can adopt Predistribution Algorithm to obtain the first digest value, secondly, judging unit 200 can use public-key, and adopts decipherment algorithm to ciphertext and the checking of the first digest value, when cryptogram validation success, diagnostic file can determine that upgrade file is legal.Wherein, Predistribution Algorithm can be MD2 algorithm, MD4 algorithm and MD5 algorithm etc.Decipherment algorithm can be RSA Algorithm, ElGamal algorithm, Miller-Rabin algorithm and Diffie-Hellman algorithm etc.
In embodiments of the present invention, when judging unit 200 judges that upgrade file is legal, the upgrade file leaving temporary buffer in can be written in flash by upgrade unit 300, and upgrades.When judging unit 200 judges that upgrade file is illegal, the upgrade file leaving temporary buffer in can be deleted by diagnostic device, and diagnostic device is upgraded unsuccessfully.
In the invention process, diagnostic device receives the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends, judge that whether described upgrade file is legal according to described ciphertext, and when described upgrade file is legal, according to described upgrade file, described diagnostic device is upgraded, this can ensure the legitimacy of the file run in diagnostic device and the completing property of file, diagnostic device can be stablized more and safe operation.
See Fig. 4, it is the second example structure schematic diagram of a kind of diagnostic device of the embodiment of the present invention.Diagnostic device described in the present embodiment, comprising:
Receiving element 400, for receiving the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends.
According to described ciphertext, judging unit 500, for judging that whether described upgrade file is legal.
Upgrade unit 600, for when described upgrade file is legal, upgrades to described diagnostic device according to described upgrade file.
Delete cells 700, for when described ciphertext is unsuccessful, deletes described upgrade file.
Wherein, described judging unit 500 specifically for:
Pre-arranged public is used to verify described ciphertext;
When described cryptogram validation success, determine that described upgrade file is legal.
Wherein, described judging unit 500 specifically for:
Adopt Predistribution Algorithm to calculate described upgrade file, obtain the first digest value;
Use described PKI, adopt decipherment algorithm to verify described ciphertext and described first digest value.
Wherein, described ciphertext comprises digital signature.
In embodiments of the present invention, Predistribution Algorithm can be MD2 algorithm, MD4 algorithm and MD5 algorithm etc., and preferably, Predistribution Algorithm can be MD5 algorithm.In a particular application, judging unit 500 can adopt MD5 algorithm to calculate Download.bin file, and result of calculation is labeled as DigestData_B.
In embodiments of the present invention, decipherment algorithm can be RSA Algorithm, ElGamal algorithm, Miller-Rabin algorithm and Diffie-Hellman algorithm etc., and preferably, decipherment algorithm can be RSA Algorithm.In a particular application, judging unit 500 can use public-key, RSA Algorithm is adopted to verify the ciphertext SignatureData_A received and the first digest value, wherein, judging unit 500 adopts RSA Algorithm to be verified as prior art to the ciphertext SignatureData_A received and the first digest value, no longer repeats at this.
In embodiments of the present invention, when judging unit 500 pairs of cryptogram validation successes, judging unit 500 can determine that received upgrade file is legal.
Wherein, be understandable that, the function of each functional module of the present embodiment also according to the associated description with reference to above-described embodiment, no longer can repeat herein.
In the invention process, diagnostic device receives the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends, judge that whether described upgrade file is legal according to described ciphertext, and when described upgrade file is legal, according to described upgrade file, described diagnostic device is upgraded, this can ensure the legitimacy of the file run in diagnostic device and the completing property of file, diagnostic device can be stablized more and safe operation.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (8)

1. a upgrade method for diagnostic device, is characterized in that, described method comprises:
The upgrade file that the opertaing device that reception is connected with diagnostic device sends and ciphertext;
Judge that whether described upgrade file is legal according to described ciphertext;
When described upgrade file is legal, according to described upgrade file, described diagnostic device is upgraded.
2. the method for claim 1, is characterized in that, describedly judges that whether described upgrade file is legal according to described ciphertext and comprises:
Pre-arranged public is used to verify described ciphertext;
When described cryptogram validation success, determine that described upgrade file is legal.
3. method as claimed in claim 2, is characterized in that, described in use public-key and checking is carried out to described ciphertext comprise:
Adopt Predistribution Algorithm to calculate described upgrade file, obtain the first digest value;
Use described PKI, adopt decipherment algorithm to verify described ciphertext and described first digest value.
4. method as claimed in claim 3, it is characterized in that, described method also comprises:
When described ciphertext is unsuccessful, delete described upgrade file.
5. a diagnostic device, is characterized in that, described equipment comprises:
Receiving element, for receiving the upgrade file and ciphertext that the opertaing device that is connected with diagnostic device sends;
According to described ciphertext, judging unit, for judging that whether described upgrade file is legal;
Upgrade unit, for when described upgrade file is legal, upgrades to described diagnostic device according to described upgrade file.
6. equipment as claimed in claim 5, it is characterized in that, described judging unit comprises:
First checking subelement, verifies described ciphertext for using pre-arranged public;
Determine subelement, for when described cryptogram validation is successful, determine that described upgrade file is legal.
7. equipment as claimed in claim 6, is characterized in that, described first checking subelement comprises:
Computation subunit, for adopting Predistribution Algorithm to calculate described upgrade file, obtains the first digest value;
Second checking subelement, for using described PKI, adopts decipherment algorithm to verify described ciphertext and described first digest value.
8. equipment as claimed in claim 7, it is characterized in that, described equipment also comprises:
Delete cells, for when described ciphertext is unsuccessful, deletes described upgrade file.
CN201410855503.7A 2014-12-31 2014-12-31 Diagnostic equipment upgrading method and diagnostic equipment Pending CN104732138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410855503.7A CN104732138A (en) 2014-12-31 2014-12-31 Diagnostic equipment upgrading method and diagnostic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410855503.7A CN104732138A (en) 2014-12-31 2014-12-31 Diagnostic equipment upgrading method and diagnostic equipment

Publications (1)

Publication Number Publication Date
CN104732138A true CN104732138A (en) 2015-06-24

Family

ID=53456018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410855503.7A Pending CN104732138A (en) 2014-12-31 2014-12-31 Diagnostic equipment upgrading method and diagnostic equipment

Country Status (1)

Country Link
CN (1) CN104732138A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648626A (en) * 2016-11-29 2017-05-10 郑州信大捷安信息技术股份有限公司 Secure remote upgrade system and upgrade method for vehicles
CN107704756A (en) * 2017-09-26 2018-02-16 晶晨半导体(上海)股份有限公司 Safe checking method and system before a kind of system upgrade
CN108124491A (en) * 2017-12-28 2018-06-05 深圳市元征软件开发有限公司 Diagnosis connector upgrading verification method, device and the diagnosis connector of diagnostic device
CN108255535A (en) * 2016-12-28 2018-07-06 乐视汽车(北京)有限公司 Vehicle device upgrade method and vehicle device
CN113515747A (en) * 2021-05-17 2021-10-19 深圳市友华通信技术有限公司 Equipment upgrading method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009795A (en) * 2006-06-30 2008-01-17 Hitachi Ltd Diagnostic device, line diagnostic method and line diagnostic program
CN102082784A (en) * 2010-11-11 2011-06-01 广东欧珀电子工业有限公司 Method for upgrading software on line
CN103279372A (en) * 2013-05-23 2013-09-04 青岛海信宽带多媒体技术有限公司 Set top box software upgrading method and set top box
CN103577233A (en) * 2013-11-07 2014-02-12 深圳市元征科技股份有限公司 OBDII code reading card device and system and method for upgrading same
CN103634380A (en) * 2013-11-18 2014-03-12 深圳市道通科技有限公司 Updating method, device and system for automobile diagnosis equipment
CN103793247A (en) * 2014-01-23 2014-05-14 深圳市道通科技有限公司 Diagnosis device software updating method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009795A (en) * 2006-06-30 2008-01-17 Hitachi Ltd Diagnostic device, line diagnostic method and line diagnostic program
CN102082784A (en) * 2010-11-11 2011-06-01 广东欧珀电子工业有限公司 Method for upgrading software on line
CN103279372A (en) * 2013-05-23 2013-09-04 青岛海信宽带多媒体技术有限公司 Set top box software upgrading method and set top box
CN103577233A (en) * 2013-11-07 2014-02-12 深圳市元征科技股份有限公司 OBDII code reading card device and system and method for upgrading same
CN103634380A (en) * 2013-11-18 2014-03-12 深圳市道通科技有限公司 Updating method, device and system for automobile diagnosis equipment
CN103793247A (en) * 2014-01-23 2014-05-14 深圳市道通科技有限公司 Diagnosis device software updating method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648626A (en) * 2016-11-29 2017-05-10 郑州信大捷安信息技术股份有限公司 Secure remote upgrade system and upgrade method for vehicles
CN108255535A (en) * 2016-12-28 2018-07-06 乐视汽车(北京)有限公司 Vehicle device upgrade method and vehicle device
CN107704756A (en) * 2017-09-26 2018-02-16 晶晨半导体(上海)股份有限公司 Safe checking method and system before a kind of system upgrade
CN108124491A (en) * 2017-12-28 2018-06-05 深圳市元征软件开发有限公司 Diagnosis connector upgrading verification method, device and the diagnosis connector of diagnostic device
WO2019127276A1 (en) * 2017-12-28 2019-07-04 深圳市元征软件开发有限公司 Method and apparatus for verifying update of diagnostic connector of diagnostic device and diagnostic connector
US10726130B2 (en) 2017-12-28 2020-07-28 Shenzhen Launch Software Co., Ltd. Method and device for verifying upgrade of diagnosis connector of diagnostic equipment, and diagnosis connector
CN108124491B (en) * 2017-12-28 2022-11-11 深圳市元征软件开发有限公司 Diagnostic joint upgrading verification method and device of diagnostic equipment and diagnostic joint
CN113515747A (en) * 2021-05-17 2021-10-19 深圳市友华通信技术有限公司 Equipment upgrading method, device, equipment and storage medium
CN113515747B (en) * 2021-05-17 2024-02-09 深圳市友华通信技术有限公司 Equipment upgrading method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11662991B2 (en) Vehicle-mounted device upgrade method and related device
US10708062B2 (en) In-vehicle information communication system and authentication method
CN107710672B (en) Software distribution processing device, software distribution processing method, and vehicle
CN103166759B (en) Use the method and apparatus downloaded for secure firmware of diagnosis link connector (DLC) and ONSTAR system
JP5949732B2 (en) Program update system and program update method
US11356425B2 (en) Techniques for improving security of encrypted vehicle software updates
EP3893108A1 (en) Vehicle-mounted device upgrading method, and related apparatus
CN110621014B (en) Vehicle-mounted equipment, program upgrading method thereof and server
CN104732138A (en) Diagnostic equipment upgrading method and diagnostic equipment
CN104462965A (en) Method for verifying integrity of application program and network device
CN103248491B (en) A kind of backup method of electronic signature token private key and system
CN103269271A (en) Method and system for back-upping private key in electronic signature token
CN111565182B (en) Vehicle diagnosis method and device and storage medium
CN112015455A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN112882750A (en) OTA upgrade package processing method and device and electronic equipment
US20220182248A1 (en) Secure startup method, controller, and control system
CN117435226B (en) Data refreshing method, device and storage medium of vehicle-mounted electronic control unit
CN114448644A (en) Method, device, equipment and medium for realizing digital certificate based on symmetric algorithm
CN116419217B (en) OTA data upgrading method, system, equipment and storage medium
KR20110063245A (en) Method and system of verification of s/w platform of vehicle
CN114091040B (en) Vehicle ECU upgrading method, storage medium and client
CN114867011A (en) Vehicle-mounted data transmission device and method, vehicle and vehicle-mounted data transmission system
CN114629724B (en) Internet of vehicles data transmission method and device, server and storage medium
CN116938533A (en) Encryption and decryption signature verification system, method, device and medium in automobile OTA process
CN114629724A (en) Internet of vehicles data transmission method, device, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150624