CN102637133B - Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems - Google Patents

Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems Download PDF

Info

Publication number
CN102637133B
CN102637133B CN201210063734.5A CN201210063734A CN102637133B CN 102637133 B CN102637133 B CN 102637133B CN 201210063734 A CN201210063734 A CN 201210063734A CN 102637133 B CN102637133 B CN 102637133B
Authority
CN
China
Prior art keywords
program
existing program
backup
upgradeable
memory device
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
CN201210063734.5A
Other languages
Chinese (zh)
Other versions
CN102637133A (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.)
Chengdu Linhai Electronics Co Ltd
Original Assignee
Chengdu Linhai Electronics 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 Chengdu Linhai Electronics Co Ltd filed Critical Chengdu Linhai Electronics Co Ltd
Priority to CN201210063734.5A priority Critical patent/CN102637133B/en
Publication of CN102637133A publication Critical patent/CN102637133A/en
Application granted granted Critical
Publication of CN102637133B publication Critical patent/CN102637133B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The embodiment of the invention discloses a method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems. The method comprises the following steps of: detecting whether a USB (universal serial bus) interface is connected with a read-write memory device, if so, detecting whether a corresponding new-version program of a conventional program is stored in the memory device, if so, taking the conventional program as an upgradable conventional program; upgrading the upgradable conventional program to the new-version program, and after the upgrading is completed, taking the new-version program as the conventional program. The method disclosed by the invention solves the problem that an upgrading method in the prior art is great in limitations.

Description

(L, S) band satellite mobile communication system terminal machine automatically updating method
Technical field
The present invention relates to field of satellite mobile communication, particularly relate to one (L, S) band satellite mobile communication system terminal machine automatically updating method.
Background technology
In the exploitation of (L, S) band satellite mobile communication system terminal machine, test and use procedure, need to carry out edition upgrading improvement to the program on terminating machine.The upgrade method generally adopted at present be from web download and the image file preserving corresponding redaction program to terminating machine, cover the original program on terminating machine simultaneously.In the method, terminating machine must have network interface and can accesses network, could realize the download of redaction program and complete upgrading; And for not possessing network interface or can not the terminating machine of accesses network, the method or temporarily unavailable or can not use.Therefore, the limitation of the method is larger.
Summary of the invention
In view of this, the invention provides one (L, S) band satellite mobile communication system terminal machine automatically updating method, to solve the large problem of upgrade method limitation of the prior art.
For achieving the above object, the invention provides following technical scheme:
A kind of (L, S) band satellite mobile communication system terminal machine automatically updating method, comprising:
Whether S1, detection USB interface are connected with read-write memory device, if had, then enter step S2;
S2, detect the program whether described memory device stores the redaction corresponding to existing program, if had, then using existing program as upgradeable existing program, enter step S3;
S3, be the program of described redaction by described upgradeable existing program upgrade, after having upgraded, using the program of described redaction as existing program.
Preferably, also comprise after step S3:
S4, run existing program.
Preferably, step S1 specifically comprises:
S11, detect described USB interface and whether be connected with memory device, if had, then enter step S12; Otherwise enter step S4;
S12, whether read-write, if so, then enter step S2 if detecting described memory device; Otherwise enter step S4.
Preferably, step S2 specifically comprises:
S21, the version information of program reading the storage of described memory device respectively and the version information of existing program, if read successfully, then enter step S22, otherwise enter step S4;
S22, according to described in the version information that reads, judge that the version of the program that described memory device stores is whether higher than the version of existing program, if so, then enters step S3; Otherwise enter step S4.
Preferably, described version information comprises program name and version number;
Step S22 specifically comprises:
Whether the program name in the version information read described in S221, judgement mates, if coupling, then enters step S222, otherwise enters step S4;
Version number in S222, more described version information, if the version number of the program of described memory device storage is higher, then enters step S3, otherwise enters step S4.
Preferably, step S3 specifically comprises:
S31, back up described upgradeable existing program;
S32, unload described upgradeable existing program;
S33, the program of described redaction is installed to upgrade;
S34, upgraded after, the program of described redaction is upgraded the version information of existing program as existing program.
Preferably, step S31 specifically comprises: with the described upgradeable existing program of the form of backup file backup; Described backup file was stored in backup directory according to storage time.
Preferably, described with the form of backup file backup described upgradeable existing program specifically comprise:
Scan described backup directory;
If scanning makes mistakes, then set up new backup directory and preserve described upgradeable existing program as a backup file, entering step S32;
If scanning is correct, then judge whether the number of the backup file under described backup directory reaches the upper limit, if so, then delete the storage time of a backup file the earliest, under described backup directory, add described upgradeable existing program as up-to-date backup file, enter step S32; Otherwise directly under described backup directory, add described upgradeable existing program as up-to-date backup file, enter step S32.
As can be seen from above-mentioned technical scheme, the USB interface that the present invention utilizes existing terminating machine generally to possess, obtains the program of redaction, realizes the auto-update of the program on terminating machine from the memory device be connected to this USB interface.The image file of redaction program downloads in memory device by user in advance, and is connected with terminating machine by USB interface by this memory device, more automatically completes upgrading by terminating machine.Therefore, the method for the invention avoids by the direct accesses network of terminating machine, is generally applicable to any terminating machine having USB interface, thus expands range of application.In addition, because terminating machine need not be connected to the network, avoid the direct impact of internet worm; Meanwhile, before redaction program is installed, corresponding antivirus software can be utilized to carry out checking and killing virus to memory device.Thus ensure that the security of program and data on terminating machine.
Accompanying drawing explanation
The process flow diagram of (L, S) band satellite mobile communication system terminal machine automatically updating method that Fig. 1 provides for the embodiment of the present invention;
Another process flow diagram of (L, S) band satellite mobile communication system terminal machine automatically updating method that Fig. 2 provides for the embodiment of the present invention;
Fig. 3 is the process flow diagram of step S1 in Fig. 1;
Fig. 4 is the process flow diagram of step S2 in Fig. 1;
Fig. 5 is the process flow diagram of step S3 in Fig. 1.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide one (L, S) band satellite mobile communication system terminal machine automatically updating method, with reference to Fig. 1, the method comprises:
S1: detect USB interface and whether be connected with read-write memory device, if had, then enter step S2;
S2: detect the program whether above-mentioned memory device stores the redaction corresponding to existing program, if had, then using existing program as upgradeable existing program, enter step S3;
S3: the program by above-mentioned upgradeable existing program upgrade being described redaction, after having upgraded, the program of above-mentioned redaction is as existing program.
It should be noted that, above-mentioned memory device comprises the memory device that directly or indirectly can be connected with terminating machine by USB interface arbitrarily.The image file of redaction program downloads in memory device by user in advance, and is connected with terminating machine by USB interface by this memory device, more automatically completes above-mentioned upgrade method by terminating machine.Therefore, method described in the embodiment of the present invention avoids by the direct accesses network of terminating machine, is generally applicable to any terminating machine having USB interface, thus expands range of application.In addition, because terminating machine need not be connected to the network, avoid the direct impact of internet worm; Meanwhile, before redaction program is installed, corresponding antivirus software can be utilized to carry out checking and killing virus to memory device.Thus ensure that the security of program and data on terminating machine.
With reference to Fig. 2, in other embodiments of the invention, above-described embodiment also comprises:
S4: run existing program.
Terminating machine is completed in upgrading or is learnt by detection without after upgradeable program, the system resource that this detects and/or escalation process takies by release, and runs existing program.
Accordingly, step S1 specifically comprises: detect USB interface and whether be connected with read-write memory device, if had, then enter step S2; Otherwise enter step S4.
Accordingly, step S2 specifically comprises: detect the program whether above-mentioned memory device stores the redaction corresponding to existing program, if had, then existing program is upgradeable existing program, enters step S3; Otherwise enter step S4.
See Fig. 3, in other embodiments of the invention, the specific implementation of the step S1 in above-mentioned all embodiments comprises:
S11: detect USB interface and whether be connected with memory device, if had, then enter step S12; Otherwise enter step S4;
If the USB interface of terminating machine does not connect any memory device, terminating machine must be supplied to without any redaction program, therefore terminating machine will not be upgraded, directly perform step S4.
S12: whether read-writely detect above-mentioned memory device, if so, then enters step S2; Otherwise enter step S4.
For ensureing can to obtain redaction program from above-mentioned memory device, this memory device is needed to have readability.Detecting readable method can be: terminating machine directly reads data from this memory device, if read successfully, then illustrates that this memory device has readability, otherwise performs step S4.
Owing to can be installed the file volume of a USB device by systematic difference Program Interfaces (API), when detecting readable, the data that terminating machine reads not necessarily from the memory device of access USB interface, therefore can not ensure the USB interface of the real access terminal of memory device.Therefore need to detect writability simultaneously.Concrete grammar is:
Terminating machine contains fix information by one, has in the file of private file name examination write storage device, if file write error, then illustrate that terminating machine USB interface does not access memory device, now terminating machine directly performs step S4; If write successfully, then illustrate that the USB interface of terminating machine has accessed the readable memory device write, continue to perform subsequent upgrade step.In memory device, produce garbage files for avoiding, the file in write storage device should be deleted immediately simultaneously.
See Fig. 4, in other embodiments of the invention, the specific implementation of the step S2 in above-mentioned all embodiments comprises:
S21: read the program of above-mentioned memory device storage and the version information of existing program respectively, if read successfully, then enter step S22, otherwise enter step S4; Above-mentioned version information comprises program name and version number;
S22: according to the above-mentioned version information read, judges that the version of the program that above-mentioned memory device stores is whether higher than the version of existing program, if so, then enters step S3; Otherwise enter step S4.
Wherein, step S22 specifically comprises:
Whether S221, the program name judged in above-mentioned version information mate, if coupling, then enter step S222, otherwise directly enter step S4;
Version number in S222, more above-mentioned version information, if the program version on above-mentioned memory device is number higher, then enters step S3, otherwise directly enters step S4.
In other embodiments of the invention, the step S3 in above-mentioned all embodiments specifically comprises:
With the above-mentioned upgradeable existing program of the form of backup file backup; Above-mentioned backup file was stored in backup directory successively according to storage time.
Store backup directory in terminating machine, by sequence storage time in this backup directory, store one or more backup file successively, the existence form of the program that namely described backup file is backed up in backup directory.
Further, with reference to Fig. 5, in other embodiments of the invention, the step S3 in above-mentioned all embodiments specifically comprises:
S31: back up above-mentioned upgradeable existing program;
The specific implementation backing up upgradeable existing program can be:
Scanning backup directory, to obtain the backup file number under backup directory, the number of the program namely backed up;
In scanning process, scanning may be caused to make mistakes due to reasons such as corrupted data, now, directly set up new backup directory, above-mentioned upgradeable existing program is added to a backup file;
If scanning is correct, gets the backup file number under backup directory, then judge whether this backup file number reaches the maximum number of the backup file that backup directory can be preserved.If do not reached, then directly under this backup directory, above-mentioned upgradeable existing program is added to a backup file; If reached, then to delete in backup directory the storage time of backup file the earliest, and above-mentioned upgradeable existing program is added to the storage time of backup file the latest.
S32: unload above-mentioned upgradeable existing program;
S33: the program of installing corresponding redaction;
S34: the version information upgrading the program on terminating machine.
It should be noted that, for reducing the impact that program upgrade normally runs terminating machine as far as possible, automatically updating method of the present invention is mainly used in the start inspection of terminating machine, namely after terminating machine start, first perform the automatically updating method that the present invention tells a story, just start master routine after pending, terminating machine enters normal operating conditions.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (8)

1. (L, S) band satellite mobile communication system terminal machine automatically updating method, is characterized in that, comprising:
Whether S1, detection USB interface are connected with read-write memory device, if had, then enter step S2;
S2, detect the program whether described memory device stores the redaction corresponding to existing program, if had, then using existing program as upgradeable existing program, enter step S3;
S3, be the program of described redaction by described upgradeable existing program upgrade, after having upgraded, using the program of described redaction as existing program;
Wherein, described step S3 comprises the described upgradeable existing program of backup, and when the number of the backup file under backup directory reaches in limited time, delete the storage time of a backup file the earliest, under described backup directory, add described upgradeable existing program as up-to-date backup file.
2. method according to claim 1, is characterized in that, also comprises after step S3:
S4, run existing program.
3. method according to claim 2, is characterized in that, step S1 specifically comprises:
S11, detect described USB interface and whether be connected with memory device, if had, then enter step S12; Otherwise enter step S4;
S12, whether read-write, if so, then enter step S2 if detecting described memory device; Otherwise enter step S4.
4. method according to claim 2, is characterized in that, step S2 specifically comprises:
S21, the version information of program reading the storage of described memory device respectively and the version information of existing program, if read successfully, then enter step S22, otherwise enter step S4;
S22, according to described in the version information that reads, judge that the version of the program that described memory device stores is whether higher than the version of existing program, if so, then enters step S3; Otherwise enter step S4.
5. method according to claim 4, is characterized in that, described version information comprises program name and version number;
Step S22 specifically comprises:
Whether the program name in the version information read described in S221, judgement mates, if coupling, then enters step S222, otherwise enters step S4;
Version number in S222, more described version information, if the version number of the program of described memory device storage is higher, then enters step S3, otherwise enters step S4.
6. method according to claim 2, is characterized in that, step S3 specifically comprises:
S31, back up described upgradeable existing program;
S32, unload described upgradeable existing program;
S33, the program of described redaction is installed to upgrade;
S34, upgraded after, the program of described redaction is upgraded the version information of existing program as existing program.
7. method according to claim 6, is characterized in that, step S31 specifically comprises: with the described upgradeable existing program of the form of backup file backup; Described backup file was stored in backup directory according to storage time.
8. method according to claim 7, is characterized in that, described with the form of backup file backup described upgradeable existing program specifically comprise:
Scan described backup directory;
If scanning makes mistakes, then set up new backup directory and preserve described upgradeable existing program as a backup file, entering step S32;
If scanning is correct, then judge whether the number of the backup file under described backup directory reaches the upper limit, if so, then delete the storage time of a backup file the earliest, under described backup directory, add described upgradeable existing program as up-to-date backup file, enter step S32; Otherwise directly under described backup directory, add described upgradeable existing program as up-to-date backup file, enter step S32.
CN201210063734.5A 2012-03-12 2012-03-12 Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems Expired - Fee Related CN102637133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210063734.5A CN102637133B (en) 2012-03-12 2012-03-12 Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210063734.5A CN102637133B (en) 2012-03-12 2012-03-12 Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems

Publications (2)

Publication Number Publication Date
CN102637133A CN102637133A (en) 2012-08-15
CN102637133B true CN102637133B (en) 2015-06-17

Family

ID=46621536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210063734.5A Expired - Fee Related CN102637133B (en) 2012-03-12 2012-03-12 Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems

Country Status (1)

Country Link
CN (1) CN102637133B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115936A (en) * 2021-10-27 2022-03-01 安天科技集团股份有限公司 Method and device for upgrading computer program, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614566A (en) * 2004-11-29 2005-05-11 中兴通讯股份有限公司 Back-up restoring method for user database
CN101131650A (en) * 2006-08-23 2008-02-27 王悦 Device and method for guiding, updating and maintenance based on USB Host
CN101166229A (en) * 2006-10-17 2008-04-23 深圳Tcl新技术有限公司 A TV software update method
CN101499011A (en) * 2008-01-29 2009-08-05 中兴通讯股份有限公司 Method and apparatus for implementing USB booting and updating of mobile communication base station system
CN101521730A (en) * 2009-03-30 2009-09-02 四川长虹电器股份有限公司 Method, system and television for automatically upgrading television

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AT508104B1 (en) * 2009-02-12 2015-05-15 Fronius Int Gmbh PHOTOVOLTAIC SYSTEM WITH MULTIPLE INVERTERS, INVERTERS, USB MASS STORAGE DEVICE AND METHOD FOR PERFORMING SOFTWARE UPDATES TO INVERTERS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614566A (en) * 2004-11-29 2005-05-11 中兴通讯股份有限公司 Back-up restoring method for user database
CN101131650A (en) * 2006-08-23 2008-02-27 王悦 Device and method for guiding, updating and maintenance based on USB Host
CN101166229A (en) * 2006-10-17 2008-04-23 深圳Tcl新技术有限公司 A TV software update method
CN101499011A (en) * 2008-01-29 2009-08-05 中兴通讯股份有限公司 Method and apparatus for implementing USB booting and updating of mobile communication base station system
CN101521730A (en) * 2009-03-30 2009-09-02 四川长虹电器股份有限公司 Method, system and television for automatically upgrading television

Also Published As

Publication number Publication date
CN102637133A (en) 2012-08-15

Similar Documents

Publication Publication Date Title
CN103150231B (en) The method of computer booting and computer system
US9710256B2 (en) Software upgrade method and system for mobile terminal
US9804933B2 (en) System differential upgrade method, apparatus, and mobile terminal
US20070074201A1 (en) Method and system for updating software and computer readable recording medium storing the method
CN103186387B (en) Electronic installation and its method for updating OS
CN105808292A (en) Firmware upgrade method of embedded terminal device
US20160170735A1 (en) Operating system updating method by using a checklist
US10235048B2 (en) Data processing method and smart device
US20170052779A1 (en) Method and Device for Running Version File
CN110119280A (en) The method and device of more firmware upgrades
CN103514065A (en) Electronic device with automatic detection and recovery function and method
CN101620542B (en) Compatible updating method of ultrasonic imaging equipment software data
CN106484719B (en) Method and terminal for expanding mobile phone storage
CN107291507B (en) Upgrading method for virtual hard disk of virtual machine and electronic equipment
US9588884B2 (en) Systems and methods for in-place reorganization of device storage
CN105700903A (en) User terminal upgrading method and user terminal
CN113867768A (en) Operating system processing method and device, electronic equipment and storage medium
CN102637133B (en) Method for automatically updating terminating machines of (L, S) waveband satellite mobile communication systems
US9572024B2 (en) Network upgrading-adaptive telephone number upgrading method and device for wireless terminal
CN111782474A (en) Log processing method and device, electronic equipment and medium
CN101299190B (en) Software upgrading method, system and built-in equipment of read-only file system
CN113900693A (en) Firmware upgrading method, device and system, electronic equipment and storage medium
CN110737483B (en) Signaling and data transmission method based on Windows USB MassStorage class
CN113190244A (en) Method and device for upgrading wireless module, computer equipment and storage medium
CN116028100B (en) Software version upgrading method and electronic equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150617

Termination date: 20160312