CN102436386A - Software upgrading method - Google Patents

Software upgrading method Download PDF

Info

Publication number
CN102436386A
CN102436386A CN2011103711707A CN201110371170A CN102436386A CN 102436386 A CN102436386 A CN 102436386A CN 2011103711707 A CN2011103711707 A CN 2011103711707A CN 201110371170 A CN201110371170 A CN 201110371170A CN 102436386 A CN102436386 A CN 102436386A
Authority
CN
China
Prior art keywords
software
upgraded
file
upgrade file
statement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103711707A
Other languages
Chinese (zh)
Inventor
孟瑞
李登彪
郭先概
陈烨
高伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING CYCLE CENTURY DIGITAL TECHNOLOGY Co Ltd
Original Assignee
BEIJING CYCLE CENTURY DIGITAL TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING CYCLE CENTURY DIGITAL TECHNOLOGY Co Ltd filed Critical BEIJING CYCLE CENTURY DIGITAL TECHNOLOGY Co Ltd
Priority to CN2011103711707A priority Critical patent/CN102436386A/en
Publication of CN102436386A publication Critical patent/CN102436386A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a software upgrading method, which includes that a first statement for driving a universal serial bus (USB) storage device and a second statement for searching and reading files in the USB storage device are added in a starting program of a system or a bootstrap program of a software to be upgraded. Upgrading files of the software to be updated are preserved in the USB storage device. The USB storage device is connected to the system physically, when the system is started or the software to be upgraded is rerun, the first statement is performed to establish logical connection of the USB storage device and the system, and the second statement is performed to read the upgrading files from the USB storage device, thereby upgrading the software to be upgraded in the system. The software upgrading method can achieve software upgrading rapidly and conveniently.

Description

A kind of method for upgrading software
Technical field
The present invention relates to computer realm, relate in particular to a kind of method for upgrading software.
Background technology
Software upgrading technical scheme commonly used at present is to utilize the new software version of serial ports/network/OTA (Over The Air, air download) upgrading.
First kind of scheme is as shown in Figure 1 in the existing upgrade technique commonly used, is to utilize the software of serial ports upgrading programming redaction to upgrade; In this scheme, upgrade software is divided into two parts:
The one, run on the serial ports programming instrument of PC (Person Computer, PC) machine end, it is responsible for transmitting upgrade software and gives system software;
The 2nd, run on and carry out mutual serial ports ROMPaq with serial ports programming instrument in the system software, it is responsible for the ROMPaq that serial ports programming instrument transmits is upgraded.
Above-mentioned first kind of scheme be because the transfer rate of serial ports is slower, and the time that when the big file of upgrading, spends can be long and needs the instrument support of PC.
Second kind of scheme is as shown in Figure 2 in the existing upgrade technique commonly used, is to utilize the software of OTA upgrading programming redaction to upgrade; In this scheme, upgrade software is divided into two parts:
The one, upgrading stream is put in the code stream machine sowing, upgrading is spread give system program.
The 2nd, system program receives upgrading stream and resolves, and obtains update software version behind the upgrade file
Above-mentioned second kind of scheme need be made the upgrading code stream with upgrade file, and needs equipment support such as code stream machine, plays the upgrading code stream to upgrade, and the upgrading environment is complicated, is unfavorable for that the client carries out software upgrading voluntarily.
The third scheme is as shown in Figure 3 in the existing upgrade technique commonly used, is to utilize the software of network upgrade programming redaction to upgrade; In this scheme, upgrade software is divided into two parts:
The one, PC passes through the Network Transmission upgrade file, has a server on the PC usually and is responsible for transmitting upgrade file.
The 2nd, system program operational network program receives upgrade file through network interface, receives update software version behind the upgrade file.
Above-mentioned second kind of scheme needs the support upgrading environment of PC end server complicated, and the network upgrade program needs the network enabled agreement in the system, and stack can make program become and take more storage space greatly.
Summary of the invention
How fast, easily the technical matters that the present invention will solve is to realize software upgrading.
In order to address the above problem, the invention provides a kind of method for upgrading software, comprising:
In the boot of the start-up routine of system or software to be upgraded, add and be used for second statement that drives first statement of general-purpose serial bus USB memory device and be used for searching and reading file at said USB memory device;
In said USB memory device, preserve the upgrade file of said software to be upgraded;
After this USB storage device physical is connected to said system, when starting said system or rerun said software to be upgraded, carry out said first statement, the logic of setting up said USB memory device and said system is connected;
Carry out said second statement and from said USB memory device, read said upgrade file, the software said to be upgraded in the said system is upgraded.
Further, said first statement driver that is the USB memory device.
Further, said second statement is the file system analysis program with read functions of searching of an include file system file.
Further, said system start-up program is the BOOT program, and boot is a loader utility.
Further, said second statement of said execution also comprises before from the USB memory device, reading the step of said upgrade file:
Whether the trigger condition that detects upgrading is effective; When effective, carry out said second statement of said execution and from the USB memory device, read the step of said upgrade file.
Further, said trigger condition master routine destroy or master routine effective when need be upgraded to new version.
Further, said software to be upgraded is arbitrary software; Adopt different USB memory devices to preserve the upgrade file of different softwares to be upgraded; Or preserve the upgrade file of different softwares to be upgraded at different time with same USB memory device.
Further, said upgrade file is named as specific file name; In this upgrade file, comprise being used to indicate this upgrade file to belong to the sign of which software, and version number.
Further, said second statement of said execution reads the step of said upgrade file from the USB memory device after, also comprise before the step that the software said to be upgraded in the said system is upgraded:
File name through the USB device file judges whether to be upgrade file;
If upgrade file then judges according to the said sign in the upgrade file whether this upgrade file belongs to software to be upgraded;
If belong to, then the version number of the version number of more said upgrade file and said software to be upgraded if the version number of upgrade file is higher, then carries out the step that the software said to be upgraded in the said system is upgraded.
Technical scheme of the present invention is carried out software upgrading through utilizing universal USB memory device; Avoided the operating process of slow problem of upgrade software transfer rate and upgrading and the problem of upgrading circumstance complication, made domestic consumer oneself just can carry out the upgrading and the renewal of software.
Description of drawings
Fig. 1 is the schematic flow sheet of first kind of scheme of prior art;
Fig. 2 is the schematic flow sheet of second kind of scheme of prior art;
Fig. 3 is the schematic flow sheet of the third scheme of prior art;
Fig. 4 is the schematic flow sheet of the upgrade method of embodiment one.
Embodiment
To combine accompanying drawing and embodiment that technical scheme of the present invention is explained in more detail below.
Need to prove that if do not conflict, each characteristic among the embodiment of the invention and the embodiment can mutually combine, all within protection scope of the present invention.
Embodiment one, and a kind of method for upgrading software comprises:
In the boot of the start-up routine of system or software to be upgraded, add and be used to drive first statement of USB (Universal Serial Bus, USB) memory device and second statement that is used for searching and reading file at said USB memory device;
In said USB memory device, preserve the upgrade file of said software to be upgraded;
After this USB storage device physical is connected to said system, when starting said system or rerun said software to be upgraded, carry out said first statement, the logic of setting up said USB memory device and said system is connected;
Carry out said second statement and from said USB memory device, read said upgrade file, the software said to be upgraded in the said system is upgraded.
In the present embodiment, said first statement can but be not limited to the driver of USB memory device, also can be the statement that can USB memory device logic be connected to said system after other is carried out; Said second statement can but be not limited to the file system analysis program, also can be the statement that can in the USB memory device, search and read file after other is carried out.
In the present embodiment, if said second statement is the file system analysis program, also and be different from the file system analysis program on the existing common meaning; File system analysis program on the existing common meaning is also referred to as file system; Usually comprised file and file establishment, function such as delete, read; So occupation space is bigger, so need more storage space to store the program of file system analysis program integrated; Second statement of present embodiment then is the file system analysis program with read functions of searching of an include file system file, and it is less therefore to take storage space.
In the present embodiment, said software to be upgraded can be arbitrary software; Can adopt different USB memory devices to preserve the upgrade file of different softwares to be upgraded; Also can use same USB memory device to preserve the upgrade file of different softwares to be upgraded at different time.
In the present embodiment, said system start-up program can but be not limited to the BOOT program, boot can but be not limited to loader utility.
In the present embodiment, said second statement of said execution can also comprise before from the USB memory device, reading the step of said upgrade file:
Whether the trigger condition that detects upgrading is effective; When effective, carry out said second statement of said execution and from the USB memory device, read the step of said upgrade file.
In the present embodiment, said trigger condition master routine destroy or master routine effective when need be upgraded to new version.
In the present embodiment, said upgrade file is named as specific file name; In this upgrade file, comprise being used to indicate this upgrade file to belong to the sign of which software, and version number;
In the present embodiment, said second statement of said execution reads the step of said upgrade file from the USB memory device after, can also comprise before the step that the software said to be upgraded in the said system is upgraded:
File name through the USB device file judges whether to be upgrade file;
If upgrade file then judges according to the said sign in the upgrade file whether this upgrade file belongs to software to be upgraded;
If belong to, then the version number of the version number of more said upgrade file and said software to be upgraded if the version number of upgrade file is higher, then carries out the step that the software said to be upgraded in the said system is upgraded.
Pass through the driver and the file system analysis program of integration USB memory device in BOOT or Loader in the present embodiment; Software upgrading file through in the External memory equipment that reads band USB mouth upgrades updating software release; Effectively remedy network/OTA upgrade method and needed complicated upgrading problem of environment; And the transmission speed of USB mouth is very fast, has overcome the slower problem of serial ports updating speed.Owing to utilize the simple operation of memory device software updating method and the updating speed of band USB mouth fast, do not need complicated upgrading environment, so even user (amateur) also can upgrade.Present embodiment is simple and practical, and is with low cost, and simple operation can be widely used in the scheme of software upgrading.
Below with object lesson explanation present embodiment, this example is the integrated driver and the file system analysis program of USB memory device in BOOT.
The process of upgrading is as shown in Figure 4, may further comprise the steps:
S1, system start-up;
S2, the USB memory device that whether detected physical connection; If no, then start software systems, carry out according to normal flow; If have, then logic connects execution in step S3 after said USB memory device and the system;
Whether S3, detection have upgrade file in said USB memory device; If have, and this upgrade file belongs to software to be upgraded, version is higher than present software to be upgraded, then execution in step S4; If there is not the higher upgrade file of the version of software to be upgraded, then start software systems, carry out according to normal flow;
S4, utilize said upgrade file to treat upgrade software to upgrade; Restart system after the upgrading, promptly return step S1.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of claim of the present invention.

Claims (9)

1. method for upgrading software comprises:
In the boot of the start-up routine of system or software to be upgraded, add and be used for second statement that drives first statement of general-purpose serial bus USB memory device and be used for searching and reading file at said USB memory device;
In said USB memory device, preserve the upgrade file of said software to be upgraded;
After this USB storage device physical is connected to said system, when starting said system or rerun said software to be upgraded, carry out said first statement, the logic of setting up said USB memory device and said system is connected;
Carry out said second statement and from said USB memory device, read said upgrade file, the software said to be upgraded in the said system is upgraded.
2. the method for claim 1 is characterized in that:
Said first statement is the driver of USB memory device.
3. the method for claim 1 is characterized in that:
Said second statement is the file system analysis program with read functions of searching of an include file system file.
4. the method for claim 1 is characterized in that:
Said system start-up program is the BOOT program, and boot is a loader utility.
5. the method for claim 1 is characterized in that, said second statement of said execution also comprises before from the USB memory device, reading the step of said upgrade file:
Whether the trigger condition that detects upgrading is effective; When effective, carry out said second statement of said execution and from the USB memory device, read the step of said upgrade file.
6. method as claimed in claim 5 is characterized in that:
Said trigger condition master routine destroy or master routine effective when need be upgraded to new version.
7. the method for claim 1 is characterized in that:
Said software to be upgraded is arbitrary software; Adopt different USB memory devices to preserve the upgrade file of different softwares to be upgraded; Or preserve the upgrade file of different softwares to be upgraded at different time with same USB memory device.
8. like each described method in the claim 1 to 7, it is characterized in that:
Said upgrade file is named as specific file name; In this upgrade file, comprise being used to indicate this upgrade file to belong to the sign of which software, and version number.
9. method as claimed in claim 8 is characterized in that, said second statement of said execution reads the step of said upgrade file from the USB memory device after, also comprises before the step that the software said to be upgraded in the said system is upgraded:
File name through the USB device file judges whether to be upgrade file;
If upgrade file then judges according to the said sign in the upgrade file whether this upgrade file belongs to software to be upgraded;
If belong to, then the version number of the version number of more said upgrade file and said software to be upgraded if the version number of upgrade file is higher, then carries out the step that the software said to be upgraded in the said system is upgraded.
CN2011103711707A 2011-11-21 2011-11-21 Software upgrading method Pending CN102436386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103711707A CN102436386A (en) 2011-11-21 2011-11-21 Software upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103711707A CN102436386A (en) 2011-11-21 2011-11-21 Software upgrading method

Publications (1)

Publication Number Publication Date
CN102436386A true CN102436386A (en) 2012-05-02

Family

ID=45984465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103711707A Pending CN102436386A (en) 2011-11-21 2011-11-21 Software upgrading method

Country Status (1)

Country Link
CN (1) CN102436386A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503805A (en) * 2014-12-29 2015-04-08 珠海全志科技股份有限公司 Method for upgrading embedded equipment through wired network
CN104731631A (en) * 2015-04-09 2015-06-24 广东小天才科技有限公司 Touch and talk machine upgrading method, system and device
CN110647342A (en) * 2019-09-24 2020-01-03 四川天邑康和通信股份有限公司 Gateway upgrading method and system based on USB

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885921A (en) * 2005-06-22 2006-12-27 厦门华侨电子企业有限公司 TV set setting USB/memory card interface and its software upgrading method
CN101198009A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for upgrading conference television terminal
CN101694623A (en) * 2009-09-29 2010-04-14 上海夏新电子开发有限公司 Method for updating handheld device software
CN101963910A (en) * 2010-09-21 2011-02-02 深圳市元征软件开发有限公司 General USB (Universal Serial Bus) based equipment firmware updating method
CN102184115A (en) * 2011-05-20 2011-09-14 青岛海信移动通信技术股份有限公司 Method and device for updating system software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885921A (en) * 2005-06-22 2006-12-27 厦门华侨电子企业有限公司 TV set setting USB/memory card interface and its software upgrading method
CN101198009A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for upgrading conference television terminal
CN101694623A (en) * 2009-09-29 2010-04-14 上海夏新电子开发有限公司 Method for updating handheld device software
CN101963910A (en) * 2010-09-21 2011-02-02 深圳市元征软件开发有限公司 General USB (Universal Serial Bus) based equipment firmware updating method
CN102184115A (en) * 2011-05-20 2011-09-14 青岛海信移动通信技术股份有限公司 Method and device for updating system software

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503805A (en) * 2014-12-29 2015-04-08 珠海全志科技股份有限公司 Method for upgrading embedded equipment through wired network
CN104731631A (en) * 2015-04-09 2015-06-24 广东小天才科技有限公司 Touch and talk machine upgrading method, system and device
CN104731631B (en) * 2015-04-09 2019-03-08 广东小天才科技有限公司 Upgrade method, system and the device of point reader
CN110647342A (en) * 2019-09-24 2020-01-03 四川天邑康和通信股份有限公司 Gateway upgrading method and system based on USB

Similar Documents

Publication Publication Date Title
US7363480B1 (en) Method, system, and computer-readable medium for updating the firmware of a computing device via a communications network
US8972967B2 (en) Application packages using block maps
US9507604B2 (en) Boot method and boot system
US8230121B2 (en) Method and apparatus for identifying a device handle in a computer system
EP2704041B1 (en) Method for storing application data and terminal device
US20070061818A1 (en) Detection of devices during operating system setup
CN104699423B (en) The method and apparatus that drive is bound in linux system
CN101393524A (en) Firmware update method and system using the same
CN101650660A (en) Booting a computer system from central storage
CN103412769A (en) External card parameter configuration method, equipment and system
CN101206581A (en) Apparatus, system, and method for booting using an external disk through a virtual scsi connection
WO2018103532A1 (en) Monitoring method and related device free of burying-point deployment
AU2007221429A1 (en) Multi-protocol removable storage device
CN104679540A (en) Computer system and computer system starting method
US7921230B2 (en) USB devices pre-configuration for KVM switch
CN105824678A (en) Method and device for installing operating system
CN100465891C (en) Method for renewing hand-held device operation function through insert-and-use storage device
CN102436386A (en) Software upgrading method
CN103092648A (en) Method and system of mirror image upgrade and user device and personal computer
US20100268925A1 (en) System and method for populating a dedicated system service repository for an information handling system
US8086778B2 (en) Filter driver to enumerate smartcard nodes for plug and play
CN102929662A (en) Network-based method for partitioning in batch
CN103176832B (en) One kind UNIX operating system runs method and the device of virtual opetrating system
CN101853142A (en) Identification method of USB device with virtual drive
CN101350020A (en) Method, apparatus and system for verifying embedded type file system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120502