Movatterモバイル変換


[0]ホーム

URL:


CN103744706A - Method and device for upgrading program of VCI (virtual channel identifier) equipment - Google Patents

Method and device for upgrading program of VCI (virtual channel identifier) equipment
Download PDF

Info

Publication number
CN103744706A
CN103744706ACN201410022935.XACN201410022935ACN103744706ACN 103744706 ACN103744706 ACN 103744706ACN 201410022935 ACN201410022935 ACN 201410022935ACN 103744706 ACN103744706 ACN 103744706A
Authority
CN
China
Prior art keywords
file
upgrade
data
receiving
upgrading
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
CN201410022935.XA
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.)
Autel Intelligent Technology Corp Ltd
Original Assignee
Autel Intelligent Technology Corp 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 Autel Intelligent Technology Corp LtdfiledCriticalAutel Intelligent Technology Corp Ltd
Priority to CN201410022935.XApriorityCriticalpatent/CN103744706A/en
Publication of CN103744706ApublicationCriticalpatent/CN103744706A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention discloses a method and a device for upgrading a program of VCI (virtual channel identifier) equipment and belongs to the technical field of vehicles and software. The method includes after an application program upgrading request is received, entering an upgrading mode and creating a temporary file; after header information of an upgrading file is received, recording related information of the header information; receiving the upgrading file, and upgrading the temporary file according to data of the upgrading file; after the upgrading file is received, encrypting data of the temporary file, and storing the temporary file to be a directory-readable-writable new-version application program file. Through a mode of independent upgrading of an application function code, data packet checking is added in the process of upgrading, an upgraded executable code file after being encrypted is stored in a file system, dynamic loading is performed when needed, and the executable code file is executed after being decrypted, so that stability and safety in upgrading of the VCI equipment are improved.

Description

A kind of VCI device program upgrade method and device
Technical field
The present invention relates to automobile and software technology field, relate in particular to a kind of VCI(vehicle communication interface) device program upgrade method and device.
Background technology
High speed development along with automotive electronic technology, increasing vehicle computer system need to be safeguarded and upgrade, increasing vehicle diagnosis or programming device manufacturer also occur again and again, equipment also needs ceaselessly upgrade and safeguard like this, VCI equipment is also a kind of general automobile diagnosis or DLL (dynamic link library) equipment wherein, be mostly based on embedded OS, its software also needs to be upgraded, to adapt to the development of automotive electronics.
At present, VCI equipment software upgrading is all generally to adopt total system upgrade method, on the one hand, when application function only needs upgrading, does not need the whole operating system of upgrading, and the whole operating system of upgrading has strengthened the risk that unsuccessfully caused owing to upgrading; On the other hand, in the VCI equipment based on file system, once user has acquired administrator right, executable application function code is exposed to cracker completely, and security is lower.
Summary of the invention
In view of this, the technical problem to be solved in the present invention is to provide a kind of VCI device program upgrade method and device, to strengthen stability and the security of VCI device upgrade.
It is as follows that the present invention solves the problems of the technologies described above adopted technical scheme:
According to an aspect of the present invention, a kind of VCI device program upgrade method providing, the method comprises:
Receive after application program updating request, enter upgrade mode and set up temporary file;
Receive after the header of upgrade file the relevant information of recording head information;
Receive upgrade file, and according to the Data Update temporary file of upgrade file;
After receiving upgrade file, the data of temporary file are encrypted, and temporary file are saved as to the redaction application file of read-write catalogue.
Preferably, the header of upgrade file comprises: file size, CRC information and signature sign.
Preferably, after receiving the header of upgrade file, the data that receive upgrade file also comprise before:
Judge that whether the signature sign in header is identical with the signing messages of VCI equipment this locality, if not identical, finish the flow process of upgrading.
Preferably, receive upgrade file, and further comprise according to the Data Update temporary file of upgrade file:
Receive the packet of upgrade file, and whether verification current data packet is correct, if correct, request sends next packet, otherwise request repeat current data packet;
According to the current packet receiving and length, upgrade temporary file, and the data total length of record reception;
Whether the data total length that judgement receives equals the file size of header, if not, above-mentioned steps is carried out in circulation.
Preferably, after receiving upgrade file, the data of temporary file are encrypted further and are comprised:
When the data total length receiving equals after the file size of header, judge when whether the check (CRC) of all packets and the CRC information of described header conform to, if conformed to, upgrade data is encrypted.
Preferably, after said method, also comprise: the step of restarting systems.
Preferably, also comprise the step of loading application programs file after the step of above-mentioned restarting systems, this step further comprises:
Check whether redaction application file in the read-write catalogue of file system exists and effectively, if, load redaction application file to internal memory deciphering, if not, the legacy version application file in the read-only catalogue of load document system is to internal memory deciphering.
According to another aspect of the present invention, a kind of VCI device program update device providing, this device comprises:
Monitor module, for receiving after application program updating request, enter upgrade mode and set up temporary file;
Logging modle, for receiving after the header of upgrade file, the relevant information of recording head information;
Update module, for receiving upgrade file, and according to the Data Update temporary file of upgrade file;
Preserve module, for after receiving upgrade file, the data of temporary file are encrypted, and temporary file are saved as to the redaction application file of read-write catalogue.
Preferably, update module further comprises:
Receiving element, for receiving the packet of upgrade file, and whether verification current data packet is correct, if correct, request sends next packet, otherwise request repeat current data packet;
Updating block, for upgrading temporary file according to the current packet receiving and length, and the data total length of record reception;
Judging unit, for judging whether the data total length of reception equals the file size of header, if not etc., notify receiving element to continue to receive packet.
Preferably, this device also comprises load-on module, for checking whether the redaction application file of read-write catalogue of file system exists and effectively, if, load redaction application file to internal memory deciphering, if not, the legacy version application file in the read-only catalogue of load document system is to internal memory deciphering.
VCI device program upgrade method and the device of the embodiment of the present invention, by the standalone upgrade mode to application function code, and in escalation process, add data packet format verification, after executable code file encryption after upgrading, deposit in file system, dynamic load again while needing, and carry out after deciphering, strengthened stability and the security of VCI device upgrade.
Accompanying drawing explanation
The process flow diagram of a kind of VCI device program upgrade method that Fig. 1 provides for the embodiment of the present invention.
The process flow diagram of a kind of VCI device program upgrade method that Fig. 2 provides for the preferred embodiment of the present invention.
The structural representation of a kind of VCI device program update device that Fig. 3 provides for the preferred embodiment of the present invention.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearer, clear, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, a kind of VCI device program upgrade method that the embodiment of the present invention provides comprises the following steps:
S201, receive after application program updating request, enter upgrade mode and set up temporary file.
S202, receive after the header of upgrade file the relevant information of recording head information.
Wherein, the header of upgrade file comprises: file size, CRC information and signature sign.
S203, reception upgrade file, and according to the Data Update temporary file of upgrade file.
As a kind of preferred version, this step further comprises: receive the packet of upgrade file, and whether verification current data packet is correct, if correct, request sends next packet, otherwise request repeat current data packet;
According to the current packet receiving and length, upgrade temporary file, and the data total length of record reception;
Whether the data total length that judgement receives equals the file size of header, if not, circulation is carried out above-mentioned steps until the data total length receiving equals the file size of header.
S204, after receiving upgrade file, the data of temporary file are encrypted, and temporary file are saved as to the redaction application file of read-write catalogue.
Specifically, when the data total length receiving equals after the file size of header, judge when whether the check (CRC) of all packets and the CRC information of described header conform to, if conformed to, upgrade data is encrypted.
As a kind of preferred version, after receiving the header of upgrade file, the data that receive upgrade file also comprise before: judge that whether the signature sign in header is identical with the signing messages of VCI equipment this locality, if not identical, finish the flow process of upgrading.Further so effective security that improves upgrading.
As a kind of preferred version, after said method, also comprise: the step of restarting systems, the step that also comprises loading application programs file after the step of restarting systems, this step further comprises: check whether redaction application file in the read-write catalogue of file system exists and effectively, if, load redaction application file to internal memory deciphering, if not, the legacy version application file in the read-only catalogue of load document system is to internal memory deciphering.Like this, the former version that makes of ROMPaq has backup in read-only catalogue, only has system normally to start, and the former destroyed probability of version file that makes is very little, and the stability of system strengthens; Only need to be upgraded to the application code carried out of redaction, updating speed is fast; The rear executable code of upgrading has carried out encrypting in reading and writing of files catalogue to be deposited, and only when operation, deciphers internal memory and carries out, and has promoted the difficulty that cracks of program, and the security of the rear VCI equipment of upgrading is higher.
As a kind of preferred version, after said method, also comprise restarting systems, after restarting systems, also comprise the step of loading application programs file, this step further comprises:
Check whether redaction application file in the read-write catalogue of file system exists and effectively, if, load described redaction application file to internal memory deciphering, if not, the legacy version application file in the read-only catalogue of load document system is to internal memory deciphering.Wherein, the legacy version application file in the read-only catalogue of file system is the dispatch from the factory default document of time configuration of VCI equipment.
Refer to Fig. 2, a kind of VCI device program upgrade method that the embodiment of the present invention provides comprises the following steps:
S201, start.
Whether the redaction file in S202, the read-write catalogue of inspection file system exists and effectively, if so, performs step S203, otherwise execution step S204.
S203, the code file loading in read-write catalogue are also deciphered to internal memory, submit to and carry out.
S204, load read-only catalogue old edition file to internal memory deciphering, submit to and carry out.
S205, enter the duty of awaiting orders.
S206, judge whether to receive upgrade request, if so, return to step S205, otherwise execution step S207.
Specifically, PC software encapsulates the compiling function code carried out file out, adds certain data layout and signature.In the operation of VCI equipment, can by USB cable, connect with it by PC software, PC software sends the request of upgrade application program in machine code to VCI equipment.
S207, enter upgrade code pattern, set up temporary file, and wait for and receive the relevant data message of upgrade file.
S208, reception upgrade file packet.
Specifically, PC software sends upgrade code current data packet, and notifies this packet length and this packet check information of VCI equipment.
Whether S209, verification current data packet be correct, if so, performs step S210, otherwise execution step S211.
Specifically, VCI equipment writes temporary file according to packet length and bag verification, and the total length that receives of record.
S210, request repeat current data packet, go to step S208.
S211, judge whether to receive all packets, if so, perform step S212, otherwise execution step S213.
S212, request send next packet, go to step S208.
S213, judge that whether the CRC of all packets is correct, if so, perform step S215, otherwise execution step S214.
Whether the check (CRC) that specifically, the calculates all data whether CRC information in header conforms to.
S214, all packets of request repeat, go to step S208.
S215, temporary file data are saved as to the redaction file of formal read-write code directory.
S216, restarting systems.
The VCI device program upgrade method of the embodiment of the present invention, by the standalone upgrade mode to application function code, and in escalation process, adopt list to wrap verification and overall budget CRC check mode, program in machine code after upgrading is after encrypting in file system, after must moving front deciphering, carry out, strengthened stability and the security of VCI device upgrade.
Refer to Fig. 3, a kind of VCI device program update device that the embodiment of the present invention provides comprises:
Monitor module 10, for receiving after application program updating request, enter upgrade mode and set up temporary file;
Logging modle 20, for receiving after the header of upgrade file, the relevant information of recording head information;
Update module 30, for receiving upgrade file, and according to the Data Update temporary file of upgrade file;
Preserve module 40, for after receiving upgrade file, the data of temporary file are encrypted, and temporary file are saved as to the redaction application file of read-write catalogue.
Preferably, update module 30 further comprises:
Receiving element 301, for receiving the packet of upgrade file, and whether verification current data packet is correct, if correct, request sends next packet, otherwise request repeat current data packet;
Updating block 302, for upgrading temporary file according to the current packet receiving and length, and the data total length of record reception;
Judging unit 303, for judging whether the data total length of reception equals the file size of header, if not etc., notify receiving element to continue to receive packet.
Preferably, this device also comprises load-on module 50, for checking whether the redaction application file of read-write catalogue of file system exists and effectively, if, load redaction application file to internal memory deciphering, if not, the legacy version application file in the read-only catalogue of load document system is to internal memory deciphering.
VCI device program upgrade method and the device of the embodiment of the present invention, by the standalone upgrade mode to application function code, and in escalation process, add data packet format verification, after executable code file encryption after upgrading, deposit in file system, dynamic load again while needing, and carry out after deciphering, strengthened stability and the security of VCI device upgrade.
It should be noted that, the technical characterictic in said method embodiment is all corresponding applicable at this device, no longer repeats here.
With reference to the accompanying drawings of the preferred embodiments of the present invention, not thereby limit to interest field of the present invention above.Those skilled in the art do not depart from the scope and spirit of the present invention interior done any modification, are equal to and replace and improve, all should be within interest field of the present invention.

Claims (10)

CN201410022935.XA2014-01-172014-01-17Method and device for upgrading program of VCI (virtual channel identifier) equipmentPendingCN103744706A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410022935.XACN103744706A (en)2014-01-172014-01-17Method and device for upgrading program of VCI (virtual channel identifier) equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410022935.XACN103744706A (en)2014-01-172014-01-17Method and device for upgrading program of VCI (virtual channel identifier) equipment

Publications (1)

Publication NumberPublication Date
CN103744706Atrue CN103744706A (en)2014-04-23

Family

ID=50501726

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410022935.XAPendingCN103744706A (en)2014-01-172014-01-17Method and device for upgrading program of VCI (virtual channel identifier) equipment

Country Status (1)

CountryLink
CN (1)CN103744706A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105468384A (en)*2014-08-252016-04-06比亚迪股份有限公司Vehicle-mounted controller programming system and method, server and programming terminal
CN107710672A (en)*2015-07-032018-02-16Kddi株式会社Software distribution processing unit, vehicle, software distribution processing method and computer program
CN116346798A (en)*2021-12-222023-06-27比亚迪股份有限公司Parameter updating method, device, processing equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105468384A (en)*2014-08-252016-04-06比亚迪股份有限公司Vehicle-mounted controller programming system and method, server and programming terminal
CN107710672A (en)*2015-07-032018-02-16Kddi株式会社Software distribution processing unit, vehicle, software distribution processing method and computer program
US10999078B2 (en)2015-07-032021-05-04Kddi CorporationSoftware distribution processing device, software distribution processing method, and vehicle
CN116346798A (en)*2021-12-222023-06-27比亚迪股份有限公司Parameter updating method, device, processing equipment and storage medium

