CN104850422A - Method and system for remotely updating terminal equipment program - Google Patents

Method and system for remotely updating terminal equipment program Download PDF

Info

Publication number
CN104850422A
CN104850422A CN201410214813.0A CN201410214813A CN104850422A CN 104850422 A CN104850422 A CN 104850422A CN 201410214813 A CN201410214813 A CN 201410214813A CN 104850422 A CN104850422 A CN 104850422A
Authority
CN
China
Prior art keywords
program
terminal device
version
version information
upgraded
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.)
Granted
Application number
CN201410214813.0A
Other languages
Chinese (zh)
Other versions
CN104850422B (en
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 Treasure Car Co Ltd
Original Assignee
Beiqi Foton Motor 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 Beiqi Foton Motor Co Ltd filed Critical Beiqi Foton Motor Co Ltd
Priority to CN201410214813.0A priority Critical patent/CN104850422B/en
Publication of CN104850422A publication Critical patent/CN104850422A/en
Application granted granted Critical
Publication of CN104850422B publication Critical patent/CN104850422B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and system for remotely updating a terminal equipment program. The method comprises the following steps: acquiring a version to be updated of terminal equipment from a data server through a communication server; feeding current version information by the terminal equipment and generating confirmation version information; finally confirming an upgraded program version according to the information; transmitting data of the program version to the terminal equipment; receiving and flashing the program through the terminal equipment; and finishing a process of remotely updating the terminal equipment program. Through the scheme, wireless remote connection of the terminal equipment is realized, and the upgraded program version is finally confirmed by means of judgment through the current version information fed back by the terminal equipment, the version information to be upgraded configured in the terminal server, and the confirmation information of the version information to be upgraded by the terminal equipment, so that the problems of version confusion and program update errors or failures caused by program update of the terminal equipment in the prior art are solved effectively. Through the method for remotely updating the terminal equipment program provided in the scheme, version confusion is prevented and correct update of the program is ensured through a way of generating multiple pieces of confirmation information and making a judgment.

Description

A kind of method and system of remote update terminal device program
Technical field
The present invention relates to a kind of method for updating program of terminal device, specifically a kind of method and system of remote update terminal device program.
Background technology
Along with the development of electronic information technology, the mode being carried out control terminal by server is used in increasing occasion.As in vehicle-mounted monitoring process, by arranging car-mounted terminal watch-dog onboard, being connected with the server of control center, obtaining various monitor data.Along with the development of car load technology, car-mounted terminal monitoring module is more and more used in various vehicle, be used for the operating different pieces of information of monitoring vehicle, simultaneously, for produced problem, car load factory need analyze by it, instruct and decision-making, so according to car load need the function of car-mounted terminal is upgraded.
But the vehicle monitor terminal run is distributed in different local, hand brush program writing takes time and effort, and utilizes wireless remote technology refresh module program then can bring great convenience.The long-range of car-mounted terminal modular program can be realized as utilized Background communication server to write with a brush dipped in Chinese ink, prior art medium-long range is write with a brush dipped in Chinese ink system and is comprised central server, vehicle monitor terminal module and controller master chip, and step is: 1) central server is issued to IP address corresponding to vehicle monitor terminal module compiled code file; 2) this terminal module is connected with central server by network, receives and resolves the code file of ICP/IP protocol; 3) this controller master chip writes bootloader code, the storage of guidance code file and operation.
But because different vehicle monitor terminals may due to different demands, the program version needed for it is also different, if do not carry out mistake proofing control to program version, long-rangely easily cause version to obscure when writing with a brush dipped in Chinese ink, vehicle can be caused can not normally to run or failure of upgrading.If save routine is bettered a record not in time in addition, reviewing or Problem Confirmation of historical record can be unfavorable for.
Summary of the invention
For this reason, technical matters to be solved by this invention easily causes when being the program updates of terminal device of the prior art that version is obscured, program updates mistake or failure, thus proposes a kind of the method that the remote update terminal device program that program correctly upgrades is obscured, guaranteed to version to occur.
For solving the problems of the technologies described above, the invention provides a kind of method of remote update terminal device program, comprising the steps:
Communication server obtains the version of the program that terminal device will upgrade from database server, and sends the version information to be upgraded of this program to terminal device;
Terminal device feeds back the current version information of its program, and generates confirmation version information according to described current version information and described version information to be upgraded; Judge version information to be upgraded, current version information and confirm the selected final program version of upgrading of version height in version information;
The routine data of the program version of finally upgrading is sent to terminal device by communication server, terminal device reception program data, stores line program of going forward side by side and writes with a brush dipped in Chinese ink renewal.
Preferably, after the above step, also comprise communication server the sequence number of terminal device, this terminal device program updates result, renewal version, update time are saved in database.
Preferably, the process of described " communication server obtains the version of the program that terminal device will upgrade from database server, and sends the version information to be upgraded of this program to terminal device ", comprises
Start the communication of communication server and terminal device, wait for the connection of this terminal device;
After terminal device response connects, communication server obtains the sequence number of this terminal device feedback, and from database server, parse the version of the program that will upgrade corresponding to this terminal device according to this sequence number;
The version number of this program version is sent to terminal device as version information to be upgraded by communication server.
Preferably, the process of described " generate according to described current version information and described version information to be upgraded and confirm version information ", comprising:
When terminal device allows to upgrade, described confirmation version information is consistent with described version information to be upgraded or current version information;
When terminal device does not allow to upgrade, described confirmation version information is error message.
Preferably, the process of described " judge version information to be upgraded, current version information and confirm the selected final program version of upgrading of version height in version information ", comprising:
When confirming all inconsistent in version information and described version information to be upgraded and current version information, exit renewal, upgrade unsuccessfully;
Otherwise, judge the information confirming version in version information and current version information, if confirm that version information is higher than current version information, then select to confirm the program version of version information as final upgrading; If confirm that version information is identical with current version information, then the program version using this identical version information as final upgrading.
Preferably, the process of described " routine data of the program version of finally upgrading is sent to terminal device by communication server, terminal device reception program data, stores line program of going forward side by side and writes with a brush dipped in Chinese ink renewal ", comprises
Communication server obtains the routine data of the program version of final upgrading from described database server;
The form of this routine data being pressed packet sends;
Terminal device is saved in data field after receiving this packet and is upgraded this partial data, and to the affirmative acknowledgement of communication server feedback;
Communication server receives the follow-up supervention of affirmative acknowledgement and gives next packet, until all routine data is sent completely, if time-out does not receive affirmative acknowledgement, exits and downloads flow process and attention program upgrades unsuccessfully, preserve this renewal failure record.
Preferably, described communication server carries out data transmission by TCP/IP procotol.
Preferably, the process of described " terminal device receive whole routine data after, store and upgrade this program ", comprising: terminal device receives the binary data file that communication server sends, by bootloader program designation application storage and operation.
The present invention also provides a kind of system of remote update terminal device program, comprising:
Database server: have program stored therein version and routine data, is configured with the sequence number of terminal device and program version to be updated corresponding to this terminal device;
Communication server: the version obtaining the program that terminal device will upgrade from database server, and the version information to be upgraded sending this program to terminal device; And the routine data of the program version of finally upgrading is sent to terminal device;
Terminal device: receive the version information to be upgraded that communication server sends, and feed back the current version information of its program, and generate confirmation version information according to described current version information and described version information to be upgraded; Judge version information to be upgraded, current version information and confirm the selected final program version of upgrading of version height in version information; And reception program data, store line program of going forward side by side and write with a brush dipped in Chinese ink renewal.
Preferably, described communication server also comprises: are saved in database the sequence number of terminal device, this terminal device program updates result, renewal version, update time.
Technique scheme of the present invention has the following advantages compared to existing technology,
(1) the invention provides a kind of method of remote update terminal device program, first from data server, obtain by communication server the version that terminal device will upgrade, then terminal device feedback current version information also generates and confirms version information, and the program version of upgrading is finally confirmed according to above-mentioned information, then the data of this program version are sent to terminal device, terminal device receives and writes with a brush dipped in Chinese ink program, completes the process of remote update terminal device program.The wireless remote that the program achieves terminal device connects, the current version information fed back by terminal device, the to be upgraded version information of data server configuration ground to this terminal device, and this terminal device is to the confirmation of this version information to be upgraded, by judging, the final program version confirming upgrading, version is easily caused to obscure when effectively prevent the program updates of terminal device in prior art, the problem of program updates mistake or failure, the mode that the program judges by generating multiple confirmation carrying out, provide one version can not occur obscure, guarantee the method for the remote update terminal device program that program correctly upgrades.
(2) method of remote update terminal device program of the present invention, also comprising communication server is saved in database by the sequence number of terminal device, this terminal device program updates result, renewal version, update time, so just utilize database server to carry out program version, terminal serial number information and write with a brush dipped in Chinese ink the management of record, control to have employed effective mistake proofing to program version, prevent program updates failure, version obscures or affect the normal operation of equipment.In addition, write with a brush dipped in Chinese ink record to program to carry out preserving convenient reviewing and questions and prospect analysis in the future to historical record in real time.
(3) method of remote update terminal device program of the present invention, when version information to be upgraded obtains, after being connected by terminal device, communication server obtains the mark of terminal device feedback as sequence number, according to the sequence number of this terminal device, the version information that this equipment needs the program upgraded is obtained from database server, in the program, after terminal device connecting communication server, namely communication server can obtain the version information that this equipment needs upgrading from database server, and mode is simple, convenient and swift.
(4) method of remote update terminal device program of the present invention, terminal device also can generate according to current version information and described version information to be upgraded and confirm version information, due to terminal device be in different states time, may allow also may not allow to upgrading, by the confirmation version information that this generates further, what ensure that it obtains is the upgraded version that can be allowed to, generally, when allowing to upgrade, this confirmation version information is consistent with version information to be upgraded or current version information, when terminal device run make mistakes or other special occasions time, confirm that version information then can be made mistakes when not allowing to upgrade, cannot upgrade.
(5) method of remote update terminal device program of the present invention, judge version information to be upgraded, current version information and confirm that the version height in version information selectes the program version of final upgrading, this chooses the process of the version of final ROMPaq, ensure that the controllability of escalation process, when terminal device is abnormal, then directly exit renewal, when normal operation, then through judging to obtain the version of the highest program version as final upgrading, ensure that the program version of terminal device is in optimum state.
(6) method of remote update terminal device program of the present invention, the mode of many bags is adopted during communication server transmission program data, when bag data are sent completely, and after receiving the response of terminal device, then send next bag data, after terminal device receives bag data at every turn, then carry out storing and upgrading this partial data, until data are all sent, then point out as time-out and upgrade unsuccessfully, and preserve failure record.
(7) method of remote update terminal device program of the present invention, described communication server carries out data transmission by TCP/IP procotol, according to the feature of this ICP/IP protocol, adopt the acknowledgement mechanism of this agreement to control effectively to this process, improve the validity of this remote update program.
Accompanying drawing explanation
In order to make content of the present invention be more likely to be clearly understood, below according to a particular embodiment of the invention and by reference to the accompanying drawings, the present invention is further detailed explanation, wherein
Fig. 1 is the FB(flow block) of the method for a kind of remote update terminal device program of the present invention;
Fig. 2 is the structured flowchart of the system of a kind of remote update terminal device program of the present invention;
Fig. 3 – Fig. 5 is each several part process flow diagram of the method for a kind of remote update terminal device program of the present invention;
Fig. 6 is the structured flowchart of the device of a kind of remote update terminal device program of the present invention.
Embodiment
embodiment 1:
In order to realize the effective control of server to the program of multiple remote terminals that it controls, a kind of method of remote update terminal device program being provided in the present embodiment, comprising the steps, process flow diagram as shown in Figure 1:
(1) communication server obtains the version of the program that terminal device will upgrade from database server, and sends the version information to be upgraded of this program to terminal device.At terminal device by communication server connection data storehouse server, be configured with program version to be upgraded according to terminal sequence sequence number in advance in data server, after such terminal connecting communication server, then this version information to be upgraded sent to terminal device.Concrete implementation method can in the following way:
1.1, start the communication of communication server and terminal device, wait for the connection of this terminal device.
1.2, after terminal device response connects, communication server obtains the sequence number of this terminal device feedback, and from database server, parse the version of the program that will upgrade corresponding to this terminal device according to this sequence number.
1.3, the version number of this program version is sent to terminal device as version information to be upgraded by communication server.
In this specific implementation, when version information to be upgraded obtains, after being connected by terminal device, according to the sequence number of this terminal device, the version information that this equipment needs the program upgraded is obtained from database server, namely the program can obtain the version information of its needs upgrading after only needing terminal device connecting communication server, mode is simple, convenient and swift.
(2) terminal device feeds back the current version information of its program, and generates confirmation version information according to described current version information and described version information to be upgraded.After communication server issues the version information to be upgraded of data server, terminal device also can feed back, feed back its current version, the state current according to terminal device and conditions of demand, the version information to be upgraded that terminal device also can issue for this communication server confirms, is confirmed information version.Concrete process is as follows:
2.1, when terminal device allows to upgrade, described confirmation version information is consistent with described version information to be upgraded or current version information.Now, if version information to be upgraded is higher than current version information, then confirm that version information is version information to be upgraded; If version information to be upgraded is identical with current version information, then confirm that version information is this identical current version information.
2.1, when terminal device does not allow to upgrade, described confirmation version information is error message.
In which, terminal device also can generate according to current version information and described version information to be upgraded and confirm version information, due to terminal device be in different states time, may allow also may not allow to upgrading, by the confirmation version information that this generates further, what ensure that it obtains is the upgraded version that can be allowed to, generally, when allowing to upgrade, this confirmation version information is consistent with version information to be upgraded or current version information, when not allowing to upgrade, then this confirmation version information is made mistakes, when makeing mistakes as run when terminal device, then return the confirmation version information of mistake, version updating can not be carried out.
(3) judge version information to be upgraded, current version information and confirm that the version information in version information selectes the program version of final upgrading.In order to ensure validity and the rationality of program upgrade, final program version of upgrading is selected in the judgement through version, and detailed process is:
3.1, when the version in confirmation version information is made mistakes, exit renewal, upgrade unsuccessfully;
3.2 otherwise, judge the information confirming version in version information and current version information, if confirm that version information is higher than current version information, then select to confirm the program version of version information as final upgrading; If confirm that version information is identical with current version information, then the program version using this identical version information as final upgrading.
In aforesaid way, by judging version information to be upgraded, current version information and confirming that the version information in version information selectes the program version of final upgrading, this chooses the process of the version of final ROMPaq, effectively ensure that the controllability of escalation process, when terminal device is abnormal, then directly exit renewal, when normal operation, then through judging the version of the program version needed for acquisition as final upgrading, ensure that the program version of terminal device is in required state.
(4) routine data of the program version of finally upgrading is sent to terminal device by communication server, terminal device reception program data, stores line program of going forward side by side and writes with a brush dipped in Chinese ink renewal.The transmission of this routine data adopts the mode of many bag transmissions, and except last bag, often bag adopts the byte of regular length, as 1000 bytes.The mode of these data transmission can select other modes of the prior art passable as required.In present embodiment, following mode is adopted to transmit:
4.1, communication server obtains the routine data of the program version of final upgrading from described database server;
The form of 4.2, this routine data being pressed packet sends;
4.3, terminal device feeds back affirmative acknowledgement to communication server after receiving this packet, and by this packet, it is saved in data field, then upgrades this partial data.Terminal device receives the binary data file that communication server sends, by bootloader program designation application storage and operation.
4.4, communication server receives the follow-up supervention of affirmative acknowledgement and gives next packet, until all routine data is sent completely, if time-out does not receive affirmative acknowledgement, exits and downloads flow process and attention program upgrades unsuccessfully, preserve this renewal failure record.
In such scheme, the mode of many bags is adopted during communication server transmission program data, when bag data are sent completely, and after receiving the response of terminal device, then sending next bag data, terminal device is receiving often after bag data, carry out storing and upgrade this partial data, until data are all sent, then point out as time-out and upgrade unsuccessfully, and preserve failure record.
In the present embodiment, a kind of method of remote update terminal device program is provided, first from data server, obtain by communication server the version that terminal device will upgrade, then the current version information of terminal device feedback also generates and confirms version information, and the program version of upgrading is finally confirmed according to above-mentioned information, then the data of this program version are sent to terminal device, terminal device receives and writes with a brush dipped in Chinese ink program, completes the process of remote update terminal device program.The wireless remote that the program achieves terminal device connects, the current version information fed back by terminal device, data server is to the version information to be upgraded of this terminal device, and this terminal device is to the confirmation of this version information to be upgraded, by judging, the final program version confirming upgrading, version is easily caused to obscure when effectively prevent the program updates of terminal device in prior art, the problem of program updates mistake or failure, the mode that the program judges by generating multiple confirmation carrying out, provide one version can not occur obscure, guarantee the method for the remote update terminal device program that program correctly upgrades.
In such scheme, described communication server carries out communication by GPRS network according to TCP/IP procotol, achieves the transmission of data.As other embodiment, the networks such as WIFI, Zegbee can be adopted to carry out data communication.
As further preferred embodiment, after the above step, also comprise communication server the sequence number of terminal device, this terminal device program updates result, renewal version, update time are saved in database.So just achieve and utilize database server to carry out program version, terminal serial number information and write with a brush dipped in Chinese ink the management of record, control to have employed effective mistake proofing to program version, prevent program updates failure, version obscures or affect the normal operation of equipment.In addition, write with a brush dipped in Chinese ink record to program to carry out preserving convenient reviewing and questions and prospect analysis in the future to historical record in real time.
embodiment 2:
Thering is provided a kind of application of method at vehicle monitor terminal of remote update terminal device program in the present embodiment, is a kind of long-range method writing with a brush dipped in Chinese ink vehicle monitor terminal program reliably.The system of its correspondence is made up of communication server, database server and vehicle monitor terminal, as shown in Figure 2.Communication is carried out by GPRS network according to ICP/IP protocol between communication server and vehicle monitor terminal.
Wherein, communication server is responsible for: 1, resolution data storehouse program version configuration information and version information is sent to vehicle monitor terminal; 2, use many machines contracting system that binary program file is sent to vehicle monitor terminal by wireless GPRS network; 3, program writes with a brush dipped in Chinese ink the preservation of record.
Vehicle monitor terminal is responsible for: receive communication server send binary data file, and by bootloader program designation application program storage and normally run.
Database server is responsible for: the sequence number of configuration vehicle monitor terminal, program version to be updated and default program version information.For meeting the demand that vehicle monitor terminal is write with a brush dipped in Chinese ink in batches, the version number of database subdivision configuration vehicle monitor terminal, if concrete configuration is two sections, the program version number of the homing sequence of each section of configuration module number, end sequence number and corresponding section.Such as, 100 vehicle monitor terminals are had to need to upgrade to program, data server is configured to two sections I section and II section, I section of corresponding sequence number is wherein the monitor terminal of 1-48, it upgrades to program version V1.1, wherein II section of corresponding sequence number is the monitor terminal of 49-100, and it upgrades to program version V1.2, so just achieves segmentation and carries out version number's configuration to monitor terminal.In addition, a default version can also be set number as V1.0, if the sequence number of this monitor terminal (as 101) is not in the scope of configuration, then for it selectes this default version V1.0.
The flow process that long-range in the present embodiment writes with a brush dipped in Chinese ink the method for vehicle monitor terminal program is as follows:
First, the program version to be updated number of database server segmented configuration vehicle monitor terminal and default program version number information.Version number corresponding to database subdivision configuration vehicle monitor terminal, concrete configuration is two sections, the program version number of the homing sequence of each section of configuration module number, end sequence number and corresponding section.
Secondly, communication server obtains the version of the program that vehicle monitor terminal equipment will upgrade from database server, and sends the version information to be upgraded of this program to terminal device.If vehicle monitor terminal response communication server connection request, the module serial number that communication server feeds back according to vehicle monitor terminal, from program version A corresponding to this module of database server piecewise analytic, is specially:
1.1, start the communication of communication server and vehicle monitor terminal, and wait for the connection of vehicle monitor terminal;
If 1.2 vehicle monitor terminal responses connect, communication server waits for its feedback module sequence number, and according to module serial number from program version A corresponding to this module of database server piecewise analytic, process of analysis is as Fig. 3, communication server inquires about I section and II section from database server, if current sequence number is in I segment limit, then selected I section of corresponding program version V1.0; If current sequence number is in II segment limit, then selected II section of corresponding program version V1.2; If the sequence number of current monitor terminal is not in I section and II segment limit, then the program version V1.0 of selected acquiescence, is shown in Fig. 3.
1.3, the software version information A to be upgraded that resolves in vehicle monitor terminal forwarding step 1.2 of communication server.
Again, vehicle monitor terminal equipment feeds back the current version information of its program, and generates confirmation version information according to described current version information and described version information to be upgraded.In this step, the current version information of vehicle monitor terminal module feedback is B, and according to version information A feedback acknowledgment version information C.Owing to not being that under any circumstance vehicle monitor terminal can realize upgrading, the controller now for current state vehicle monitor terminal can feed back version information A, returns and confirms version information C.Generally allowing more under news, the version information in this confirmation version information C is consistent with the version information in version information A to be upgraded or current version information B.But at some in particular cases, when not allowing to upgrade, this confirmation version information can be made mistakes, and does not allow to upgrade.As when vehicle monitor terminal is abnormal.
Next step, then judge version information to be upgraded, current version information and confirm the selected final program version of upgrading of version height in version information.Be specially when confirming all inconsistent in version information and described version information to be upgraded and current version information, exit renewal, upgrade unsuccessfully; Otherwise, judge the information confirming version in version information and current version information, if confirm that version information C is higher than current version information B, then select to confirm the program version of version information C as final upgrading; If confirm that version information C is identical with current version information B, then the program version using this identical version information B as final upgrading.
Version confirms that flow process is as Fig. 4.The version refreshed by the needs finally confirmed is as the program version D of final upgrading.
Finally, the routine data of the program version of finally upgrading is sent to vehicle monitor terminal equipment by communication server, terminal device reception program data, stores line program of going forward side by side and writes with a brush dipped in Chinese ink renewal.Communication server is resolved the routine data of the program version D of the final upgrading that above-mentioned steps obtains and is started the transmission of many bags data, data is sent by bag, often wraps the regular length that (except last wraps) is 1000 bytes.Vehicle monitor terminal is saved to data field after receiving these bag data, and to the affirmative acknowledgement of communication server feedback, then vehicle monitor terminal binary data file that the communication server that receives is sent, and by bootloader program designation application program storage and normally run, complete writing with a brush dipped in Chinese ink of this partial data program.Vehicle monitor terminal limit accepts packet, while complete this partial data write with a brush dipped in Chinese ink renewal.By resolving the binary program file of this program version, communication server receives the follow-up supervention of affirmative acknowledgement and gives next bag data, until be all sent completely.If time-out do not receive affirmative acknowledgement exit download flow process and prompting write with a brush dipped in Chinese ink failure.The routine data of final upgrading, through above-mentioned transmission and after writing with a brush dipped in Chinese ink process, program is write with a brush dipped in Chinese ink complete.
In addition, the sequence number of terminal device, this terminal device program updates result, renewal version, update time are saved in database by communication server.Communication server will write with a brush dipped in Chinese ink result (success or failure), write with a brush dipped in Chinese ink program version and the time is saved to database.
The above-mentioned long-range flow process of writing with a brush dipped in Chinese ink writing with a brush dipped in Chinese ink the method for vehicle monitor terminal program realizes as shown in Figure 5.Thering is provided in the present embodiment can a kind of long-range method writing with a brush dipped in Chinese ink the program of vehicle monitor terminal reliably, the wireless remote achieving vehicle monitor terminal connects, utilize database server to carry out program version, terminal serial number information simultaneously and write with a brush dipped in Chinese ink the management of record, control to have employed effective mistake proofing to program version, prevent program updates failure, version obscures or affect the normal operation of vehicle.In addition, write with a brush dipped in Chinese ink record to program to carry out preserving convenient reviewing and questions and prospect analysis in the future to historical record in real time.
embodiment: 3:
The present embodiment provides a kind of system of remote update terminal device program, as shown in Figure 6, comprising:
Database server: have program stored therein version and routine data, is configured with the sequence number of terminal device and program version to be updated corresponding to this terminal device;
Communication server: the version obtaining the program that terminal device will upgrade from database server, and the version information to be upgraded sending this program to terminal device; And the routine data of the program version of finally upgrading is sent to terminal device;
Terminal device: the current version information feeding back its program, and generate confirmation version information according to described current version information and described version information to be upgraded; Judge version information to be upgraded, current version information and confirm the selected final program version of upgrading of version height in version information; And reception program data, store line program of going forward side by side and write with a brush dipped in Chinese ink renewal.
In other examples, described communication server also comprises: are saved in database the sequence number of terminal device, this terminal device program updates result, renewal version, update time.
As further embodiment, the sequence number of terminal device, this terminal device program updates result, renewal version, update time are saved in database by communication server.
Further, in this system, communication server obtains the version of the program that terminal device will upgrade from database server, and the process of the version information to be upgraded of this program is sent to terminal device, comprise the communication starting communication server and terminal device, wait for the connection of this terminal device; After terminal device response connects, communication server obtains the sequence number of this terminal device feedback, and from database server, parse the version of the program that will upgrade corresponding to this terminal device according to this sequence number; The version number of this program version is sent to terminal device as version information to be upgraded by communication server.
Further, terminal device generates according to described current version information and described version information to be upgraded the process confirming version information, comprise: when terminal device allows to upgrade, described confirmation version information is consistent with described version information to be upgraded or current version information; When terminal device does not allow to upgrade, described confirmation version information is error message.
In addition, terminal device judges version information to be upgraded, current version information and confirms the process of the selected final program version of upgrading of version height in version information, comprise when confirming all inconsistent in version information and described version information to be upgraded and current version information, exit renewal, upgrade unsuccessfully; Otherwise, judge the information confirming version in version information and current version information, if confirm that version information is higher than current version information, then select to confirm the program version of version information as final upgrading; If confirm that version information is identical with current version information, then the program version using this identical version information as final upgrading.
Further, the routine data of the program version of finally upgrading is sent to terminal device by communication server, terminal device reception program data, store the process that line program of going forward side by side writes with a brush dipped in Chinese ink renewal, comprise the routine data that communication server obtains the program version of final upgrading from described database server; The form of this routine data being pressed packet sends; Terminal device is saved in data field after receiving this packet and is upgraded this partial data, and to the affirmative acknowledgement of communication server feedback; Communication server receives the follow-up supervention of affirmative acknowledgement and gives next packet, until all routine data is sent completely, if time-out does not receive affirmative acknowledgement, exits and downloads flow process and attention program upgrades unsuccessfully, preserve this renewal failure record.
In the present embodiment, described communication server carries out data transmission by TCP/IP procotol.After terminal device receives whole routine data, store and upgrade the process of this program, comprising: terminal device receives the binary data file that communication server sends, by bootloader program designation application storage and operation.
The system of the remote update terminal device program in the present embodiment, achieves the upgrading to RTU (remote terminal unit) program and renewal, controls to have employed effective mistake proofing to program version, prevents program updates failure, version obscures or affect the normal operation of equipment.
Obviously, above-described embodiment is only for clearly example being described, and the restriction not to embodiment.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here exhaustive without the need to also giving all embodiments.And thus the apparent change of extending out or variation be still among the protection domain of the invention.

Claims (10)

1. a method for remote update terminal device program, is characterized in that, comprises the steps:
Communication server obtains the version of the program that terminal device will upgrade from database server, and sends the version information to be upgraded of this program to terminal device;
Terminal device feeds back the current version information of its program, and generates confirmation version information according to described current version information and described version information to be upgraded;
Judge version information to be upgraded, current version information and confirm the selected final program version of upgrading of version height in version information;
The routine data of the program version of finally upgrading is sent to terminal device by communication server, terminal device reception program data, stores line program of going forward side by side and writes with a brush dipped in Chinese ink renewal.
2. the method for remote update terminal device program according to claim 1, it is characterized in that, after the above step, also comprise communication server the sequence number of terminal device, this terminal device program updates result, renewal version, update time are saved in database.
3. the method for remote update terminal device program according to claim 1 and 2, it is characterized in that, the process of described " communication server obtains the version of the program that terminal device will upgrade from database server, and sends the version information to be upgraded of this program to terminal device ", comprises
Start the communication of communication server and terminal device, wait for the connection of this terminal device;
After terminal device response connects, communication server obtains the sequence number of this terminal device feedback, and from database server, parse the version of the program that will upgrade corresponding to this terminal device according to this sequence number;
The version number of this program version is sent to terminal device as version information to be upgraded by communication server.
4. according to the method for the arbitrary described remote update terminal device program of claim 1-3, it is characterized in that, the process of described " generate according to described current version information and described version information to be upgraded and confirm version information ", comprising:
When terminal device allows to upgrade, described confirmation version information is consistent with described version information to be upgraded or current version information;
When terminal device does not allow to upgrade, described confirmation version information is error message.
5. according to the method for the arbitrary described remote update terminal device program of claim 1-4, it is characterized in that, the process of described " judge version information to be upgraded, current version information and confirm the selected final program version of upgrading of version height in version information ", comprising:
When confirming all inconsistent in version information and described version information to be upgraded and current version information, exit renewal, upgrade unsuccessfully;
Otherwise, judge the information confirming version in version information and current version information, if confirm that version information is higher than current version information, then select to confirm the program version of version information as final upgrading; If confirm that version information is identical with current version information, then the program version using this identical version information as final upgrading.
6. the method for the arbitrary described remote update terminal device program of claim 1-5, it is characterized in that, the process of described " routine data of the program version of finally upgrading is sent to terminal device by communication server, terminal device reception program data; store line program of going forward side by side and write with a brush dipped in Chinese ink renewal ", comprises
Communication server obtains the routine data of the program version of final upgrading from described database server;
The form of this routine data being pressed packet sends;
Terminal device is saved in data field after receiving this packet and is upgraded this partial data, and to the affirmative acknowledgement of communication server feedback;
Communication server receives the follow-up supervention of affirmative acknowledgement and gives next packet, until all routine data is sent completely, if time-out does not receive affirmative acknowledgement, exits and downloads flow process and attention program upgrades unsuccessfully, preserve this renewal failure record.
7., according to the method for the arbitrary described remote update terminal device program of claim 1-5, it is characterized in that,
Described communication server carries out data transmission by TCP/IP procotol.
8. according to the method for the arbitrary described remote update terminal device program of claim 1-5, it is characterized in that, the process of described " after terminal device receives whole routine data; store and upgrade this program ", comprise: terminal device receives the binary data file that communication server sends, by bootloader program designation application storage and operation.
9. use a system for the remote update terminal device program of claim 1-8 method, it is characterized in that, comprising:
Database server: have program stored therein version and routine data, is configured with the sequence number of terminal device and program version to be updated corresponding to this terminal device;
Communication server: the version obtaining the program that terminal device will upgrade from database server, and the version information to be upgraded sending this program to terminal device; And the routine data of the program version of finally upgrading is sent to terminal device;
Terminal device: receive the version information to be upgraded that communication server sends, and feed back the current version information of its program, and generate confirmation version information according to described current version information and described version information to be upgraded; Judge version information to be upgraded, current version information and confirm the selected final program version of upgrading of version height in version information; And reception program data, store line program of going forward side by side and write with a brush dipped in Chinese ink renewal.
10. the device of the remote update terminal device program according to claim, it is characterized in that, described communication server also comprises: are saved in database the sequence number of terminal device, this terminal device program updates result, renewal version, update time.
CN201410214813.0A 2014-05-21 2014-05-21 A kind of method and system of long-range update terminal device program Expired - Fee Related CN104850422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410214813.0A CN104850422B (en) 2014-05-21 2014-05-21 A kind of method and system of long-range update terminal device program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410214813.0A CN104850422B (en) 2014-05-21 2014-05-21 A kind of method and system of long-range update terminal device program

Publications (2)

Publication Number Publication Date
CN104850422A true CN104850422A (en) 2015-08-19
CN104850422B CN104850422B (en) 2019-07-23

Family

ID=53850082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410214813.0A Expired - Fee Related CN104850422B (en) 2014-05-21 2014-05-21 A kind of method and system of long-range update terminal device program

Country Status (1)

Country Link
CN (1) CN104850422B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630676A (en) * 2015-12-19 2016-06-01 合一网络技术(北京)有限公司 Upgrade records management system and method
CN105893091A (en) * 2016-01-29 2016-08-24 北京云迹科技有限公司 Method and system for upgrading software program of intelligent robot
CN106775819A (en) * 2016-11-12 2017-05-31 驭联智能科技发展(上海)有限公司 System and method is updated under novel on-vehicle device data line
CN106802818A (en) * 2016-12-31 2017-06-06 智车优行科技(北京)有限公司 The upgrade method of mobile unit, business processing device and system, vehicle
CN107092469A (en) * 2016-02-17 2017-08-25 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software, apparatus and system
CN107894895A (en) * 2017-11-06 2018-04-10 网易(杭州)网络有限公司 Processing method, device, storage medium, processor and the server of code update
CN108932134A (en) * 2018-07-09 2018-12-04 深圳市同泰怡信息技术有限公司 Server B IOS method for remote updating
CN109471641A (en) * 2018-11-12 2019-03-15 中通客车控股股份有限公司 Integral new-energy passenger multi-controller program automatic batch writes with a brush dipped in Chinese ink system and method
CN109614141A (en) * 2018-12-25 2019-04-12 北京长城华冠汽车技术开发有限公司 Remote communication module upgrading management system and updating management method
CN109739536A (en) * 2018-12-28 2019-05-10 上汽通用五菱汽车股份有限公司 The method, apparatus and storage medium of vehicle remote firmware updating
CN110083371A (en) * 2018-01-26 2019-08-02 比亚迪股份有限公司 A kind of vehicle program updating system and method, more new tool and storage medium
CN110362323A (en) * 2018-12-20 2019-10-22 无锡职业技术学院 Embedded type terminal equipment method for updating program based on distributed ad hoc network
CN110580168A (en) * 2019-08-15 2019-12-17 贵阳朗玛信息技术股份有限公司 Informatization asset management system and upgrading method thereof
CN110780895A (en) * 2018-07-30 2020-02-11 丰田自动车株式会社 Program update system, program update server, and vehicle
CN112825036A (en) * 2019-11-21 2021-05-21 青岛海尔新能源电器有限公司 Program updating method and device, electronic equipment and storage medium
CN114014116A (en) * 2021-10-19 2022-02-08 日立楼宇技术(广州)有限公司 Method, system, device and storage medium for sectionally upgrading elevator master control program
CN114143375A (en) * 2020-08-13 2022-03-04 支付宝实验室(新加坡)有限公司 Method and system for distributing data
CN114253185A (en) * 2021-12-03 2022-03-29 深圳元戎启行科技有限公司 Vehicle configuration method and device, vehicle-mounted control system and unmanned vehicle
CN115208867A (en) * 2021-04-01 2022-10-18 丰田自动车株式会社 Center, distribution control method, and non-transitory storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335641A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method, apparatus and system for updating apparatus
CN102270149A (en) * 2011-08-19 2011-12-07 深圳市凯立德科技股份有限公司 Navigation equipment management device and method
CN102546804A (en) * 2012-01-13 2012-07-04 深圳市朗赛尔科技有限公司 Method for remotely upgrading global positioning system (GPS) terminal on tower crane
CN103399760A (en) * 2013-07-20 2013-11-20 江苏中科天安智联科技有限公司 Remote upgrade method of vehicular intelligent terminal software
CN103428188A (en) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 Method and apparatus for file updating, and associated equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335641A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method, apparatus and system for updating apparatus
CN102270149A (en) * 2011-08-19 2011-12-07 深圳市凯立德科技股份有限公司 Navigation equipment management device and method
CN102546804A (en) * 2012-01-13 2012-07-04 深圳市朗赛尔科技有限公司 Method for remotely upgrading global positioning system (GPS) terminal on tower crane
CN103428188A (en) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 Method and apparatus for file updating, and associated equipment
CN103399760A (en) * 2013-07-20 2013-11-20 江苏中科天安智联科技有限公司 Remote upgrade method of vehicular intelligent terminal software

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630676A (en) * 2015-12-19 2016-06-01 合一网络技术(北京)有限公司 Upgrade records management system and method
CN105630676B (en) * 2015-12-19 2018-08-24 合一网络技术(北京)有限公司 Upgrade record management system and method
CN105893091A (en) * 2016-01-29 2016-08-24 北京云迹科技有限公司 Method and system for upgrading software program of intelligent robot
CN107092469A (en) * 2016-02-17 2017-08-25 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software, apparatus and system
CN106775819A (en) * 2016-11-12 2017-05-31 驭联智能科技发展(上海)有限公司 System and method is updated under novel on-vehicle device data line
CN106802818A (en) * 2016-12-31 2017-06-06 智车优行科技(北京)有限公司 The upgrade method of mobile unit, business processing device and system, vehicle
CN107894895A (en) * 2017-11-06 2018-04-10 网易(杭州)网络有限公司 Processing method, device, storage medium, processor and the server of code update
CN110083371B (en) * 2018-01-26 2021-01-19 比亚迪股份有限公司 Vehicle program updating system and method, updating tool and storage medium
CN110083371A (en) * 2018-01-26 2019-08-02 比亚迪股份有限公司 A kind of vehicle program updating system and method, more new tool and storage medium
CN108932134A (en) * 2018-07-09 2018-12-04 深圳市同泰怡信息技术有限公司 Server B IOS method for remote updating
CN110780895A (en) * 2018-07-30 2020-02-11 丰田自动车株式会社 Program update system, program update server, and vehicle
CN109471641A (en) * 2018-11-12 2019-03-15 中通客车控股股份有限公司 Integral new-energy passenger multi-controller program automatic batch writes with a brush dipped in Chinese ink system and method
CN109471641B (en) * 2018-11-12 2022-05-03 中通客车股份有限公司 Automatic batch program flashing system and method for multiple controllers of new energy passenger car
CN110362323A (en) * 2018-12-20 2019-10-22 无锡职业技术学院 Embedded type terminal equipment method for updating program based on distributed ad hoc network
CN109614141A (en) * 2018-12-25 2019-04-12 北京长城华冠汽车技术开发有限公司 Remote communication module upgrading management system and updating management method
CN109739536A (en) * 2018-12-28 2019-05-10 上汽通用五菱汽车股份有限公司 The method, apparatus and storage medium of vehicle remote firmware updating
CN110580168A (en) * 2019-08-15 2019-12-17 贵阳朗玛信息技术股份有限公司 Informatization asset management system and upgrading method thereof
CN112825036A (en) * 2019-11-21 2021-05-21 青岛海尔新能源电器有限公司 Program updating method and device, electronic equipment and storage medium
CN114143375A (en) * 2020-08-13 2022-03-04 支付宝实验室(新加坡)有限公司 Method and system for distributing data
CN115208867A (en) * 2021-04-01 2022-10-18 丰田自动车株式会社 Center, distribution control method, and non-transitory storage medium
CN114014116A (en) * 2021-10-19 2022-02-08 日立楼宇技术(广州)有限公司 Method, system, device and storage medium for sectionally upgrading elevator master control program
CN114253185A (en) * 2021-12-03 2022-03-29 深圳元戎启行科技有限公司 Vehicle configuration method and device, vehicle-mounted control system and unmanned vehicle

Also Published As

Publication number Publication date
CN104850422B (en) 2019-07-23

Similar Documents

Publication Publication Date Title
CN104850422A (en) Method and system for remotely updating terminal equipment program
EP3664415B1 (en) Connected gateway server system for real-time vehicle control service
US7065347B1 (en) System and method for over the air programming
US10203949B2 (en) System and method for providing software updates
CN103095745B (en) Car-mounted terminal, electronic module, electronic module update device, system and method
CN101808009B (en) Method and system for upgrading network equipment
CN101621411B (en) Method and system for remotely updating microcontrollers
CN109117147B (en) Passive positioning satellite load software reconstruction rapid implementation method based on large data volume
CN106301959B (en) Gateway batch upgrading method and system based on WINDOWS and LINUX platform
US20050160418A1 (en) Embedded system using binary position information and software downloading method therein
US20080196023A1 (en) Local controller, remote management controller and method for automatically updating the local controller of an air conditioner system
WO2018123241A1 (en) Method, device, and system for transmitting program and parameter to plc
CN101472050A (en) Method and system for updating software, digital television receive terminal and server
CN105677363A (en) OTA (Over-the-Air Technology) upgrading system
CN107357595A (en) A kind of multiple driver firmware online updating system based on bus
CA2885968C (en) Data packet transport and delivery system and method
CN103454959A (en) Industrial control system based on remote control and method for updating control program
CN113721966B (en) Node upgrading method and device, storage medium and electronic device
CN102333071A (en) Engineering mechanical vehicle networking and communicating method and engineering mechanical vehicle networking system
CN114866525B (en) Remote online firmware upgrading method and system for embedded device in one master multi-slave mode
CN107505929B (en) Configuration method and device of vehicle controller and vehicle
CN108153561B (en) Ethernet loading method and signal processing system for DSP and FPGA
KR101651752B1 (en) Communication based train control system for processing automatic train registration and method thereof
CN116107618A (en) Flowmeter controller upgrading method, computer equipment and storage medium
CN204946299U (en) A kind of shield machine wireless data acquisition system based on mobile phone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180420

Address after: No. 188, Miyun District, Miyun District, Beijing, Beijing

Applicant after: Beijing treasure Car Co.,Ltd.

Address before: 102206 Changping District City, Shahe, Sha Yang Road, Beijing

Applicant before: BEIQI FOTON MOTOR Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190723