CN108710495A - Electronic tag method for updating program, electronic tag and storage medium - Google Patents

Electronic tag method for updating program, electronic tag and storage medium Download PDF

Info

Publication number
CN108710495A
CN108710495A CN201810269542.7A CN201810269542A CN108710495A CN 108710495 A CN108710495 A CN 108710495A CN 201810269542 A CN201810269542 A CN 201810269542A CN 108710495 A CN108710495 A CN 108710495A
Authority
CN
China
Prior art keywords
file
program
electronic tag
updated
update
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
CN201810269542.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.)
Beijing Juli Science and Technology Co Ltd
Original Assignee
Beijing Juli Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Juli Science and Technology Co Ltd filed Critical Beijing Juli Science and Technology Co Ltd
Priority to CN201810269542.7A priority Critical patent/CN108710495A/en
Publication of CN108710495A publication Critical patent/CN108710495A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

A kind of electronic tag method for updating program of present invention offer, electronic tag and storage medium.This method includes:It receives program and updates solicited message, program update solicited message includes the length and check code of file to be updated;It receives program and updates file, program update file is stored in the embedded safe control module ESAM of electronic tag;The length and check code that the file to be updated in solicited message is updated according to program judge whether the program received update file is complete;If the program update file received is complete, executes and reset operation, by program update file write-in code area and runs, complete program update.The method of the present invention, reduces the newer cost of electronic tag program, improves the newer safety of program, reliability and working efficiency.

Description

Electronic tag method for updating program, electronic tag and storage medium
Technical field
The present invention relates to the program upgrade technique field of equipment more particularly to a kind of electronic tag method for updating program, electricity Subtab and storage medium.
Background technology
Electronic toll collection (ElectronicTollCollection, referred to as:ETC), it is wide in the world at present The intelligent transportation toll collection system of general use.ETC includes roadside unit (RoadSideUnit, the abbreviation mounted on trackside:RSU) and The board units (OnBoardUnit, abbreviation OBU) being installed on vehicle, i.e. electronic tag.ETC passes through between RSU and OBU Special short range communication completes the wireless data communication between vehicle and charge station, is not needing driver's parking and other toll collectors In the case that member takes any operation, you can complete charge processing overall process, greatly improve traffic efficiency and reduce Human cost.
Electronic tag possesses huge radix, to electronics as the key equipment in ETC system in entire ETC system The later maintenance of label such as software program update is most important for the normal operation of ETC system.When the OBU upgrade procedure of early stage Reserved dedicated hardware interface must be used, using the mode of line brush, is updated into line program by dedicated updating apparatus.Respectively The special upgrade equipment of OBU producers, each other cannot be compatible, and when more new procedures, staff must carry out at the scene Operation, this newer mode of operation quantities of electronic tag program is great, efficiency is low, leads to maintenance cost height.With bluetooth OBU's is universal, in such a way that bluetooth progress OBU programs upgrading has gradually replaced and upgraded by special upgrade equipment.It is logical When crossing bluetooth progress OBU programs update, need to store the program upgrade file received.Generally use in the prior art Following two methods:One is program upgrade file is stored in the internal flash of electronic tag master chip, this just need for Master chip of the electronic tag configuration with larger flash memory space;Another kind is to increase plug-in storage chip, is received for storing Program upgrade file.Either program upgrade file is stored in master chip, is also stored in plug-in storage chip, all The cost of manufacture of electronic tag can be increased.
In conclusion existing electronic tag method for updating program can increase making or the maintenance cost of electronic tag.
Invention content
A kind of electronic tag method for updating program of present invention offer, electronic tag and storage medium, to solve existing skill Electronic tag program updates problem of high cost in art.
In a first aspect, the present invention provides a kind of electronic tag method for updating program, it is applied to electronic tag, including:
It receives program and updates solicited message, it includes the length of file to be updated and file to be updated that program, which updates solicited message, Check code;
It receives program and updates file, program update file is stored in the embedded safe control module of electronic tag (EmbeddedSecureAccessModule, referred to as:ESAM in);
The check code that the length and file to be updated of the file to be updated in solicited message are updated according to program, judges to receive Whether the program update file arrived is complete;
If the program update file received is complete, executes and reset operation, by program update file write-in code area and transports Row completes program update.
In one possible implementation, program update file is stored in the ESAM of electronic tag, including:
Program update file is stored in the file that can freely read and write pre-established in the ESAM of electronic tag.
In one possible implementation, the length of the file to be updated in solicited message is updated according to program and is waited for more The check code of new file judges whether the program received update file is complete, including:
When the length that the program received updates file is equal to the length of file to be updated, more according to the program received The check code of new document generator update file;
When the check code that program updates file is consistent with the check code of file to be updated, the program update received is determined File is complete.
In one possible implementation, further include:
It is the first value by program update mark position after the program update file for judging to receive is complete;
By program update file write-in code area and before running, determining program updates whether flag bit is the first value;
If it is the first value that program, which updates flag bit, by program update file write-in code area and runs, complete program more Newly;
It is second value by program update mark position after completing program update;
First value is differed with second value.
In one possible implementation, program update solicited message further includes the version number of file to be updated;
Receive program update file before, by the version number stored in the version number of file to be updated and electronic tag into Row compares;
When the version number of file to be updated is more than the version number stored in electronic tag, reception program updates file.
In one possible implementation, after completing program update, further include:
Delete the program update file being stored in ESAM.
Second aspect, the present invention provide a kind of electronic tag, including:
Receiving module updates solicited message for receiving program, and program update solicited message includes the length of file to be updated Degree and check code, receiving module are additionally operable to receive program update file;
Memory module, for program update file to be stored in the embedded safe control module ESAM of electronic tag;
Judgment module, length and check code for updating the file to be updated in solicited message according to program, judges to connect Whether the program update file received is complete;
Execution module, for when the program update file received is complete, executing and resetting operation, program is updated file Write-in code area is simultaneously run, and completes program update.
In one possible implementation, memory module is specifically used for program update file being stored in electronic tag In the file that can freely read and write pre-established in ESAM.
The third aspect, the present invention provide a kind of electronic tag, including:
Memory;
Processor;And
Computer program;
Wherein, computer program stores in memory, and is configured as being executed to realize any of the above-described by processor The method.
Fourth aspect, the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, computer Program is executed by processor the method to realize any of the above-described.
Electronic tag method for updating program, electronic tag and storage medium provided in an embodiment of the present invention, by that will receive To program update file be stored in the ESAM of electronic tag, take full advantage of the storage resource in ESAM, no longer need to deposit Storage program updates file and additionally increases hardware store resource, effectively reduces electronic tag into the newer cost of line program.It is logical It crosses file size and check code to verify the integrality and correctness of program update file, improves electronic tag into stroke The newer safety and reliability of sequence.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart of one embodiment of electronic tag method for updating program of the present invention;
Fig. 2 is the file structure schematic diagram in ESAM in existing electronic tag;
Fig. 3 is the flow chart of the another embodiment of electronic tag method for updating program of the present invention;
Fig. 4 is the structural schematic diagram of one embodiment of electronic tag of the present invention;
Fig. 5 is the structural schematic diagram of the another embodiment of electronic tag of the present invention.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate idea of the invention.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Term " comprising " and " having " in description and claims of this specification and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap It includes for the intrinsic other steps of these processes, method, product or equipment or unit.
" one embodiment " or " embodiment " mentioned in the whole text in the specification of the present invention means related with embodiment A particular feature, structure, or characteristic be included at least one embodiment of the application.Therefore, occur everywhere in the whole instruction " in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.It should be noted that not rushing In the case of prominent, the feature in embodiment and embodiment in the present invention can be combined with each other.
Program in OBU includes two parts:Bootstrap and application program.Wherein, bootstrap be for detecting whether More new application and application program is jumped to, to complete bootup process.Program update in the embodiment of the present invention refers both to apply The update of program.
Fig. 1 is the flow chart of one embodiment of electronic tag method for updating program of the present invention.The executive agent of the present embodiment is Electronic tag, as shown in Figure 1, electronic tag method for updating program provided in this embodiment, includes the following steps:
Step 101:It receives program and updates solicited message, program update solicited message includes the length of file to be updated and waits for Update the check code of file.
It is understood that before receiving program update solicited message, electronic tag needs to ask with transmission program update The equipment for seeking information establishes connection.In the present embodiment, the equipment for sending program update solicited message can be intelligent terminal, example Such as:The equipment with similar functions such as smart mobile phone, tablet computer, special hand-held electronic tag distribution device.Intelligent terminal can be with By way of wiredly and/or wirelessly, program to be updated is obtained from background server in advance and update file, be stored in the intelligence It can terminal.Electronic tag can pass through bluetooth, dedicated short-range communication technology (DedicatedShortRangeCommunications, referred to as:) etc. DSRC communication modes carry out data friendship with intelligent terminal Mutually.
Optionally, the equipment that program update request is sent in the present embodiment can also be to be previously stored with program to be updated The background server of file is updated, electronic tag is wirelessly established with background server and connected, for example, can pass through WLAN (WirelessFidelity, abbreviation based on IEEE802.11b standards:Wi-Fi it) is carried out with background server Data interaction.
Information is received by bluetooth, is a kind of low-power consumption, low cost, the mode of high security.
In one possible implementation, electronic tag judges current after receiving program update solicited message State updated if appropriate for into line program, if be suitble to, the newer message of feedback acknowledgment to send program update solicited message Equipment;If being not suitable for, the equipment for refusing newer message to program update solicited message is sent is fed back, program update is terminated Process is not suitable for updating into line program for example, there is the task of high priority to be carrying out.
Step 102:It receives program and updates file, the embedded-type security that program update file is stored in electronic tag controls In module ESAM.
Embedded safe control module (EmbeddedSecureAccessModule, referred to as:ESAM it) is answered extensively at present The secure storage of data, data encrypting and deciphering, the identification and authentication of terminal identity are realized for various built-in terminals.ESAM products It follows《The requirement of electronic charging OBE-SAM security module technologies》Technical specification be built in OBU in ETC system. The relevant informations such as vehicle license plate number, vehicle color, vehicle size, vehicle are saved in ESAM.Meeting during merchandising with RSU Preserve the Transaction Informations such as entrance time, license plate number, toll amount, transaction record.ESAM main functions are for characterizing vehicle sample Legal information, a vehicle only correspond to an ESAM.Fig. 2 is the file structure schematic diagram in ESAM in existing electronic tag.Such as Shown in Fig. 2, include under master file MF in ESAM in existing electronic tag:System key file 00FF, system information file EF01, System document retaining EF01, ETC application catalogue DF01 and application retain catalogue DF02.
Optionally, the file that can freely read and write can be pre-established in ESAM, for storing the program received update File.It can also labeled as program more new file directory with the catalogue DF03 of DF02 peers for example, can be established in ESAM Multiple files that can freely read and write are created at master file MF as needed and update file for storing program.What is pre-established can The size for the file freely read and write and the position stored in ESAM, are configured, the present embodiment is not done according to specific needs It is specifically limited.The readable written document for updating file for storing program by pre-establishing, can shorten program renewal process and disappear The time of consumption improves the newer efficiency of program.
It is stored in the ESAM of electronic tag by the way that program is updated file, takes full advantage of the storage resource in ESAM, It no longer needs to additionally increase hardware store resource for storage program update file, effectively reduces the hardware cost of OBU.
Step 103:The check code of the length and file to be updated of the file to be updated in solicited message is updated according to program, Judge whether the program received update file is complete.
Under normal conditions, program can be updated file progress subpackage processing by transmitting terminal, include that program updates by several The data frame of fileinfo is sent to OBU.After OBU has received last frame data, the program update text received is calculated The length of part, when the program received updates length of the length equal to the file to be updated in program update solicited message of file When, it receives.Optionally, special frames labelled notation last frame data may be used, for example, using complete 1 frame number oxFF marks Remember last frame.
The check code of file is updated according to the program update document generator received, it should be noted that needs are adopted Check code is generated with algorithm identical with transmitting terminal.For example, may be used digest algorithm (MessageDigestAlgorithm5, Referred to as:MD5) or Secure Hash Algorithm (SecureHashAlgorithm1, referred to as:SHA1 check code) is generated.
When the check code that program updates file is consistent with the check code of file to be updated in program update solicited message, The program update file then received is complete, correct.
Step 104:If the program update file received is complete, executes and reset operation, generation is written into program update file Code area is simultaneously run, and completes program update.
When the length and check code according to file, judges that the program received update file is complete, then execute multiple Bit manipulation.OBU can bring into operation after resetting from bootstrap, and master chip can read and be stored in ESAM in bootstrap Program updates file and is written into the code memory block of master chip.After the completion of data are all read and write, OBU can run update The application program of completion completes program update.
Electronic tag method for updating program provided in this embodiment, by the way that the program received update file is stored in electricity In the ESAM of subtab, the storage resource in ESAM is taken full advantage of, no longer needs to additionally increase for storage program update file Hardware store resource effectively reduces electronic tag into the newer cost of line program.By file size and check code to program The integrality and correctness for updating file are verified, and improve electronic tag into the newer safety and reliability of line program.
It is interacted below by bluetooth and intelligent terminal with electronic tag, completes to illustrate for program update.Fig. 3 For the flow chart of the another embodiment of electronic tag method for updating program of the present invention.As shown in figure 3, electronics mark provided in this embodiment Method for updating program is signed, may comprise steps of:
Step 301:Bluetooth pairing is carried out with intelligent terminal to connect.
According to Bluetooth communication protocol, electronic tag carries out pairing with intelligent terminal and connect, after successful matching, after can carrying out Continuous data interaction.The present embodiment does not limit the specific implementation form of intelligent terminal, be stored in intelligent terminal in advance from The program to be updated that background server obtains updates file.
Step 302:Receive intelligent terminal send program update solicited message, including file to be updated length and Check code.
After matching successful connection, intelligent terminal treats newer program file and carries out subpackage processing, by program to be updated File is packaged into the data frame for meeting protocol requirement length according to Bluetooth communication protocol.Intelligent terminal sends program to electronic tag Solicited message is updated, program, which updates in solicited message, to be included the length of file to be updated and calculated according to verification according to this document The check code that method generates.
Step 303:Receive the data frame for including program update fileinfo that intelligent terminal is sent.
Electronic tag can use the data frame with frame number to be communicated with intelligent terminal, contain and wait in data frame Newer program file information.
Step 304:The data frame received is stored in the file that can freely read and write pre-established in ESAM.
The data frame received by bluetooth is stored in can freely reading of being pre-established in ESAM by electronic tag in order The file write, and calculate the accumulative file size received.
Step 305:Judge whether file receives according to file size.
When the accumulative file size received is equal to the length for the file to be updated that program update solicited message includes, then journey Sequence update file reception finishes.If being less than, thens follow the steps 303 and continue to data frame.
Step 306:The check code of file is updated according to the program update document generator received.
Using checking algorithm identical with intelligent terminal, electronic tag updates document generator according to the program received Update the check code of file.For example, MD5 algorithms may be used or use SHA1 algorithms.
Step 307:Judge whether file receives correctly according to check code.
It is consistent with the check code received from intelligent terminal, then it is assumed that receive if the check code generated in electronic tag Program update file be it is complete, correctly.If the program update file received is correct, step is continued to execute 308, it is updated into line program if it is not, then terminating.
Step 308:It executes and resets operation, by program update file write-in code area and run, complete program update.
Electronic tag disconnects the communication with intelligent terminal, independently carries out reset operation.OBU is opened after resetting from bootstrap Begin to run, master chip reads the more new procedures being stored in ESAM and the code memory block for being written to chip in bootstrap. For data all after the completion of read-write, OBU can run the application program that update is completed, and complete program update.
Electronic tag method for updating program provided in this embodiment is upgraded into line program by bluetooth, reduces program more New operation complexity improves the newer working efficiency of program, and the staff without profession uses special upgrade equipment, drop The low newer maintenance cost of program.By the way that the program received update file to be stored in the ESAM of electronic tag, fully The storage resource in ESAM is utilized, no longer needs to additionally increase hardware store resource for storage program update file, effectively drop Low electronic tag is into the newer cost of line program.It updates whether file receives by file size determining program, passes through Check code determining program updates the correctness of file, improves electronic tag into the newer safety and reliability of line program.
Based on any of the above embodiments, in order to further increase electronic tag into the newer reliability of line program, In one possible implementation, can be arranged program update flag bit, be used to indicate bootstrap whether into line program more Newly, program update flag bit is initialized as second value, and expression need not be updated into line program.
Optionally, it is the by program update mark position after judging that the program received update file is complete One value, expression need to update into line program;
After executing reset operation, and by program update file write-in code area and before running, determining program is more Whether new flag bit is the first value;
If it is the first value that program, which updates flag bit, by program update file write-in code area and runs, complete program update;
It is second value by program update mark position after completing program update;
First value is different from second value.
The value of program update flag bit in the present embodiment is intended merely to illustrate, and can be configured according to actual conditions, The present embodiment is not restricted this.
In addition to after receiving complete program update file, electronic tag can execute reset described in the present embodiment Except operation, during electronic tag is run, it there is also because resetting operation caused by other situations, and those reset behaviour Being after making need not be newer into line program.
Electronic tag method for updating program provided in this embodiment is avoided by updating the judgement of flag bit to program Resetting operation every time can all update later into line program, improve electronic tag into the newer reliability of line program and efficiency.
Based on any of the above embodiments, it is imitated into the newer work of line program to further increase electronic tag Rate, in one possible implementation, program update solicited message can also include the version number of file to be updated.Electronics mark Also the version number of existing program file is stored in label.The version number of file can react the new and old of file.For example, the version of file It is this number bigger, indicate that file is newer.It is of course also possible to use other are regular, e.g., version number's digit of file is longer, indicates text Part is newer, and the present embodiment is not restricted this.It is bigger with the version number of file below, for indicating that file is newer, illustrate.
Before receiving program update file, program is first updated to version number and the electricity of the file to be updated in solicited message The version number stored in subtab is compared, when the version number of file to be updated is more than the version number that stores in electronic tag, Program update file is continued to, the program update of electronic tag is carried out.
It, can be to sending program update request when the version number of file to be updated is less than the version number that stores in electronic tag Equipment feed back corresponding indication code, for prompting user.For example, it " has been currently latest edition, determination will retract that can prompt To legacy version before", it is then selected to execute subsequent operation according to user.Avoiding progress, blindly update causes mistake.
When the version number of file to be updated is equal to the version number that stores in electronic tag, at this point, file to be updated and electronics Label Program file is identical, and whether can prompt " will be into line program reparation".
Electronic tag method for updating program provided in this embodiment judges whether to program more by fileversion number Newly, necessary program update is only carried out, improves electronic tag into the newer efficiency of line program.And effectively avoid it is invalid and Program update under error situation, further improves electronic tag into the newer safety of line program.
Based on any of the above embodiments, in order to further increase the utilization rate of resource, in a kind of possible realization In mode, after completing program update, the program update file being stored in ESAM can also be deleted, by the storage in ESAM Resource releases, so that other application uses.The program update file being stored in ESAM is deleted in time, can also be avoided When updating storage program update file into line program next time, the storage of cover type may result in various unexpected mistakes Situation.
Fig. 4 is the structural schematic diagram of one embodiment of electronic tag of the present invention.As shown in figure 5, electronics provided in this embodiment Label 40 includes:Receiving module 401, memory module 402, judgment module 403 and execution module 404.
Wherein, receiving module 401 update solicited message for receiving program, and it includes to be updated that program, which updates solicited message, The check code of the length of file and file to be updated, receiving module are additionally operable to receive program update file.
Memory module 402, the embedded safe control module ESAM for program update file to be stored in electronic tag In.
Judgment module 403, the length for updating the file to be updated in solicited message according to program and file to be updated Check code, judge the program received update file it is whether complete.
Execution module 404, for when the program update file received is complete, executing and resetting operation, program is updated File is written code area and runs, and completes program update.
Electronic tag provided in this embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realize Principle is similar with technique effect, and details are not described herein again.
In one possible implementation, memory module is specifically used for, and program update file is stored in electronic tag ESAM in the file that can freely read and write that pre-establishes.
In one possible implementation, judgment module is specifically used for, when the program received updates the length of file Equal to file to be updated length when, according to receive program update document generator update file check code;Work as journey When the check code of sequence update file is consistent with the check code of file to be updated, determine that the program update file for judging to receive is complete It is whole.
In one possible implementation, execution module is additionally operable to, complete in the program update file for judging to receive Later, it is the first value by program update mark position;
By program update file write-in code area and before running, determining program updates whether flag bit is the first value;
If it is the first value that program, which updates flag bit, by program update file write-in code area and runs, complete program more Newly;
It is second value by program update mark position after completing program update;
First value is differed with second value.
In one possible implementation, program update solicited message further includes the version number of file to be updated, is received Module is additionally operable to, before receiving program update file, the version that will be stored in the version number of file to be updated and electronic tag It number is compared;
When the version number of file to be updated is more than the version number stored in electronic tag, reception program updates file.
In one possible implementation, can also include removing module, for completing program update in execution module Later, the program update file being stored in ESAM is deleted.
Fig. 5 is the structural schematic diagram of the another embodiment of electronic tag of the present invention.As shown in figure 5, electricity provided in this embodiment Subtab 50 includes:Memory 501, processor 502 and bus 503.Wherein, bus 503 is for realizing the company between each element It connects.
Computer program is stored in memory 501, computer program may be implemented above-mentioned when being executed by processor 502 The technical solution of one embodiment of the method.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, computer Program is executed by processor to realize the technical solution of any of the above-described embodiment of the method.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of electronic tag method for updating program is applied to electronic tag, which is characterized in that including:
It receives program and updates solicited message, it includes the length of file to be updated and file to be updated that described program, which updates solicited message, Check code;
It receives program and updates file, described program update file is stored in the embedded safe control module of the electronic tag In ESAM;
The check code of the length and the file to be updated of the file to be updated in solicited message is updated according to described program, Judge whether the program received update file is complete;
If the program update file received is complete, executes and reset operation, code area is written into described program update file And run, complete program update.
2. according to the method described in claim 1, it is characterized in that, described be stored in the electronics by described program update file In the ESAM of label, including:
Described program update file is stored in the file that can freely read and write pre-established in the ESAM of the electronic tag.
3. according to the method described in claim 1, it is characterized in that, described in the update solicited message according to described program The check code of the length of file to be updated and the file to be updated judges whether the program received update file is complete, packet It includes:
When the length that the program received updates file is equal to the length of the file to be updated, received according to described Program update document generator update file check code;
When the check code that described program updates file is consistent with the check code of file to be updated, received described in determination It is complete that program updates file.
4. according to the method described in claim 1, it is characterized in that, further including:
It is the first value by program update mark position after the program update file for judging to receive is complete;
It is described by described program update file write-in code area and run before, judge described program update flag bit whether be First value;
If it is the first value that described program, which updates flag bit, by described program update file write-in code area and runs, complete program Update;
It is second value by described program update mark position after completing program update;
First value is differed with the second value.
5. according to claim 1-4 any one of them methods, which is characterized in that it further includes waiting for that described program, which updates solicited message, Update the version number of file;
Before receiving program update file, the version that will store in the version number of the file to be updated and the electronic tag It number is compared;
When the version number of the file to be updated is more than the version number stored in the electronic tag, reception program updates file.
6. according to claim 1-4 any one of them methods, which is characterized in that after completing program update, further include:
Delete the described program update file being stored in the ESAM.
7. a kind of electronic tag, which is characterized in that including:
Receiving module updates solicited message for receiving program, and described program update solicited message includes the length of file to be updated The check code of degree and the file to be updated, the receiving module are additionally operable to receive program update file;
Memory module, the embedded safe control module ESAM for described program update file to be stored in the electronic tag In;
Judgment module, for updating the length of the file to be updated in solicited message and described to be updated according to described program The check code of file judges whether the program received update file is complete;
Execution module, for when the program update file received is complete, executing and resetting operation, described program is updated File is written code area and runs, and completes program update.
8. electronic tag according to claim 7, which is characterized in that
The memory module is specifically used for, and described program update file is stored in the ESAM of the electronic tag and is pre-established The file that can freely read and write in.
9. a kind of electronic tag, which is characterized in that including:
Memory;
Processor;And
Computer program;
Wherein, the computer program is stored in the memory, and is configured as being executed to realize such as by the processor Claim 1-6 any one of them methods.
10. a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, the computer program It is executed by processor to realize method as claimed in any one of claims 1 to 6.
CN201810269542.7A 2018-03-29 2018-03-29 Electronic tag method for updating program, electronic tag and storage medium Pending CN108710495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810269542.7A CN108710495A (en) 2018-03-29 2018-03-29 Electronic tag method for updating program, electronic tag and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810269542.7A CN108710495A (en) 2018-03-29 2018-03-29 Electronic tag method for updating program, electronic tag and storage medium

Publications (1)

Publication Number Publication Date
CN108710495A true CN108710495A (en) 2018-10-26

Family

ID=63866399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810269542.7A Pending CN108710495A (en) 2018-03-29 2018-03-29 Electronic tag method for updating program, electronic tag and storage medium

Country Status (1)

Country Link
CN (1) CN108710495A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907769A (en) * 2019-11-15 2021-06-04 天地融科技股份有限公司 Vehicle-mounted unit management method and system based on pre-installation and step-by-step information writing

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200721046A (en) * 2005-11-25 2007-06-01 Far Eastone Telecomm Co Ltd System for updating composite object for on board unit (OBU) and method thereof
CN102830984A (en) * 2011-06-14 2012-12-19 联想(北京)有限公司 Method for updating firmware, chip and communication terminal
CN102955701A (en) * 2011-08-22 2013-03-06 深圳市金溢科技有限公司 Application update method by boot loader
CN103514005A (en) * 2012-06-29 2014-01-15 深圳市金溢科技有限公司 Electronic tag and software updating method and system
CN104468784A (en) * 2014-12-05 2015-03-25 北京速通科技有限公司 System and method for achieving vehicle-mounted unit software upgrade through DSRC interface
CN105118100A (en) * 2015-07-31 2015-12-02 北京万集科技股份有限公司 Vehicle-mounted electronic label program updating method, mobile terminal and program updating system
CN105354059A (en) * 2015-10-29 2016-02-24 珠海格力电器股份有限公司 Upgrade method and apparatus for controller of air-conditioner system
CN106789334A (en) * 2017-01-13 2017-05-31 狼天科技(深圳)有限公司 A kind of method and apparatus of firmware upgrade
CN106998281A (en) * 2017-04-05 2017-08-01 北京汽车研究总院有限公司 A kind of data update processing method, device, gateway controller and automobile
CN107222643A (en) * 2017-07-25 2017-09-29 深圳市芯中芯科技有限公司 A kind of bluetooth equipment firmware upgrade method and system based on software APP technologies
CN107797815A (en) * 2017-10-18 2018-03-13 北京聚利科技股份有限公司 Upgrade method, mobile unit and the updating apparatus of mobile unit
CN107809481A (en) * 2017-10-27 2018-03-16 深圳市银河风云网络系统股份有限公司 Radio upgrade method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200721046A (en) * 2005-11-25 2007-06-01 Far Eastone Telecomm Co Ltd System for updating composite object for on board unit (OBU) and method thereof
CN102830984A (en) * 2011-06-14 2012-12-19 联想(北京)有限公司 Method for updating firmware, chip and communication terminal
CN102955701A (en) * 2011-08-22 2013-03-06 深圳市金溢科技有限公司 Application update method by boot loader
CN103514005A (en) * 2012-06-29 2014-01-15 深圳市金溢科技有限公司 Electronic tag and software updating method and system
CN104468784A (en) * 2014-12-05 2015-03-25 北京速通科技有限公司 System and method for achieving vehicle-mounted unit software upgrade through DSRC interface
CN105118100A (en) * 2015-07-31 2015-12-02 北京万集科技股份有限公司 Vehicle-mounted electronic label program updating method, mobile terminal and program updating system
CN105354059A (en) * 2015-10-29 2016-02-24 珠海格力电器股份有限公司 Upgrade method and apparatus for controller of air-conditioner system
CN106789334A (en) * 2017-01-13 2017-05-31 狼天科技(深圳)有限公司 A kind of method and apparatus of firmware upgrade
CN106998281A (en) * 2017-04-05 2017-08-01 北京汽车研究总院有限公司 A kind of data update processing method, device, gateway controller and automobile
CN107222643A (en) * 2017-07-25 2017-09-29 深圳市芯中芯科技有限公司 A kind of bluetooth equipment firmware upgrade method and system based on software APP technologies
CN107797815A (en) * 2017-10-18 2018-03-13 北京聚利科技股份有限公司 Upgrade method, mobile unit and the updating apparatus of mobile unit
CN107809481A (en) * 2017-10-27 2018-03-16 深圳市银河风云网络系统股份有限公司 Radio upgrade method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907769A (en) * 2019-11-15 2021-06-04 天地融科技股份有限公司 Vehicle-mounted unit management method and system based on pre-installation and step-by-step information writing
CN112907769B (en) * 2019-11-15 2022-12-30 天地融科技股份有限公司 Vehicle-mounted unit management method and system based on preinstalled and step-by-step information writing

Similar Documents

Publication Publication Date Title
CN104468784B (en) A kind of system and method that board units software upgrading is realized by DSRC interfaces
CN107992321A (en) ECU software update method, device, vehicle-mounted T-BOX and vehicle
CN112486554B (en) Vehicle-mounted networking terminal software upgrading method
CN106227572A (en) A kind of frequency converter control system programme upgrade method
CN105278994A (en) Updating method and updating system of vehicle-mounted ECU (Electronic Control Unit) software
CN103150771B (en) Track PSAM card and the using method thereof of charge is freely flowed for city road and bridge
CN106383757A (en) Vehicle-mounted software updating method and device
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
CN111949288A (en) Intelligent element remote upgrading method and system based on vehicle-mounted Ethernet
CN110262820A (en) Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN105118100B (en) Vehicle carried electronic label method for updating program, mobile terminal and program updating system
CN104616362A (en) Anti-cheating releasing method of vehicle-mounted electronic tag and mobile terminal
CN113442870B (en) Method and device for deactivating vehicle-mounted unit, storage medium and terminal
CN102033771B (en) Method and device for applying patch program in Java Card
CN106296839A (en) The safety certifying method of a kind of anti-pintle hook lock and ETC system
CN108710495A (en) Electronic tag method for updating program, electronic tag and storage medium
CN112286565B (en) Embedded system differential upgrading method based on storage container
CN108733392A (en) A kind of update method and system of Bluetooth electronic tag program
CN115242413A (en) Internet of things equipment firmware safety upgrading method and device, electronic equipment and medium
CN108920962A (en) Firmware downloads sign test method, firmware dissemination method, mobile terminal and server
JP2015500537A (en) Security information interaction system, apparatus and method based on extended parameter collection
CN108121553A (en) A kind of method and device of more new application
CN105472005B (en) A kind of ground ATP equipment method for remote updating and system
WO2020210111A1 (en) Network provisioning and tokenization using a remote terminal
US20220227249A1 (en) Off-line battery swap method, battery charging and swap station, vehicle with battery to be swapped, and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 101300 room 015, building 8, No. 1, Linkong Second Road, Shunyi Park, Zhongguancun Science and Technology Park, Shunyi District, Beijing

Applicant after: BEIJING JULI TECHNOLOGY Co.,Ltd.

Address before: 102206, B, 504, Xinyuan Science Park, 97 Changping Road, Beijing, Changping District

Applicant before: BEIJING JULI SCIENCE & TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181026