Similar Documents

PublicationPublication DateTitle
US9582262B2 (en)Systems and methods for installing upgraded software on electronic devices
KR101299099B1 (en)Apparatus and method for management of optimized virtualization module in embedded system
US20090320012A1 (en)Secure booting for updating firmware over the air
CN101295262A (en)System and method for securely updating firmware in devices by using a hypervisor
CN107783776B (en) Method and device for processing firmware upgrade package, and electronic device
CN107292135A (en) Method and device for program code protection
US20200233676A1 (en)Bios management device, bios management system, bios management method, and bios management program-stored recording medium
CN107239299B (en)Plug-in upgrading method and device
CN110851821A (en)Android intelligent device APK safety management and control method
US11496304B2 (en)Information processing device, information processing method, and storage medium
CN103744706A (en)Method and device for upgrading program of VCI (virtual channel identifier) equipment
CN113971297A (en)Linux-based ELF file data integrity protection method
CN119917149A (en) A wireless embedded product online upgrade method
CN104572169B (en)A kind of software distribution and installation system based on UEFI
CN102087607B (en) Method and device for installing patch pack
CN111198692A (en)Installation package generation method and device
CN114091023A (en)Executable file checking method, device, equipment and storage medium
CN112231649A (en) A firmware encryption processing method, device, device and medium
US20170293753A1 (en)Electronic device and system
US20110185353A1 (en)Mitigating Problems Arising From Incompatible Software
CN112445705B (en)Software running system, method and device based on trusted verification and computer equipment
CN111046389A (en) Method for securely updating firmware components and portable computer station for implementing the same
CN116204205A (en) Application update method, boot loader design method and device
CN104331470A (en)Method and system for processing data based on buffer mechanism
CN106815044A (en)Method, device and system for software function extension

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C53Correction of patent for invention or patent application
CB02Change of applicant information

Address after:518057 Guangdong city of Shenzhen province Nanshan District Xili Street Xueyuan Road No. 1001 Chi Park B1 building 7 layer, 8 layer, 10 layer

Applicant after:SHENZHEN AUTEL TECHNOLOGY CO., LTD.

Address before:518057 Guangdong city of Shenzhen province Nanshan District Xili town tea light road on the south side of Shenzhen integrated circuit design and application of Industrial Park 106, 107, 109, 114

Applicant before:Shenzhen Autel Technology Co., Ltd.

RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20140423


[8]ページ先頭

©2009-2025 Movatter.jp