CN105511928B - System upgrade device and method - Google Patents

System upgrade device and method Download PDF

Info

Publication number
CN105511928B
CN105511928B CN201511000808.0A CN201511000808A CN105511928B CN 105511928 B CN105511928 B CN 105511928B CN 201511000808 A CN201511000808 A CN 201511000808A CN 105511928 B CN105511928 B CN 105511928B
Authority
CN
China
Prior art keywords
parameter
memory partitioning
system upgrade
new memory
written
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.)
Active
Application number
CN201511000808.0A
Other languages
Chinese (zh)
Other versions
CN105511928A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201511000808.0A priority Critical patent/CN105511928B/en
Publication of CN105511928A publication Critical patent/CN105511928A/en
Application granted granted Critical
Publication of CN105511928B publication Critical patent/CN105511928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Abstract

The invention discloses a kind of system upgrade device, described device includes: acquisition module, for obtaining the parameter for needing to modify during system upgrade, as the first parameter, and the parameter that the system upgrade does not need modification in the process is obtained, as the second parameter, back up second parameter;It wipes module and obtains new memory partitioning for wiping the data in memory partitioning;First writing module, for first parameter to be written in the new memory partitioning;Second writing module, for second parameter of backup being written in the new memory partitioning, to complete system upgrade when successfully first parameter is written in the new memory partitioning.The invention also discloses a kind of method for upgrading system.The case where the invention avoids during carrying out system upgrade using SD card, modified parameter cannot come into force and parameter relevant to radio frequency can not be restored appearance, operate normally mobile terminal can after system upgrade.

Description

System upgrade device and method
Technical field
The present invention relates to field of mobile terminals more particularly to a kind of system upgrade device and method.
Background technique
It is continuous universal with mobile terminal intelligence system, mobile terminal device manufacturer and operator release new function and The period of new business is shorter and shorter, and simultaneity factor software version is more and more and complicated, and many unknown problems are used in user It continuously emerges in the process.In order to solve these problems, better user experience is brought to user, needs to carry out the liter of system version Grade.
When mobile terminal carries out system upgrade using SD card (Secure Digital Memory Card, safe digital card) When, the subregion in mobile terminal memory not can be carried out write operation in the case where non-empty.In this case, even if in systems Source code in have modified NV (non-volatile memory, nonvolatile memory) parameter, however using SD card into During row system upgrade, the NV parameter of these modifications cannot be all written in the subregion of memory, cause the NV parameter of modification can not It comes into force;Static state NV parameter relevant to radio frequency and dynamic N V parameter relevant with radio frequency are dispatched from the factory by source code and mobile terminal When calibrate, generally all remain unchanged, thus in SD card upgrade package static state NV parameter not relevant to radio frequency and with penetrate Frequently relevant dynamic N V parameter, if can make the NV parameter of modification raw by the way of the data in erasing memory partitioning Effect, but static state NV parameter relevant to radio frequency and dynamic N V parameter relevant with radio frequency will be unable to restore, so as to cause movement Terminal can not work normally.
Summary of the invention
It is a primary object of the present invention to propose a kind of system upgrade device and method, it is intended to which solution makes in the prior art During carrying out system upgrade with SD card, modified parameter cannot come into force and parameter relevant to radio frequency can not be restored technology Problem.
To achieve the above object, a kind of system upgrade device provided by the invention, described device include:
Module is obtained, for obtaining the parameter for needing to modify during system upgrade, as the first parameter, and described in acquisition The parameter that modification is not needed during system upgrade backs up second parameter as the second parameter;
It wipes module and obtains new memory partitioning for wiping the data in memory partitioning;
First writing module, for first parameter to be written in the new memory partitioning;
Second writing module, for will back up when successfully first parameter is written in the new memory partitioning Second parameter be written in the new memory partitioning, to complete system upgrade.
Optionally, the acquisition module includes:
Acquiring unit, for obtaining the parameter of system legacy version and the parameter of system new version;
Comparison unit obtains the system upgrade for comparing the parameter of the legacy version and the parameter of the new version The parameter for needing to modify in the process as the first parameter, and does not need the parameter of modification, as the second parameter, and described in backup Second parameter.
Optionally, first writing module includes:
Determination unit determines described first according to the identification information for obtaining the identification information of first parameter Position of the parameter in the new memory partitioning;
Writing unit, for the position according to first parameter in the new memory partitioning, by described One parameter is written in the corresponding position of the new memory partitioning.
Optionally, the system upgrade device further include:
First judgment module, for when receiving the instruction of system upgrade, judging whether current electric quantity is less than default electricity Amount;
Processing module does not execute the finger of the system upgrade if being less than the default electricity for the current electric quantity It enables;
The acquisition module obtains system if being also used to the current electric quantity more than or equal to the default electricity The parameter for needing to modify in escalation process as the first parameter, and obtains the ginseng that the system upgrade does not need modification in the process Number backs up second parameter as the second parameter.
Optionally, the system upgrade device further include:
Second judgment module, for judging whether first parameter is all successfully written in the new memory partitioning;
Second writing module is all successfully written in the new memory partitioning if being also used to first parameter, Second parameter of backup is written in the new memory partitioning, to complete system upgrade;
First writing module fails all to be successfully written the new memory partitioning if being also used to first parameter In, then first parameter is written in the new memory partitioning in preset times range.
In addition, to achieve the above object, the present invention also provides a kind of method for upgrading system, and the method includes following steps It is rapid:
The parameter for needing to modify during system upgrade is obtained, as the first parameter, and obtains the system upgrade process In do not need the parameter of modification and back up second parameter as the second parameter;
The data in memory partitioning are wiped, new memory partitioning is obtained;
First parameter is written in the new memory partitioning;
When successfully first parameter is written in the new memory partitioning, second parameter of backup is written In the new memory partitioning, to complete system upgrade.
Optionally, described to obtain the parameter for needing to modify during system upgrade, as the first parameter, and obtain the system The parameter that modification is not needed in system escalation process, as the second parameter, the step of backing up second parameter, includes:
The parameter of acquisition system legacy version and the parameter of system new version;
The parameter of the legacy version and the parameter of the new version are compared, obtains needing to modify during the system upgrade Parameter, as the first parameter, and do not need modification parameter, as the second parameter, and back up second parameter.
Optionally, the step that first parameter is written in the new memory partitioning includes:
The identification information for obtaining first parameter determines first parameter described new according to the identification information Position in memory partitioning;
It, will be described in first parameter write-in according to position of first parameter in the new memory partitioning In the corresponding position of new memory partitioning.
Optionally, described to obtain the parameter for needing to modify during system upgrade, as the first parameter, and obtain the system The parameter that modification is not needed in system escalation process, as the second parameter, before the step of backing up second parameter, further includes:
When receiving the instruction of system upgrade, judge whether current electric quantity is less than default electricity;
If the current electric quantity is less than the default electricity, the instruction of the system upgrade is not executed;
If the current electric quantity is more than or equal to the default electricity, execute the acquisition system upgrade needs in the process The parameter to be modified as the first parameter, and obtains the parameter that the system upgrade does not need modification in the process, as the second ginseng The step of number, backup second parameter.
It is optionally, described that first parameter is written after the step in the new memory partitioning, further includes:
Judge that first parameter is all no is successfully written in the new memory partitioning;
If first parameter is all successfully written in the new memory partitioning, execute described by described the second of backup Parameter is written in the new memory partitioning, the step of to complete system upgrade;
If first parameter fails all to be successfully written in the new memory partitioning, continue to hold in preset times range The row step first parameter being written in the new memory partitioning.
The present invention is by obtaining the parameter for needing to modify during system upgrade and not needing the parameter of modification, described in backup The parameter of modification is not needed;The data in memory partitioning are wiped, new memory partitioning is obtained, the parameter and backup that needs are modified Do not need modification parameter be written in the new memory partitioning, complete system upgrade.It realizes using SD card upgrading system It during system, first backs up and does not need the data of modification in system upgrade process, then wipe the data in terminal memory partitioning It removes, the parameter modified and the parameter for not needing to modify of backup will be needed to be written in after the progress data erasing again later It deposits in subregion, avoids during carrying out system upgrade using SD card, modified parameter cannot come into force and related to radio frequency Parameter the case where can not restoring appearance, operate normally mobile terminal can after system upgrade.
Detailed description of the invention
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication device schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the functional block diagram of present system update device first embodiment;
Fig. 4 is a kind of the functional block diagram that module is obtained in the embodiment of the present invention;
Fig. 5 is a kind of the functional block diagram of the first writing module in the embodiment of the present invention;
Fig. 6 is the functional block diagram of present system update device second embodiment
Fig. 7 is the flow diagram of present system upgrade method first embodiment;
Fig. 8 is the flow diagram of present system upgrade method second embodiment;
Fig. 9 is the flow diagram of present system upgrade method 3rd embodiment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Mobile terminal 100 may include wireless communication unit 110, user input unit 130, sensing unit 140, output list Member 150, memory 160, interface unit 170, controller 180 and power supply unit 190 etc..Fig. 1 is shown with various assemblies Mobile terminal, it should be understood that being not required for implementing all components shown.Can alternatively it implement more or less Component.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication device Or the radio communication between network.For example, wireless communication unit may include mobile communication module 112, wireless Internet mould Block 113.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration of mobile terminal 100 or by fast movement and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication device and satellite-based communication device operate.
Referring now to Fig. 2 description communication device that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication device.For example, used by communication device Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications dress Set (UMTS) (particularly, long term evolution (LTE)), global mobile communication device (GSM) etc..As non-limiting example, under The description in face is related to cdma communication device, but such introduction is equally applicable to other types of device.
With reference to Fig. 2, cdma wireless communication device may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that device may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver Device (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in the device by broadcsting transmitter (BT) 295 100.In fig. 2 it is shown that several global pick device (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals 100 At least one of.
In Fig. 2, multiple satellites 300 are depicted, but it is understood that, it can use any number of satellite and obtain Useful location information.It substitutes GPS tracking technique or except GPS tracking technique, can be used can track mobile terminal Position other technologies.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb pass It is defeated.
As a typical operation of wireless communication device, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti- It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals It is sent to mobile terminal 100.
Structure based on above-mentioned mobile terminal hardware configuration, communication device proposes each embodiment of the method for the present invention.
The present invention provides a kind of system upgrade device.
It is the functional block diagram of present system update device first embodiment referring to Fig. 3, Fig. 3.
In the present embodiment, the system upgrade device includes:
Module 10 is obtained, for obtaining the parameter for needing to modify during system upgrade, as the first parameter, and obtains institute The parameter that system upgrade does not need modification in the process is stated, as the second parameter, backs up second parameter;
Mobile terminal is in use due to the presence of some loopholes, or in response to the demand of user, needs Carry out system upgrade.The mobile terminal can use SD card and carry out system upgrade.The capacity of the SD card storage should be greater than The space occupied required for system upgrade.The upgrading of system is carried out there is no because data line is accidentally withdrawn using SD card and The phenomenon that causing system upgrade to fail appearance.
When the mobile terminal is during carrying out system upgrade using the SD card, the mobile terminal is according to the use The operation at family, will be in the root of the system upgrade packet replication of the system upgrade to the SD card.When the mobile terminal will After the system upgrade packet replication is into the root of the SD card, need to repair during the acquisition for mobile terminal system upgrade The parameter changed needs the parameter modified as the first parameter for described;The mobile terminal also obtains system upgrade in the process not The parameter for needing to modify, using the parameter for not needing modification as the second parameter, and by second parameter backup described in In SD card or in cloud server.The parameter that modification is not needed during the system upgrade is dynamic N V relevant to radio frequency Parameter and static state NV parameter, but the parameter for not needing modification includes but is not limited to the dynamic N V parameter relevant to radio frequency With static NV parameter, can also include after system upgrade with before system upgrade parameter, do not needed as described in modification Parameter is IMEI (international mobile equipment identity, International Mobile Station Equipment Identification), ESN Account informations such as (Electronic Serial Number, Electronic Serial Number), telephone number etc..During the system upgrade The parameter for needing to modify is some NV parameters relevant to communication protocol, and the communication protocol includes but is not limited to TCP/IP (Transport Control Protocol/Internet Protocol, transmission control protocol/Internet Protocol), NetBEUI (NetBios Enhanced User Interface) agreement, IPX/SPX (Internet Work Packet Exchange, internet packet switch/sequence packet switch).The parameter for needing to modify includes but is not limited to described and communication protocol Relevant NV parameter, further include after system upgrade with parameter different before system upgrade.In the present embodiment, the movement Terminal includes but is not limited to smart phone, PC.
It wipes module 20 and obtains new memory partitioning for wiping the data in memory partitioning;
When first parameter and second parameter during the mobile terminal obtains system upgrade, the shifting Dynamic terminal wipes the data in its memory partitioning, that is, empties the file in the memory partitioning, obtains new memory partitioning, described New memory partitioning is the subregion of a blank.Wherein, the memory partitioning under normal conditions there are two, be denoted as modemst1 and Modemst2, i.e. modem data subregion.If the modemst1 subregion and the modemst2 subregion are not empty, institute Stating mobile terminal then cannot carry out write operation to it.
First writing module 30, for first parameter to be written in the new memory partitioning;
Second writing module 40 will be standby for when successfully first parameter is written in the new memory partitioning Second parameter of part is written in the new memory partitioning, to complete system upgrade.
Data in mobile terminal erasing memory partitioning, when obtaining an empty new memory partitioning, the movement First parameter is written in the new memory partitioning terminal.When the mobile terminal is all successful by first parameter When being written in the new memory partitioning, the mobile terminal is obtained from the SD card or cloud server described in backup Second parameter is written in the new memory partitioning second parameter, to complete the upgrading of system.The i.e. described mobile terminal The modemst1 subregion in the memory and described is written into the data for needing to modify during system upgrade In modemst2 subregion, when the mobile terminal successfully by modification in need data be written in the memory described in When in modemst1 subregion and the modemst2 subregion, the mobile terminal is from the SD card or the cloud server The data that the system upgrade process of backup needs to modify are obtained, need the data modified that the new memory partitioning is written for described In, to complete the upgrading of system.Further, during the system upgrade, the mobile terminal is to second parameter Backup and recovery can be carried out by the tool of the Backup Data in the SD card.When the mobile terminal receives system liter When grade instruction, the mobile terminal passes through the second parameter described in the tool automated back-up;When the mobile terminal is by described When one parameter is written in the new memory partitioning, the mobile terminal restores second parameter by the tool automatically.
The present embodiment backs up institute by obtaining the parameter for needing to modify during system upgrade and not needing the parameter of modification State the parameter for not needing modification;The data in memory partitioning are wiped, new memory partitioning is obtained, the parameter modified and standby will be needed The parameter for not needing modification of part is written in the new memory partitioning, completes system upgrade.It realizes and upgrades using SD card During system, first backs up and do not need the data of modification in system upgrade process, then by the data in terminal memory partitioning Erasing will need the parameter for not needing modification of the parameter modified and backup to be written after the progress data erasing again later In memory partitioning, avoid using SD card carry out system upgrade during, modified parameter cannot come into force and with radio frequency phase The case where parameter of pass can not be restored appearance, operate normally mobile terminal can after system upgrade.
It is a kind of the functional block diagram that module is obtained in the embodiment of the present invention referring to Fig. 4, Fig. 4.
In the present embodiment, the acquisition module 10 includes:
Acquiring unit 11, for obtaining the parameter of system legacy version and the parameter of system new version;
Comparison unit 12 obtains the system liter for comparing the parameter of the legacy version and the parameter of the new version The parameter for needing to modify during grade as the first parameter, and does not need the parameter of modification, as the second parameter, and backs up institute State the second parameter.
When the mobile terminal needs to carry out system upgrade, the parameter of its system legacy version of the acquisition for mobile terminal and The parameter of system new version.When the parameter of the acquisition for mobile terminal to the system legacy version and the ginseng of the system new version After number, the mobile terminal compares the parameter of the system legacy version and the parameter of the system new version, obtains the system The parameter for needing to modify in escalation process needs the parameter modified as the first parameter for described;Obtain the system upgrade mistake The parameter that modification is not needed in journey using the parameter for not needing modification as the second parameter, and backs up second parameter.
It wipes module 20 and obtains new memory partitioning for wiping the data in memory partitioning;
When first parameter and second parameter during the mobile terminal obtains system upgrade, the shifting Dynamic terminal wipes the data in its memory partitioning, that is, empties the file in the memory partitioning, obtains new memory partitioning, described New memory partitioning is the subregion of a blank.Wherein, the memory partitioning under normal conditions there are two, be denoted as modemst1 and Modemst2, i.e. modem data subregion.If the modemst1 subregion and the modemst2 subregion are not sky, The mobile terminal then cannot carry out write operation to it.
It is a kind of the functional block diagram of the first writing module in the embodiment of the present invention referring to Fig. 5, Fig. 5.
In the present embodiment, first writing module 30 includes:
Determination unit 31 determines described according to the identification information for obtaining the identification information of first parameter Position of one parameter in the new memory partitioning;
Writing unit 32 will be described for the position according to first parameter in the new memory partitioning First parameter is written in the corresponding position of the new memory partitioning.
When the acquisition for mobile terminal is to first parameter, the identification information of first parameter is obtained.The shifting Dynamic terminal determines that institute of first parameter in the new partitioned storage is in place according to the identification information of the first terminal It sets.Mobile terminal position in the new memory partitioning according to first parameter, first parameter is write In the corresponding position for entering the new memory partitioning.
Second writing module 40 will be standby for when successfully first parameter is written in the new memory partitioning Second parameter of part is written in the new memory partitioning, to complete system upgrade.
When first parameter is all successfully written in the new memory partitioning by the mobile terminal, the movement Terminal obtains second parameter of backup from the SD card or cloud server, and second parameter write-in is described new Memory partitioning in, to complete the upgrading of system.
The present embodiment is obtained by the parameter of comparison system legacy version and the parameter of system new version in system upgrade process The middle parameter for needing the parameter modified and not needing modification realizes the difference upgrading of parameter during system upgrade.
It is the functional block diagram of present system update device second embodiment referring to Fig. 6, Fig. 6.
In the present embodiment, the system upgrade device includes:
First judgment module 50, it is default for when receiving the instruction of system upgrade, judging whether current electric quantity is less than Electricity;
Processing module 60 does not execute the system upgrade if being less than the default electricity for the current electric quantity Instruction;
When the mobile terminal receives the instruction of system upgrade, the mobile terminal judges whether current electric quantity is less than Default electricity.If the mobile terminal determines that the current electric quantity is less than the default electricity, the system upgrade is not executed Instruction.The default electricity is according to system upgrade institute's electricity demand setting.As the default electricity is total electricity 30%.The 15% of total electricity as described in accounting for when the mobile terminal current electric quantity is less than the default electricity 30%, the movement Terminal does not execute the instruction of the system upgrade then.
The acquisition module 10 obtains if being also used to the current electric quantity more than or equal to the default electricity and is The parameter for needing to modify in system escalation process as the first parameter, and obtains the system upgrade and does not need modification in the process Parameter backs up second parameter as the second parameter.
If the mobile terminal determines that the current electric quantity is more than or equal to the default electricity, the mobile terminal The parameter for needing to modify during the system upgrade is obtained, needs the parameter modified as the first parameter for described;And it obtains The parameter that modification is not needed during the system upgrade backs up institute using the parameter for not needing modification as the second parameter State the second parameter.The 40% of total electricity as described in accounting for when the current electric quantity is greater than the default electricity 30%, described mobile whole End then obtains the parameter for needing to modify during the system upgrade and does not need the parameter of modification.
It wipes module 20 and obtains new memory partitioning for wiping the data in memory partitioning;
When first parameter and second parameter during the mobile terminal obtains system upgrade, the shifting Dynamic terminal wipes the data in its memory partitioning, that is, empties the file in the memory partitioning, obtains new memory partitioning, described New memory partitioning is the subregion of a blank.Wherein, the memory partitioning under normal conditions there are two, be denoted as modemst1 and Modemst2, i.e. modem data subregion.If the modemst1 subregion and the modemst2 subregion are not sky, The mobile terminal then cannot carry out write operation to it.
First writing module 30, for first parameter to be written in the new memory partitioning;
Second writing module 40 will be standby for when successfully first parameter is written in the new memory partitioning Second parameter of part is written in the new memory partitioning, to complete system upgrade.
Data in mobile terminal erasing memory partitioning, when obtaining an empty new memory partitioning, the movement First parameter is written in the new memory partitioning terminal.When the mobile terminal is all successful by first parameter When being written in the new memory partitioning, the mobile terminal is obtained from the SD card or cloud server described in backup Second parameter is written in the new memory partitioning second parameter, to complete the upgrading of system.The i.e. described mobile terminal The modemst1 subregion in the memory and described is written into the data for needing to modify during system upgrade In modemst2 subregion, when the mobile terminal successfully by modification in need data be written in the memory described in When in modemst1 subregion and the modemst2 subregion, the mobile terminal is from the SD card or the cloud server The data that the system upgrade process of backup needs to modify are obtained, need the data modified that the new memory partitioning is written for described In, to complete the upgrading of system.
Further, the system upgrade device further include:
Second judgment module, for judging whether first parameter is all successfully written in the new memory partitioning;
Second writing module 40 is all successfully written in the new memory partitioning if being also used to first parameter, Then second parameter of backup is written in the new memory partitioning, to complete system upgrade;
First writing module 30 fails all to be successfully written the new memory partitioning if being also used to first parameter In, then first parameter is written in the new memory partitioning in preset times range.
When first parameter is written in the new memory partitioning mobile terminal, the mobile terminal judgement Whether first parameter is all successfully written in the new memory partitioning.If first parameter is all successfully written the memory In subregion, the mobile terminal is then from the second parameter for obtaining backup in the SD card or in the cloud server, by institute It states the second parameter to be written in the new memory partitioning, to complete the upgrading of system.If first parameter fails all successfully to write Enter in the new memory partitioning, the mobile terminal then continues within the scope of preset times will be described in first parameter write-in In new memory partitioning.Wherein, the preset times are arranged as the case may be, such as can be set to 2 times, 3 times or 4 times Deng.In the present embodiment, the preset times are 3 times.I.e. when first parameter fails all to be successfully written the new memory When in subregion, the mobile terminal will continue to attempt first parameter to be written in the new memory partitioning, until described The number that mobile terminal is attempted reaches 3 times.If the mobile terminal attempts that the new memory point is written first parameter into Number in area reaches 3 times and fails to for first parameter being all successfully written in the new memory partitioning, described mobile whole End then reacquires the first parameter during the system upgrade and the second parameter or the operation for abandoning this system upgrade.
The present embodiment is led to by judging whether current electric quantity is less than default electricity when receiving the instruction of system upgrade The size relation for crossing current electric quantity and default electricity determines whether to execute the instruction of the system upgrade, prevent in system upgrade mistake The case where being powered off in journey, system upgrade is caused to fail appearance.
The present invention further provides a kind of method for upgrading system.
It is the flow diagram of present system upgrade method first embodiment referring to Fig. 7, Fig. 7.
In the present embodiment, the method for upgrading system includes:
Step S10 obtains the parameter for needing to modify during system upgrade, as the first parameter, and obtains the system The parameter that modification is not needed in escalation process backs up second parameter as the second parameter;
Mobile terminal is in use due to the presence of some loopholes, or in response to the demand of user, needs Carry out system upgrade.The mobile terminal can use SD card and carry out system upgrade.The capacity of the SD card storage should be greater than The space occupied required for system upgrade.The upgrading of system is carried out there is no because data line is accidentally withdrawn using SD card and The phenomenon that causing system upgrade to fail appearance.
When the mobile terminal is during carrying out system upgrade using the SD card, the mobile terminal is according to the use The operation at family, will be in the root of the system upgrade packet replication of the system upgrade to the SD card.When the mobile terminal will After the system upgrade packet replication is into the root of the SD card, need to repair during the acquisition for mobile terminal system upgrade The parameter changed needs the parameter modified as the first parameter for described;The mobile terminal also obtains system upgrade in the process not The parameter for needing to modify, using the parameter for not needing modification as the second parameter, and by second parameter backup described in In SD card or in cloud server.The parameter that modification is not needed during the system upgrade is dynamic N V relevant to radio frequency Parameter and static state NV parameter, but the parameter for not needing modification includes but is not limited to the dynamic N V parameter relevant to radio frequency With static NV parameter, can also include after system upgrade with before system upgrade parameter, do not needed as described in modification Parameter is IMEI (international mobile equipment identity, International Mobile Station Equipment Identification), ESN Account informations such as (Electronic Serial Number, Electronic Serial Number), telephone number etc..During the system upgrade The parameter for needing to modify is some NV parameters relevant to communication protocol, and the communication protocol includes but is not limited to TCP/IP (Transport Control Protocol/Internet Protocol, transmission control protocol/Internet Protocol), NetBEUI (NetBios Enhanced User Interface) agreement, IPX/SPX (Internet Work Packet Exchange, internet packet switch/sequence packet switch).The parameter for needing to modify includes but is not limited to described and communication protocol Relevant NV parameter, further include after system upgrade with parameter different before system upgrade.In the present embodiment, the movement Terminal includes but is not limited to smart phone, PC.
Step S20 wipes the data in memory partitioning, obtains new memory partitioning;
When first parameter and second parameter during the mobile terminal obtains system upgrade, the shifting Dynamic terminal wipes the data in its memory partitioning, that is, empties the file in the memory partitioning, obtains new memory partitioning, described New memory partitioning is the subregion of a blank.Wherein, the memory partitioning under normal conditions there are two, be denoted as modemst1 and Modemst2, i.e. modem data subregion.If the modemst1 subregion and the modemst2 subregion are not empty, institute Stating mobile terminal then cannot carry out write operation to it.
First parameter is written in the new memory partitioning step S30;
Step S40, when successfully first parameter is written in the new memory partitioning, by described the second of backup Parameter is written in the new memory partitioning, to complete system upgrade.
Data in mobile terminal erasing memory partitioning, when obtaining an empty new memory partitioning, the movement First parameter is written in the new memory partitioning terminal.When the mobile terminal is all successful by first parameter When being written in the new memory partitioning, the mobile terminal is obtained from the SD card or cloud server described in backup Second parameter is written in the new memory partitioning second parameter, to complete the upgrading of system.The i.e. described mobile terminal The modemst1 subregion in the memory and described is written into the data for needing to modify during system upgrade In modemst2 subregion, when the mobile terminal successfully by modification in need data be written in the memory described in When in modemst1 subregion and the modemst2 subregion, the mobile terminal is from the SD card or the cloud server The data that the system upgrade process of backup needs to modify are obtained, need the data modified that the new memory partitioning is written for described In, to complete the upgrading of system.Further, during the system upgrade, the mobile terminal is to second parameter Backup and recovery can be carried out by the tool of the Backup Data in the SD card.When the mobile terminal receives system liter When grade instruction, the mobile terminal passes through the second parameter described in the tool automated back-up;When the mobile terminal is by described When one parameter is written in the new memory partitioning, the mobile terminal restores second parameter by the tool automatically.
The present embodiment backs up institute by obtaining the parameter for needing to modify during system upgrade and not needing the parameter of modification State the parameter for not needing modification;The data in memory partitioning are wiped, new memory partitioning is obtained, the parameter modified and standby will be needed The parameter for not needing modification of part is written in the new memory partitioning, completes system upgrade.It realizes and upgrades using SD card During system, first backs up and do not need the data of modification in system upgrade process, then by the data in terminal memory partitioning Erasing will need the parameter for not needing modification of the parameter modified and backup to be written after the progress data erasing again later In memory partitioning, avoid using SD card carry out system upgrade during, modified parameter cannot come into force and with radio frequency phase The case where parameter of pass can not be restored appearance, operate normally mobile terminal can after system upgrade.
It is the flow diagram of present system upgrade method second embodiment referring to Fig. 8, Fig. 8.
In the present embodiment, the step S10 includes:
Step S11 obtains the parameter of system legacy version and the parameter of system new version;
Step S12 compares the parameter of the legacy version and the parameter of the new version, during obtaining the system upgrade The parameter for needing to modify as the first parameter, and does not need the parameter of modification, as the second parameter, and backs up second ginseng Number.
When the mobile terminal needs to carry out system upgrade, the parameter of its system legacy version of the acquisition for mobile terminal and The parameter of system new version.When the parameter of the acquisition for mobile terminal to the system legacy version and the ginseng of the system new version After number, the mobile terminal compares the parameter of the system legacy version and the parameter of the system new version, obtains the system The parameter for needing to modify in escalation process needs the parameter modified as the first parameter for described;Obtain the system upgrade mistake The parameter that modification is not needed in journey using the parameter for not needing modification as the second parameter, and backs up second parameter.
Step S20 wipes the data in memory partitioning, obtains new memory partitioning;
When first parameter and second parameter during the mobile terminal obtains system upgrade, the shifting Dynamic terminal wipes the data in its memory partitioning, that is, empties the file in the memory partitioning, obtains new memory partitioning, described New memory partitioning is the subregion of a blank.Wherein, the memory partitioning under normal conditions there are two, be denoted as modemst1 and Modemst2, i.e. modem data subregion.If the modemst1 subregion and the modemst2 subregion are not sky, The mobile terminal then cannot carry out write operation to it.
In the present embodiment, the step S30 includes:
Step S31 obtains the identification information of first parameter, determines that first parameter exists according to the identification information Position in the new memory partitioning;
Step S32, according to position of first parameter in the new memory partitioning, by first parameter It is written in the corresponding position of the new memory partitioning;
When the acquisition for mobile terminal is to first parameter, the identification information of first parameter is obtained.The shifting Dynamic terminal determines that institute of first parameter in the new partitioned storage is in place according to the identification information of the first terminal It sets.Mobile terminal position in the new memory partitioning according to first parameter, first parameter is write In the corresponding position for entering the new memory partitioning.
Step S40, when successfully first parameter is written in the new memory partitioning, by described the second of backup Parameter is written in the new memory partitioning, to complete system upgrade.
When first parameter is all successfully written in the new memory partitioning by the mobile terminal, the movement Terminal obtains second parameter of backup from the SD card or cloud server, and second parameter write-in is described new Memory partitioning in, to complete the upgrading of system.
The present embodiment is obtained by the parameter of comparison system legacy version and the parameter of system new version in system upgrade process The middle parameter for needing the parameter modified and not needing modification realizes the difference upgrading of parameter during system upgrade.
Referring to Fig. 9, Fig. 9 is the flow diagram of present system upgrade method 3rd embodiment.
In the present embodiment, the method for upgrading system includes:
Step S50 judges whether current electric quantity is less than default electricity when receiving the instruction of system upgrade;
Step S60 does not execute the instruction of the system upgrade if the current electric quantity is less than the default electricity;
When the mobile terminal receives the instruction of system upgrade, the mobile terminal judges whether current electric quantity is less than Default electricity.If the mobile terminal determines that the current electric quantity is less than the default electricity, the system upgrade is not executed Instruction.The default electricity is according to system upgrade institute's electricity demand setting.As the default electricity is total electricity 30%.The 15% of total electricity as described in accounting for when the mobile terminal current electric quantity is less than the default electricity 30%, the movement Terminal does not execute the instruction of the system upgrade then.
If the current electric quantity is more than or equal to the default electricity, S10 is thened follow the steps, obtains system upgrade process It is middle to need the parameter modified, as the first parameter, and the parameter that modification is not needed during the system upgrade is obtained, as the Two parameters back up second parameter;
If the mobile terminal determines that the current electric quantity is more than or equal to the default electricity, the mobile terminal The parameter for needing to modify during the system upgrade is obtained, needs the parameter modified as the first parameter for described;And it obtains The parameter that modification is not needed during the system upgrade backs up institute using the parameter for not needing modification as the second parameter State the second parameter.The 40% of total electricity as described in accounting for when the current electric quantity is greater than the default electricity 30%, described mobile whole End then obtains the parameter for needing to modify during the system upgrade and does not need the parameter of modification.
Step S20 wipes the data in memory partitioning, obtains new memory partitioning;
When first parameter and second parameter during the mobile terminal obtains system upgrade, the shifting Dynamic terminal wipes the data in its memory partitioning, that is, empties the file in the memory partitioning, obtains new memory partitioning, described New memory partitioning is the subregion of a blank.Wherein, the memory partitioning under normal conditions there are two, be denoted as modemst1 and Modemst2, i.e. modem data subregion.If the modemst1 subregion and the modemst2 subregion are not sky, The mobile terminal then cannot carry out write operation to it.
First parameter is written in the new memory partitioning step S30;
Step S40, when successfully first parameter is written in the new memory partitioning, by described the second of backup Parameter is written in the new memory partitioning, to complete system upgrade.
Data in mobile terminal erasing memory partitioning, when obtaining an empty new memory partitioning, the movement First parameter is written in the new memory partitioning terminal.When the mobile terminal is all successful by first parameter When being written in the new memory partitioning, the mobile terminal is obtained from the SD card or cloud server described in backup Second parameter is written in the new memory partitioning second parameter, to complete the upgrading of system.The i.e. described mobile terminal The modemst1 subregion in the memory and described is written into the data for needing to modify during system upgrade In modemst2 subregion, when the mobile terminal successfully by modification in need data be written in the memory described in When in modemst1 subregion and the modemst2 subregion, the mobile terminal is from the SD card or the cloud server The data that the system upgrade process of backup needs to modify are obtained, need the data modified that the new memory partitioning is written for described In, to complete the upgrading of system.
Further, the method for upgrading system further include:
Judge whether first parameter is all successfully written in the new memory partitioning;
If first parameter is all successfully written in the new memory partitioning, execute described by described the second of backup Parameter is written in the new memory partitioning, the step of to complete system upgrade;
If first parameter fails all to be successfully written in the new memory partitioning, continue to hold in preset times range The row step first parameter being written in the new memory partitioning.
When first parameter is written in the new memory partitioning mobile terminal, the mobile terminal judgement Whether first parameter is all successfully written in the new memory partitioning.If first parameter is all successfully written the memory In subregion, the mobile terminal is then from the second parameter for obtaining backup in the SD card or in the cloud server, by institute It states the second parameter to be written in the new memory partitioning, to complete the upgrading of system.If first parameter fails all successfully to write Enter in the new memory partitioning, the mobile terminal then continues within the scope of preset times will be described in first parameter write-in In new memory partitioning.Wherein, the preset times are arranged as the case may be, such as can be set to 2 times, 3 times or 4 times Deng.In the present embodiment, the preset times are 3 times.I.e. when first parameter fails all to be successfully written the new memory When in subregion, the mobile terminal will continue to attempt first parameter to be written in the new memory partitioning, until described The number that mobile terminal is attempted reaches 3 times.If the mobile terminal attempts that the new memory point is written first parameter into Number in area reaches 3 times and fails to for first parameter being all successfully written in the new memory partitioning, described mobile whole End then reacquires the first parameter during the system upgrade and the second parameter or the operation for abandoning this system upgrade.
The present embodiment is led to by judging whether current electric quantity is less than default electricity when receiving the instruction of system upgrade The size relation for crossing current electric quantity and default electricity determines whether to execute the instruction of the system upgrade, prevent in system upgrade mistake The case where being powered off in journey, system upgrade is caused to fail appearance.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of system upgrade device, which is characterized in that the system upgrade device includes:
Module is obtained, the parameter for needing to modify during system upgrade is carried out by SD card for obtaining, as the first parameter, and The parameter that the system upgrade does not need modification in the process is obtained, as the second parameter, backs up second parameter, wherein institute Stating the first parameter includes Dynamic Nonvolatile memory NV parameter relevant to radio frequency and static state NV parameter, the second parameter packet Include NV parameter relevant to communication protocol;
It wipes module and obtains new memory partitioning for wiping the data in memory partitioning;
First writing module, for first parameter to be written in the new memory partitioning;
Second writing module, for when successfully first parameter is written in the new memory partitioning, by the institute of backup It states the second parameter to be written in the new memory partitioning, to complete system upgrade;
The acquisition module includes:
Acquiring unit, for obtaining the parameter of system legacy version and the parameter of system new version;
Comparison unit obtains the system upgrade process for comparing the parameter of the legacy version and the parameter of the new version The middle parameter for needing to modify as the first parameter, and does not need the parameter of modification, as the second parameter, and backs up described second Parameter.
2. the system as claimed in claim 1 update device, which is characterized in that first writing module includes:
Determination unit determines first parameter according to the identification information for obtaining the identification information of first parameter Position in the new memory partitioning;
Writing unit is joined for the position according to first parameter in the new memory partitioning by described first Number is written in the corresponding position of the new memory partitioning.
3. the system as claimed in claim 1 update device, which is characterized in that the system upgrade device further include:
First judgment module, for judging whether current electric quantity is less than default electricity when receiving the instruction of system upgrade;
Processing module does not execute the instruction of the system upgrade if being less than the default electricity for the current electric quantity;
The acquisition module obtains system upgrade if being also used to the current electric quantity more than or equal to the default electricity The parameter for needing to modify in the process as the first parameter, and obtains the parameter that the system upgrade does not need modification in the process, makees For the second parameter, second parameter is backed up.
4. system upgrade device as described in any one of claims 1 to 3, which is characterized in that the system upgrade device also wraps It includes:
Second judgment module, for judging whether first parameter is all successfully written in the new memory partitioning;
Second writing module is all successfully written in the new memory partitioning if being also used to first parameter, will be standby Second parameter of part is written in the new memory partitioning, to complete system upgrade;
First writing module fails all to be successfully written in the new memory partitioning if being also used to first parameter, First parameter is written in the new memory partitioning in preset times range.
5. a kind of method for upgrading system, which is characterized in that the method for upgrading system the following steps are included:
It obtains and the parameter for needing to modify during system upgrade is carried out by SD card, as the first parameter, and obtain the system The parameter that modification is not needed in escalation process backs up second parameter, wherein the first parameter packet as the second parameter Include Dynamic Nonvolatile memory NV parameter relevant to radio frequency and static state NV parameter, second parameter includes and communication protocol Relevant NV parameter;
The data in memory partitioning are wiped, new memory partitioning is obtained;
First parameter is written in the new memory partitioning;
When successfully first parameter is written in the new memory partitioning, described in second parameter write-in by backup In new memory partitioning, to complete system upgrade;
Wherein, described to obtain the parameter for needing to modify during system upgrade, as the first parameter, and obtain the system upgrade The parameter for not needing modification in the process, as the second parameter, the step of backing up second parameter, includes:
The parameter of acquisition system legacy version and the parameter of system new version;
The parameter of the legacy version and the parameter of the new version are compared, the ginseng for needing to modify during the system upgrade is obtained Number as the first parameter, and does not need the parameter of modification, as the second parameter, and backs up second parameter.
6. method for upgrading system as claimed in claim 5, which is characterized in that it is described first parameter is written it is described new Step in memory partitioning includes:
The identification information for obtaining first parameter determines first parameter in the new memory according to the identification information Position in subregion;
According to position of first parameter in the new memory partitioning, first parameter is written described new In the corresponding position of memory partitioning.
7. method for upgrading system as claimed in claim 5, which is characterized in that need to modify during the acquisition system upgrade Parameter, as the first parameter, and obtain the parameter that modification is not needed during the system upgrade, it is standby as the second parameter Before the step of part second parameter, further includes:
When receiving the instruction of system upgrade, judge whether current electric quantity is less than default electricity;
If the current electric quantity is less than the default electricity, the instruction of the system upgrade is not executed;
If the current electric quantity is more than or equal to the default electricity, executes the acquisition system upgrade and need to repair in the process The parameter changed as the first parameter, and obtains the parameter that modification is not needed during the system upgrade, as the second parameter, The step of backing up second parameter.
8. such as the described in any item method for upgrading system of claim 5 to 7, which is characterized in that described to write first parameter After entering the step in the new memory partitioning, further includes:
Judge whether first parameter is all successfully written in the new memory partitioning;
If first parameter is all successfully written in the new memory partitioning, second parameter by backup is executed It is written in the new memory partitioning, the step of to complete system upgrade;
If first parameter fails all to be successfully written in the new memory partitioning, institute is continued to execute in preset times range State the step first parameter being written in the new memory partitioning.
CN201511000808.0A 2015-12-28 2015-12-28 System upgrade device and method Active CN105511928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511000808.0A CN105511928B (en) 2015-12-28 2015-12-28 System upgrade device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511000808.0A CN105511928B (en) 2015-12-28 2015-12-28 System upgrade device and method

Publications (2)

Publication Number Publication Date
CN105511928A CN105511928A (en) 2016-04-20
CN105511928B true CN105511928B (en) 2019-07-26

Family

ID=55719935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511000808.0A Active CN105511928B (en) 2015-12-28 2015-12-28 System upgrade device and method

Country Status (1)

Country Link
CN (1) CN105511928B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461257A (en) * 2021-07-29 2022-05-10 荣耀终端有限公司 Operating system data configuration method, operating system data configuration device, storage medium and program product

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955774A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Software upgrading control method and device
CN106066806B (en) * 2016-06-06 2020-06-09 Tcl移动通信科技(宁波)有限公司 Mobile terminal software updating method and system
CN106507337B (en) * 2016-10-08 2020-03-27 努比亚技术有限公司 FOTA upgrading device and method
CN106775672A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 The method and terminal of system version upgrading
CN107222341B (en) * 2017-05-27 2020-06-05 上海创功通讯技术有限公司 Method for updating radio frequency protocol parameters and electronic equipment
CN107911248B (en) * 2017-11-27 2020-11-10 北京百度网讯科技有限公司 Upgrading method and device
CN108429979B (en) * 2018-06-15 2020-05-08 歌尔科技有限公司 Charging box upgrading method, charging box, wireless headset and TWS headset
CN109739542A (en) * 2018-12-11 2019-05-10 成都智慧海派科技有限公司 A kind of method of high-pass platform nv parameter upgrading
CN109885325B (en) * 2019-02-26 2023-05-16 深圳市华晨旭悦科技有限公司 Terminal system upgrading method, terminal and computer readable storage medium
CN111258608A (en) * 2020-01-16 2020-06-09 宁波三星医疗电气股份有限公司 Software upgrading method and device for terminal equipment and electronic system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110788B (en) * 2006-07-20 2010-09-08 阿里巴巴集团控股有限公司 Method and system for updating client software
JP2008243136A (en) * 2007-03-29 2008-10-09 Fujitsu Ltd Configuration change information analysis program, latest document determination program, configuration change information analyzing device, and latest document determination device
CN101694623A (en) * 2009-09-29 2010-04-14 上海夏新电子开发有限公司 Method for updating handheld device software
CN103186401B (en) * 2011-12-31 2016-04-20 北京新媒传信科技有限公司 A kind of software systems and config update method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461257A (en) * 2021-07-29 2022-05-10 荣耀终端有限公司 Operating system data configuration method, operating system data configuration device, storage medium and program product
CN114461257B (en) * 2021-07-29 2023-03-24 荣耀终端有限公司 Operating system data configuration method, operating system data configuration device, storage medium and program product

Also Published As

Publication number Publication date
CN105511928A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105511928B (en) System upgrade device and method
CN105763723B (en) Mobile terminal and method for upgrading system
CN106201756A (en) Log acquisition device, mobile terminal and method
CN104955023B (en) A kind of mobile terminal and the method for updating network parameter
CN105843508B (en) Mobile terminal and its screenshotss method
CN106559579B (en) Mobile terminal and CPU/GPU scheduling parameter updating method
CN106557291B (en) Split screen processing method and processing device
CN105740008A (en) Apparatus and method for forbidding chained startup of applications
CN106055324B (en) System theme replaces device and method
CN105897863A (en) Rollback method and apparatus for upgraded mobile terminal version
CN105677517A (en) Data backup device, terminal and data backup method
CN105187534A (en) Information backup equipment and method, and information backup system
CN106021029A (en) Backup-recovery device and method of NV parameters
CN106095464B (en) A kind of method and device of the seamless operation of application program
CN105471988A (en) contact person information pushing method, server and terminal
CN106412103A (en) Display device and method of push information
CN106445830A (en) Application program running environment detection method and mobile terminal
CN105792181B (en) A kind of data migration method of analog card, mobile terminal and TSM platform
CN106028382A (en) NV (Nonvolatile Random Access Memory) parameter reading-writing device and method
CN105786647A (en) Data backup device and method and terminal
CN105827531B (en) A kind of routing access method and terminal
CN106658470A (en) Master card setting device and method
CN105681547B (en) Middleware instance management device and method
CN106506364A (en) A kind of cut-in method, client and routing server
CN105611059A (en) Method and device for displaying availability of application programs and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant