Summary of the invention
In view of this, the present disclosure proposes a kind of method for upgrading software and device, with solve the flexibility of software upgrading compared with
Low problem.
According to the disclosure in a first aspect, providing a kind of method for upgrading software, comprising:
It obtains the current version number of designated software and the designated software on terminal device and is directed to the terminal device
Gray-scale Control parameter, wherein the gray-scale Control parameter is used to carry out the target version of the designated software gray scale publication control
System;
The current version number and the gray-scale Control parameter are sent to server, to indicate described in server determination
The strategy of designated software described in updating terminal device, wherein the strategy is component upgrade, installation kit upgrading or does not upgrade;
Receive the strategy from the server;
The designated software is upgraded according to the strategy.
In one possible implementation, in the case where the current version number belongs to first version number set, institute
The strategy of designated software described in updating terminal device is stated as installation kit upgrading;
Belong to the second edition number set in the current version number, and the gray-scale Control parameter belongs to the first parameter area
In the case where, the strategy of designated software described in the updating terminal device is component upgrade;
Belong to the second edition number set in the current version number, and the gray-scale Control parameter belongs to the second parameter
In the case where range, the strategy of designated software described in the updating terminal device is not upgrade;
In the case where the current version number belongs to third version number set, specified described in the updating terminal device soft
The strategy of part is not upgrade.
In one possible implementation, the designated software is upgraded according to the strategy, comprising:
In the case where the strategy is component upgrade, the target version of the designated software is obtained from the server
Module information;
The designated software is upgraded into the target version according to the module information of the target version.
In one possible implementation, the module information includes the component Name of component, file name, component version
This number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software
At least one of in version number.
In one possible implementation, the gray-scale Control parameter is designated software described in the installing terminal equipment
When be recorded in random number in registration table.
According to the second aspect of the disclosure, a kind of method for upgrading software is provided, comprising:
It obtains the current version number of designated software and the designated software on terminal device and is directed to the terminal device
Gray-scale Control parameter, wherein the gray-scale Control parameter is used to carry out the target version of the designated software gray scale publication control
System;
According to the current version number and the gray-scale Control parameter, determine specified described in the updating terminal device it is soft
The strategy of part, wherein the strategy is component upgrade, installation kit upgrading or does not upgrade.
In one possible implementation, according to the current version number and the gray-scale Control parameter, institute is determined
State the strategy of designated software described in updating terminal device, comprising:
In the case where the current version number belongs to first version number set, finger described in the updating terminal device is determined
The strategy of software is determined for installation kit upgrading;
Belong to the second edition number set in the current version number, and the gray-scale Control parameter belongs to the first parameter area
In the case where, determine that the strategy of designated software described in the updating terminal device is component upgrade;
Belong to the second edition number set in the current version number, and the gray-scale Control parameter belongs to the second parameter
In the case where range, determine that the strategy of designated software described in the updating terminal device is not upgrade;
In the case where the current version number belongs to third version number set, finger described in the updating terminal device is determined
The strategy for determining software is not upgrade.
In one possible implementation, after the strategy for determining designated software described in the updating terminal device,
The method also includes:
In the case where the strategy is component upgrade, the module information of the target version of the designated software is obtained;
The module information of the target version is sent to the terminal device, to indicate the terminal device according to
The designated software is upgraded to the target version by the module information of target version.
In one possible implementation, the module information includes the component Name of component, file name, component version
This number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software
At least one of in version number.
In one possible implementation, the gray-scale Control parameter is designated software described in the installing terminal equipment
When be recorded in random number in registration table.
According to the third aspect of the disclosure, a kind of software updating apparatus is provided, comprising:
First obtains module, for obtaining the current version number of designated software and the designated software needle on terminal device
To the gray-scale Control parameter of the terminal device, wherein the gray-scale Control parameter is used for the target version to the designated software
The publication control of this progress gray scale;
First sending module, for the current version number and the gray-scale Control parameter to be sent to server, with
Indicate that server determines the strategy of designated software described in the updating terminal device, wherein the strategy is component upgrade, installation
Packet upgrading or not;
Receiving module, for receiving the strategy from the server;
Upgraded module, for being upgraded according to the strategy to the designated software.
In one possible implementation, in the case where the current version number belongs to first version number set, institute
The strategy of designated software described in updating terminal device is stated as installation kit upgrading;
Belong to the second edition number set in the current version number, and the gray-scale Control parameter belongs to the first parameter area
In the case where, the strategy of designated software described in the updating terminal device is component upgrade;
Belong to the second edition number set in the current version number, and the gray-scale Control parameter belongs to the second parameter
In the case where range, the strategy of designated software described in the updating terminal device is not upgrade;
In the case where the current version number belongs to third version number set, specified described in the updating terminal device soft
The strategy of part is not upgrade.
In one possible implementation, the upgraded module includes:
Acquisition submodule, for being obtained from the server described specified in the case where the strategy is component upgrade
The module information of the target version of software;
Upgrade submodule, for the designated software to be upgraded to the target according to the module information of the target version
Version.
In one possible implementation, the module information includes the component Name of component, file name, component version
This number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software
At least one of in version number.
In one possible implementation, the gray-scale Control parameter is designated software described in the installing terminal equipment
When be recorded in random number in registration table.
According to the fourth aspect of the disclosure, a kind of software updating apparatus is provided, comprising:
Second obtains module, for obtaining the current version number of designated software and the designated software needle on terminal device
To the gray-scale Control parameter of the terminal device, wherein the gray-scale Control parameter is used for the target version to the designated software
The publication control of this progress gray scale;
Determining module, for determining the terminal device according to the current version number and the gray-scale Control parameter
Upgrade the strategy of the designated software, wherein the strategy is component upgrade, installation kit upgrading or does not upgrade.
In one possible implementation, institute's determining module includes:
First determines submodule, for determining institute in the case where the current version number belongs to first version number set
The strategy of designated software described in updating terminal device is stated as installation kit upgrading;
Second determines submodule, for belonging to the second edition number set, and the gray-scale Control in the current version number
In the case that parameter belongs to the first parameter area, determine that the strategy of designated software described in the updating terminal device is component liter
Grade;
Third determines submodule, for belonging to the second edition number set, and the gray scale in the current version number
In the case that control parameter belongs to the second parameter area, determine that the strategy of designated software described in the updating terminal device is not rise
Grade;
4th determines submodule, for determining institute in the case where the current version number belongs to third version number set
The strategy for stating designated software described in updating terminal device is not upgrade.
In one possible implementation, described device further include:
Third obtains module, for obtaining the target of the designated software in the case where the strategy is component upgrade
The module information of version;
Second sending module, for the module information of the target version to be sent to the terminal device, to indicate
It states terminal device and the designated software is upgraded to by the target version according to the module information of the target version.
In one possible implementation, the module information includes the component Name of component, file name, component version
This number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software
At least one of in version number.
In one possible implementation, the gray-scale Control parameter is designated software described in the installing terminal equipment
When be recorded in random number in registration table.
According to the 5th of the disclosure the aspect, a kind of software updating apparatus is provided, comprising: processor;It is handled for storage
The memory of device executable instruction;Wherein, the processor is configured to executing the method for upgrading software of first aspect.
According to the 6th of the disclosure the aspect, a kind of software updating apparatus is provided, comprising: processor;It is handled for storage
The memory of device executable instruction;Wherein, the processor is configured to executing the method for upgrading software of second aspect.
According to the 7th of the disclosure the aspect, a kind of non-volatile computer readable storage medium storing program for executing is provided, is stored thereon with
Computer program instructions, wherein the software upgrading side of first aspect is realized when the computer program instructions are executed by processor
Method.
According to the eighth aspect of the disclosure, a kind of non-volatile computer readable storage medium storing program for executing is provided, is stored thereon with
Computer program instructions, wherein the software upgrading side of first aspect is realized when the computer program instructions are executed by processor
Method.
The current version that the method for upgrading software and device of all aspects of this disclosure pass through designated software on acquisition terminal device
This number and designated software are directed to the gray-scale Control parameter of the terminal device, and current version number and gray-scale Control parameter are sent
The plan from server is received to server to indicate that server determines the strategy of the updating terminal device designated software
Slightly, and designated software is upgraded according to the strategy, thus, it is possible to the current versions number according to designated software on terminal device
And designated software is directed to the gray-scale Control parameter of the terminal device, flexibly determines the strategy of updating terminal device designated software, from
And the flexibility of software upgrading can be greatly improved.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the disclosure will become
It is clear.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to attached drawing.It is identical in attached drawing
Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, giving numerous details in specific embodiment below to better illustrate the disclosure.
It will be appreciated by those skilled in the art that without certain details, the disclosure equally be can be implemented.In some instances, for
Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 1 shows the flow chart of the method for upgrading software according to one embodiment of the disclosure.This method can be applied to mobile phone,
The terminals such as tablet computer, laptop, PC (Personal Computer, personal computer) or wearable intelligent equipment
In equipment, it is not limited thereto.The present embodiment can be adapted for the software of all independent process forms, be not limited thereto.Such as
Shown in Fig. 1, the method comprising the steps of S11 to step S14.
In step s 11, the current version number of designated software and designated software on terminal device are obtained and is directed to the terminal
The gray-scale Control parameter of equipment, wherein gray-scale Control parameter is used to carry out the target version of designated software gray scale publication control.
Gray scale publication is a kind of published method that can be seamlessly transitted.Gray scale publication allows a part of user to continue to use software
Legacy version, another part user begins to use the new version of software.If using the user of new version to new version without what
Opposing views then gradually expand the number of users for using new version, until all users is allowed all to use new version.Gray scale publication can be with
The stabilization for guaranteeing total system issues initial stage in the gray scale of new version, it can be found that problem, solving the problems, such as, to reduce new edition
This loophole bring disturbance degree.
In the present embodiment, gray-scale Control parameter can be used to determine whether the designated software upgrading on the terminal device
To target version.For example, the value range of the gray-scale Control parameter of designated software is 1 to 100, designated software is set for the terminal
Standby gray-scale Control parameter is 23.
In one possible implementation, note is recorded in when gray-scale Control parameter is the installing terminal equipment designated software
Random number in volume table.It in this implementation, can taking in gray-scale Control parameter in installing terminal equipment designated software
It is worth in range, the random gray-scale Control parameter for generating designated software and being directed to the terminal device, and can be by the gray-scale Control parameter
It is recorded in registration table.
In step s 12, current version number and gray-scale Control parameter are sent to server, to indicate that server determines
The strategy of the updating terminal device designated software, wherein the strategy is component upgrade, installation kit upgrading or does not upgrade.
Wherein, the strategy not upgraded may be empty strategy.
In one possible implementation, in the case where current version number belongs to first version number set, the terminal
The strategy of device upgrade designated software is installation kit upgrading;Belong to the second edition number set, and gray-scale Control in current version number
In the case that parameter belongs to the first parameter area, the strategy of the updating terminal device designated software is component upgrade;In current version
In the case that this number belongs to the second edition number set, and gray-scale Control parameter belongs to the second parameter area, the updating terminal device
The strategy of designated software is not upgrade;In the case where current version number belongs to third version number set, the updating terminal device
The strategy of designated software is not upgrade.
For example, the version number of designated software includes 1.0,1.1,1.2,1.3 and 1.4.First version number set include 1.0,
1.1 and 1.2, the second edition number set includes 1.3, and third version number set includes 1.4.First parameter area is 1 to 50, second
Parameter area is 50 to 100.If current version number is 1.1, the strategy of the updating terminal device designated software is installation kit liter
Grade.If current version number is 1.3, and gray-scale Control parameter is 23, then the strategy of the updating terminal device designated software is component
Upgrading.If current version number is 1.3, and gray-scale Control parameter is 80, then the strategy of the updating terminal device designated software is not
Upgrading.If current version number is 1.4, the strategy of the updating terminal device designated software is not upgrade.
In one possible implementation, the operation system information of terminal device can also be obtained, it can be by the terminal
The operation system information of equipment is sent to server, to indicate current version number of the server according to the terminal device, gray scale control
Parameter and operation system information processed, determine the strategy of the updating terminal device designated software.For example, if being specified on terminal device soft
The current version number of part is 1.3, and gray-scale Control parameter is 23, and operating system is Windows7 or Windows8, then the end
The strategy that end equipment upgrades designated software is component upgrade.
In step s 13, the strategy from server is received.
As an example of the present embodiment, terminal device can be determined by the first interface of access server offer
The strategy of updating terminal device designated software.
In step S14, designated software is upgraded according to the strategy.
Fig. 2 shows the illustrative flow charts according to the method for upgrading software step S14 of one embodiment of the disclosure.Such as figure
Shown in 2, step S14 may include step S141 and step S142.
In step s 141, in the case where the strategy is component upgrade, the target version of designated software is obtained from server
This module information.
In the present embodiment, the module information of target version can indicate that target version is all different from current version
The information of component.
In one possible implementation, module information includes component Name, file name, the component version of component
Number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software version
At least one of in this number.For example, process identification (PID) may include A and B, wherein after A can indicate that desktop process, B can indicate
Platform assisted process.Process identification (PID) in module information can be one, or multiple.Store path can be opposite storage
Path.Process identification (PID) can come together the storage location of positioning component with storage path.For example, the corresponding upgrading catalogue of process A
For %appdata% youku upgrade 1.0.0.2 A, the corresponding upgrading catalogue of process B be %appdata%
youku\upgrade\1.0.0.2\B.If file f .txt belongs to process A, and opposite store path is app, then file
The storage location of f.txt be %appdata% youku upgrade 1.0.0.2 A app f.txt.If file f .txt returns
Belong to process B, and opposite store path is app, then the storage location of file f .txt be %appdata% youku
upgrade\1.0.0.2\B\app\f.txt.The type of component content may include file (complete file), binary (two into
Differential file processed) and zip (compressed file) etc..Update mode may include silent update, force to update and prompt to update.Example
Such as, the silent update updated is identified as 1, and the update updated is forced to be identified as 2, and the update updated is prompted to be identified as 3.Digital signature
Can be MD5 (Message Digest Algorithm, Message Digest Algorithm 5).Channel number can refer to installation channel
Internal number.
Wherein, version component version number and software version number can be the pass of one-to-one, one-to-many, many-one or multi-to-multi
System, to support the upgrading configuration of the upgrading configuration of multiple components of a version and multiple components of multiple versions
As an example of the implementation, module information includes component Name, file name, the component version of component
Number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software version
This number.For example, component Name be User, file name User.dll, version component version number 1.0.0.1, process identification (PID) A,
Store path is plugins, content file, update mode 1, software version number 7.0.102.
As another example of the implementation, module information includes the component Name of component, file name, component version
This number, process identification (PID), store path, the type of component content, update mode, digital signature, download address and software version number.
As an example of the present embodiment, terminal device can be obtained by the second interface of access server offer
The module information of the target version of designated software.
In step S142, designated software is upgraded to by target version according to the module information of target version.
The present embodiment is directed to the terminal by obtaining the current version number of designated software and designated software on terminal device
Current version number and gray-scale Control parameter are sent to server by the gray-scale Control parameter of equipment, to indicate that server determines
The strategy of the updating terminal device designated software receives the strategy from server, and according to the strategy to designated software
Upgraded, thus, it is possible to be directed to the terminal device according to the current version number and designated software of designated software on terminal device
Gray-scale Control parameter determines the strategy of updating terminal device designated software, flexibly so as to greatly improve the spirit of software upgrading
Activity.
Fig. 3 shows the flow chart of the method for upgrading software according to one embodiment of the disclosure.This method can be applied to service
In device.As shown in figure 3, the method comprising the steps of S31 and step S32.
In step S31, obtains the current version number of designated software and designated software on terminal device and be directed to the terminal
The gray-scale Control parameter of equipment, wherein gray-scale Control parameter is used to carry out the target version of designated software gray scale publication control.
In step s 32, according to current version number and gray-scale Control parameter, the updating terminal device designated software is determined
Strategy, wherein the strategy be component upgrade, installation kit upgrading or do not upgrade.
In one possible implementation, it is soft can to determine that the updating terminal device is specified by first interface for server
The strategy of part.
In one possible implementation, according to current version number and gray-scale Control parameter, the terminal device is determined
Upgrade the strategy of designated software, comprising: in the case where current version number belongs to first version number set, determine the terminal device
Upgrade the strategy of designated software as installation kit upgrading;Belong to the second edition number set, and gray-scale Control parameter in current version number
In the case where belonging to the first parameter area, determine that the strategy of the updating terminal device designated software is component upgrade;In current version
In the case that this number belongs to the second edition number set, and gray-scale Control parameter belongs to the second parameter area, the terminal device is determined
The strategy of upgrading designated software is not upgrade;In the case where current version number belongs to third version number set, the terminal is determined
The strategy of device upgrade designated software is not upgrade.
In one possible implementation, the operation system information of terminal device can also be obtained, and can be according to this
Current version number, gray-scale Control parameter and the operation system information of terminal device, determine the updating terminal device designated software
Strategy.
Fig. 4 shows an illustrative flow chart of the method for upgrading software according to one embodiment of the disclosure.As shown in figure 4,
The method comprising the steps of S31 to step S34.
In step S31, obtains the current version number of designated software and designated software on terminal device and be directed to the terminal
The gray-scale Control parameter of equipment, wherein gray-scale Control parameter is used to carry out the target version of designated software gray scale publication control.
In one possible implementation, note is recorded in when gray-scale Control parameter is the installing terminal equipment designated software
Random number in volume table.
In step s 32, according to current version number and gray-scale Control parameter, the updating terminal device designated software is determined
Strategy, wherein the strategy be component upgrade, installation kit upgrading or do not upgrade.
In step S33, in the case where the strategy is component upgrade, the component letter of the target version of designated software is obtained
Breath.
In the present embodiment, the module information of target version can indicate that target version is all different from current version
The information of component.
In one possible implementation, server can pass through second interface storage configuration list, the configured list
May include designated software multiple versions it is corresponding upgrading in need module information.
In one possible implementation, module information includes component Name, file name, the component version of component
Number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software version
At least one of in this number.
In step S34, the module information of target version is sent to the terminal device, with indicate the terminal device according to
Designated software is upgraded to target version by the module information of target version.
The present embodiment is directed to the terminal by obtaining the current version number of designated software and designated software on terminal device
The gray-scale Control parameter of equipment, and according to current version number and gray-scale Control parameter, it is soft to determine that the updating terminal device is specified
The strategy of part, thus, it is possible to be directed to the terminal device according to the current version number and designated software of designated software on terminal device
Gray-scale Control parameter determines the strategy of updating terminal device designated software, flexibly so as to greatly improve the spirit of software upgrading
Activity.
Fig. 5 shows the block diagram of the software updating apparatus according to one embodiment of the disclosure.As shown in figure 5, the device includes:
One obtains module 51, is directed to the end for obtaining the current version number of designated software and the designated software on terminal device
The gray-scale Control parameter of end equipment, wherein the gray-scale Control parameter is used to carry out ash to the target version of the designated software
Degree publication control;First sending module 52, for the current version number and the gray-scale Control parameter to be sent to service
Device, to indicate that server determines the strategy of designated software described in the updating terminal device, wherein the strategy is component liter
Grade, installation kit upgrading or not;Receiving module 53, for receiving the strategy from the server;Upgrade mould
Block 54, for being upgraded according to the strategy to the designated software.
In one possible implementation, in the case where the current version number belongs to first version number set, institute
The strategy of designated software described in updating terminal device is stated as installation kit upgrading;Belong to the second edition number collection in the current version number
It closes, and in the case that the gray-scale Control parameter belongs to the first parameter area, designated software described in the updating terminal device
Strategy is component upgrade;Belong to the second edition number set in the current version number, and the gray-scale Control parameter belongs to
In the case where second parameter area, the strategy of designated software described in the updating terminal device is not upgrade;In the current version
In the case that this number belongs to third version number set, the strategy of designated software described in the updating terminal device is not upgrade.
Fig. 6 shows an illustrative block diagram of the software updating apparatus according to one embodiment of the disclosure.It is as shown in Figure 6:
In one possible implementation, the upgraded module 54 includes: acquisition submodule 541, in the plan
Slightly in the case where component upgrade, the module information of the target version of the designated software is obtained from the server;Upgrading
Module 542, for the designated software to be upgraded to the target version according to the module information of the target version.
In one possible implementation, the module information includes the component Name of component, file name, component version
This number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software
At least one of in version number.
In one possible implementation, the gray-scale Control parameter is designated software described in the installing terminal equipment
When be recorded in random number in registration table.
The present embodiment is directed to the terminal by obtaining the current version number of designated software and designated software on terminal device
Current version number and gray-scale Control parameter are sent to server by the gray-scale Control parameter of equipment, to indicate that server determines
The strategy of the updating terminal device designated software receives the strategy from server, and according to the strategy to designated software
Upgraded, thus, it is possible to be directed to the terminal device according to the current version number and designated software of designated software on terminal device
Gray-scale Control parameter determines the strategy of updating terminal device designated software, flexibly so as to greatly improve the spirit of software upgrading
Activity.
Fig. 7 shows the block diagram of the software updating apparatus according to one embodiment of the disclosure.As shown in fig. 7, the device includes:
Two obtain module 71, are directed to the end for obtaining the current version number of designated software and the designated software on terminal device
The gray-scale Control parameter of end equipment, wherein the gray-scale Control parameter is used to carry out ash to the target version of the designated software
Degree publication control;Determining module 72, for determining the terminal according to the current version number and the gray-scale Control parameter
The strategy of designated software described in device upgrade, wherein the strategy is component upgrade, installation kit upgrading or does not upgrade.
Fig. 8 shows an illustrative block diagram of the software updating apparatus according to one embodiment of the disclosure.It is as shown in Figure 8:
In one possible implementation, institute's determining module 72 includes: the first determining submodule 721, for described
In the case that current version number belongs to first version number set, determine that the strategy of designated software described in the updating terminal device is
Installation kit upgrading;Second determines submodule 722, for belonging to the second edition number set, and the ash in the current version number
In the case that degree control parameter belongs to the first parameter area, determine that the strategy of designated software described in the updating terminal device is group
Part upgrading;Third determines submodule 723, for belonging to the second edition number set, and the ash in the current version number
In the case that degree control parameter belongs to the second parameter area, determine that the strategy of designated software described in the updating terminal device is not
Upgrading;4th determines submodule 724, for determining institute in the case where the current version number belongs to third version number set
The strategy for stating designated software described in updating terminal device is not upgrade.
In one possible implementation, described device further include: third obtains module 73, for being in the strategy
In the case where component upgrade, the module information of the target version of the designated software is obtained;Second sending module 74 is used for institute
The module information for stating target version is sent to the terminal device, to indicate the terminal device according to the group of the target version
The designated software is upgraded to the target version by part information.
In one possible implementation, the module information includes the component Name of component, file name, component version
This number, process identification (PID), store path, the type of component content, update mode, digital signature, download address, channel number and software
At least one of in version number.
In one possible implementation, the gray-scale Control parameter is designated software described in the installing terminal equipment
When be recorded in random number in registration table.
The present embodiment is directed to the terminal by obtaining the current version number of designated software and designated software on terminal device
The gray-scale Control parameter of equipment, and according to current version number and gray-scale Control parameter, it is soft to determine that the updating terminal device is specified
The strategy of part, thus, it is possible to be directed to the terminal device according to the current version number and designated software of designated software on terminal device
Gray-scale Control parameter determines the strategy of updating terminal device designated software, flexibly so as to greatly improve the spirit of software upgrading
Activity.
Fig. 9 is a kind of block diagram of device 800 for software upgrading shown according to an exemplary embodiment.For example, dress
Setting 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 9, device 800 may include following one or more components: processing component 802, memory 804, power supply
Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (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 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system
System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 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 808 includes a front camera and/or rear camera.When device 800 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 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set
Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device
Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 814 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 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 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 800 can be believed by one or more 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 the above method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating
The memory 804 of machine program instruction, above-mentioned computer program instructions can be executed above-mentioned to complete by the processor 820 of device 800
Method.
Figure 10 is a kind of block diagram of device 1900 for software upgrading shown according to an exemplary embodiment.For example,
Device 1900 may be provided as a server.Referring to Fig.1 0, it further comprises one that device 1900, which includes processing component 1922,
A or multiple processors and memory resource represented by a memory 1932, can be by processing component 1922 for storing
The instruction of execution, such as application program.The application program stored in memory 1932 may include one or more every
One corresponds to the module of one group of instruction.In addition, processing component 1922 is configured as executing instruction, to execute the above method.
Device 1900 can also include that a power supply module 1926 be configured as the power management of executive device 1900, and one
Wired or wireless network interface 1950 is configured as device 1900 being connected to network and input and output (I/O) interface
1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating
The memory 1932 of machine program instruction, above-mentioned computer program instructions can be executed by the processing component 1922 of device 1900 to complete
The above method.
The disclosure can be system, method and/or computer program product.Computer program product may include computer
Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment
Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage
Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium
More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits
It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable
Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon
It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above
Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to
It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire
Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/
Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network
Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing disclosure operation can be assembly instruction, instruction set architecture (ISA) instructs,
Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages
The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as
Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer
Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one
Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part
Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions
Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can
Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the disclosure
Face.
Referring herein to according to the flow chart of the method, apparatus (system) of the embodiment of the present disclosure and computer program product and/
Or block diagram describes various aspects of the disclosure.It should be appreciated that flowchart and or block diagram each box and flow chart and/
Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas
The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas
When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced
The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to
It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction
Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram
The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other
In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce
Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment
Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show system, method and the computer journeys according to multiple embodiments of the disclosure
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use
The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or lead this technology
Other those of ordinary skill in domain can understand each embodiment disclosed herein.