CN103617053A - Method and device for upgrading software - Google Patents
Method and device for upgrading software Download PDFInfo
- Publication number
- CN103617053A CN103617053A CN201310571754.8A CN201310571754A CN103617053A CN 103617053 A CN103617053 A CN 103617053A CN 201310571754 A CN201310571754 A CN 201310571754A CN 103617053 A CN103617053 A CN 103617053A
- Authority
- CN
- China
- Prior art keywords
- memory device
- peripheral hardware
- hardware memory
- upgrade data
- usb peripheral
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000002159 abnormal effect Effects 0.000 claims abstract description 25
- 230000002093 peripheral effect Effects 0.000 claims description 162
- 238000001514 detection method Methods 0.000 claims description 8
- 238000013481 data capture Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 5
- 238000003860 storage Methods 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 19
- 238000005192 partition Methods 0.000 description 8
- 230000009191 jumping Effects 0.000 description 3
- 102100029469 WD repeat and HMG-box DNA-binding protein 1 Human genes 0.000 description 2
- 101710097421 WD repeat and HMG-box DNA-binding protein 1 Proteins 0.000 description 2
- 238000013524 data verification Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
An embodiment of the invention discloses a method for upgrading software. The method includes judging whether written upgrading data are complete data or not when the data are written in upgrading procedures and abnormal power failure occurs; detecting whether external storage equipment with a USB (universal serial bus) is connected with a machine when the machine is restarted and a loading upgrading interface is accessed if the written upgrading data are not the complete data; acquiring upgrading data written into specified directories of the external storage equipment with the USB if the external storage equipment with the USB connected with the machine is detected; upgrading the software according to the acquired upgrading data written into the specified directories of the external storage equipment with the USB. The embodiment of the invention further discloses a device for upgrading the software. The method and the device have the advantages that influence of the abnormal power failure in the upgrading procedures can be reduced, the resource utilization rate can be increased, the cost can be reduced, and the use experience can be improved for users.
Description
Technical field
The present invention relates to a kind of electronic applications, relate in particular to a kind of method and device of software upgrading.
Background technology
No matter be the online upgrading mode of Set Top Box manufacturer oneself exploitation at present; or the upgrading mode of being developed by third company; all keep away unavoidably because of abnormal power-down, cause upgrading failure or software destroyed, and current nearly all solution is not allow it upgrade to carry out power-off abnormality processing by the protection module (Loader module) of upgrading.This disposal route can reduce the destroyed impact of set-top box software that power-off causes extremely to a certain extent, but need circulation upgrading in front end certain hour, if front end is not circulation upgrading in certain hour after power-off, or it is not right that the time of circulation upgrading is controlled, will cause the set-top box software of certain customers all the time in collapse state, have a strong impact on user's experience.In addition, if adopt increase Flash Backup Data to weaken the impact that escalation process power-off causes, but this kind of method cost is higher, and the wasting of resources is more serious, is unfavorable for environmental protection and energy saving, is more unfavorable for the cost control of operator.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, a kind of method and device of software upgrading is provided.Can reduce the impact that escalation process abnormal power-down causes, improve resource utilization and reduce costs, improve user's experience.
In order to solve the problems of the technologies described above, the embodiment of the present invention provides a kind of method and device of software upgrading, comprising: while there is abnormal power-down in escalation process data writing, whether the upgrade data that judgement writes is partial data;
If the upgrade data writing is not partial data,, when start enters into loading upgrading interface again, detects and whether be connected with USB peripheral hardware memory device;
If detect, be connected with USB peripheral hardware memory device, obtain the upgrade data in the assigned catalogue that is written to described USB peripheral hardware memory device;
According to the said write getting, to the upgrade data in the assigned catalogue of described USB peripheral hardware memory device, upgrade.
Wherein, described while there is abnormal power-down in escalation process being detected, whether the upgrade data that judgement writes is to comprise before partial data:
When carrying out online upgrading, detect and whether be connected with USB peripheral hardware memory device;
If detect, be connected with USB peripheral hardware memory device, the described upgrade data online upgrading being got from the webserver is synchronously written in the assigned catalogue of described USB peripheral hardware memory device.
Wherein, whether described detection is connected with USB peripheral hardware memory device and comprises:
If detect, do not connect USB peripheral hardware memory device, obtain the dominant frequency point of default upgrade data;
Dominant frequency point according to the described default upgrade data getting again obtains described upgrade data from the described webserver;
Described upgrade data according to again getting from the described webserver, carries out online upgrading.
Wherein, the upgrade data obtaining described in the assigned catalogue that is written to described USB peripheral hardware memory device comprises:
Search the assigned catalogue of described USB peripheral hardware memory device;
According to the assigned catalogue of the described USB peripheral hardware memory device finding, detect in the assigned catalogue of described USB peripheral hardware memory device whether have upgrade data;
If detect in the assigned catalogue of described USB peripheral hardware memory device and have upgrade data, from the assigned catalogue of described USB peripheral hardware memory device, reading described upgrade data upgrades, if detect in the assigned catalogue of described USB peripheral hardware memory device, there is no upgrade data, carry out online upgrading.
Wherein, the assigned catalogue that the described described upgrade data that online upgrading is got is synchronously written to described USB peripheral hardware memory device comprises:
Determine that the upgrade data in the assigned catalogue that is written to described USB peripheral hardware memory device is complete data.
Correspondingly, the embodiment of the present invention also provides a kind of device of software upgrading, comprising:
Detect judgement data module, for when abnormal power-down occurs escalation process data writing, whether the upgrade data that judgement writes is partial data;
First detects peripheral module, if be not partial data for the upgrade data writing,, when start enters into loading upgrading interface again, detect and whether is connected with USB peripheral hardware memory device;
Obtain upgrade data module, if be connected with USB peripheral hardware memory device for detecting, obtain the upgrade data in the assigned catalogue that is written to USB peripheral hardware memory device;
Upgrading processing module, for upgrading to the upgrade data of the assigned catalogue of USB peripheral hardware memory device according to the said write getting.
Wherein, described device also comprises:
Second detects peripheral module, for when carrying out online upgrading, detects and whether is connected with USB peripheral hardware memory device;
Upgrade data writing module, if be connected with USB peripheral hardware memory device for detecting, the described upgrade data online upgrading being got from the webserver is synchronously written in the assigned catalogue of described USB peripheral hardware memory device.
Wherein, described the first detection peripheral module comprises:
Dominant frequency point acquiring unit, if do not connect USB peripheral hardware memory device for detecting, obtains the dominant frequency point of default upgrade data;
Network Data Capture unit for according to the dominant frequency point of the described default upgrade data getting, again obtains described upgrade data from the described webserver;
Online upgrading unit, for according to the described upgrade data again getting from the described webserver, carries out online upgrading.
Wherein, described in, obtaining upgrade data module comprises:
Search assigned catalogue unit, for searching the assigned catalogue of described USB peripheral hardware memory device;
Detect upgrade data unit, for according to the assigned catalogue of the described USB peripheral hardware memory device finding, detect in the assigned catalogue of described USB peripheral hardware memory device whether have upgrade data;
Upgrading unit is selected in judgement, if have upgrade data for the assigned catalogue of described USB peripheral hardware memory device being detected, from the assigned catalogue of described USB peripheral hardware memory device, reading described upgrade data upgrades, if detect in the assigned catalogue of described USB peripheral hardware memory device, there is no upgrade data, carry out online upgrading.
Wherein, described upgrade data writing module comprises:
Specified data full unit, for determining that the upgrade data of the assigned catalogue that is written to described USB peripheral hardware memory device is complete data.
Implement the embodiment of the present invention, there is following beneficial effect: while there is abnormal power-down in escalation process data writing, whether the upgrade data that judgement writes is partial data; If the upgrade data writing is not partial data,, when start enters into loading upgrading interface again, detects and whether be connected with USB peripheral hardware memory device; If detect, be connected with USB peripheral hardware memory device, obtain the upgrade data in the assigned catalogue that is written to USB peripheral hardware memory device; According to the said write getting, to the upgrade data in the assigned catalogue of USB peripheral hardware memory device, upgrade; In addition, if described USB peripheral hardware memory device do not detected or do not get the upgrade data in described USB peripheral hardware memory device, carry out online upgrading.Adopt the present invention, reduced the impact that escalation process abnormal power-down causes, improved resource utilization and reduced cost, improved user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the first embodiment process flow diagram of the method for a kind of software upgrading provided by the invention;
Fig. 2 is the structural representation of the device of a kind of software upgrading provided by the invention;
Fig. 3 is the first structural representation that detects peripheral module of the device of a kind of software upgrading provided by the invention;
Fig. 4 is the structural representation that obtains upgrade data module of the device of a kind of software upgrading provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, Fig. 1 is the first embodiment process flow diagram of the method for a kind of software upgrading provided by the invention, the embodiment of the present invention is whether to be connected with USB peripheral hardware memory device by detecting, then obtaining the upgrade data being written in USB peripheral hardware memory device upgrades, if USB peripheral hardware memory device do not detected or get the upgrade data in USB peripheral hardware memory device, just carry out online upgrading, by inventive embodiments, at least comprised following step:
Step S110, while there is abnormal power-down in escalation process data writing, whether the upgrade data that judgement writes is partial data.In specific implementation, by data verification method, judge whether the upgrade data writing is partial data, whether the upgrade data writing by judgement is that partial data further detects whether abnormal power-down occurs in escalation process.
The embodiment of the present invention is preferentially upgraded by obtaining the upgrade data of USB peripheral hardware memory device, so before escalation process abnormal power-down, should first upgrade data be backuped to USB peripheral hardware memory device.When application program detects system software upgrading information and while jumping to Loader upgrading interface, dominant frequency point by upgrade data and the webserver are connected, whether Loader module (upgrading module) is connected with detection USB peripheral hardware memory device and reads USB associated storage information simultaneously, if USB peripheral hardware memory device detected, when getting upgrade data from the described webserver and carry out online upgrading, Loader module is synchronously written to described upgrade data USB peripheral hardware memory device and is kept in assigned catalogue.After online upgrading completes, whether the upgrade data that can confirm to be written in the assigned catalogue of USB peripheral hardware memory device by the method for CRC check data is complete data, if not complete data, Loader module is kept at the upgrade data in USB peripheral hardware memory device by deletion.
Wherein, detect whether to be connected with USB peripheral hardware memory device and described upgrade data is written to USB peripheral hardware memory device and need to add USB recognition function, need the function of store data simultaneously.Wherein, USB recognition function is defined as follows:
Int sk_app_get_disk_partion_num (), this function is for obtaining the number of USB, disk partition number;
Int sk_app_get_disk_info (SKYFM_Moutattri_t device_info[], int max_partion_num), this function is for obtaining the information of disk.Wherein, the variable of device_info definition disc information, max_partion_num defines current disk partition number.
This data structure is disc information data structure, can in this structure, describe and need to obtain which information of disk, as disk partition title, size, free space etc.Wherein, totalsize is for recording the size when front disk; Freesize is for recording the size when front disk free space; Fstype is for log file system type; Disktype is mobile device or built-in hard disk for judgement; Localdisk is for defining the drive of logic; Phy_port_num is the number of physical port, since 0 record; Flage is USB carry identifier, and 0 represents carry success, and-1 represents carry failure, and 2 representatives can not be identified current USB peripheral hardware.
SKYFM_Dir_Open(), this function is for opening the catalogue of USB flash disk carry, and MOUNT_DIR represents mount directory, and " * " represents the type of load document.
The function that upgrade data is written to described USB peripheral hardware memory device is as follows:
Wherein, bfile_io_write_t is the catalogue of establishment file, the catalogue of preserving while writing data, and this catalogue is assigned catalogue; * buf_, for receiving the file of preserving after data, is a constant; Size_t defined file length is a static variable.
After described upgrade data being backuped to USB peripheral hardware memory device by said method, if detected, in escalation process, there is abnormal power-down, and judge that by verification the upgrade data writing is not complete data, starts the operation of step S120.
Step S120, if the upgrade data writing is not partial data,, when start enters into loading upgrading interface again, detects and whether is connected with USB peripheral hardware memory device.In specific implementation, when the embodiment of the present invention does not get the complete upgrade data of upgrading in abnormal power-down, to obtain upgrade data from USB peripheral hardware memory device upgrades, after determining that the upgrade data cause because of abnormal power-down getting is not complete data, can detect by the USB recognition function described in above-mentioned steps S110 and whether be connected with USB peripheral hardware memory device, above-mentioned recognition function can get respectively the number of USB peripheral hardware memory device, disk partition number and disc information etc., and open the assigned catalogue of carry upgrade data in USB peripheral hardware memory device.
If detecting, above-mentioned recognition function do not connect USB peripheral hardware memory device, obtain the dominant frequency point of default upgrade data, by this dominant frequency point, setting up network with the webserver is connected, whether Sampling network server has upgrade information, if there is no upgrade information, continue to wait for that the webserver sends upgrade data, if there is upgrade information, from the webserver, again obtain described upgrade data, described upgrade data according to again getting from the described webserver, carries out online upgrading; If above-mentioned recognition function detects, be connected with USB peripheral hardware memory device, start to perform step S130.
Step S130, is connected with USB peripheral hardware memory device if detect, obtain the upgrade data in the assigned catalogue that is written to described USB peripheral hardware memory device.In specific implementation, first search the assigned catalogue of described USB peripheral hardware memory device carry upgrade data; If find the assigned catalogue of carry upgrade data, according to the assigned catalogue of the described USB peripheral hardware memory device that finds, detect in the assigned catalogue of described USB peripheral hardware memory device whether have upgrade data; If detected in the assigned catalogue of described USB peripheral hardware memory device, there is upgrade data, then from the assigned catalogue of described USB peripheral hardware memory device, read described upgrade data; Finally by CRC check data, can determine that the upgrade data reading from USB peripheral hardware memory device is complete data.Wherein, if find the assigned catalogue of carry upgrade data or detect in the assigned catalogue of described USB peripheral hardware memory device, there is no upgrade data, by the method identical with step S120, wait for that the webserver sends upgrade data and carries out online upgrading.
Step S140, upgrades to the upgrade data in the assigned catalogue of described USB peripheral hardware memory device according to the said write getting.Once get upgrade data from USB peripheral hardware memory device, Loader module will be processed upgrade data until complete updating operation, then delete the upgrade data of preserving, last just can normal boot-strap.
Optionally, the peripheral hardware memory device described in the embodiment of the present invention can be the mobile storages such as USB flash disk, portable hard drive, and the embodiment of the present invention can also realize by other peripheral hardware memory devices simultaneously.
Please refer to Fig. 2, Fig. 2 is the structural representation of the device of a kind of software upgrading provided by the invention, described device at least comprises: detect judgement data module 230, first and detect peripheral module 240, obtain upgrade data module 250 and upgrading processing module 260, described device also comprises: second detects peripheral module 210 and upgrade data writing module 220, wherein:
Second detects peripheral module 210, for when carrying out online upgrading, detect and whether be connected with USB peripheral hardware memory device, the embodiment of the present invention is preferentially upgraded by obtaining the upgrade data of USB peripheral hardware memory device, so before escalation process abnormal power-down, should first upgrade data be backuped to USB peripheral hardware memory device.Concrete, when application program detects system software upgrading information and while jumping to Loader upgrading interface, can USB peripheral hardware storage function be detected by corresponding recognition function, wherein:
Int sk_app_get_disk_partion_num (), this function is for obtaining the number of USB, disk partition number;
Int sk_app_get_disk_info (SKYFM_Moutattri_t device_info[], int max_partion_num), this function is for obtaining the information of disk.Wherein, the variable of device_info definition disc information, max_partion_num defines current disk partition number.
This data structure is disc information data structure, can in this structure, describe and need to obtain which information of disk, as disk partition title, size, free space etc.Wherein, totalsize is for recording the size when front disk; Freesize is for recording the size when front disk free space; Fstype is for log file system type; Disktype is mobile device or built-in hard disk for judgement; Localdisk is for defining the drive of logic; Phy_port_num is the number of physical port, since 0 record; Flage is USB carry identifier, and 0 represents carry success, and-1 represents carry failure, and 2 representatives can not be identified current USB peripheral hardware.
Upgrade data writing module 220, if detect and be connected with USB peripheral hardware memory device for the second detection peripheral module 210, the described upgrade data online upgrading being got from the webserver is synchronously written to described USB peripheral hardware memory device and is kept in described assigned catalogue.Concrete, when application program detects system software upgrading information and while jumping to Loader upgrading interface, the dominant frequency point by upgrade data and the webserver connected.If second detects peripheral module 210, USB peripheral hardware memory device detected, when getting upgrade data from the described webserver and carry out online upgrading, Loader module is synchronously written to described upgrade data USB peripheral hardware memory device and is kept in assigned catalogue.After online upgrading completes, whether the upgrade data that can confirm to be written in the assigned catalogue of USB peripheral hardware memory device by the method for CRC check data is complete data, if not complete data, Loader module is kept at the upgrade data in USB peripheral hardware memory device by deletion.
Wherein, upgrade data being written in the assigned catalogue of USB peripheral hardware memory device can be by realizing with minor function: chunk_write (bfile_io_write_t fd, const void*buf_, size_t length)
Wherein, bfile_io_write_t is the catalogue of establishment file, the catalogue of preserving while writing data, and this catalogue is assigned catalogue; * buf_, for receiving the file of preserving after data, is a constant; Size_t defined file length is a static variable.
Detect judgement data module 230, for when abnormal power-down occurs escalation process data writing, whether the upgrade data that judgement writes is partial data.Concrete, by data verification method, judge whether the upgrade data writing is partial data, whether the upgrade data writing by judgement is that partial data further detects whether abnormal power-down occurs in escalation process.
First detects peripheral module 240, if judge that for detecting 230 detections of judgement data module the upgrade data that data modules 230 write is not partial data,, when start enters into loading upgrading interface again, detects and whether is connected with USB peripheral hardware memory device.Concrete, when the embodiment of the present invention does not get the complete upgrade data of upgrading in abnormal power-down, to obtain upgrade data from USB peripheral hardware memory device upgrades, detecting after judgement data module 230 determines that the upgrade data that causes because of abnormal power-down getting is not complete data, can detect by the USB recognition function identical with the second detection peripheral module 210 and whether be connected with USB peripheral hardware memory device, described recognition function can get respectively the number of USB peripheral hardware memory device, disk partition number and disc information etc., and open the assigned catalogue of carry upgrade data in USB peripheral hardware memory device.
In addition, if described recognition function detects, do not connect USB peripheral hardware memory device, can carry out online upgrading.Therefore, first detects peripheral module 240 also comprises dominant frequency point acquiring unit 341 as shown in Figure 3, Network Data Capture unit 342 and online upgrading unit 343, wherein:
Dominant frequency point acquiring unit 341, if do not connect USB peripheral hardware memory device for detecting, obtains the dominant frequency point of default upgrade data, by this dominant frequency point, sets up network be connected with the webserver.
Network Data Capture unit 342, the dominant frequency point for the described default upgrade data that gets according to dominant frequency point acquiring unit 341 again obtains described upgrade data from the described webserver.Concrete, whether Network Data Capture unit 342 Sampling network servers have upgrade information, if there is no upgrade information, continue to wait for that the webserver sends upgrade data, if there is upgrade information, again obtains described upgrade data from the webserver.
Online upgrading unit 343, the described upgrade data for again getting from the described webserver according to Network Data Capture unit 342, carries out online upgrading, and Loader module will automatically read upgrade data and data will be processed.
Obtain upgrade data module 250, if detect and be connected with USB peripheral hardware memory device for the first detection peripheral module 240, obtain the upgrade data in the assigned catalogue that is written to described USB peripheral hardware memory device.Concrete, obtain upgrade data module 250 and comprise searching assigned catalogue unit 451, detect upgrade data unit 452 and upgrading unit 453 is selected in judgement as shown in Figure 4, wherein:
Search assigned catalogue unit 451, for searching the assigned catalogue of described USB peripheral hardware memory device, this assigned catalogue is preserved upgrade data.
Detect upgrade data unit 452, for according to the assigned catalogue of the described USB peripheral hardware memory device finding, detect in the assigned catalogue of described USB peripheral hardware memory device whether have upgrade data.Concrete, if search the assigned catalogue that assigned catalogue unit 451 finds carry upgrade data, according to the assigned catalogue of the described USB peripheral hardware memory device finding, detect in the assigned catalogue of described USB peripheral hardware memory device whether have upgrade data.
Upgrading unit 453 is selected in judgement, if the assigned catalogue of described USB peripheral hardware memory device detected for detecting upgrade data unit 452, there is upgrade data, from the assigned catalogue of described USB peripheral hardware memory device, reading described upgrade data upgrades, in the assigned catalogue that upgrade data unit 452 detects described USB peripheral hardware memory device if detect, there is no upgrade data, carry out online upgrading.After reading upgrade data, can determine whether the upgrade data reading from USB peripheral hardware memory device is complete data by the method for CRC data check.
The embodiment of the present invention provides a kind of method and apparatus of software upgrading, and while there is abnormal power-down in escalation process data writing, whether the upgrade data that judgement writes is partial data; If the upgrade data writing is not partial data,, when start enters into loading upgrading interface again, detects and whether be connected with USB peripheral hardware memory device; If detect, be connected with USB peripheral hardware memory device, obtain the upgrade data in the assigned catalogue that is written to described USB peripheral hardware memory device; According to the said write getting, to the upgrade data in the assigned catalogue of described USB peripheral hardware memory device, upgrade; In addition, if described USB peripheral hardware memory device do not detected or do not get the upgrade data in described USB peripheral hardware memory device, carry out online upgrading.Adopt the present invention, reduced the impact that escalation process abnormal power-down causes, improved resource utilization and reduced cost, improved user's experience.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.
Claims (10)
1. a method for software upgrading, is characterized in that, described method comprises:
While there is abnormal power-down in escalation process data writing, whether the upgrade data that judgement writes is partial data;
If the upgrade data writing is not partial data,, when start enters into loading upgrading interface again, detects and whether be connected with USB peripheral hardware memory device;
If detect, be connected with USB peripheral hardware memory device, obtain the upgrade data in the assigned catalogue that is written to described USB peripheral hardware memory device;
According to the said write getting, to the upgrade data in the assigned catalogue of described USB peripheral hardware memory device, upgrade.
2. the method for software upgrading as claimed in claim 1, is characterized in that, described while there is abnormal power-down in escalation process being detected, and whether the upgrade data that judgement writes is to comprise before partial data:
When carrying out online upgrading, detect and whether be connected with USB peripheral hardware memory device;
If detect, be connected with USB peripheral hardware memory device, the described upgrade data online upgrading being got from the webserver is synchronously written in the assigned catalogue of described USB peripheral hardware memory device.
3. the method for software upgrading as claimed in claim 2, is characterized in that, whether described detection is connected with USB peripheral hardware memory device comprises:
If detect, do not connect USB peripheral hardware memory device, obtain the dominant frequency point of default upgrade data;
Dominant frequency point according to the described default upgrade data getting again obtains described upgrade data from the described webserver;
Described upgrade data according to again getting from the described webserver, carries out online upgrading.
4. the method for software upgrading as claimed in claim 1, is characterized in that, described in the upgrade data that obtains in the assigned catalogue that is written to described USB peripheral hardware memory device comprise:
Search the assigned catalogue of described USB peripheral hardware memory device;
According to the assigned catalogue of the described USB peripheral hardware memory device finding, detect in the assigned catalogue of described USB peripheral hardware memory device whether have upgrade data;
If detect in the assigned catalogue of described USB peripheral hardware memory device and have upgrade data, from the assigned catalogue of described USB peripheral hardware memory device, reading described upgrade data upgrades, if detect in the assigned catalogue of described USB peripheral hardware memory device, there is no upgrade data, carry out online upgrading.
5. the method for software upgrading as claimed in claim 2, is characterized in that, the assigned catalogue that the described described upgrade data that online upgrading is got is synchronously written to described USB peripheral hardware memory device comprises:
Determine that the upgrade data in the assigned catalogue that is written to described USB peripheral hardware memory device is complete data.
6. a device for software upgrading, is characterized in that, described device comprises:
Detect judgement data module, for when abnormal power-down occurs escalation process data writing, whether the upgrade data that judgement writes is partial data;
First detects peripheral module, if be not partial data for the upgrade data writing,, when start enters into loading upgrading interface again, detect and whether is connected with USB peripheral hardware memory device;
Obtain upgrade data module, if be connected with USB peripheral hardware memory device for detecting, obtain the upgrade data in the assigned catalogue that is written to described USB peripheral hardware memory device;
Upgrading processing module, for upgrading to the upgrade data of the assigned catalogue of USB peripheral hardware memory device according to the said write getting.
7. the device of software upgrading as claimed in claim 6, is characterized in that, described device also comprises:
Second detects peripheral module, for when carrying out online upgrading, detects and whether is connected with USB peripheral hardware memory device;
Upgrade data writing module, if be connected with USB peripheral hardware memory device for detecting, the described upgrade data online upgrading being got from the webserver is synchronously written in the assigned catalogue of described USB peripheral hardware memory device.
8. the device of software upgrading as claimed in claim 7, is characterized in that, described first detects peripheral module comprises:
Dominant frequency point acquiring unit, if do not connect USB peripheral hardware memory device for detecting, obtains the dominant frequency point of default upgrade data;
Network Data Capture unit for according to the dominant frequency point of the described default upgrade data getting, again obtains described upgrade data from the described webserver;
Online upgrading unit, for according to the described upgrade data again getting from the described webserver, carries out online upgrading.
9. the device of software upgrading as claimed in claim 6, is characterized in that, described in obtain upgrade data module and comprise:
Search assigned catalogue unit, for searching the assigned catalogue of described USB peripheral hardware memory device;
Detect upgrade data unit, for according to the assigned catalogue of the described USB peripheral hardware memory device finding, detect in the assigned catalogue of described USB peripheral hardware memory device whether have upgrade data;
Upgrading unit is selected in judgement, if have upgrade data for the assigned catalogue of described USB peripheral hardware memory device being detected, from the assigned catalogue of described USB peripheral hardware memory device, reading described upgrade data upgrades, if detect in the assigned catalogue of described USB peripheral hardware memory device, there is no upgrade data, carry out online upgrading.
10. the device of software upgrading as claimed in claim 7, is characterized in that, described upgrade data writing module comprises:
Specified data full unit, for determining that the upgrade data of the assigned catalogue that is written to described USB peripheral hardware memory device is complete data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310571754.8A CN103617053A (en) | 2013-11-13 | 2013-11-13 | Method and device for upgrading software |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310571754.8A CN103617053A (en) | 2013-11-13 | 2013-11-13 | Method and device for upgrading software |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103617053A true CN103617053A (en) | 2014-03-05 |
Family
ID=50167756
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310571754.8A Pending CN103617053A (en) | 2013-11-13 | 2013-11-13 | Method and device for upgrading software |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103617053A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104199726A (en) * | 2014-08-08 | 2014-12-10 | 小米科技有限责任公司 | Device function extension method and device |
| CN107193603A (en) * | 2017-05-25 | 2017-09-22 | 绵阳美菱软件技术有限公司 | The upgrade method and device of a kind of intelligent appliance |
| CN110457278A (en) * | 2018-05-07 | 2019-11-15 | 百度在线网络技术(北京)有限公司 | A kind of document copying method, device, equipment and storage medium |
| CN111459527A (en) * | 2019-01-18 | 2020-07-28 | 爱思开海力士有限公司 | Memory system and method of operation |
| CN115242633A (en) * | 2022-06-23 | 2022-10-25 | 惠州华阳通用电子有限公司 | Vehicle-mounted equipment upgrading method and device based on USB Ethernet |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101198009A (en) * | 2008-01-03 | 2008-06-11 | 中兴通讯股份有限公司 | A Method for Upgrading Video Conference Terminal |
| CN101216789A (en) * | 2008-01-08 | 2008-07-09 | 福建星网锐捷网络有限公司 | Data update method, device and system |
| CN101295253A (en) * | 2007-04-28 | 2008-10-29 | 佛山市顺德区顺达电脑厂有限公司 | Method for updating firmware |
| CN101827140A (en) * | 2009-03-03 | 2010-09-08 | 展讯通信(上海)有限公司 | Method for writing data in user identification module card and mobile terminal |
-
2013
- 2013-11-13 CN CN201310571754.8A patent/CN103617053A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101295253A (en) * | 2007-04-28 | 2008-10-29 | 佛山市顺德区顺达电脑厂有限公司 | Method for updating firmware |
| CN101198009A (en) * | 2008-01-03 | 2008-06-11 | 中兴通讯股份有限公司 | A Method for Upgrading Video Conference Terminal |
| CN101216789A (en) * | 2008-01-08 | 2008-07-09 | 福建星网锐捷网络有限公司 | Data update method, device and system |
| CN101827140A (en) * | 2009-03-03 | 2010-09-08 | 展讯通信(上海)有限公司 | Method for writing data in user identification module card and mobile terminal |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104199726A (en) * | 2014-08-08 | 2014-12-10 | 小米科技有限责任公司 | Device function extension method and device |
| CN104199726B (en) * | 2014-08-08 | 2018-04-24 | 小米科技有限责任公司 | Functions of the equipments extended method and device |
| CN107193603A (en) * | 2017-05-25 | 2017-09-22 | 绵阳美菱软件技术有限公司 | The upgrade method and device of a kind of intelligent appliance |
| CN110457278A (en) * | 2018-05-07 | 2019-11-15 | 百度在线网络技术(北京)有限公司 | A kind of document copying method, device, equipment and storage medium |
| CN111459527A (en) * | 2019-01-18 | 2020-07-28 | 爱思开海力士有限公司 | Memory system and method of operation |
| CN111459527B (en) * | 2019-01-18 | 2023-09-05 | 爱思开海力士有限公司 | Memory system and method of operation thereof |
| US11966603B2 (en) | 2019-01-18 | 2024-04-23 | SK Hynix Inc. | Memory system for updating firmware when SPO occurs and operating method thereof |
| CN115242633A (en) * | 2022-06-23 | 2022-10-25 | 惠州华阳通用电子有限公司 | Vehicle-mounted equipment upgrading method and device based on USB Ethernet |
| CN115242633B (en) * | 2022-06-23 | 2024-04-09 | 惠州华阳通用电子有限公司 | Vehicle-mounted equipment upgrading method and device based on USB Ethernet |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102541475B (en) | Data storage method and data storage device | |
| US9239725B2 (en) | System and method for installing an OS via a network card supporting PXE | |
| JP2012508932A (en) | Manage cache data and metadata | |
| CN108388496A (en) | A kind of collection method of system log | |
| CN105205142B (en) | Preserve method, device and the mobile terminal of journal file | |
| CN105183517A (en) | Method and device for mounting external storage equipment in recovery mode and electronic device | |
| CN106484719B (en) | Method and terminal for expanding mobile phone storage | |
| CN103617053A (en) | Method and device for upgrading software | |
| US9424134B2 (en) | Boot management in a non-volatile memory system | |
| WO2010108102A1 (en) | Hybrid storage device | |
| CN101625645A (en) | Solid state disk, BIOS device, and method and equipment for booting operating system | |
| CN101169729A (en) | Embedded type system and method for renewing application program | |
| CN107844165A (en) | Hard disk hot-plug realization device | |
| CN103870319A (en) | Method and device for information processing and electronic device | |
| US11740969B2 (en) | Detecting and recovering a corrupted non-volatile random-access memory | |
| CN104866388B (en) | Data processing method and device | |
| CN105183673B (en) | The method and device of external storage hot plug is supported in recovery mode | |
| CN105207830A (en) | Detection method and apparatus for terminal information, and terminal | |
| EP2835737A1 (en) | Data terminal running mode switching method, device, and data terminal | |
| CN103176832B (en) | One kind UNIX operating system runs method and the device of virtual opetrating system | |
| CN102184115A (en) | Method and device for updating system software | |
| CN114328341A (en) | SD card hot plug identification method, identification module and electronic equipment | |
| US11144217B2 (en) | Data protection method and associated storage device | |
| CN103793283A (en) | Terminal fault handling method and terminal fault handling device | |
| CN106599236A (en) | Metadata storage method and apparatus for file system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140305 |



