CN106506649A - A kind of remote online upgrade method of vehicle-mounted control terminal and device - Google Patents

A kind of remote online upgrade method of vehicle-mounted control terminal and device Download PDF

Info

Publication number
CN106506649A
CN106506649A CN201610998694.1A CN201610998694A CN106506649A CN 106506649 A CN106506649 A CN 106506649A CN 201610998694 A CN201610998694 A CN 201610998694A CN 106506649 A CN106506649 A CN 106506649A
Authority
CN
China
Prior art keywords
code
value
upgrade
index
preset value
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
CN201610998694.1A
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.)
Hunan Small Technology Co Ltd
Original Assignee
Hunan Small 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 Hunan Small Technology Co Ltd filed Critical Hunan Small Technology Co Ltd
Priority to CN201610998694.1A priority Critical patent/CN106506649A/en
Publication of CN106506649A publication Critical patent/CN106506649A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of remote online upgrade method of vehicle-mounted control terminal, comprises the following steps:Obtain from ftp server update code data and the renewal code data is write to upgrade code file;Read the value of the more new logo in upgrade code file, in the case where the value of more new logo is preset value three, personal code work area in the code data write flash memory updated in code area that code index is pointed to will be updated, after another renewal code area of code index sensing will be updated, the program in personal code work area is run.Present invention also offers the remote online update device of vehicle-mounted control terminal, including control chip, GPRS/3G/4G communication modules and memory module.The present invention can upgrade to the software that vehicle-mounted control terminal is embedded in, the bit error rate of software upgrading can not only be reduced, also occur the technical problem of operation collapse after solving the failure of vehicle-mounted control terminal software upgrading, improve the stability and reliability of vehicle-mounted control terminal operating.

Description

A kind of remote online upgrade method of vehicle-mounted control terminal and device
Technical field
The present invention relates to car-mounted terminal technical field, and in particular to a kind of remote online upgrade method of vehicle-mounted control terminal And device.
Background technology
Vehicle-mounted control terminal(English abbreviation is " RCM "), the black box for vehicle management is commonly called as, can be real-time to vehicle On-line monitoring, management and data transfer;And the position of mobile target, safety, operation, state of the art can be carried out round-the-clock Monitoring.In actual application, based on the change of application function demand, the software that vehicle-mounted control terminal is embedded in has upgrading Demand.
Traditional upgrading mode of the software that vehicle-mounted control terminal is embedded in mainly includes two kinds:First kind of way is to utilize Specific download device is connected with the unit module in vehicle-mounted control terminal, will be updated code data and is transmitted to vehicle-mounted control terminal, from And updating operation is completed, and the casing for taking vehicle-mounted control terminal apart is needed in escalation process, practical operation is complex, and requires work Make personnel with higher professional knowledge and technical ability;The second way is that host computer passes through the communication interface such as serial ports and CAN and car Control terminal connection is carried, and is transmitted code data is updated to vehicle-mounted control terminal, so as to complete updating operation, this kind of upgrading side Formula need not dismantle the casing of vehicle-mounted control terminal, and without the need for specific download device, practical operation is relatively simple, and upgrade cost is relatively low, But the upgrading mode has certain bit error rate, require nothing more than staff and there is certain professional knowledge and technical ability.
Meanwhile, two kinds of above-mentioned upgrading modes belong to mode of manually upgrading, in actual application, due to installing The vehicle location for having remote control terminal is extremely disperseed, and needs relevant staff to go to vehicle scene just be risen Level operation, needs to expend a large amount of human costs;For the consideration in operation cost, the mode that manually upgrades is not appropriate for car Carry the mass upgrade of control terminal.And remote radio upgrade mode then solve the mode that manually upgrades be not suitable for vehicle-mounted The problem of the mass upgrade of control terminal, but, due to the impact of subjective and objective factor, existing remote radio upgrade mode is still So there is the situation with certain bit error rate and upgrading failure, therefore, how to improve vehicle-mounted control terminal software upgrading How stability and reliability, reduce after the bit error rate that its software upgrading occurs, and the failure of vehicle-mounted control terminal software upgrading Operation collapse is prevented, so as to lift the stability and reliability of vehicle-mounted control terminal operating, is that the technology of urgent need to resolve is asked Topic.
Content of the invention
The invention provides a kind of remote online upgrade method of vehicle-mounted control terminal and device, can be to vehicle-mounted control end The software that end is embedded in is upgraded, and can not only reduce the bit error rate of software upgrading, also solve vehicle-mounted control terminal software liter Occur the technical problem of operation collapse after level failure, improve the stability and reliability of vehicle-mounted control terminal operating.
Technical scheme is as follows:
A kind of remote online upgrade method of vehicle-mounted control terminal, comprises the following steps:
Vehicle-mounted control terminal receives the software upgrade instruction for coming from management server, according to the instruction, obtains from ftp server Take renewal code data and the renewal code data is write to upgrade code file;
Vehicle-mounted control terminal reads the value of the more new logo in upgrade code file, in the feelings that the value of more new logo is preset value three Under condition, personal code work area in the code data write flash memory updated in code area that code index is pointed to will be updated, will After updating another renewal code area of code index sensing, the program in personal code work area is run.
Further, according to the instruction, obtain from ftp server and update code data and the renewal code data is write Enter to upgrade code file, including:
Analysis software upgrade command, obtains the upgrade information carried in upgrade command;
According to upgrade information, upgrading data acquisition request is sent to ftp server;
Read the renewal code area pointed by renewal code index in upgrade code file;
The renewal code data for coming from ftp file server is received, and is written into updating the renewal pointed by code index In code area;
Preset value three is set to the value of more new logo by preset value two and carries out reset operate.
Wherein, after renewal code data is finished receiving, vehicle-mounted control terminal is verified using MD5 Message Digest Algorithm 5 Whether the renewal code data is complete.In the case where renewal code data is complete, it is written into updating code index indication To renewal code area.
Further, it is written into updating in the renewal code area pointed by code index, specifically includes:
The value of the renewal code index in upgrade code file is read, the situation of the value for preset value one of code index is being updated Under, code data will be updated and write to the more fresh code one of upgrade code file;
Or, the value of the renewal code index in upgrade code file is read, is preset value two in the value for updating code index In the case of, code data will be updated and write to the more fresh code two of upgrade code file.
Further, the renewal code data write flash storages that code index is pointed to will be updated in upgrade code file Personal code work area in device, specifically includes:
Update code index value be preset value one in the case of, by the renewal code data in more fresh code one write to Then the value for updating code index is set to preset value two by preset value one by the personal code work area in flash memory;
Or, in the case where the value for updating code index is preset value two, the renewal code data in more fresh code two is write Enter the personal code work area to flash memory, the value for updating code index is set to preset value one by preset value two then.
Further, after the program in operation personal code work area, also include:
Program runtime is obtained, in the case where program runtime is more than or equal to Preset Time, by the value of more new logo It is set to preset value two;
Program runtime is obtained, in the case where program runtime is less than Preset Time, vehicle-mounted control terminal is resetted Operate and enter the backtracking stage.
Further, the backtracking stage includes:
The value of more new logo in upgrade code file is read, in the case where the value is preset value three, is obtained and is updated code index Value, update code index value be preset value two in the case of, by the code data of the last revision in more fresh code two Personal code work area in write flash memory;The value for updating code index is set to preset value one, last revision is run Program;In the case where the run time of the program of last revision is more than or equal to Preset Time, the value of more new logo is arranged For preset value two and enter normal workflow;
Or, the value of more new logo in upgrade code file is read, in the case where the value is preset value three, more fresh code is obtained The value of index, in the case where the value for updating code index is preset value one, by the code of the last revision in more fresh code one Personal code work area in data write flash memory;The value for updating code index is set to preset value two, is run upper one edition This program;In the case where the run time of the program of last revision is more than or equal to Preset Time, by the value of more new logo It is set to preset value two and enters normal workflow.
Further, a kind of remote online update device of vehicle-mounted control terminal, include control chip, GPRS/3G/ 4G communication modules and memory module;
GPRS/3G/4G communication modules, are connected for setting up communication with management server and ftp server;
Control chip, is connected with the communication of GPRS/3G/4G communication modules, comes from the soft of management server for receiving and parsing Part upgrade command, obtains the upgrade information carried in upgrade command, and according to upgrade information, sends ascending series to ftp server According to request is obtained, the renewal code area updated in upgrade code file pointed by code index is read, is received and is come from ftp file After the renewal code data of server, it is written into updating in the renewal code area pointed by code index, and will more new logo Value preset value three is set to by preset value two;
It is additionally operable to, reads the value of the more new logo in upgrade code file, in the case where the value of more new logo is preset value three, Personal code work area in the code data write flash memory updated in code area that code index is pointed to will be updated, will be updated After code index points to another renewal code area, the program in personal code work area is run;
Memory module, is kept in communication with control chip and is connected, and memory module is used for storing upgrade code file.
Further, the flash memory inside control chip is divided into boot section, executes area and personal code work area, Wherein boot section is used for storing bootload guidance functions code and internal subfunction code, and executing area is used for fixing main letters Number physical address location, personal code work area are used for storing upgrade code.
The form that upgrade code file is preserved includes file header, more fresh code one and more fresh code two, and file header is divided into More new logo, renewal code index, more one length of fresh code and more two length of fresh code, more more fresh code one and fresh code two Code data is updated for depositing.
Further, control chip is additionally operable to, after the program in operation personal code work area, when obtaining program operation Between, in the case where program runtime is more than or equal to Preset Time, the value of more new logo is set to preset value two;
It is additionally operable to, after the program in operation personal code work area, obtains program runtime, in program runtime less than pre- If in the case of the time, carrying out reset operation.
Further, program of the control chip in operation personal code work area, obtains program runtime, runs in program Time, after carrying out reset operation, control chip was additionally operable to less than in the case of Preset Time:
The value of more new logo in upgrade code file is read, in the case where the value is preset value three, is obtained and is updated code index Value, update code index value be preset value two in the case of, by the code data of the last revision in more fresh code two Personal code work area in write flash memory;The value for updating code index is set to preset value one, last revision is run Program;In the case where the run time of the program of last revision is more than or equal to Preset Time, the value of more new logo is arranged For preset value two;
Or, the value of more new logo in upgrade code file is read, in the case where the value is preset value three, more fresh code is obtained The value of index, in the case where the value for updating code index is preset value one, by the code of the last revision in more fresh code one Personal code work area in data write flash memory;The value for updating code index is set to preset value two, is run upper one edition This program;In the case where the run time of the program of last revision is more than or equal to Preset Time, by the value of more new logo It is set to preset value two.
In the present invention, during control chip writes the renewal code data for getting to upgrade code file one updates generation In code area(More fresh code one or more fresh code two), in the case where the value of more new logo is preset value three, by the more fresh code Renewal code data in area is write in the personal code work area to flash memory, completes the online liter of vehicle-mounted control terminal Level.
Vehicle-mounted control terminal in order to judge more new procedures whether can stable operation, after operation ROMPaq, control core Piece obtains program runtime, in the case where program runtime is less than Preset Time, enters backtracking flow process;Due to now existing In upgrade code file, update to be designated preset value three and update code index and point to another renewal code area, and another Individual renewal code area memory storage is the current program code for executing, and therefore control chip is by currently holding in the renewal code area The code data of line program is write in the personal code work area to flash memory, and executes current version(That is last revision) Program;Meanwhile, if there is the situation of the upgrading failure such as deadlock in either step of the vehicle-mounted control terminal in program escalation process When, can be automatically reset by hardware watchdog circuit in the inner, so as to the program for executing current version can be recalled automatically, so as to Improve the stability and reliability of upgrading.
The beneficial effect that the present invention is produced:
1 present invention achieves upgrade to the remote online of vehicle-mounted control terminal, the bit error rate is low, with high stability and reliability Property, while avoiding manual site's upgrading, reduce the cost of upgrading;
2nd, during vehicle-mounted control terminal staging, if there is the situation of the upgrading failure such as deadlock, in vehicle-mounted control terminal Operation program can date back last revision automatically, execute the program of last revision, so as to improve vehicle-mounted control terminal operating Stability and reliability, the technical problem for occurring operation collapse after solving the failure of vehicle-mounted control terminal software upgrading;
3rd, the remote online upgrading mode of vehicle-mounted control terminal of the present invention, it is not necessary to dismantle the case of vehicle-mounted control terminal Body, without the need for specific download device, practical operation is relatively simple, is suitable for the mass upgrade of vehicle-mounted control terminal.
Description of the drawings
The accompanying drawing for constituting the part of the application is used for providing a further understanding of the present invention, the schematic reality of the present invention Apply example and its illustrate, for explaining the present invention, not constituting inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart one of the remote online upgrade method of vehicle-mounted control terminal of the present invention;
Fig. 2 is the flowchart 2 of the remote online upgrade method of vehicle-mounted control terminal of the present invention;
Fig. 3 is the schematic diagram of the remote online update device of vehicle-mounted control terminal of the present invention;
Fig. 4 a are the schematic diagrames of the data form dividing mode of the upgrade code file of preservation of the present invention;
Fig. 4 b are the schematic diagrames of the data form dividing mode of file header in upgrade code file of the present invention;
Fig. 5 is the schematic diagram of dividing mode inside flash memory of the present invention;
Fig. 6 is the flow chart of the download phase described in the embodiment of the present invention one;
Fig. 7 is the flow chart of the update phase described in the embodiment of the present invention one;
Fig. 8 is the flow chart in the backtracking stage described in the embodiment of the present invention two.
Specific embodiment
Embodiments of the invention are described in detail below in conjunction with accompanying drawing, but the present invention can be defined by the claims Implement with the multitude of different ways for covering.
As shown in Figures 1 and 2, a kind of remote online upgrade method of vehicle-mounted control terminal, including step one and step Rapid two.
Step one:Vehicle-mounted control terminal is received and comes from the software upgrade instruction of management server, according to the instruction, from Obtain in ftp server update code data and the renewal code data is write to upgrade code file.
Wherein, according to the instruction, from ftp server obtain update code data and by the renewal code data write to In upgrade code file, including:
Analysis software upgrade command, obtains the upgrade information carried in upgrade command;
According to upgrade information, upgrading data acquisition request is sent to ftp server;
Read the renewal code area pointed by renewal code index in upgrade code file;
The renewal code data for coming from ftp file server is received, and is written into updating the renewal pointed by code index In code area;
The value of more new logo is set to preset value three and is resetted.
In above-mentioned steps, wherein upgrade information includes ftp server address information, login username, login password, upgrading File path information and the filename of upgrade file;Upgrade code file is stored in the memory module of vehicle-mounted control terminal, File header and more fresh code can be divided into inside which, and more fresh code includes more fresh code one and more fresh code two, file header bag Include more new logo, update code index, more one byte length of fresh code and more two byte length of fresh code;More fresh code one and more Used as two buffer areas, when code index sensing more fresh code two is updated, second more fresh code is used for storing coming fresh code two From in the renewal code data of management server, more fresh code is pointed to for the moment when code index is updated, then more fresh code one is used for Storage comes from the renewal code data of management server.
Control chip in vehicle-mounted control terminal is typically obtained for storage more by reading the value for updating code index The renewal code area of fresh code data, if update code index value be preset value one, more fresh code one be used for storage from In the renewal code data of management server, and if to update the value of code index be preset value two, more fresh code dual-purpose is in depositing Storage comes from the renewal code data of management server.
Step 2:Vehicle-mounted control terminal reads the value of the more new logo in upgrade code file, in the value of more new logo is In the case of preset value three, will update in the renewal code area that code index is pointed to and update code data write flash memory Interior personal code work area, and run the more new procedures in personal code work area.
In above-mentioned steps, the renewal code data write in flash memory comes from more fresh code one or more fresh code In two;Vehicle-mounted control terminal reads the value of the renewal code index in upgrade code file, if the value is preset value one, will more Code data in fresh code one writes the personal code work area to flash memory, if the value is preset value two, will update Code data in code two writes the personal code work area to flash memory.
In addition, will update in the renewal code data write flash memory updated in code area that code index is pointed to Personal code work area after, before running the program in personal code work area, also include:
Code index will be updated and point to another renewal code area.
In above-mentioned steps, if the renewal code data write to flash memory comes from more fresh code one, then After write is finished, update code index and will point to more fresh code two, the value that will also update code index is arranged by preset value two For preset value one;If the renewal code data write to flash memory comes from more fresh code two, then write is finished Afterwards, update code index and will point to more fresh code one, the value that will also update code index is set to preset value by preset value one Two, now, update code data of the code data in another renewal code area that code index is pointed to for current version.
After vehicle-mounted control terminal reads the value of the more new logo in upgrade code file, also include:
It is not preset value three in the value of more new logo(For preset value two)In the case of, run the program in personal code work area.
And, after running the program in personal code work area, also include:
Program runtime is obtained, in the case where program runtime is more than or equal to Preset Time, by the value of more new logo It is set to preset value two.
Program runtime is obtained, in the case where program runtime is less than Preset Time, vehicle-mounted control terminal is carried out Reset is operated and enters the backtracking stage.
The backtracking stage includes:
The value of more new logo in upgrade code file is read, in the case where the value is preset value three, is obtained and is updated code index Value, update code index value be preset value two in the case of, by the code data of the last revision in more fresh code two Personal code work area in write flash memory;The value for updating code index is set to preset value one, last revision is run Program;In the case where the run time of the program of last revision is more than or equal to Preset Time, the value of more new logo is arranged For preset value two and enter normal workflow;
Or, the value of more new logo in upgrade code file is read, in the case where the value is preset value three, more fresh code is obtained The value of index, in the case where the value for updating code index is preset value one, by the code of the last revision in more fresh code one Personal code work area in data write flash memory;The value for updating code index is set to preset value two, is run upper one edition This program;In the case where the run time of the program of last revision is more than or equal to Preset Time, by the value of more new logo It is set to preset value two and enters normal workflow.
As shown in Figure 3, present invention also offers a kind of remote online update device of vehicle-mounted control terminal, includes control Coremaking piece, GPRS/3G/4G communication modules and memory module;
GPRS/3G/4G communication modules, are connected for setting up communication with management server and ftp server;
Control chip, is connected by serial ports with GPRS/3G/4G communication modules, comes from management server for reception and parsing Software upgrade instruction, obtain the upgrade information carried in upgrade command, and according to upgrade information, send to ftp server and rise DBMS obtains request, reads the renewal code area updated in upgrade code file pointed by code index, receives and come from FTP After the renewal code data of file server, it is written into updating in the renewal code area pointed by code index, and will updates The value of mark is set to preset value three by preset value two;
It is additionally operable to, reads the value of the more new logo in upgrade code file, in the case where the value of more new logo is preset value three, Personal code work area in the code data write flash memory updated in code area that code index is pointed to will be updated, will be updated After code index points to another renewal code area, the program in personal code work area is run;
Memory module, is kept in communication with control chip by SPI interface and is connected, for storing upgrade code file.
As shown in figure 5, flash memory is divided into boot section, executes area, personal code work area in control chip, wherein draw Area is led for storing bootload guidance functions code and internal subfunction code, executing area is used for fixing main function physics Address location, personal code work area are used for storing upgrade code.
In addition, as shown in fig. 4 a, the form that preserves upgrade code file is divided into file header, more fresh code one and update generation Code two, as shown in Figure 4 b, file header is divided into more new logo, updates code index, more one length of fresh code and more fresh code Two length, more more fresh code one and fresh code dual-purpose update code data in storage.
In addition, control chip is additionally operable to, after the program in operation personal code work area, program runtime is obtained, The value of more new logo is set to preset value two more than or equal in the case of Preset Time by program runtime;It is additionally operable to, After program in operation personal code work area, program runtime is obtained, in the situation that program runtime is less than Preset Time Under, carry out reset operation.
When program of the control chip in operation personal code work area, program runtime is obtained, little in program runtime In the case of Preset Time, after carrying out reset operation, control chip is additionally operable to:
The value of more new logo in upgrade code file is read, in the case where the value is preset value three, is obtained and is updated code index Value, update code index value be preset value two in the case of, by the code data of the last revision in more fresh code two Personal code work area in write flash memory;The value for updating code index is set to preset value one, last revision is run Program;In the case where the run time of the program of last revision is more than or equal to Preset Time, the value of more new logo is arranged For preset value two;
Or, the value of more new logo in upgrade code file is read, in the case where the value is preset value three, more fresh code is obtained The value of index, in the case where the value for updating code index is preset value one, by the code of the last revision in more fresh code one Personal code work area in data write flash memory;The value for updating code index is set to preset value two, is run upper one edition This program;In the case where the run time of the program of last revision is more than or equal to Preset Time, by the value of more new logo It is set to preset value two.
Embodiment one
Remote online upgrading flow process of the embodiment of the present invention one for vehicle-mounted control terminal, including download phase and update phase.This In embodiment, correctly and write the upgrading data and vehicle-mounted control terminal coupling of management server, upgrading data are come from The remote online upgrade job of vehicle-mounted control terminal is carried out under the premise of correct.
As shown in Figure 6, download phase is comprised the following steps that:
S101. control chip receives the upgrade command for coming from management server by GPRS/3G/4G communication modules;
S102. the instruction is parsed, and obtains entrained upgrade information in which;
S103. according to the upgrade information, upgrading data acquisition request is sent to ftp file server;
S104. obtain in upgrade code file code index value is updated for 1;
S105. the renewal code data for coming from ftp file server is received, and is written in more fresh code one;
S106. the value of more new logo is set to 0xaabb4455 by 0.
As shown in Figure 7, the update phase of upgrade code file is comprised the following steps that:
S201. vehicle-mounted control terminal resets;
Whether the value for S202. judging the more new logo in upgrade code file is 0xaabb4455, if so, then enters step S203;
S203. upgrade code file is read, and the renewal code data in more fresh code one is write the use in flash memory Family code area;
S204. the value for updating code index is set to 0;
S205. the more new procedures in personal code work area are run;
S206. judge whether more new procedures normally run;
Judge that the value of more new logo, whether more than 10s, is if so, then set to 0, if it is not, then by the run time of more new procedures Reset operation is directly carried out, and enters the backtracking stage.
Embodiment two
The embodiment of the present invention two is the flow process of the program that vehicle-mounted control terminal dates back current version, in one S206 of above-described embodiment In, the run time of more new procedures then starts the flow process not less than 10s, so as to the software of vehicle-mounted control terminal operating is dateed back Current version(Or last revision), it is ensured that the normal operation of vehicle-mounted control terminal, improves the reliability of vehicle-mounted control terminal operating And stability.
S301. vehicle-mounted control terminal resets;
S302. the value of more new logo in upgrade code file is read, in the case where the value is 0xaabb4455, is obtained and is updated generation The value of code index, in the case where the value for updating code index is 0, the code data of the current version in more fresh code two is write Enter the personal code work area in flash memory;
S303. the value for updating code index is set to 1;
S304. the current version in flash memory in personal code work area is run(That is last revision)Program;
S305. judge whether the program of current version is normally run;
Judge that the value of more new logo, whether more than 10s, is if so, then set to 0 simultaneously by the run time of program of current version Enter normal workflow.

Claims (10)

1. a kind of remote online upgrade method of vehicle-mounted control terminal, it is characterised in that comprise the following steps:
Vehicle-mounted control terminal receives the software upgrade instruction for coming from management server, according to the instruction, obtains from ftp server Take renewal code data and the renewal code data is write to upgrade code file;
Vehicle-mounted control terminal reads the value of the more new logo in upgrade code file, in the feelings that the value of more new logo is preset value three Under condition, personal code work area in the code data write flash memory updated in code area that code index is pointed to will be updated, will After updating another renewal code area of code index sensing, the program in personal code work area is run.
2. a kind of remote online upgrade method of vehicle-mounted control terminal as claimed in claim 1, it is characterised in that:
According to the instruction, obtain from ftp server and update code data and the renewal code data is write to upgrade code In file, including:
Analysis software upgrade command, obtains the upgrade information carried in upgrade command;
According to upgrade information, upgrading data acquisition request is sent to ftp server;
Read the renewal code area pointed by renewal code index in upgrade code file;
The renewal code data for coming from ftp file server is received, and is written into updating the renewal pointed by code index In code area;
Preset value three is set to the value of more new logo by preset value two and carries out reset operate.
3. a kind of remote online upgrade method of vehicle-mounted control terminal as claimed in claim 1, it is characterised in that:
It is written into updating in the renewal code area pointed by code index, specifically includes:
The value of the renewal code index in upgrade code file is read, the situation of the value for preset value one of code index is being updated Under, code data will be updated and write to the more fresh code one of upgrade code file;
Or, the value of the renewal code index in upgrade code file is read, is preset value two in the value for updating code index In the case of, code data will be updated and write to the more fresh code two of upgrade code file.
4. a kind of remote online upgrade method of vehicle-mounted control terminal as claimed in claim 1, it is characterised in that will upgrade generation The personal code work area in the renewal code data write flash memory that code index is pointed to is updated in code file, is specifically included:
Update code index value be preset value one in the case of, by the renewal code data in more fresh code one write to Then the value for updating code index is set to preset value two by preset value one by the personal code work area in flash memory;
Or, in the case where the value for updating code index is preset value two, the renewal code data in more fresh code two is write Enter the personal code work area to flash memory, the value for updating code index is set to preset value one by preset value two then.
5. a kind of remote online upgrade method of vehicle-mounted control terminal as claimed in claim 1, it is characterised in that:
After program in operation personal code work area, also include:
Program runtime is obtained, in the case where program runtime is more than or equal to Preset Time, by the value of more new logo It is set to preset value two;
Program runtime is obtained, in the case where program runtime is less than Preset Time, vehicle-mounted control terminal is resetted Operate and enter the backtracking stage.
6. a kind of remote online upgrade method of vehicle-mounted control terminal as claimed in claim 5, it is characterised in that:The backtracking Stage includes:
The value of more new logo in upgrade code file is read, in the case where the value is preset value three, is obtained and is updated code index Value, update code index value be preset value two in the case of, by the code data of the last revision in more fresh code two Personal code work area in write flash memory;The value for updating code index is set to preset value one, last revision is run Program;In the case where the run time of the program of last revision is more than or equal to Preset Time, the value of more new logo is arranged For preset value two and enter normal workflow;
Or, the value of more new logo in upgrade code file is read, in the case where the value is preset value three, more fresh code is obtained The value of index, in the case where the value for updating code index is preset value one, by the code of the last revision in more fresh code one Personal code work area in data write flash memory;The value for updating code index is set to preset value two, is run upper one edition This program;In the case where the run time of the program of last revision is more than or equal to Preset Time, by the value of more new logo It is set to preset value two and enters normal workflow.
7. a kind of remote online update device of vehicle-mounted control terminal, it is characterised in that include control chip, GPRS/3G/ 4G communication modules and memory module;
GPRS/3G/4G communication modules, are connected for setting up communication with management server and ftp server;
Control chip, is connected with the communication of GPRS/3G/4G communication modules, comes from the soft of management server for receiving and parsing Part upgrade command, obtains the upgrade information carried in upgrade command, and according to upgrade information, sends ascending series to ftp server According to request is obtained, the renewal code area updated in upgrade code file pointed by code index is read, is received and is come from ftp file After the renewal code data of server, it is written into updating in the renewal code area pointed by code index, and will more new logo Value preset value three is set to by preset value two;
It is additionally operable to, reads the value of the more new logo in upgrade code file, in the case where the value of more new logo is preset value three, Personal code work area in the code data write flash memory updated in code area that code index is pointed to will be updated, will be updated After code index points to another renewal code area, the program in personal code work area is run;
Memory module, is kept in communication with control chip and is connected, and the memory module is used for storing upgrade code file.
8. the remote online update device of vehicle-mounted control terminal as claimed in claim 7, it is characterised in that
Flash memory inside the control chip is divided into boot section, executes area and personal code work area, wherein boot section For storing bootload guidance functions code and internal subfunction code, executing area is used for fixing main function physical address Position, personal code work area are used for storing upgrade code;
The form that the upgrade code file is preserved includes file header, more fresh code one and more fresh code two, and the file header is drawn It is divided into more new logo, renewal code index, more one length of fresh code and more two length of fresh code, more fresh code one and renewal generation Code two is used for depositing renewal code data.
9. the remote online update device of vehicle-mounted control terminal as claimed in claim 7, it is characterised in that
The control chip is additionally operable to, and after the program in operation personal code work area, obtains program runtime, in program The value of more new logo is set to preset value two more than or equal in the case of Preset Time by run time;
It is additionally operable to, after the program in operation personal code work area, obtains program runtime, in program runtime less than pre- If in the case of the time, carrying out reset operation.
10. the remote online update device of vehicle-mounted control terminal as claimed in claim 9, it is characterised in that the control core Program of the piece in operation personal code work area, obtains program runtime, in the situation that program runtime is less than Preset Time Under, after carrying out reset operation, the control chip is additionally operable to:
The value of more new logo in upgrade code file is read, in the case where the value is preset value three, is obtained and is updated code index Value, update code index value be preset value two in the case of, by the code data of the last revision in more fresh code two Personal code work area in write flash memory;The value for updating code index is set to preset value one, last revision is run Program;In the case where the run time of the program of last revision is more than or equal to Preset Time, the value of more new logo is arranged For preset value two;
Or, the value of more new logo in upgrade code file is read, in the case where the value is preset value three, more fresh code is obtained The value of index, in the case where the value for updating code index is preset value one, by the code of the last revision in more fresh code one Personal code work area in data write flash memory;The value for updating code index is set to preset value two, is run upper one edition This program;In the case where the run time of the program of last revision is more than or equal to Preset Time, by the value of more new logo It is set to preset value two.
CN201610998694.1A 2016-11-14 2016-11-14 A kind of remote online upgrade method of vehicle-mounted control terminal and device Pending CN106506649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610998694.1A CN106506649A (en) 2016-11-14 2016-11-14 A kind of remote online upgrade method of vehicle-mounted control terminal and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610998694.1A CN106506649A (en) 2016-11-14 2016-11-14 A kind of remote online upgrade method of vehicle-mounted control terminal and device

Publications (1)

Publication Number Publication Date
CN106506649A true CN106506649A (en) 2017-03-15

Family

ID=58324235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610998694.1A Pending CN106506649A (en) 2016-11-14 2016-11-14 A kind of remote online upgrade method of vehicle-mounted control terminal and device

Country Status (1)

Country Link
CN (1) CN106506649A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958777A (en) * 2018-08-03 2018-12-07 广州云海智联科技有限公司 A kind of wireless charging device and control method
CN109358865A (en) * 2018-12-20 2019-02-19 合肥协力仪表控制技术股份有限公司 A kind of industrial vehicle car networking instrument and upgrade method with remote upgrade function
CN109508197A (en) * 2018-11-06 2019-03-22 北京新能源汽车股份有限公司 A kind of control method that writing with a brush dipped in Chinese ink program, device, monitoring device and car-mounted terminal
CN111324362A (en) * 2018-12-14 2020-06-23 北京宝沃汽车有限公司 Vehicle, and method and device for updating vehicle electronic control system program
CN113660317A (en) * 2021-07-30 2021-11-16 江西五十铃汽车有限公司 Vehicle-mounted terminal remote upgrading method based on FTP protocol
US11356425B2 (en) 2018-11-30 2022-06-07 Paccar Inc Techniques for improving security of encrypted vehicle software updates
US11449327B2 (en) 2018-11-30 2022-09-20 Paccar Inc Error-resilient over-the-air software updates for vehicles

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158906A (en) * 2007-08-10 2008-04-09 林明辉 Customer terminals program automatic update method
CN101557583A (en) * 2009-03-19 2009-10-14 珠海银邮光电技术发展股份有限公司 Remote-updating and version-switching method of repeater equipment embedded software
CN101826027A (en) * 2010-05-28 2010-09-08 深圳市融创天下科技发展有限公司 Embedded system and updating method thereof
CN101867916A (en) * 2009-04-16 2010-10-20 深圳市赛格导航科技股份有限公司 Method for realizing air update of vehicle terminal
CN102110000A (en) * 2009-12-25 2011-06-29 康佳集团股份有限公司 Method, device and equipment for controlling software for auto-updating
CN102291424A (en) * 2011-05-31 2011-12-21 深圳市元征软件开发有限公司 Vehicle-mounted GPRS (general packet radio service) communication system with FTP (file transfer protocol) remote wireless upgrading function and method thereof
CN103064715A (en) * 2013-01-09 2013-04-24 上海大唐移动通信设备有限公司 Remote upgrade method and system for automatic drive test systems
CN103092647A (en) * 2012-12-29 2013-05-08 聚光科技(杭州)股份有限公司 Online upgrade method of embedded system
CN103095745A (en) * 2011-10-28 2013-05-08 上海移远通信技术有限公司 Vehicle-mounted terminal, electronic module and device, system and method of electronic module upgrade
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN104881302A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Burning method and device for DSP chip program upgrading
CN105260215A (en) * 2015-11-04 2016-01-20 福建星海通信科技有限公司 Method of updating vehicle-mounted automobile data recorder terminal by USB flash disk
CN105589719A (en) * 2015-12-17 2016-05-18 广州汽车集团股份有限公司 System for remotely upgrading full vehicle-mounted controller softwares and upgrading method thereof
CN105912356A (en) * 2016-03-31 2016-08-31 武汉光迅科技股份有限公司 Optical module firmware program online upgrade method supporting version fallback

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158906A (en) * 2007-08-10 2008-04-09 林明辉 Customer terminals program automatic update method
CN101557583A (en) * 2009-03-19 2009-10-14 珠海银邮光电技术发展股份有限公司 Remote-updating and version-switching method of repeater equipment embedded software
CN101867916A (en) * 2009-04-16 2010-10-20 深圳市赛格导航科技股份有限公司 Method for realizing air update of vehicle terminal
CN102110000A (en) * 2009-12-25 2011-06-29 康佳集团股份有限公司 Method, device and equipment for controlling software for auto-updating
CN101826027A (en) * 2010-05-28 2010-09-08 深圳市融创天下科技发展有限公司 Embedded system and updating method thereof
CN102291424A (en) * 2011-05-31 2011-12-21 深圳市元征软件开发有限公司 Vehicle-mounted GPRS (general packet radio service) communication system with FTP (file transfer protocol) remote wireless upgrading function and method thereof
CN103095745A (en) * 2011-10-28 2013-05-08 上海移远通信技术有限公司 Vehicle-mounted terminal, electronic module and device, system and method of electronic module upgrade
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN103092647A (en) * 2012-12-29 2013-05-08 聚光科技(杭州)股份有限公司 Online upgrade method of embedded system
CN103064715A (en) * 2013-01-09 2013-04-24 上海大唐移动通信设备有限公司 Remote upgrade method and system for automatic drive test systems
CN104881302A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Burning method and device for DSP chip program upgrading
CN105260215A (en) * 2015-11-04 2016-01-20 福建星海通信科技有限公司 Method of updating vehicle-mounted automobile data recorder terminal by USB flash disk
CN105589719A (en) * 2015-12-17 2016-05-18 广州汽车集团股份有限公司 System for remotely upgrading full vehicle-mounted controller softwares and upgrading method thereof
CN105912356A (en) * 2016-03-31 2016-08-31 武汉光迅科技股份有限公司 Optical module firmware program online upgrade method supporting version fallback

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958777A (en) * 2018-08-03 2018-12-07 广州云海智联科技有限公司 A kind of wireless charging device and control method
CN109508197A (en) * 2018-11-06 2019-03-22 北京新能源汽车股份有限公司 A kind of control method that writing with a brush dipped in Chinese ink program, device, monitoring device and car-mounted terminal
US11356425B2 (en) 2018-11-30 2022-06-07 Paccar Inc Techniques for improving security of encrypted vehicle software updates
US11449327B2 (en) 2018-11-30 2022-09-20 Paccar Inc Error-resilient over-the-air software updates for vehicles
CN111324362A (en) * 2018-12-14 2020-06-23 北京宝沃汽车有限公司 Vehicle, and method and device for updating vehicle electronic control system program
CN109358865A (en) * 2018-12-20 2019-02-19 合肥协力仪表控制技术股份有限公司 A kind of industrial vehicle car networking instrument and upgrade method with remote upgrade function
CN113660317A (en) * 2021-07-30 2021-11-16 江西五十铃汽车有限公司 Vehicle-mounted terminal remote upgrading method based on FTP protocol

Similar Documents

Publication Publication Date Title
CN106506649A (en) A kind of remote online upgrade method of vehicle-mounted control terminal and device
CN102622253B (en) A kind of method of single-chip microcomputer and online upgrading thereof
CN106569847A (en) Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network
CN103246536B (en) The wireless firmware upgrade method of thing connection positioning system
CN109240720B (en) Firmware upgrading method of android system and storage device
CN102945173B (en) User program online upgrade system and upgrade method
CN111562933A (en) Air conditioner upgrading method and air conditioner system
CN106851625A (en) A kind of blue tooth productses OTA upgrade methods
CN109743105A (en) Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN111309363A (en) Contiki operating system-based online upgrading method and device
CN102722408B (en) Method and apparatus for communication equipment software update
CN110113238A (en) Nonvolatile memory is accessed by volatibility shadow memory
CN111897560A (en) NB-IoT module-based program upgrading system, method, device and storage medium
US7010659B2 (en) Method for setting up disk-array device, computer-readable storage medium, and information processing device
CN105138329A (en) Method for modifying in-orbit task
CN112230848B (en) NVM automatic configuration method, device and equipment
CN105704707A (en) Slave equipment and air upgrading method thereof
CN115102855A (en) Intelligent water meter embedded software online upgrading method and system
CN115468552A (en) Fiber-optic gyroscope data acquisition method and system
CN104699514A (en) Remote-control end system updating method and device
CN104572450B (en) A kind of method and device for detecting resource distribution
US20130103886A1 (en) Dual-firmware for next generation emulation
CN104750505A (en) Single chip microcomputer online upgrade method and system
CN107631724B (en) Method for obtaining big data of laser inertial measurement unit north-seeking navigation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination