CN105099765B - Data-updating method and device - Google Patents
Data-updating method and device Download PDFInfo
- Publication number
- CN105099765B CN105099765B CN201510369706.XA CN201510369706A CN105099765B CN 105099765 B CN105099765 B CN 105099765B CN 201510369706 A CN201510369706 A CN 201510369706A CN 105099765 B CN105099765 B CN 105099765B
- Authority
- CN
- China
- Prior art keywords
- data
- protocol stack
- network protocol
- file
- update
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure is directed to a kind of data-updating method and devices, belong to field of terminal technology.The method includes:Start reforestation practices;Under the reforestation practices, pre-set network protocol stack is obtained;Obtain the destination address for having stored the purpose equipment for updating the data file;Based on the network protocol stack and the destination address, from the purpose equipment download described in update the data file;Data update is carried out based on the file that updates the data.The disclosure for reforestation practices by pre-setting network protocol stack, it can be in recovery mode, according to the network protocol stack and destination address, it is downloaded from purpose equipment and updates the data file, file, which is updated the data, based on this carries out data update, it avoids the problem that not storing in storage card and updates the data file and USB interface damage or do not carry USB flash disk when cause update failure, provide the mode that a kind of download online in recovery mode updates the data file, it ensure that data update can succeed, improve reliability.
Description
Technical field
The disclosure is directed to field of terminal technology, specifically about a kind of data-updating method and device.
Background technology
It is a kind of pattern that can be modified to the internal data of operating system to restore (recovery) pattern, is being restored
It can be brushed under pattern into new operating system, either existing operating system is backed up and is either updated or restored manufacture
Setting.Terminal would generally configure reforestation practices, when the operation due to operating system goes wrong and need to be updated data
When, reforestation practices can be entered, be updated in recovery mode.
When being updated in recovery mode, needs first to obtain and update the data file.Terminal can be in advance in normal mode
Under, it will update the data in file download to the storage card of configuration, when to be updated to data, reforestation practices can be entered,
What is stored in reading storage card updates the data file, and updating the data file based on this is updated.Alternatively, when the terminal is not downloaded
To when updating the data file, USB flash disk can also be inserted into USB (Universal Serial Bus, universal serial bus) interface
(USB flash drive), in recovery mode, what is stored in download USB flash disk updates the data file, and updating the data file based on this carries out more
Newly.
Invention content
In order to solve the problems, such as present in the relevant technologies, present disclose provides a kind of data-updating method and devices.It is described
Technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of data-updating method is provided, the method includes:
Start reforestation practices;
Under the reforestation practices, pre-set network protocol stack is obtained;
Obtain the destination address for having stored the purpose equipment for updating the data file;
Based on the network protocol stack and the destination address, from the purpose equipment download described in update the data file;
Data update is carried out based on the file that updates the data.
In another embodiment, described under the reforestation practices, it is described before obtaining pre-set network protocol stack
Method further includes:
First network protocol stack is obtained, the first network protocol stack is under the normal mode of terminal;
From the first network protocol stack, the Internet protocol data corresponding to extraction document download function;
According to the Internet protocol data, the second network protocol stack is generated, then the data volume of second network protocol stack
Less than the data volume of the first network protocol stack;
Second network protocol stack is stored into the corresponding memory space of the reforestation practices.
In another embodiment, the pre-set network protocol stack of acquisition, including:
From the corresponding memory space of the reforestation practices, second network protocol stack is loaded.
In another embodiment, the acquisition has stored the destination address for the purpose equipment for updating the data file, including:
Obtain pre-set destination address;Alternatively,
It operates according to the user's choice, a destination address is selected from pre-set multiple destination addresses.
In another embodiment, described that data update is carried out based on the file that updates the data, including:
The file that updates the data is verified;
When being verified, the reforestation practices are restarted;
Under the reforestation practices, data update is carried out based on the file that updates the data.
According to the second aspect of the embodiment of the present disclosure, a kind of data update apparatus is provided, described device includes:
Starting module, for starting reforestation practices;
Acquisition module, under the reforestation practices, obtaining pre-set network protocol stack;
The acquisition module is additionally operable to obtain the destination address for having stored the purpose equipment for updating the data file;
Download module, for being based on the network protocol stack and the destination address, described in purpose equipment download
Update the data file;
Update module carries out data update for being based on the file that updates the data.
In another embodiment, described device further includes:
The acquisition module is additionally operable to obtain first network protocol stack, and the first network protocol stack is being used for terminal just
Under norm formula;
Extraction module is used for from the first network protocol stack, the procotol corresponding to extraction document download function
Data;
Generation module, for according to the Internet protocol data, generating the second network protocol stack, then second network is assisted
The data volume for discussing stack is less than the data volume of the first network protocol stack;
Memory module, for storing second network protocol stack into the corresponding memory space of the reforestation practices.
In another embodiment, the acquisition module is additionally operable to from the corresponding memory space of the reforestation practices, load
Second network protocol stack.
In another embodiment, the acquisition module is additionally operable to obtain pre-set destination address;Alternatively, according to user
Selection operation, from pre-set multiple destination addresses select a destination address.
In another embodiment, the update module is additionally operable to verify the file that updates the data;It is verified
When, restart the reforestation practices;Under the reforestation practices, data update is carried out based on the file that updates the data.
According to the third aspect of the embodiment of the present disclosure, a kind of data update apparatus is provided, described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Start reforestation practices;
Under the reforestation practices, pre-set network protocol stack is obtained;
Obtain the destination address for having stored the purpose equipment for updating the data file;
Based on the network protocol stack and the destination address, from the purpose equipment download described in update the data file;
Data update is carried out based on the file that updates the data.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Method and apparatus provided in this embodiment, by pre-setting network protocol stack for reforestation practices, when will be into line number
When according to update, it can download and update the data from purpose equipment in recovery mode, according to the network protocol stack and destination address
File updates the data file based on this and carries out data update, avoids not storing in storage card and update the data file and USB
The problem of interface damages or causes update failure when not carrying USB flash disk, provide it is a kind of it is online in recovery mode under
The mode for updating the data file is carried, ensure that data update can succeed, improve reliability.
It should be understood that above general description and following detailed description is merely exemplary, this can not be limited
It is open.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of data-updating method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of data-updating method shown according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of data update apparatus shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of device for data update shown according to an exemplary embodiment.
Specific implementation mode
It is right with reference to embodiment and attached drawing to make the purpose, technical scheme and advantage of the disclosure be more clearly understood
The disclosure is described in further details.Here, the exemplary embodiment and its explanation of the disclosure be for explaining the disclosure, but simultaneously
Not as the restriction to the disclosure.
A kind of data-updating method of embodiment of the present disclosure offer and device carry out specifically the disclosure below in conjunction with attached drawing
It is bright.
Fig. 1 is a kind of flow chart of data-updating method shown according to an exemplary embodiment, as shown in Figure 1, the number
According to update method in terminal, including the following steps:
In a step 101, start reforestation practices.
In a step 102, under the reforestation practices, pre-set network protocol stack is obtained.
In step 103, the destination address for having stored the purpose equipment for updating the data file is obtained.
At step 104, it is based on the network protocol stack and the destination address, this is downloaded from the purpose equipment and updates the data text
Part.
In step 105, file is updated the data based on this and carries out data update.
It is not that network protocol stack is arranged in reforestation practices in the related technology, then in recovery mode, terminal cannot connect net
Network can not download file.If terminal will not update the data in file download to storage card in advance, and the USB of terminal connects
When mouth damage or user leave behind USB flash disk, terminal cannot download to and update the data file in recovery mode, can not base
File progress data update is updated the data in this, this will result in update failure.And in the present embodiment, it is set in advance for reforestation practices
Network protocol stack is set, then terminal can connect network in recovery mode, can be based on network protocol stack download and update the data
File, then file is updated the data based on this and carries out data update.
Method provided in this embodiment, by pre-setting network protocol stack for reforestation practices, when data update to be carried out
When, it can be downloaded from purpose equipment in recovery mode, according to the network protocol stack and destination address and update the data file,
File is updated the data based on this and carries out data update, is avoided not storing in storage card and is updated the data file and USB interface and damage
The problem of badly or when not carrying USB flash disk causing update failure provides a kind of update of download online in recovery mode
The mode of data file ensure that data update can succeed, improve reliability.
In another embodiment, should be under the reforestation practices, before obtaining pre-set network protocol stack, this method is also
Including:
First network protocol stack is obtained, the first network protocol stack is under the normal mode of terminal;
From the first network protocol stack, the Internet protocol data corresponding to extraction document download function;
According to the Internet protocol data, the second network protocol stack is generated, then the data volume of second network protocol stack is less than
The data volume of the first network protocol stack;
Second network protocol stack is stored into the corresponding memory space of the reforestation practices.
In another embodiment, the pre-set network protocol stack of the acquisition, including:
From the corresponding memory space of the reforestation practices, second network protocol stack is loaded.
In another embodiment, which has stored the destination address for the purpose equipment for updating the data file, including:
Obtain pre-set destination address;Alternatively,
It operates according to the user's choice, a destination address is selected from pre-set multiple destination addresses.
In another embodiment, file should be updated the data based on this carry out data update, including:
File is updated the data to this to verify;
When being verified, the reforestation practices are restarted;
Under the reforestation practices, file is updated the data based on this and carries out data update.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions
It repeats one by one.
Fig. 2 is a kind of flow chart of data-updating method shown according to an exemplary embodiment, as shown in Fig. 2, the number
According to update method in terminal, including the following steps:
In step 201, terminal starts reforestation practices.
Wherein, which can be mobile phone, computer, television set or other equipment, the operating system of terminal configuration
Can be Android operation system, Windows operating system etc., the present embodiment does not limit this.
The terminal is configured with reforestation practices, can execute data backup, data update in recovery mode, restoring to dispatch from the factory sets
The operations such as set.
In the present embodiment, when the operating system of the terminal when something goes wrong, such as operating system corrupted data or
Occur mistake etc. when startup, reforestation practices can be started automatically.Alternatively, the terminal is receiving the instruction for starting reforestation practices
When, reforestation practices can be started, such as in the start-up course of terminal, the options such as reforestation practices, normal mode, user can be provided
Reforestation practices option, triggering can be selected to start the instruction of reforestation practices, then the terminal receives the instruction for starting reforestation practices,
According to the instruction, start reforestation practices.After starting reforestation practices, which can carry out data more under the reforestation practices
Newly.
In step 202, which obtains pre-set network protocol stack under the reforestation practices.
The network protocol stack can be pre-set for realizing the file download function under reforestation practices by the terminal, should
Terminal can be based on network protocol stack download and update the data file, and data update is carried out to update the data file based on this.
The network protocol stack can be WIFI (Wireless Fidelity, Wireless Fidelity) protocol stack or other protocol stacks etc., this reality
Example is applied not limit this.
The terminal can prestore network protocol stack in the corresponding memory space of reforestation practices, then when the terminal opens
When dynamic reforestation practices, the network protocol stack can be loaded from the memory space.And under the reforestation practices, which may be used also
When receiving more new command, from the memory space, to load the network protocol stack.The more new command can be existed by the terminal
Determine automatic trigger when needing to carry out data update, it can also be by the instruction triggers that update the data, for example, user can be by distant
Device or the menu of terminal offer to be provided, the instruction updated the data is triggered, then the terminal receives the instruction updated the data, from
The network protocol stack is loaded in the memory space.
When practical application, which can distribute different memory spaces for normal mode and reforestation practices, and in normal mode
Storage network protocol stack in the corresponding memory space of formula, then the terminal in the normal mode, can be based on the procotol of storage
Stack connects network.And in the present embodiment, the terminal also storage network protocol stack in the corresponding memory space of reforestation practices then should
Terminal in recovery mode, can also connect network based on the network protocol stack of storage.Wherein, the network protocol stack of reforestation practices
Can be identical with the network protocol stack of normal mode, by copying to the network protocol stack of normal mode in reforestation practices, make
Network can also be connected in recovery mode by obtaining, and file is updated the data to download.
However, since terminal would generally be run in the normal mode, and seldom run in recovery mode, and reforestation practices
The function of being provided is seldom, required memory space also very little.Therefore, in order to avoid the waste of memory space, reforestation practices
The very little that memory space can be arranged, if the storage that the network protocol stack of normal mode is completely copied to reforestation practices is empty
Between, excessive memory space will be occupied, the normal operation of reforestation practices is influenced.
In view of the network protocol stack being arranged under normal mode is implemented for file download function while connecting multiple
The multiple functions such as the function of equipment, point-to-point function, the function of calling application software interface, and the terminal is reforestation practices setting
The purpose of network protocol stack, which is to download, updates the data file, that is to say the terminal only and need to realize the file download under reforestation practices
Function, then, in order to save the corresponding memory space of reforestation practices, which can simplify network protocol stack,
Network protocol stack after being simplified, the procotol number corresponding to network protocol stack only document retaining download function after simplifying
According to, it both ensure that download in recovery mode in this way and update the data file, and can also reduce the data volume of network protocol stack,
It avoids occupying excessive memory space.
For this purpose, the terminal can obtain the network protocol stack for normal mode, as first network protocol stack, from this
In one network protocol stack, the Internet protocol data corresponding to extraction document download function, and by the network corresponding to other functions
Protocol data filters out, and according to the Internet protocol data corresponding to this document download function, generates the second network protocol stack, then should
The data volume of second network protocol stack is less than the data volume of the first network protocol stack, which deposits second network protocol stack
In storage to the corresponding memory space of the reforestation practices, then the terminal in recovery mode, can be based on second network protocol stack
Realize file download function, and second network protocol stack will not occupy the excessive memory space of reforestation practices.
Correspondingly, after the terminal starts reforestation practices, it can be under the reforestation practices, from the corresponding storage of the reforestation practices
In space, second network protocol stack is loaded, file is updated the data to be based on second network protocol stack download.
In step 203, which obtains the destination address for having stored the purpose equipment for updating the data file.
Wherein, which, for uniquely determining the purpose equipment, can be the IP (Internet of the purpose equipment
Protocol, Internet protocol) address or MAC (Media Access Control, medium access control) address etc., it should
Purpose equipment can be computer, router, server or other equipment, be stored in the purpose equipment and update the data text
Part, terminal needs, which download this from the purpose equipment and update the data file, could carry out data update, and this updates the data text
Part can be used for being updated the operating system data of the terminal, or to the terminal installation application data be updated or
Person is updated other data of the terminal, and the present embodiment does not limit this.
The destination address can be pre-set by the terminal, when the terminal starts reforestation practices, can be obtained and be set in advance
The destination address set, alternatively, when the terminal pre-sets multiple destination addresses, which can grasp according to the user's choice
Make, a destination address, the i.e. terminal is selected to show that multiple destination address is corresponded to from pre-set multiple destination addresses
Option, user can select an option from multiple option, which can determine corresponding to selected option
Destination address.In addition, the terminal can also show input field after starting reforestation practices, it is defeated in the input field to obtain user
The address entered, as the destination address.
It should be noted that the present embodiment is only by taking step 203 executes after step 202 as an example, in fact, the terminal opens
After dynamic reforestation practices, step 203 can also be first carried out and execute step 202 again, or be performed simultaneously step 202 and step 203, this
The sequencing that embodiment executes step 202 and 203 does not limit.
In step 204, which is based on the network protocol stack and the destination address, and the update is downloaded from the purpose equipment
Data file.
After getting the network protocol stack and the destination address, which can service the purpose equipment as one
Device downloads this from the purpose equipment and updates the data file.
The terminal can generate update request, be based on the network protocol stack, be packaged, updated to update request
Request data package, and it is based on the destination address, the update request data package is sent to the purpose equipment, which receives
The update request data package can parse the update request data package, obtain according to the network protocol stack of the purpose equipment
The update ask, when the purpose equipment determine the terminal send be update request when, to the terminal return update the data file,
The terminal can download this from the purpose equipment and update the data file.
In addition, this can be updated the data file download to specified directory by the terminal, in subsequent process, which carries out more
When new, this can be loaded from the specified directory and update the data file.The specified directory can be predefined by the terminal, and every time
When the terminal downloads update the data file, it can will update the data in file download to the specified directory, the present embodiment is to this
It does not limit.
In step 205, the terminal-pair this update the data file and verified, when being verified, restart the recovery
Pattern updates the data file based on this and carries out data update under the reforestation practices.
The terminal can update the data file to this and verify.For example, during in download, this updates the data file,
The download situation that the terminal can update the data this file is verified, and judges that this updates the data whether file downloads completion,
When the terminal determines that this updates the data file download completion, it is verified.When the terminal determines that this updates the data file download
When failure, download is re-started.
It downloads after this updates the data file, the version which can also update the data this file is verified, should
Terminal can obtain the version information for updating the data file, judge that this updates the data the version information of file and is determined with the terminal
Want whether newer version information matches, if it does, it is that the terminal carries out data update when institute to indicate that this updates the data file
The file needed, is verified, if mismatched, indicate this update the data file not and be the terminal carry out it is required when data update
File, then the terminal, which re-downloads, updates the data file.Wherein, terminal determination wants newer version information can be by the terminal
It is automatically determined according to the current problem, determination can also be operated according to the user's choice, the present embodiment does not limit this.
It is verified in addition, the terminal can also update the data this information such as upload user, the uplink time of file, this
Embodiment does not limit this.
This is updated the data after file verification passes through, which can restart the reforestation practices, when restarting, the end
End can load this and update the data file from the specified directory, and updating the data file based on this carries out data update.
This updates the data data in file and is corresponded with initial data of the terminal in reforestation practices, into line number
When according to update, the terminal can this update the data all data in file and replace corresponding initial data respectively, can also
Only determine the initial data that goes wrong in initial data, with this update the data in file with the initial data pair to go wrong
The data answered replace the initial data to go wrong.The mode that the present embodiment carries out the terminal data update does not limit
It is fixed.
It should be noted that the present embodiment only using the terminal as executive agent for illustrate, in fact, the data
Update method can also be executed by the update service routine in terminal, and the operating process of the update service routine may include:
(1) in recovery mode, when which receives the instruction updated the data, start update service routine.
(2) the update service routine loads the network protocol stack simplified from the corresponding memory space of the reforestation practices,
And client is established on the terminal.
Wherein, which can be Samba clients, and Samba agreements are a kind of leading to for shared file on a local area network
Believe agreement, the shared service of file can be provided between the distinct device in LAN.Certainly, which may be to abide by
The client of alternative document transport protocol is followed, the present embodiment does not limit this.
(3) the update service routine is according to pre-set destination address, using purpose equipment as server, based on foundation
Client, from the purpose equipment download update the data file.
Wherein, which can be used as Samba servers, and file is carried out with the Samba clients that the terminal is established
Transmission.
(4) update service routine is verified to updating the data file, then restarts to reforestation practices, is restoring mould
Under formula, file is updated the data based on this and carries out data update.
The present embodiment is stored the network protocol stack after simplification to reforestation practices by simplifying to network protocol stack,
And the more new logic of terminal in recovery mode is defined, to realize the purpose for carrying out data update in reforestation practices, nothing
The Hard links such as USB interface or Ethernet are needed, data update can be realized by being wirelessly connected, reached the mesh of system upgrade
's.
Method provided in this embodiment, by pre-setting network protocol stack for reforestation practices, when data update to be carried out
When, it can be downloaded from purpose equipment in recovery mode, according to the network protocol stack and destination address and update the data file,
File is updated the data based on this and carries out data update, is avoided not storing in storage card and is updated the data file and USB interface and damage
The problem of badly or when not carrying USB flash disk causing update failure provides a kind of update of download online in recovery mode
The mode of data file ensure that data update can succeed, improve reliability.And by carrying out letter to network protocol stack
Change, can either ensure download in recovery mode and update the data file, can also reduce the data volume of network protocol stack, keep away
Exempt to occupy excessive memory space, ensure that the normal operation of reforestation practices.
Fig. 3 is a kind of block diagram of data update apparatus shown according to an exemplary embodiment.Referring to Fig. 3, the device packet
Include starting module 301, acquisition module 302, download module 303 and update module 304.
Starting module 301 is configurable for starting reforestation practices;
Acquisition module 302 is configured under the reforestation practices, obtains pre-set network protocol stack;
The acquisition module 302 is additionally configured to for obtaining the destination for having stored the purpose equipment for updating the data file
Location;
Download module 303 is configurable for, based on the network protocol stack and the destination address, downloading from the purpose equipment
This updates the data file;
Update module 304 is configurable for updating the data file progress data update based on this.
Device provided in this embodiment, by pre-setting network protocol stack for reforestation practices, when data update to be carried out
When, it can be downloaded from purpose equipment in recovery mode, according to the network protocol stack and destination address and update the data file,
File is updated the data based on this and carries out data update, is avoided not storing in storage card and is updated the data file and USB interface and damage
The problem of badly or when not carrying USB flash disk causing update failure provides a kind of update of download online in recovery mode
The mode of data file ensure that data update can succeed, improve reliability.
In another embodiment, which further includes:
The acquisition module 302 is additionally configured to for obtaining first network protocol stack, which is configured
For under the normal mode for terminal;
Extraction module is configurable for from the first network protocol stack, the network corresponding to extraction document download function
Protocol data;
Generation module is configurable for, according to the Internet protocol data, generating the second network protocol stack, then second net
The data volume of network protocol stack is less than the data volume of the first network protocol stack;
Memory module is configurable for second network protocol stack storing memory space corresponding to the reforestation practices
In.
In another embodiment, which is additionally configured to for from the corresponding memory space of the reforestation practices
In, load second network protocol stack.
In another embodiment, which is additionally configured to for obtaining pre-set destination address;Or
Person operates according to the user's choice, and a destination address is selected from pre-set multiple destination addresses.
In another embodiment, which is additionally configured to verify for updating the data file to this;It tests
When card passes through, the reforestation practices are restarted;Under the reforestation practices, file is updated the data based on this and carries out data update.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions
It repeats one by one.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be noted that:The data update apparatus that above-described embodiment provides is when updating the data, only with above-mentioned each function
The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application
Block is completed, i.e., the internal structure of terminal is divided into different function modules, to complete all or part of work(described above
Energy.In addition, the data update apparatus that above-described embodiment provides belongs to same design with data-updating method embodiment, it is specific real
Existing process refers to embodiment of the method, and which is not described herein again.
Fig. 4 is a kind of block diagram of device 400 for data update shown according to an exemplary embodiment.For example, dress
It can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment to set 400
Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 4, device 400 may include following one or more components:Processing component 402, memory 404, power supply
Component 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414, and
Communication component 416.
The integrated operation of 402 usual control device 400 of processing component, such as with display, call, data communication, phase
Machine operates and record operates associated operation.Processing component 402 may include that one or more processors 420 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, just
Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, it is more to facilitate
Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown
Example includes instruction for any application program or method that are operated on device 400, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 may include power management system
System, one or more power supplys and other generated with for device 400, management and the associated component of distribution electric power.
Multimedia component 408 is included in the screen of one output interface of offer between described device 400 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 408 includes a front camera and/or rear camera.When device 400 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike
Wind (MIC), when device 400 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set
Part 416 is sent.In some embodiments, audio component 410 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented
Estimate.For example, sensor module 414 can detect the state that opens/closes of device 400, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 400, and sensor module 414 can be with 400 1 components of detection device 400 or device
Position change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400
Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device
400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation
In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application application-specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned data-updating method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 400 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal
When row so that terminal is able to carry out a kind of data-updating method, the method includes:
Start reforestation practices;
Under the reforestation practices, pre-set network protocol stack is obtained;
Obtain the destination address for having stored the purpose equipment for updating the data file;
Based on the network protocol stack and the destination address, from the purpose equipment download described in update the data file;
Data update is carried out based on the file that updates the data.
In another embodiment, described under the reforestation practices, it is described before obtaining pre-set network protocol stack
Method further includes:
First network protocol stack is obtained, the first network protocol stack is under the normal mode of terminal;
From the first network protocol stack, the Internet protocol data corresponding to extraction document download function;
According to the Internet protocol data, the second network protocol stack is generated, then the data volume of second network protocol stack
Less than the data volume of the first network protocol stack;
Second network protocol stack is stored into the corresponding memory space of the reforestation practices.
In another embodiment, the pre-set network protocol stack of acquisition, including:
From the corresponding memory space of the reforestation practices, second network protocol stack is loaded.
In another embodiment, the acquisition has stored the destination address for the purpose equipment for updating the data file, including:
Obtain pre-set destination address;Alternatively,
It operates according to the user's choice, a destination address is selected from pre-set multiple destination addresses.
In another embodiment, described that data update is carried out based on the file that updates the data, including:
The file that updates the data is verified;
When being verified, the reforestation practices are restarted;
Under the reforestation practices, data update is carried out based on the file that updates the data.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (11)
1. a kind of data-updating method, which is characterized in that the method includes:
Start reforestation practices;
Under the reforestation practices, pre-set network protocol stack is obtained, the network protocol stack includes file download work(
The Internet protocol data corresponding to energy, and the network protocol stack is the first network agreement to being arranged under the normal mode of terminal
Stack carries out the network protocol stack obtained after simplifying;
Obtain the destination address for having stored the purpose equipment for updating the data file;
Based on the network protocol stack and the destination address, from the purpose equipment download described in update the data file;
Data update is carried out based on the file that updates the data.
2. according to the method described in claim 1, it is characterized in that, described under the reforestation practices, acquisition is pre-set
Before network protocol stack, the method further includes:
The first network protocol stack is obtained, the first network protocol stack is under the normal mode of terminal;
From the first network protocol stack, the Internet protocol data corresponding to extraction document download function;
According to the Internet protocol data, the second network protocol stack is generated, then the data volume of second network protocol stack is less than
The data volume of the first network protocol stack;
Second network protocol stack is stored into the corresponding memory space of the reforestation practices.
3. according to the method described in claim 2, it is characterized in that, described obtain pre-set network protocol stack, including:
From the corresponding memory space of the reforestation practices, second network protocol stack is loaded.
4. according to the method described in claim 1, it is characterized in that, the acquisition has stored the purpose equipment for updating the data file
Destination address, including:
Obtain pre-set destination address;Alternatively,
It operates according to the user's choice, a destination address is selected from pre-set multiple destination addresses.
5. according to the method described in claim 1, it is characterized in that, described carry out data more based on the file that updates the data
Newly, including:
The file that updates the data is verified;
When being verified, the reforestation practices are restarted;
Under the reforestation practices, data update is carried out based on the file that updates the data.
6. a kind of data update apparatus, which is characterized in that described device includes:
Starting module, for starting reforestation practices;
Acquisition module, under the reforestation practices, obtaining pre-set network protocol stack, being wrapped in the network protocol stack
The Internet protocol data corresponding to file download function is included, and the network protocol stack is to being arranged under the normal mode of terminal
First network protocol stack carries out the network protocol stack obtained after simplifying;
The acquisition module is additionally operable to obtain the destination address for having stored the purpose equipment for updating the data file;
Download module downloads the update for being based on the network protocol stack and the destination address from the purpose equipment
Data file;
Update module carries out data update for being based on the file that updates the data.
7. device according to claim 6, which is characterized in that described device further includes:
The acquisition module is additionally operable to obtain the first network protocol stack, and the first network protocol stack is being used for terminal just
Under norm formula;
Extraction module is used for from the first network protocol stack, the Internet protocol data corresponding to extraction document download function;
Generation module, for according to the Internet protocol data, generating the second network protocol stack, then second network protocol stack
Data volume be less than the first network protocol stack data volume;
Memory module, for storing second network protocol stack into the corresponding memory space of the reforestation practices.
8. device according to claim 7, which is characterized in that the acquisition module is additionally operable to correspond to from the reforestation practices
Memory space in, load second network protocol stack.
9. device according to claim 6, which is characterized in that the acquisition module is additionally operable to obtain pre-set purpose
Address;Alternatively, operating according to the user's choice, a destination address is selected from pre-set multiple destination addresses.
10. device according to claim 6, which is characterized in that the update module is additionally operable to update the data text to described
Part is verified;When being verified, the reforestation practices are restarted;Under the reforestation practices, updated the data based on described
File carries out data update.
11. a kind of data update apparatus, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Start reforestation practices;
Under the reforestation practices, pre-set network protocol stack is obtained, the network protocol stack includes file download work(
The Internet protocol data corresponding to energy, and the network protocol stack is the first network agreement to being arranged under the normal mode of terminal
Stack carries out the network protocol stack obtained after simplifying;
Obtain the destination address for having stored the purpose equipment for updating the data file;
Based on the network protocol stack and the destination address, from the purpose equipment download described in update the data file;
Data update is carried out based on the file that updates the data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510369706.XA CN105099765B (en) | 2015-06-29 | 2015-06-29 | Data-updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510369706.XA CN105099765B (en) | 2015-06-29 | 2015-06-29 | Data-updating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105099765A CN105099765A (en) | 2015-11-25 |
CN105099765B true CN105099765B (en) | 2018-07-24 |
Family
ID=54579381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510369706.XA Active CN105099765B (en) | 2015-06-29 | 2015-06-29 | Data-updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105099765B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955831A (en) * | 2016-04-29 | 2016-09-21 | 乐视控股(北京)有限公司 | Data processing method and device under Recovery mode |
CN109218832B (en) * | 2018-07-26 | 2022-01-04 | 烽火通信科技股份有限公司 | Equipment upgrading method and system of set top box in recovery mode |
CN109275124B (en) * | 2018-08-24 | 2021-09-14 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal Bluetooth protocol stack loading processing method, mobile terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508734A (en) * | 2011-09-30 | 2012-06-20 | Tcl集团股份有限公司 | Operating system recovery method and intelligent equipment |
CN102802083A (en) * | 2012-08-24 | 2012-11-28 | 乐视网信息技术(北京)股份有限公司 | Set top box updating method based on Android system and set top box |
CN104461668A (en) * | 2015-01-04 | 2015-03-25 | 上海雷尼威尔技术有限公司 | User program upgrading method and system based on LWIP protocol stack |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI273383B (en) * | 2005-06-29 | 2007-02-11 | Inventec Corp | Computer platform system program remote control recovery method and system |
-
2015
- 2015-06-29 CN CN201510369706.XA patent/CN105099765B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508734A (en) * | 2011-09-30 | 2012-06-20 | Tcl集团股份有限公司 | Operating system recovery method and intelligent equipment |
CN102802083A (en) * | 2012-08-24 | 2012-11-28 | 乐视网信息技术(北京)股份有限公司 | Set top box updating method based on Android system and set top box |
CN104461668A (en) * | 2015-01-04 | 2015-03-25 | 上海雷尼威尔技术有限公司 | User program upgrading method and system based on LWIP protocol stack |
Also Published As
Publication number | Publication date |
---|---|
CN105099765A (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105094903B (en) | The method and device that firmware is upgraded | |
US10324707B2 (en) | Method, apparatus, and computer-readable storage medium for upgrading a ZigBee device | |
EP3151507B1 (en) | Methods and apparatuses for controlling device | |
CN106488335B (en) | Live-broadcast control method and device | |
CN104484200B (en) | The method and device upgraded to firmware | |
CN104469741A (en) | Terminal configuration method and device | |
CN104090785B (en) | Application program provides method, apparatus and system | |
KR101750455B1 (en) | Upgrading method, apparatus, device, program and recording medium | |
CN105450655A (en) | Device binding methods and apparatuses | |
CN104461666B (en) | The firmware upgrade method and device of equipment primary processor | |
CN103888290A (en) | Configuration information recovery method and device | |
CN105446768B (en) | Method for upgrading system and device | |
CN104618511A (en) | Intelligent device detection method and device | |
CN107315606A (en) | Using update method and device | |
KR101723501B1 (en) | Method and apparatus of downloading control program, program and recordign medium | |
CN105099765B (en) | Data-updating method and device | |
CN105183493A (en) | Display method and device of network information | |
EP3035646B1 (en) | Method and device for starting application | |
CN109814942A (en) | A kind of parameter processing method and device | |
CN106792892A (en) | The access control method and device of application program | |
CN105426210A (en) | Method and device for upgrading system | |
CN103902688A (en) | File operation synchronizing method and device | |
CN105677428A (en) | Upgrading method and device for terminal and terminal | |
CN104780256A (en) | Address book management method and device and intelligent terminal | |
CN114416127A (en) | Terminal software upgrading method, terminal software upgrading device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |