CN101226395B - Program update method and program update system for engineering machinery - Google Patents

Program update method and program update system for engineering machinery Download PDF

Info

Publication number
CN101226395B
CN101226395B CN2008100063113A CN200810006311A CN101226395B CN 101226395 B CN101226395 B CN 101226395B CN 2008100063113 A CN2008100063113 A CN 2008100063113A CN 200810006311 A CN200810006311 A CN 200810006311A CN 101226395 B CN101226395 B CN 101226395B
Authority
CN
China
Prior art keywords
time
remote monitoring
application program
monitoring terminal
frame
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.)
Expired - Fee Related
Application number
CN2008100063113A
Other languages
Chinese (zh)
Other versions
CN101226395A (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.)
Sany Heavy Industry Co Ltd
Original Assignee
Sany Heavy Industry 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 Sany Heavy Industry Co Ltd filed Critical Sany Heavy Industry Co Ltd
Priority to CN2008100063113A priority Critical patent/CN101226395B/en
Publication of CN101226395A publication Critical patent/CN101226395A/en
Application granted granted Critical
Publication of CN101226395B publication Critical patent/CN101226395B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to an application program refresh method of engineering machine, which comprises obtaining the descending transmission time of data frame from detection center to remote detection terminal, when the descending transmission time is lower than a present time, using FTP transmission method at the detection center to send the application program to the remote detection terminal, and when the descending transmission time is higher than the preset time, using SOCKET transmission method at the detection center to send the application program to the remote detection terminal, and refreshing the application program at the remote detection terminal. The invention further discloses another application program fresh method of engineering machine and relative application program fresh systems relative to the two application program refresh methods of engineering machine. The invention can effectively improve the refresh efficiency and refresh reliability of internal application program of remote detection terminal.

Description

A kind of method for updating program and program updating system that is used for engineering machinery
Technical field
The present invention relates to engineering machinery field, particularly relate to a kind of method for updating program and program updating system that is used for engineering machinery.
Background technology
Engineering machinery remote monitering system is a kind of brand-new, quick, high precision, modern management means reliably, and supervisory system utilizes computer technology, satellite positioning tech and wireless communication technique that running status, working position and the construction speed of engineering machinery are carried out remote monitoring.
Consult Fig. 1, existing engineering machinery remote monitering system is shown, this supervisory system comprises remote monitoring terminal 11, information transfer server 12, reaches Surveillance center 13.Wherein, remote monitoring terminal 11 and Surveillance center 13 form two data terminals of this supervisory system.
Remote monitoring terminal in use sometimes because of work requirements, needs remote monitoring terminal 11 internal applications are upgraded.Update mode adopts on-the-spot update mode or remote update mode usually, but the not stationarity of engineering machinery work place, strengthen on-the-spot difficulty and the cost that upgrades remote monitoring terminal 11 internal applications, for this reason, the more employing remote updates of engineering machinery remote monitering system mode is upgraded remote monitoring terminal 11 internal applications.
Consult Fig. 2, the existing method for updating program that is used for engineering machinery is shown, specifically may further comprise the steps.
Step S201, remote monitoring terminal 11 router update request information are to Surveillance center 13.
Step S202, Surveillance center 13 receive this update request information, and the confirmation of receipt information of returning is to remote monitoring terminal 11.
Step S203,13 pairs of these update request information of Surveillance center are tested, and as correctly, transfer application program in inside, send to remote monitoring terminal 11, as incorrect, abandon this update request information.
Step S204, remote monitoring terminal 11 upgrade internal applications.
As everyone knows, engineering machinery generally is comparatively under the harsh conditions, to be engaged in intensive work at environment, as mine working, cut into a mountain for quarrying, build road etc.In the work, each equipment of engineering machinery all needs to bear high vibration, high temperature, reaches high electromagnetic interference (EMI), under the environment of height vibration, high temperature, high electromagnetic interference (EMI), be easy to occur faults such as data transmission exception between remote monitoring terminal 11 and the Surveillance center 13, for example, in above-mentioned steps, because of electromagnetic interference (EMI), Surveillance center 13 does not receive the program updates solicited message, or remote monitoring terminal 11 do not receive confirmation of receipt information, and remote monitoring terminal 11 can repeatedly repeat router update request information; Again for example, in above-mentioned steps, because of electromagnetic interference (EMI), Surveillance center 13 can produce interrupting or stopping to remote monitoring terminal 11 delivery applications programs, directly has influence on the update efficiency of remote monitoring terminal 11 internal applications and upgrades reliability.
Summary of the invention
Technical matters to be solved by this invention provides a kind of application program update method that is used for engineering machinery, update efficiency with the internal applications that solves prior art medium-long range monitor terminal is lower, upgrade the relatively poor problem of reliability, this update method can improve the update efficiency and the renewal reliability of the internal applications of remote monitoring terminal effectively.
Another object of the present invention provides a kind of application program update system that is used for engineering machinery, update efficiency with the internal applications that solves prior art medium-long range monitor terminal is lower, upgrade the relatively poor problem of reliability, this update system can improve the update efficiency and the renewal reliability of the internal applications of remote monitoring terminal effectively.
A kind of application program update method that is used for engineering machinery of the present invention comprises: obtain the downlink transfer time of Frame from Surveillance center to remote monitoring terminal; The downlink transfer time is less than preset time as described, and described Surveillance center adopts the FTP transmission mode that application program is sent to described remote monitoring terminal; The downlink transfer time is greater than preset time as described, and described Surveillance center adopts the SOCKET transmission mode that application program is sent to described remote monitoring terminal; Described remote monitoring terminal upgrades application program.
Preferably, also comprise: detect whether there is intervention information,, start the remote monitoring terminal application program update as existing.
Preferably, also comprise: described remote monitoring terminal is set up SOCKET with described Surveillance center and is connected; Described remote monitoring terminal connects the identification number of the application program of obtaining the preservation of described Surveillance center by SOCKET; The identification number that described remote monitoring terminal is confirmed this application program is new than the identification number of self application program.
Preferably, also comprise: described remote monitoring terminal and described Surveillance center obtain the GPS locating information, isolate temporal information from above-mentioned GPS locating information; Described remote monitoring terminal and described Surveillance center are according to above-mentioned time information renovation self temporal information.
Preferably, obtaining the downlink transfer time of Frame from the Surveillance center to the remote monitoring terminal is specially; Described Surveillance center sends the Frame that comprises very first time information and arrives described remote monitoring terminal, and the described very first time is the instant time of this Frame delivery time; Described remote monitoring terminal writes down second temporal information, and described second time is to receive this Frame instant time constantly; Calculate the difference of described second time and the described very first time, as the downlink transfer time.
Preferably, also comprise: the downlink transfer time stops application program update greater than setting-up time as described.
Preferably, obtained the downlink transfer of Frame before the time, also comprise: obtain the uplink time of Frame from described remote monitoring terminal to described Surveillance center from Surveillance center to remote monitoring terminal; The uplink time stops application program update greater than Preset Time as described.
Preferably, extremely the uplink time of described Surveillance center is specially from described remote monitoring terminal to obtain Frame; Described remote monitoring terminal sends the Frame that comprises the 3rd temporal information and arrives described Surveillance center, and described the 3rd time is the instant time of this Frame delivery time; Described Surveillance center writes down the 4th temporal information, and described the 4th time is to receive this Frame instant time constantly; Calculate the difference of described the 4th time and described the 3rd time, as the uplink time
Preferably, described Surveillance center adopts the SOCKET transmission mode that application program is sent to described remote monitoring terminal and is specially: described remote monitoring terminal sends packet max cap. information to described Surveillance center according to described downlink transfer Time Calculation packet max cap.; Described Surveillance center is processed into each packet with application program, and the data volume of each packet is less than above-mentioned packet max cap.; Described Surveillance center is sent to described remote monitoring terminal with each packet.
A kind of application program update system that is used for engineering machinery of the present invention, comprise downlink transfer time-obtaining module, transmission mode selection module, reach the application program update module: described downlink transfer time-obtaining module is used to obtain the downlink transfer time of Frame from Surveillance center to remote monitoring terminal; Described transmission mode is selected module, is used for selecting the FTP transmission mode that application program is sent to described application program update module in described downlink transfer time during less than preset time; In described downlink transfer time during, select the SOCKET transmission mode that application program is sent to described application program update module greater than preset time; Described application program update module is used to upgrade application program.
Preferably, described downlink transfer time-obtaining module comprises very first time record sub module, the second time keeping submodule, reaches downlink transfer Time Calculation submodule: described very first time record sub module, be used to send the Frame that comprises very first time information and arrive described downlink transfer Time Calculation submodule, the described very first time is the instant time of this Frame delivery time; The described second time keeping submodule is used to write down second temporal information, and described second time is to receive this Frame instant time constantly; Described downlink transfer Time Calculation submodule is used to calculate the difference of described second time and the described very first time, as the downlink transfer time.
Preferably, also comprise the time adjustment submodule, be used to obtain the GPS locating information, from above-mentioned GPS locating information, isolate temporal information, according to above-mentioned time information renovation self temporal information.
A kind of application program update method that is used for engineering machinery of the present invention also comprises: obtain the transfer rate of Frame from Surveillance center to remote monitoring terminal; Transfer rate is greater than presetting speed as described, and described Surveillance center adopts the FTP transmission mode that application program is sent to described remote monitoring terminal; Transfer rate is less than presetting speed as described, and described Surveillance center adopts the SOCKET transmission mode that application program is sent to described remote monitoring terminal; Described remote monitoring terminal upgrades application program.
Preferably, comprise that also described remote monitoring terminal and described Surveillance center obtain the GPS locating information, isolate temporal information from above-mentioned GPS locating information; Described remote monitoring terminal and described Surveillance center are according to above-mentioned time information renovation self temporal information.
Preferably, obtaining the transfer rate of Frame from Surveillance center to remote monitoring terminal is specially; Described Surveillance center sends the Frame of preset data amount to described remote monitoring terminal, and described Frame comprises very first time information, and the described very first time is the instant time of this Frame delivery time; Described remote monitoring terminal writes down second temporal information, and described second time is to receive this Frame instant time constantly; Calculate the difference of described second time and the described very first time, the preset data amount divided by this difference, is obtained transfer rate.
Preferably, described Surveillance center adopts the SOCKET transmission mode that application program is sent to described remote monitoring terminal and is specially: described remote monitoring terminal sends packet max cap. information to described Surveillance center according to described transfer rate computational data bag max cap.; Described Surveillance center is processed into each packet with application program, and the data volume of each packet is less than above-mentioned packet max cap.; Described Surveillance center is sent to described remote monitoring terminal with each packet.
A kind of application program update system that is used for engineering machinery of the present invention comprises the transfer rate acquisition module, transmission mode determination module, and application program update module; Described transfer rate acquisition module is used to obtain the transfer rate of Frame from Surveillance center to remote monitoring terminal; Described transmission mode determination module is used in described transfer rate adopting the FTP transmission mode that application program is sent to described remote monitoring terminal when presetting speed; When presetting speed, adopt the SOCKET transmission mode that application program is sent to described remote monitoring terminal in described transfer rate; Described application program update module is used to upgrade application program.
Preferably, described transfer rate acquisition module comprises that Frame sends submodule, the second time keeping submodule, reaches the transfer rate calculating sub module: described Frame sends submodule, be used to send the Frame of preset data amount to described transfer rate calculating sub module, described Frame comprises very first time information, and the described very first time is the instant time of this Frame delivery time; The described second time keeping submodule is used to record second temporal information, and described second time is to receive this Frame instant time constantly; Described transfer rate calculating sub module is used to calculate the difference of described second time and the described very first time, and the preset data amount divided by this difference, is obtained transfer rate.
Compared with prior art, the present invention has the following advantages:
The present invention is communication conditions preferably under the situation externally, adopt the FTP transmission mode, application program is transmitted with document form under this transmission mode, and transfer rate is higher, the PERCOM peripheral communication environment can ensure carrying out smoothly of data transmission preferably, effectively improves the update efficiency of application program.Externally under the relatively poor situation of communication conditions, adopt the SOCKET transmission mode, application program is transmitted with form of data frames under this transmission mode, transmission is stablized higher, even the PERCOM peripheral communication environmental facies are to relatively poor, still can ensure carrying out smoothly of data transmission, effectively improve the reliability of application program update.
Description of drawings
Fig. 1 is existing engineering machinery remote monitering system synoptic diagram;
Fig. 2 is the existing method for updating program process flow diagram that is used for engineering machinery;
Fig. 3 is used for the application program update method flow diagram of engineering machinery for the present invention;
Fig. 4 adopts the process flow diagram of FTP mode transmission mode for the present invention;
Fig. 5 adopts the process flow diagram of SOCKET mode transmission mode for the present invention;
Fig. 6 is used for the application program update system schematic of engineering machinery for the present invention;
Fig. 7 is a downlink transfer time-obtaining module synoptic diagram of the present invention;
Fig. 8 is used for the application program update method flow diagram of engineering machinery for the present invention;
Fig. 9 adopts the process flow diagram of FTP mode transmission mode for the present invention;
Figure 10 adopts the process flow diagram of SOCKET mode transmission mode for the present invention;
Figure 11 is used for the application program update system schematic of engineering machinery for the present invention;
Figure 12 is a downlink transfer time-obtaining module synoptic diagram of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The principle that the present invention mainly uses be the time of Frame wireless transmission with communication environment was directly related at that time, and be directly proportional, when communication environment was better, data frame transfer was very fast, and good stability, selecting data transmits communication mode faster; When communication environment was relatively poor, data frame transfer was slower, and stability is not good, can select stability transmission mode preferably.
The present invention is by detecting the transmission time of Frame from the Surveillance center to the remote control terminal, judge the communication environment of engineering machinery present position, and select suitable data transfer mode neatly, thereby improve the update efficiency and the reliability of remote monitoring terminal internal applications effectively according to communication conditions.The present invention is mainly used in engineering machinery, also can be applicable to various devices and equipment that program updates is carried out at inconvenient scene, for example, and the server at each communication service station, the various open-air detection instruments etc. that are arranged on.
Consult Fig. 3, the application program update method that the present invention is used for engineering machinery is shown, specifically may further comprise the steps.
Step S301, obtain the downlink transfer time of Frame from Surveillance center to remote monitoring terminal.The Frame that Surveillance center's transmission comprises very first time information is to remote monitoring terminal, and the very first time is the instant time of this Frame delivery time.Remote monitoring terminal receives this Frame, writes down second temporal information, and second time was to receive this Frame instant time constantly.Remote monitoring terminal calculates the difference of second time and the very first time, as the downlink transfer time.
For example, the very first time is 16:32:00, and second time was 16:32:30, and the downlink transfer time is 30 seconds.
Step S302, downlink transfer time and preset time are compared, preset time can be adjusted according to the type of concrete engineering machinery, and span is 0.1-30 second, is preferably 1 second.
Step S303, as the descending transmission time less than preset time, Surveillance center adopts the FTP transmission mode that application program is sent to remote monitoring terminal.Under the FTP transmission mode, the monitored center of application file information is formed one or more Frames and is sent to remote monitoring terminal, and remote monitoring terminal is set up a FTP with Surveillance center and is connected after receiving application file information.Remote monitoring terminal utilize with Surveillance center between FTP is connected with document form from the up-to-date application program of the inner assigned address download of Surveillance center.
As the descending transmission time greater than preset time, Surveillance center adopts the SOCKET transmission mode that application program is sent to remote monitoring terminal.Surveillance center is processed into each packet with application program, again each packet is sent to remote monitoring terminal successively.
Step S304, remote monitoring terminal upgrade application program.Remote monitoring terminal is tested to the application program that receives, as meets the requirements, and remote monitoring terminal is kept at this application program in the storage space, restarts and carries out newly downloaded application program; As undesirable, remote monitoring terminal request Surveillance center resends this application program.
The present invention is communication conditions preferably under the situation externally, adopt the FTP transmission mode, application program is transmitted with document form under this transmission mode, and transfer rate is higher, the PERCOM peripheral communication environment can ensure carrying out smoothly of data transmission preferably, effectively improves the update efficiency of application program.The present invention is externally under the relatively poor situation of communication conditions, adopt the SOCKET transmission mode, application program is transmitted with form of data frames under this transmission mode, transmission is stablized higher, even the PERCOM peripheral communication environmental facies are to relatively poor, still can ensure carrying out smoothly of data transmission, effectively improve the reliability of application program update.
The present invention starts constantly at remote monitoring terminal, detect and whether have specific user intervention operation, the application program update instruction that specific user intervention operation generates, as the judgment basis that whether starts the teleprogram renewal process, if detect the application program update instruction, then start the teleprogram renewal process,, then carry out the application program of remote monitoring terminal inside if do not detect the application program update instruction.
In the teleprogram renewal process, at first setting up a SOCKET between remote monitoring terminal and Surveillance center is connected, cooperate Surveillance center's internal processes, the more recent application program version that remote monitoring terminal can utilize this SOCKET to get access to be kept at Surveillance center inside number, and whether carry out the renewal of application program according to this version number's decision.
The present invention also can judge whether to carry out data transmission, and which kind of mode of selection be carried out the transmission of application program according to the uplink time of remote control terminal to Surveillance center.
Be example to adopt FTP transmission mode and SOCKET transmission mode respectively below, describe the application program update method that the present invention is used for engineering machinery in detail.
Consult Fig. 4, the flow process that the present invention adopts FTP mode transmission mode is shown, concrete steps are as described below.
Step S401, remote monitoring terminal detect whether there is the application program reset instruction, as existing, forward step S402 to; As not existing, do not start application program update.
Step S402, remote monitoring terminal send connectivity request message to Surveillance center, and at first set up a SOCKET between Surveillance center and are connected.
Step S403, Surveillance center send to remote monitoring terminal with the version number of the more recent application program that preserve inside.
Step S404, remote monitoring terminal with the recent program version number that gets access to be kept at himself internal applications version number and compare, if the version number that gets access to is old than the version number of the application program of self, then close above-mentioned SOCKET and connect, carry out self application program; If the version number that gets access to is new than the version number of the application program of self, then forward step S405 to.
Step S405, remote monitoring terminal send and comprise the input frame of the 3rd temporal information to Surveillance center.The 3rd time was that remote monitoring terminal sends this input frame instant time constantly.
After step S406, Surveillance center received the input frame, the input that generates a correspondence was replied frame.This Frame inside comprises very first time information and the 4th temporal information.The very first time is replied the instant time of frame for sending this input, and the 4th time was the instant time that receives this input frame.
Step S407, remote monitoring terminal isolate the very first time and the 4th time from this test returns frame, and recorder are to the instant temporal information of this Frame, i.e. second times after receiving this input answer frame.
Step S408, remote monitoring terminal calculate the mistiming of the 4th time and the 3rd time, as uplink time (being sent to Surveillance center) by remote monitoring terminal, calculate the mistiming of second time and the very first time, as downlink transfer time (being sent to remote monitoring terminal) by Surveillance center.
As the up transmission time greater than Preset Time, stop application program update; As the up transmission time less than Preset Time, and the downlink transfer time less than preset time, adopt FTP transmission mode transfer application.Preset Time is 150 seconds, and the span of preset time is 0.1-30 second, is preferably 1 second.
Step S409, remote monitoring terminal send FTP transmission requests Frame to Surveillance center.
Step S410, Surveillance center form one or more Frames with application file information and send to remote monitoring terminal.
Step S411, remote monitoring terminal are closed with the SOCKET of Surveillance center and are connected after receiving application file information, set up a FTP with Surveillance center and are connected.
Step S412, Surveillance center send to remote monitoring terminal with application file in the mode of file transfer.
After step S413, monitor terminal are finished the download of application programs file, utilize the application file check information that comprises in the above-mentioned application file information, this application file is carried out verification, after verification is passed through, this application file is saved in the program's memory space of terminal inner, restart remote monitoring terminal, and carry out up-to-date application program; If the verification of application programs file is not passed through, then attempt the application file downloading process again, if verification is failed once more, then restart remote monitoring terminal after application file is downloaded and finished, and carry out prior application program.
The present invention utilizes the downlink transfer time to judge communication environment, and the downlink transfer time is short, prove that communication environment is good, can guarantee that application program can transmit with document form, and transmission mode speed height is beneficial to the update efficiency of raising application program.
Consult Fig. 5, the flow process that the present invention adopts SOCKET mode transmission mode is shown, concrete steps are as described below.
Step S501, remote monitoring terminal detect whether there is the application program reset instruction, as existing, forward step S502 to; As not existing, do not start application program update.
Step S502, remote monitoring terminal send connectivity request message to Surveillance center, and at first set up a SOCKET between Surveillance center and are connected.
Step S503, Surveillance center send to remote monitoring terminal with the version number of the more recent application program that preserve inside.
Step S504, remote monitoring terminal with the recent program version number that gets access to be kept at himself internal applications version number and compare, if the version number that gets access to is old than the version number of the application program of self, then close above-mentioned SOCKET and connect, carry out self application program; If the version number that gets access to is new than the version number of the application program of self, then forward step S505 to.
Step S505, remote monitoring terminal send and comprise the input frame of the 3rd temporal information to Surveillance center.The 3rd time was that remote monitoring terminal sends this input frame instant time constantly.
After step S506, Surveillance center received the input frame, the input that generates a correspondence was replied frame.This Frame inside comprises very first time information and the 4th temporal information.The very first time is replied the instant time of frame for sending this input, and the 4th time was the instant time that receives this input frame.
Step S507, remote monitoring terminal isolate the very first time and the 4th time from this test returns frame, and recorder are to the instant temporal information of this Frame, i.e. second times after receiving this input answer frame.
Step S508, remote monitoring terminal calculate the mistiming of the 4th time and the 3rd time, as uplink time (being sent to Surveillance center) by remote monitoring terminal, calculate the mistiming of second time and the very first time, as downlink transfer time (being sent to remote monitoring terminal) by Surveillance center.
As the up transmission time greater than Preset Time, stop application program update; As the up transmission time less than Preset Time, the downlink transfer time is adopted SOCKET transmission mode transfer application greater than preset time but less than forbidding the transmission time.As the descending transmission time greater than forbidding the transmission time, stop application program update.Preset Time is 150 seconds, and the span of preset time is 0.1-30 second, is preferably 1 second.Forbid that the transmission time is 150 seconds.
The max cap. of remote monitoring terminal calculation procedure section, the max cap. of program segment and the size of downlink transfer time are inversely proportional to, and remote monitoring terminal calculates formula and can be according to the max cap. of transmission time calculation procedure section:
The max cap. of program segment (byte)=a+b/ downlink transfer time (T), wherein, a is the basic tankage of program segment, b is a coefficient.
Step S509, remote monitoring terminal are set up a program download additional frame, this frame has comprised the version number of its required application file that obtains and the maximum capacity of program segment, and remote monitoring terminal utilizes the SOCKET connection that program is downloaded additional frame and sends to Surveillance center.
After step S510, Surveillance center receive this program download additional frame, from this Frame, isolate the max cap. of application file version number and each program segment, and the pairing application file of application file version number is divided into the program segment that the wall scroll size is no more than the program segment max cap., again program frame frame head, program frame postamble, program segment, program frame sign and checking data are combined into program frame, program frame is sent to remote monitoring terminal respectively.
After step S511, remote monitoring terminal receive this program frame, each program frame is carried out verification,, then from program frame, isolate program segment, preserve save routine section after its corresponding program identification if verification passes through; If this program frame not by verification, then sends re-send request may frame, the corresponding program frame of request repeat to Surveillance center.
After all program frames received, remote monitoring terminal was checked the program frame that all receive, and to search the program frame of losing, if find the program frame of losing, then requires Surveillance center to retransmit this program frame.After all program frames receive fully, the program segment that to separate from program frame is combined into a complete application file, and it is saved in the program's memory space of remote monitoring terminal, restart remote monitoring terminal, carry out newly downloaded application program.
The present invention is under the relatively poor situation of communication environment, adopt the SOCKET transmission mode, application program is decomposed into a plurality of Frames to be transmitted, the size of each Frame was determined according to the downlink transfer time, at current communication environment, select the stronger transmission mode of reliability, the suitable data frame sign, fully guaranteeing to improve data transmission efficiency under the prerequisite of transmission reliability as far as possible.
Be unified time, Surveillance center of the present invention and remote control can pass through GPS positioning system acquisition time in advance, upgrade self temporal information, and the time of Surveillance center and remote control is consistent.
Based on the above-mentioned application program update method that is used for engineering machinery, the present invention also provides a kind of application program update system in engineering machinery, and this update system can improve the update efficiency and the renewal reliability of the internal applications of remote monitoring terminal effectively.
Consult Fig. 6, the application program update system that the present invention is used for engineering machinery is shown, comprise downlink transfer time-obtaining module 61, transmission mode selection module 62, reach application program update module 63.
Downlink transfer time-obtaining module 61 is obtained the downlink transfer time of Frame from Surveillance center to remote monitoring terminal, and this downlink transfer time is sent to transmission mode selection module 62;
Transmission mode selects module 62 in downlink transfer time during less than preset time, selects the FTP transmission mode that application program is sent to application program update module 63; In downlink transfer time during, select the SOCKET transmission mode that application program is sent to application program update module 63 greater than preset time.Preset time can be adjusted according to the type of concrete engineering machinery, and span is 0.1-30 second, is preferably 1 second.
63 pairs of application programs that receive of application program update module are tested, as meet the requirements, and this application program is kept in the storage space, restart and carry out newly downloaded application program; As undesirable, request resends this application program.
Consult Fig. 7, downlink transfer time-obtaining module 61 of the present invention is shown, and downlink transfer time-obtaining module 61 comprises very first time record sub module 611, the second time keeping submodule 612, downlink transfer Time Calculation submodule 613, reaches time syndrome module 614.
Time adjustment submodule 614 is separately positioned in Surveillance center and the remote monitoring terminal, obtains the GPS locating information, isolates temporal information from the GPS locating information, according to above-mentioned time information renovation self temporal information.
Very first time record sub module 611 is arranged on Surveillance center inside, sends the Frame that comprises very first time information and arrives downlink transfer Time Calculation submodule 613, and the very first time is the instant time of this Frame delivery time.
The second time keeping submodule 612 is arranged in the remote monitoring terminal, writes down second temporal information, and second time was to receive this Frame instant time constantly.The second time keeping submodule 612 sends to downlink transfer Time Calculation submodule 613 with second temporal information.
Downlink transfer Time Calculation submodule 6136 calculates the difference of second time and the very first time, as the downlink transfer time.
Based on same design, the present invention also obtains the transfer rate of Surveillance center to remote control terminal, and this transfer rate reflects that directly Surveillance center arrives the communication environment between remote control terminal.Remote control terminal is selected suitable transmission mode according to this transfer rate, thereby improves the update efficiency and the reliability of remote monitoring terminal internal applications effectively.
Consult Fig. 8, the application program update method that the present invention is used for engineering machinery is shown, specifically may further comprise the steps.
Step S801, obtain the transfer rate of Frame from Surveillance center to remote monitoring terminal.The Frame that Surveillance center's transmission comprises very first time information is to remote monitoring terminal, and the very first time is the instant time of this Frame delivery time.The fixed amount that this Frame comprised.
Remote monitoring terminal receives this Frame, writes down second temporal information, and second time was to receive this Frame instant time constantly.Remote monitoring terminal calculates transfer rate:
Computing formula is: the data volume of transfer rate=Frame/(the second time-very first time)
For example, the very first time is 16:32:00, and second time was 16:32:5, and the data volume of Frame is 5Kbyte, and transfer rate is 1Kbyte/ second.
Step S802, with transfer rate with preset speed and compare, preset time can be adjusted according to the type of concrete engineering machinery, span is second 1Kbyte/ second-40Kbyte/, is preferably 20Kbyte/ second.
Step S803, as transfer rate greater than presetting speed, Surveillance center adopts the FTP transmission mode that application program is sent to remote monitoring terminal.Under the FTP transmission mode, the monitored center of application file information is formed one or more Frames and is sent to remote monitoring terminal, and remote monitoring terminal is set up a FTP with Surveillance center and is connected after receiving application file information.Remote monitoring terminal utilize with Surveillance center between FTP is connected with document form from the up-to-date application program of the inner assigned address download of Surveillance center.
Less than presetting speed, Surveillance center adopts the SOCKET transmission mode that application program is sent to remote monitoring terminal as transfer rate.Surveillance center is processed into each packet with application program, again each packet is sent to remote monitoring terminal successively.
Step S804, remote monitoring terminal upgrade application program.Remote monitoring terminal is tested to the application program that receives, as meets the requirements, and remote monitoring terminal is kept at this application program in the storage space, restarts and carries out newly downloaded application program; As undesirable, remote monitoring terminal request Surveillance center resends this application program.
The present invention utilizes the transfer rate of monitor terminal to remote monitoring terminal, judge the communication environment situation, externally communication conditions is preferably under the situation, adopt the FTP transmission mode, application program is transmitted with document form under this transmission mode, transfer rate is higher, and the PERCOM peripheral communication environment can ensure carrying out smoothly of data transmission preferably, effectively improves the update efficiency of application program.Externally under the relatively poor situation of communication conditions, adopt the SOCKET transmission mode, application program is transmitted with form of data frames under this transmission mode, transmission is stablized higher, even the PERCOM peripheral communication environmental facies are to relatively poor, still can ensure carrying out smoothly of data transmission, effectively improve the reliability of application program update.
Be example to adopt FTP transmission mode and SOCKET transmission mode respectively below, describe the application program update method that the present invention is used for engineering machinery in detail.The foundation that this embodiment and Fig. 4, difference embodiment illustrated in fig. 5 mainly are communication environment is judged, different to the basis for estimation of selecting data transfer mode.
Consult Fig. 9, the flow process that the present invention adopts FTP mode transmission mode is shown, concrete steps are as described below.
Step S901, remote monitoring terminal detect whether there is the application program update instruction, as existing, forward step S902 to; As not existing, do not start application program update.
Step S902, remote monitoring terminal send connectivity request message to Surveillance center, and at first set up a SOCKET between Surveillance center and are connected.
Step S903, Surveillance center send to remote monitoring terminal with the version number of the more recent application program that preserve inside.
Step S904, remote monitoring terminal with the recent program version number that gets access to be kept at himself internal applications version number and compare, if the version number that gets access to is old than the version number of the application program of self, then close above-mentioned SOCKET and connect, carry out self application program; If the version number that gets access to is new than the version number of the application program of self, then forward step S905 to.
Step S905, remote monitoring terminal send the input frame to Surveillance center.
After step S906, Surveillance center received the input frame, the input that generates a correspondence was replied frame.This Frame inside comprises very first time information.The very first time is replied the instant time of frame for sending this input.
Step S907, remote monitoring terminal isolate the very first time from this test returns frame, and recorder are to the instant temporal information of this Frame, i.e. second times after receiving this input answer frame.
Step S908, remote monitoring terminal calculate transfer rate:
Computing formula is: the data volume of transfer rate=Frame/(the second time-very first time), transfer rate forwards step S909 to less than presetting speed
Step S909, remote monitoring terminal send FTP transmission requests Frame to Surveillance center.
Step S910, Surveillance center form one or more Frames with application file information and send to remote monitoring terminal.
Step S911, remote monitoring terminal are closed with the SOCKET of Surveillance center and are connected after receiving application file information, set up a FTP with Surveillance center and are connected.
Step S912, Surveillance center send to remote monitoring terminal with application file in the mode of file transfer.
After step S913, monitor terminal are finished the download of application programs file, utilize the application file check information that comprises in the above-mentioned application file information, this application file is carried out verification, after verification is passed through, this application file is saved in the program's memory space of terminal inner, restart remote monitoring terminal, and carry out up-to-date application program; If the verification of application programs file is not passed through, then attempt the application file downloading process again, if verification is failed once more, then restart remote monitoring terminal after application file is downloaded and finished, and carry out prior application program.
Consult Figure 10, the flow process that the present invention adopts SOCKET mode transmission mode is shown, concrete steps are as described below.
Step S1001, remote monitoring terminal detect whether there is the application program reset instruction, as existing, forward step S1002 to; As not existing, do not start application program update.
Step S1002, remote monitoring terminal send connectivity request message to Surveillance center, and at first set up a SOCKET between Surveillance center and are connected.
Step S1003, Surveillance center send to remote monitoring terminal with the version number of the more recent application program that preserve inside.
Step S1004, remote monitoring terminal with the recent program version number that gets access to be kept at himself internal applications version number and compare, if the version number that gets access to is old than the version number of the application program of self, then close above-mentioned SOCKET and connect, carry out self application program; If the version number that gets access to is new than the version number of the application program of self, then forward step S1005 to.
Step S1005, remote monitoring terminal send and comprise the input frame of the 3rd temporal information to Surveillance center.The 3rd time was that remote monitoring terminal sends this input frame instant time constantly.
After step S1006, Surveillance center received the input frame, the input that generates a correspondence was replied frame.This Frame inside comprises very first time information.The very first time is replied the instant time of frame for sending this input.
Step S1007, remote monitoring terminal isolate the very first time from this test returns frame, and recorder are to the instant temporal information of this Frame, i.e. second times after receiving this input answer frame.
Step S1008, remote monitoring terminal calculate transfer rate:
Computing formula is: the data volume of transfer rate=Frame/(the second time-very first time), transfer rate is less than presetting speed but greater than forbidding transfer rate, the max cap. of remote monitoring terminal calculation procedure section, the max cap. of program segment is directly proportional with transfer rate, remote monitoring terminal calculates formula and can be according to the max cap. of transfer rate calculation procedure section:
The max cap. of program segment (byte)=a+b* transfer rate, wherein, a is the basic tankage of program segment, b is a coefficient.
Step S1009, remote monitoring terminal are set up a program download additional frame, this frame has comprised the version number of its required application file that obtains and the maximum capacity of program segment, and remote monitoring terminal utilizes the SOCKET connection that program is downloaded additional frame and sends to Surveillance center.
After step S1010, Surveillance center receive this program download additional frame, from this Frame, isolate the max cap. of application file version number and each program segment, and the pairing application file of application file version number is divided into the program segment that the wall scroll size is no more than the program segment max cap., again program frame frame head, program frame postamble, program segment, program frame sign and checking data are combined into program frame, program frame is sent to remote monitoring terminal respectively.
After step S1011, remote monitoring terminal receive this program frame, each program frame is carried out verification,, then from program frame, isolate program segment, preserve save routine section after its corresponding program identification if verification passes through; If this program frame not by verification, then sends re-send request may frame, the corresponding program frame of request repeat to Surveillance center.
After all program frames received, remote monitoring terminal was checked the program frame that all receive, and to search the program frame of losing, if find the program frame of losing, then requires Surveillance center to retransmit this program frame.After all program frames receive fully, the program segment that to separate from program frame is combined into a complete application file, and it is saved in the program's memory space of remote monitoring terminal, restart remote monitoring terminal, carry out newly downloaded application program.
Based on the above-mentioned application program update method that is used for engineering machinery, the present invention also provides a kind of application program update system in engineering machinery, and this update system can improve the update efficiency and the renewal reliability of the internal applications of remote monitoring terminal effectively.
Consult Figure 11, the application program update system that the present invention is used for engineering machinery is shown, comprise transfer rate acquisition module 111, transmission mode determination module 112, and application program update module 113;
Transfer rate acquisition module 111 obtains the transfer rate of Frame from Surveillance center to remote monitoring terminal, sends to transmission mode determination module 112.
Transmission mode determination module 112 when presetting speed, adopts the FTP transmission mode that application program is sent to application program update module 113 in described transfer rate; When presetting speed, adopt the SOCKET transmission mode that application program is sent to application program update module 113 in described transfer rate;
113 pairs of application programs that receive of application program update module are tested, as meet the requirements, and far this application program are kept in the storage space, restart and carry out newly downloaded application program; As undesirable, new this application program that sends of request.
Consult Figure 12, the structure of transfer rate acquisition module 111 of the present invention is shown, transfer rate acquisition module 111 comprises that Frame sends submodule 1111, the second time keeping submodule 1112, reaches transfer rate calculating sub module 1113.
Frame sends submodule 1111 and is arranged in the Surveillance center, and the Frame that sends the preset data amount is to transfer rate calculating sub module 1113, and Frame comprises very first time information, and the very first time is the instant time of this Frame delivery time;
The second time keeping submodule 1112 is provided with in the remote monitoring terminal, records second temporal information, and second time was to receive this Frame instant time constantly.The second time keeping submodule 1112 sends to transfer rate calculating sub module 1113 with second temporal information.
Transfer rate calculating sub module 1113 is calculated the difference of second time and the very first time, and the preset data amount divided by this difference, is obtained transfer rate.
Computing formula is: the data volume of transfer rate=Frame/(the second time-very first time)
More than to a kind of application program update method and application program update system that is used for engineering machinery provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (18)

1. an application program update method that is used for engineering machinery is characterized in that, comprising:
Obtain the downlink transfer time of Frame from Surveillance center to remote monitoring terminal;
The downlink transfer time is less than preset time as described, and described Surveillance center adopts the FTP transmission mode that application program is sent to described remote monitoring terminal; The downlink transfer time is greater than preset time as described, and described Surveillance center adopts the SOCKET transmission mode that application program is sent to described remote monitoring terminal;
Described remote monitoring terminal upgrades application program.
2. the method for claim 1 is characterized in that, also comprises:
Detect whether there is intervention information,, start the remote monitoring terminal application program update as existing.
3. the method for claim 1 is characterized in that, also comprises:
Described remote monitoring terminal is set up SOCKET with described Surveillance center and is connected;
Described remote monitoring terminal connects the identification number of the application program of obtaining the preservation of described Surveillance center by SOCKET;
The identification number that described remote monitoring terminal is confirmed this application program is new than the identification number of self application program.
4. the method for claim 1 is characterized in that, also comprises:
Described remote monitoring terminal and described Surveillance center obtain the GPS locating information, isolate temporal information from above-mentioned GPS locating information;
Described remote monitoring terminal and described Surveillance center are according to above-mentioned time information renovation self temporal information.
5. as each described method of claim 1 to 4, it is characterized in that, obtain the downlink transfer time of Frame from the Surveillance center to the remote monitoring terminal to be specially;
Described Surveillance center sends the Frame that comprises very first time information and arrives described remote monitoring terminal, and the described very first time is the instant time of this Frame delivery time;
Described remote monitoring terminal writes down second temporal information, and described second time is to receive this Frame instant time constantly;
Calculate the difference of described second time and the described very first time, as the downlink transfer time.
6. method as claimed in claim 5 is characterized in that, also comprises:
The downlink transfer time stops application program update greater than setting-up time as described.
7. as each described method of claim 1 to 4, it is characterized in that, obtained the downlink transfer of Frame before the time, also comprise from Surveillance center to remote monitoring terminal:
Obtain the uplink time of Frame from described remote monitoring terminal to described Surveillance center;
The uplink time stops application program update greater than Preset Time as described.
8. method as claimed in claim 7 is characterized in that, extremely the uplink time of described Surveillance center is specially from described remote monitoring terminal to obtain Frame;
Described remote monitoring terminal sends the Frame that comprises the 3rd temporal information and arrives described Surveillance center, and described the 3rd time is the instant time of this Frame delivery time;
Described Surveillance center writes down the 4th temporal information, and described the 4th time is to receive this Frame instant time constantly;
Calculate the difference of described the 4th time and described the 3rd time, as the uplink time.
9. as each described method of claim 1 to 4, it is characterized in that described Surveillance center adopts the SOCKET transmission mode that application program is sent to described remote monitoring terminal and is specially:
Described remote monitoring terminal sends packet max cap. information to described Surveillance center according to described downlink transfer Time Calculation packet max cap.;
Described Surveillance center is processed into each packet with application program, and the data volume of each packet is less than above-mentioned packet max cap.;
Described Surveillance center is sent to described remote monitoring terminal with each packet.
10. an application program update system that is used for engineering machinery is characterized in that, comprises downlink transfer time-obtaining module, transmission mode selection module, reaches the application program update module:
Described downlink transfer time-obtaining module is used to obtain the downlink transfer time of Frame from Surveillance center to remote monitoring terminal;
Described transmission mode is selected module, is used for selecting the FTP transmission mode that application program is sent to described application program update module in described downlink transfer time during less than preset time; In described downlink transfer time during, select the SOCKET transmission mode that application program is sent to described application program update module greater than preset time;
Described application program update module is used to upgrade application program.
11. system as claimed in claim 10 is characterized in that, described downlink transfer time-obtaining module comprises very first time record sub module, the second time keeping submodule, reaches downlink transfer Time Calculation submodule:
Described very first time record sub module is used to send the Frame that comprises very first time information and arrives described downlink transfer Time Calculation submodule, and the described very first time is the instant time of this Frame delivery time;
The described second time keeping submodule is used to write down second temporal information, and described second time is to receive this Frame instant time constantly;
Described downlink transfer Time Calculation submodule is used to calculate the difference of described second time and the described very first time, as the downlink transfer time.
12. system as claimed in claim 11 is characterized in that, also comprises the time adjustment submodule, is used to obtain the GPS locating information, isolates temporal information from above-mentioned GPS locating information, according to above-mentioned time information renovation self temporal information.
13. an application program update method that is used for engineering machinery is characterized in that, also comprises:
Obtain the transfer rate of Frame from Surveillance center to remote monitoring terminal;
Transfer rate is greater than presetting speed as described, and described Surveillance center adopts the FTP transmission mode that application program is sent to described remote monitoring terminal; Transfer rate is less than presetting speed as described, and described Surveillance center adopts the SOCKET transmission mode that application program is sent to described remote monitoring terminal;
Described remote monitoring terminal upgrades application program.
14. method as claimed in claim 13 is characterized in that, also comprises
Described remote monitoring terminal and described Surveillance center obtain the GPS locating information, isolate temporal information from above-mentioned GPS locating information;
Described remote monitoring terminal and described Surveillance center are according to above-mentioned time information renovation self temporal information.
15. as claim 13 or 14 described methods, it is characterized in that, obtain the transfer rate of Frame and be specially from Surveillance center to remote monitoring terminal;
Described Surveillance center sends the Frame of preset data amount to described remote monitoring terminal, and described Frame comprises very first time information, and the described very first time is the instant time of this Frame delivery time;
Described remote monitoring terminal writes down second temporal information, and described second time is to receive this Frame instant time constantly;
Calculate the difference of described second time and the described very first time, the preset data amount divided by this difference, is obtained transfer rate.
16., it is characterized in that described Surveillance center adopts the SOCKET transmission mode that application program is sent to described remote monitoring terminal and is specially as claim 13 or 14 described methods:
Described remote monitoring terminal sends packet max cap. information to described Surveillance center according to described transfer rate computational data bag max cap.;
Described Surveillance center is processed into each packet with application program, and the data volume of each packet is less than above-mentioned packet max cap.;
Described Surveillance center is sent to described remote monitoring terminal with each packet.
17. an application program update system that is used for engineering machinery is characterized in that, comprises the transfer rate acquisition module, transmission mode determination module, and application program update module;
Described transfer rate acquisition module is used to obtain the transfer rate of Frame from Surveillance center to remote monitoring terminal;
Described transmission mode determination module is used in described transfer rate adopting the FTP transmission mode that application program is sent to described remote monitoring terminal when presetting speed; When presetting speed, adopt the SOCKET transmission mode that application program is sent to described remote monitoring terminal in described transfer rate;
Described application program update module is used to upgrade application program.
18. system as claimed in claim 17 is characterized in that, described transfer rate acquisition module comprises that Frame sends submodule, the second time keeping submodule, reaches the transfer rate calculating sub module:
Described Frame sends submodule, and the Frame that is used to send the preset data amount is to described transfer rate calculating sub module, and described Frame comprises very first time information, and the described very first time is the instant time of this Frame delivery time;
The described second time keeping submodule is used to record second temporal information, and described second time is to receive this Frame instant time constantly;
Described transfer rate calculating sub module is used to calculate the difference of described second time and the described very first time, and the preset data amount divided by this difference, is obtained transfer rate.
CN2008100063113A 2008-01-29 2008-01-29 Program update method and program update system for engineering machinery Expired - Fee Related CN101226395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100063113A CN101226395B (en) 2008-01-29 2008-01-29 Program update method and program update system for engineering machinery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100063113A CN101226395B (en) 2008-01-29 2008-01-29 Program update method and program update system for engineering machinery

Publications (2)

Publication Number Publication Date
CN101226395A CN101226395A (en) 2008-07-23
CN101226395B true CN101226395B (en) 2010-11-03

Family

ID=39858430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100063113A Expired - Fee Related CN101226395B (en) 2008-01-29 2008-01-29 Program update method and program update system for engineering machinery

Country Status (1)

Country Link
CN (1) CN101226395B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101832125B (en) * 2010-04-16 2012-11-07 电子科技大学 Remotely updating device of EDIB (Electronic Data Interchange Bus) based down-hole program
CN102799154B (en) * 2012-07-25 2013-09-18 湖南先步信息股份有限公司 Remote multi-point user program updating method for intelligent control devices of arm support pump truck
JP6444932B2 (en) * 2016-04-15 2018-12-26 ファナック株式会社 Server-based application software execution system
CN108415283A (en) * 2018-03-27 2018-08-17 三汽车起重机械有限公司 Engineering machinery control device and system
CN109548015B (en) * 2018-12-28 2022-04-19 武汉中原电子集团有限公司 Charging equipment management method based on mobile WiFi

Also Published As

Publication number Publication date
CN101226395A (en) 2008-07-23

Similar Documents

Publication Publication Date Title
JP6120473B2 (en) Public transport vehicle driving prediction method, apparatus and device
CN101226395B (en) Program update method and program update system for engineering machinery
TWI548282B (en) Driving recorder with communication module and method thereof
CN108696558B (en) Position information processing method and device
CN104468847A (en) Journey recorded information sharing method, equipment, server and system of vehicle
CN102929669A (en) Embedded software upgrading method, system and device
CN108780155B (en) Positioning method, terminal and server
CN103052152A (en) Method and device for positioning mobile terminal and mobile terminal
JP2009085798A (en) Positional information acquiring system, method for determining acquisition timing of positional information in the system, mobile terminal and server apparatus in the system, and program for mobile terminal and server apparatus
CN111935740A (en) Measuring method, device, communication node and storage medium
CN111683404A (en) Positioning control method and device for terminal of Internet of things and electronic equipment
EP3684085A1 (en) Method for reporting and acquiring location information, device and computer storage medium
KR20130129137A (en) Apparatus and method for estimating location of mobile station in wireless local area network
WO2022085315A1 (en) Radio map generation device, radio map provision device, radio map acquisition and utilization device, and probe information transmission device
CN106792844B (en) Data transmission method and device
CN110876182A (en) Position measuring method and device
US8825075B2 (en) Timing of synchronizing signal
CN111800749A (en) Electronic device and location server device and related positioning method
CN110346754B (en) Positioning time obtaining method and device
KR20170121627A (en) Remote inspection system and communication method of the same
CN105510947A (en) Vehicle-mounted positioning terminal and vehicle-mounted positioning method
CN105245587A (en) Dispatch scheduling method and electronic device
US20150312347A1 (en) Method of communication between contruction equipment and management server
CN113993206A (en) Positioning method and related equipment
CN112423227B (en) Intelligent power saving method and system for 5G terminal, terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101103

Termination date: 20180129

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