CN106775641A - Oftware updating method and smart machine - Google Patents

Oftware updating method and smart machine Download PDF

Info

Publication number
CN106775641A
CN106775641A CN201611042991.5A CN201611042991A CN106775641A CN 106775641 A CN106775641 A CN 106775641A CN 201611042991 A CN201611042991 A CN 201611042991A CN 106775641 A CN106775641 A CN 106775641A
Authority
CN
China
Prior art keywords
software
submodule
data
updated
unique mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611042991.5A
Other languages
Chinese (zh)
Inventor
林尚波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611042991.5A priority Critical patent/CN106775641A/en
Publication of CN106775641A publication Critical patent/CN106775641A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention is applied to the communications field, there is provided a kind of Oftware updating method and smart machine.Methods described includes:Set up with upgrade server after being connected, obtain the unique mark that the submodule of the software of the upgrade server storage is updated the data;Obtain the unique mark of the submodule of mounted software;When the unique mark that the submodule of the software for obtaining is updated the data is different from the unique mark of the submodule of the mounted software for obtaining, the submodule for storing the software is updated the data, to realize the renewal of mounted software.Being capable of significant increase software upgrading speed by the above method.

Description

Oftware updating method and smart machine
Technical field
The embodiment of the present invention belongs to the communications field, more particularly to a kind of Oftware updating method and smart machine.
Background technology
Nowadays, the software of most of smart machine (such as mobile phone, computer, player and various internet of things equipment) is equal Scalable renewal, software can upgrade and be updated to the approach that producer provides constantly improve software function and stability, that should offset The demand of the person's of expense change.
In existing Oftware updating method, except it is traditional by USB flash disk access or be connected to smart machine, further according to USB flash disk The software update data of storage is performed and updated outside operation, can also update (as upgraded) file by Network Capture directly perform Software upgrading is operated.But either updated by USB flash disk or updated by network, be required for all downloading whole software upgrading bag The renewal of software is carried out again, therefore causes the speed for updating excessively slow.
The content of the invention
The embodiment of the invention provides a kind of Oftware updating method and smart machine, it is intended to solve existing software upgrading side Method needs all to download whole software upgrading bags and carries out the renewal of software again, and so as to cause, the speed of software upgrading is excessively slow to ask Topic.
The first aspect of the embodiment of the present invention, there is provided a kind of Oftware updating method, methods described includes:
Set up with upgrade server after be connected, obtain what the submodule of the software that the upgrade server is stored was updated the data Unique mark;
Obtain the unique mark of the submodule of mounted software;
The unique mark and the submodule of the mounted software for obtaining updated the data in the submodule of the software for obtaining When unique mark is different, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
The second aspect of the embodiment of the present invention, there is provided a kind of smart machine, the smart machine includes:
The fresh information acquiring unit of upgrade server, after being connected with upgrade server foundation, obtains the upgrading The unique mark that the submodule of the software of server storage is updated the data;
Mounted submodule information acquisition unit, the unique mark of the submodule for obtaining mounted software;
Software upgrading unit, for the unique mark updated the data in the submodule of the software for obtaining and the installation for obtaining Software submodule unique mark it is different when, the submodule for storing the software is updated the data, mounted soft to realize The renewal of part.
The third aspect of the embodiment of the present invention, there is provided a kind of smart machine, the smart machine includes:
Processor,
The processor, after being connected with upgrade server foundation, obtains the software of the upgrade server storage The unique mark that submodule is updated the data;Obtain the unique mark of the submodule of mounted software;In the son of the software for obtaining When the unique mark that module is updated the data is different from the unique mark of the submodule of the mounted software for obtaining, store described soft The submodule of part is updated the data, to realize the renewal of mounted software.
In embodiments of the present invention, updated the data by storing the submodule of software due to only and realize mounted software Update, therefore, when certain module of only software needs to update, the data without updating mounted whole software, so that Significant increase software upgrading speed.
Brief description of the drawings
Fig. 1 is a kind of flow chart of Oftware updating method that first embodiment of the invention is provided;
Fig. 2 is a kind of structure chart of smart machine that second embodiment of the invention is provided;
Fig. 3 is a kind of block diagram of the part-structure of the mobile phone of smart machine correlation that third embodiment of the invention is provided;
Fig. 4 is a kind of schematic block diagram of smart machine that fourth embodiment of the invention is provided.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
In first embodiment of the invention, set up with upgrade server after being connected, obtain the soft of the upgrade server storage The unique mark that the submodule of part is updated the data, obtains the unique mark of the submodule of mounted software, in the software for obtaining The unique mark that updates the data of submodule it is different from the unique mark of the submodule of the mounted software for obtaining when, storage institute The submodule for stating software is updated the data, to realize the renewal of mounted software.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of flow chart of Oftware updating method that first embodiment of the invention is provided, and details are as follows:
Step S11, sets up after being connected with upgrade server, obtains the submodule of software of the upgrade server storage more The unique mark of new data.
Wherein, in advance by the upgrade file of software, according to can standalone upgrade module, split into some height upgrading texts Part, every sub- upgrade file storage is that a submodule of software is updated the data.Such as, the software of smart machine, Ke Yihua It is divided into M1, M2, M3 of available standalone upgrade totally three modules.Can then upgrade file be split into can be applied independently in module Three sub- upgrade file M1 ', the M2 ' and M3 ' of M1, M2 and M3.In order to distinguish the different submodules of different software (or same software) Block is updated the data, it is necessary to update the data setting unique mark to different submodules, and the unique mark that submodule is updated the data can be with It is the marks such as artificial title, the symbol for setting, certainly, in order to avoid there is the artificial situation for omitting name and lifting name speed Degree, improves name speed, the digital digest that each submodule is updated the data can be generated by HASH algorithms, due to the numeral for generating Summary is unique, therefore, the unique mark that the digital digest of generation can be updated the data as submodule.
Further, upgrade server can directly store difference when the submodule for storing each software is updated the data The submodule of software is updated the data, it is also possible to is updated the data the submodule of different software and carry out according to whether belonging to same software Classification storage, for example, the submodule that will belong to same software updates the data storage presss from both sides interior in same file.
In the step, after smart machine and upgrade server are set up and be connected, acquisition request upgrade server can be sent The unique mark that the submodule of all softwares of storage is updated the data, it is of course also possible to the submodule for obtaining designated software updates The unique mark of data.
Step S12, obtains the unique mark of the submodule of mounted software.
Specifically, smart machine obtains the unique mark of the submodule installed in all softwares of its own, certainly, in order to Reduce follow-up amount of calculation, smart machine can also only obtain installed in a software specified of its own submodule only One mark, a software specified is the software for needing upgrading to update, and specifically, the upgrading that can be sent according to user updates and refers to The software information for carrying is made to judge which kind of software user need to update.
Alternatively, the unique mark that the submodule of the software is updated the data is that the numeral generated using HASH algorithms is plucked Will, now, the step S12 includes:
A1, the unique mark updated the data according to the submodule of the software for obtaining determine the unique mark of software.Wherein, it is soft The unique mark of part can be the identifiers such as dbase, or using the digital digest of HASH algorithms generation, due to number Word summary is automatically generated by HASH algorithms, it is therefore not necessary to artificial participate in, reduces operating procedure, it is to avoid artificial leakage operation, So as to improve formation efficiency.
A2, the submodule that same software includes is determined according to the unique mark of software for determining.Specifically, according to software Unique mark can determine corresponding software, and then can determine which submodule the software includes.
A3, calculated using the HASH same with the unique mark that updates the data of submodule of upgrade server generation software The unique mark of the submodule that the same software that method generation determines includes.When certain submodule of software needs upgrading, show The corresponding data of each submodule of software are written to the local non-volatile memories of the smart machine before smart machine In device (such as FLASH or hard disk).Therefore, by reading the submodule number of the software in the local nonvolatile memory of smart machine According to, it is also possible to upgrade file (i.e. one reversible process) is reduced, number is updated using the submodule with upgrade server generation software According to the same HASH algorithms of unique mark, obtain the data summarization of the submodule number evidence of the software of reduction.
In above-mentioned A1~A3, determine that the submodule of the software obtained from upgrade server updates number first due to smart machine According to unique mark belong to the submodule that determines its same software installed after which software again, therefore, after greatly reducing Workload needed for the unique mark of the submodule number evidence of the continuous software for calculating.
Step S13, in the submodule of the software for the obtaining unique mark for updating the data and the mounted software for obtaining When the unique mark of submodule is different, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
In the step, because the submodule of the usually newest software of upgrade server storage is updated the data, therefore, when Smart machine judges the submodule of the software that the unique mark that the submodule of the software for obtaining is updated the data is installed with its own Unique mark it is different when, judge that its own software installed needs upgrading, now, the software that storage is obtained from upgrade server Submodule update the data so that realize correspondence software renewal.Certainly, if smart machine judges the submodule of the software for obtaining When the unique mark that block is updated the data is identical with the unique mark of the submodule of the software that its own is installed, then not by the son of software Module is updated the data in the local nonvolatile memory of write-in.
Alternatively, in order to the software of smoothly renewal smart machine, then the step S13 is specifically included:
B1, the software for obtaining the unique mark that updates the data of submodule and the mounted software for obtaining submodule Unique mark it is different when, obtain the mount message that the submodule of the software of the upgrade server storage is updated the data, The mount message includes the configuration information of CPU and/or bluetooth.Specifically, stored and software in upgrade server in advance Submodule updates the data corresponding mount message, and the mount message includes central processing unit (Central Processing Unit, CPU) configuration information and/or bluetooth configuration information.
B2, the configuration information for obtaining smart machine, the configuration information include the CPU of smart machine and/or matching somebody with somebody for bluetooth Confidence ceases.
B3, smart machine configuration information with obtain the upgrade server storage the software submodule more When the mount message of new data is matched, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
In above-mentioned B1~B3, when the configuration information of smart machine is matched (for example with the mount message that submodule is updated the data The configuration of the CPU of smart machine is higher than configuration of the mount message to CPU, and/or, the bluetooth configuration of smart machine is believed higher than installation Cease configuration to bluetooth) when, show that smart machine can smoothly store the submodule of software and update the data, and realize to software Upgrading, otherwise, shows that smart machine can not smoothly realize the upgrading to software.After software upgrading, it may need higher CPU (and/or bluetooth) configuration support could normally run, therefore, before software upgrading, judge that smart machine is current and match somebody with somebody Put whether to be matched with mount message and can improve the success rate that can subsequent software upgrade.
Alternatively, the mount message includes free memory, and now, the B3 includes:
The submodule of B31, the software stored with the upgrade server of acquisition in the configuration information of smart machine Whether when the mount message for updating the data is matched, judge the free memory of smart machine includes more than or equal to the mount message Free memory.It is pointed out that the free memory of smart machine refers to after being updated the data according to the submodule of software here, The free memory of smart machine.
B32, smart machine free memory include more than or equal to the mount message free memory when, store institute The submodule for stating software is updated the data, to realize the renewal of mounted software.
Alternatively, when the free memory of smart machine is less than the free memory that the mount message includes, institute is not stored The submodule for stating software is updated the data.
After software upgrading, operation upgrading after software when there may be certain data, therefore, if smart machine is deposited Stored up software submodule update the data after, remaining free memory is not deposited then less than the free memory that mount message includes The submodule for storing up software is updated the data, i.e., do not carry out the upgrading of software, in order to avoid the current runnability of influence smart machine.When So, if after smart machine judges that the submodule for storing software is updated the data, free memory includes less than mount message Free memory, then send prompting, so that user chooses whether to delete the information for having stored.
In first embodiment of the invention, set up with upgrade server after being connected, obtain the soft of the upgrade server storage The unique mark that the submodule of part is updated the data, obtains the unique mark of the submodule of mounted software, in the software for obtaining The unique mark that updates the data of submodule it is different from the unique mark of the submodule of the mounted software for obtaining when, storage institute The submodule for stating software is updated the data, to realize the renewal of mounted software.Due to only by the submodule that stores software more New data realizes the renewal of mounted software, therefore, when certain module of only software needs to update, pacify without updating The data of the whole software of dress, so that significant increase software upgrading speed.
It should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the elder generation of execution sequence Afterwards, the execution sequence of each process should be with its function and internal logic determination, the implementation process structure without tackling the embodiment of the present invention Into any restriction.
Embodiment two:
Fig. 2 shows a kind of structure chart of smart machine that second embodiment of the invention is provided, and the smart machine can be wrapped The user equipment communicated with one or more core nets through wireless access network RAN is included, the user equipment can be mobile electricity Words (or being " honeycomb " phone), the computer with mobile device etc., for example, user equipment can also be portable, pocket Formula, hand-held, built-in computer or vehicle-mounted mobile device, they exchange voice and/or data with wireless access network.Again For example, the mobile device can include smart mobile phone, panel computer, personal digital assistant PDA, point-of-sale terminal POS or vehicle mounted electric Brain etc..For convenience of description, illustrate only the part related to the embodiment of the present invention.
The smart machine includes:The fresh information acquiring unit 21 of upgrade server, mounted submodule block message are obtained Take unit 22, software upgrading unit 23.Wherein:
The fresh information acquiring unit 21 of upgrade server, after being connected with upgrade server foundation, obtains the liter The unique mark that the submodule of the software of level server storage is updated the data.
Wherein, in advance by the upgrade file of software, according to can standalone upgrade module, split into some height upgrading texts Part, every sub- upgrade file storage is that a submodule of software is updated the data.It is (or same soft in order to distinguish different software Part) different submodules update the data, it is necessary to update the data setting unique mark to different submodules, what submodule was updated the data Unique mark can be the marks such as artificial title, symbol for setting, certainly, in order to avoid occur the artificial situation for omitting name with And lifting name speed, name speed is improved, the digital digest that each submodule is updated the data can be generated by HASH algorithms, by In the digital digest of generation be unique, therefore, the unique mark that the digital digest of generation can be updated the data as submodule.
Further, upgrade server can directly store difference when the submodule for storing each software is updated the data The submodule of software is updated the data, it is also possible to is updated the data the submodule of different software and carry out according to whether belonging to same software Classification storage.
After smart machine and upgrade server are set up and be connected, all of acquisition request upgrade server storage can be sent The unique mark that the submodule of software is updated the data, it is of course also possible to the submodule for obtaining designated software update the data it is unique Mark.
Mounted submodule information acquisition unit 22, the unique mark of the submodule for obtaining mounted software.
Specifically, smart machine obtains the unique mark of the submodule installed in all softwares of its own, certainly, in order to Reduce follow-up amount of calculation, smart machine can also only obtain installed in a software specified of its own submodule only One mark, a software specified is the software for needing upgrading to update, and specifically, the upgrading that can be sent according to user updates and refers to The software information for carrying is made to judge which kind of software user need to update.
Alternatively, the unique mark that the submodule of the software is updated the data is that the numeral generated using HASH algorithms is plucked Will, now, the mounted submodule information acquisition unit 22 includes:
Software determining module, the unique mark for being updated the data according to the submodule of the software for obtaining determines software only One mark.Wherein, the unique mark of software can be the identifiers such as dbase, or using the number of HASH algorithms generation Word is made a summary, and because digital digest is automatically generated by HASH algorithms, it is therefore not necessary to artificial participate in, reduces operating procedure, is kept away Manpower-free's leakage operation, so as to improve formation efficiency.
The submodule determining module that software includes, for determining that same software includes according to the unique mark of the software for determining Submodule.
The unique mark generation module of submodule, for being updated using the submodule with upgrade server generation software The unique mark of the submodule that the same software that the same HASH algorithms generation of the unique mark of data determines includes.
In above-mentioned software determining module, the submodule determining module that software includes, the unique mark generation module of submodule, Determine which the unique mark that the submodule of the software obtained from upgrade server is updated the data belongs to first due to smart machine The submodule of its same software installed is determined after individual software again, therefore, greatly reduce the submodule of the software of follow-up calculating Workload needed for the unique mark of data.
Software upgrading unit 23, for the unique mark updated the data in the submodule of the software for obtaining and the peace for obtaining When the unique mark of the submodule of the software of dress is different, the submodule for storing the software is updated the data, mounted to realize The renewal of software.
If smart machine judges that the unique mark that the submodule of the software for obtaining is updated the data is soft with what its own was installed When the unique mark of the submodule of part is identical, then the submodule of software the local nonvolatile memory of write-in is not updated the data into In.
Alternatively, in order to the software of smoothly renewal smart machine, the software upgrading unit 23 includes:
Mount message acquisition module, for the unique mark updated the data in the submodule of the software for obtaining and acquisition When the unique mark of the submodule of the software of installation is different, the submodule of the software of the upgrade server storage is obtained more The mount message of new data, the mount message includes the configuration information of CPU and/or bluetooth.
Configuration information acquisition module, the configuration information for obtaining smart machine, the configuration information includes smart machine CPU and/or bluetooth configuration information.
Configuration information comparison module, for the configuration information in smart machine and the upgrade server storage for obtaining When the mount message that the submodule of the software is updated the data is matched, the submodule for storing the software is updated the data, to realize The renewal of mounted software.
After software upgrading, it may need CPU (and/or bluetooth) higher to configure support could normally run, because This, before software upgrading, judging whether the current configuration of smart machine matches with mount message can improve subsequent software energy The success rate of no upgrading.
Alternatively, the mount message includes free memory, and now, the configuration information comparison module includes:
Free memory judge module, for the configuration information in smart machine and the upgrade server storage for obtaining When the mount message that the submodule of the software is updated the data is matched, judge whether the free memory of smart machine is more than or equal to The free memory that the mount message includes.It is pointed out that the free memory of smart machine refers to according to software here After submodule is updated the data, the free memory of smart machine.
Software upgrading module, it is available more than or equal to what the mount message included for the free memory in smart machine During internal memory, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
Alternatively, the smart machine includes:
Software suspends updating block, available interior less than what the mount message included for the free memory in smart machine When depositing, the submodule that the software is not stored is updated the data.
After software upgrading, operation upgrading after software when there may be certain data, therefore, if smart machine is deposited Stored up software submodule update the data after, remaining free memory is not deposited then less than the free memory that mount message includes The submodule for storing up software is updated the data, i.e., do not carry out the upgrading of software, in order to avoid the current runnability of influence smart machine.When So, if after smart machine judges that the submodule for storing software is updated the data, free memory includes less than mount message Free memory, then send prompting, so that user chooses whether to delete the information for having stored.
In second embodiment of the invention, updated the data by storing the submodule of software due to only and realize mounted software Renewal, therefore, certain module of only software need update when, the data without updating mounted whole software, from And significant increase software upgrading speed.
Embodiment three:
Fig. 3 is illustrated that the frame of the part-structure of the mobile phone related to the smart machine of third embodiment of the invention offer Figure.With reference to Fig. 3, mobile phone includes:It is radio frequency (Radio Frequency, RF) circuit 310, memory 320, input block 330, aobvious Show the parts such as unit 340, sensor 350, voicefrequency circuit 360, wireless module 370, processor 380 and power supply 390.Ability Field technique personnel are appreciated that the handset structure shown in Fig. 3 does not constitute the restriction to mobile phone, can include more more than illustrating Or less part, or some parts are combined, or different part arrangements.
Each component parts of mobile phone is specifically introduced with reference to Fig. 3:
RF circuits 310 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, processed to processor 380;In addition, up data is activation will be designed to base station.Generally, RF circuits bag Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuits 310 can also be communicated by radio communication with network and other equipment. Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 320 can be used to store software program and module, and processor 380 is by running storage in memory 320 Software program and module, so as to perform various function application and the data processing of mobile phone.Memory 320 can mainly include Storing program area and storage data field, wherein, the application journey that storing program area can be needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored and use what is created according to mobile phone Data (such as voice data, phone directory etc.) etc..Additionally, memory 320 can include high-speed random access memory, can be with Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-states Part.
Input block 330 can be used to receive the numeral or character information of input, and generation is set with the user of mobile phone 300 And the relevant key signals input of function control.Specifically, input block 330 may include contact panel 331 and other inputs Equipment 332.Contact panel 331, also referred to as touch-screen, user can be collected thereon or neighbouring touch operation (such as user makes With the operation of any suitable object such as finger, stylus or annex on contact panel 331 or near contact panel 331), and Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 331 may include touch detecting apparatus and touch Touch two parts of controller.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the letter that touch operation brings Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give processor 380, and the order sent of receiving processor 380 and can be performed.Furthermore, it is possible to using The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave realize contact panel 331.It is defeated except contact panel 331 Entering unit 330 can also include other input equipments 332.Specifically, other input equipments 332 can include but is not limited to physics One or more in keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 340 can be used for show by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 340 may include display panel 341, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 341.Further, contact panel 331 can cover display panel 341, when contact panel 331 detect it is thereon or attached After near touch operation, processor 380 is sent to determine the type of touch event, with preprocessor 880 according to touch event Type corresponding visual output is provided on display panel 341.Although in figure 3, contact panel 331 and display panel 341 It is input and the input function that mobile phone is realized as two independent parts, but in some embodiments it is possible to by touch-control Panel 331 and display panel 341 be integrated and input that realize mobile phone and output function.
Mobile phone 300 may also include at least one sensor 350, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 341, and proximity transducer can close display panel when mobile phone is moved in one's ear 341 and/or backlight.Used as one kind of motion sensor, (generally three axles) add in the detectable all directions of accelerometer sensor The size of speed, can detect that size and the direction of gravity when static, can be used to recognize application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 360, loudspeaker 361, microphone 362 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data conversion that road 360 will can receive, is transferred to loudspeaker 361, and sound is converted to by loudspeaker 361 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 362, is turned after being received by voicefrequency circuit 360 It is changed to voice data, then after voice data output processor 380 is processed, through RF circuits 310 to be sent to such as another mobile phone, Or export to memory 320 so as to further treatment voice data.
Wireless module is based on short range wireless transmission technology, and mobile phone can help user to receive and dispatch electricity by wireless module 370 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 3 shows Go out wireless module 370, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 300, completely can be as needed Omitted in the essential scope for do not change invention.
Processor 380 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform software program of the storage in memory 320 and/or module, and call storage in memory 320 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 380 can be wrapped Include one or more processing units;Preferably, processor 380 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly processed with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 380.
Mobile phone 300 also includes the power supply 390 (such as battery) powered to all parts, it is preferred that power supply can be by electricity Management system is logically contiguous with processor 380, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
Although not shown, mobile phone 300 can also will not be repeated here including camera, bluetooth module etc..
In embodiments of the present invention, the processor 380 included by the terminal also has following functions:A kind of software upgrading side Method, methods described includes:
Set up with upgrade server after be connected, obtain what the submodule of the software that the upgrade server is stored was updated the data Unique mark;
Obtain the unique mark of the submodule of mounted software;
The unique mark and the submodule of the mounted software for obtaining updated the data in the submodule of the software for obtaining When unique mark is different, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
Further, the unique mark that the submodule of the software is updated the data is that the numeral generated using HASH algorithms is plucked Will, now, the unique mark of the submodule for obtaining mounted software is specifically included:
The unique mark that submodule according to the software for obtaining is updated the data determines the unique mark of software;
Unique mark according to the software for determining determines the submodule that same software includes;
Using the HASH algorithm same with the unique mark that updates the data of submodule of upgrade server generation software Generate the unique mark of the submodule that the same software for determining includes.
Further, the unique mark updated the data in the submodule of the software for obtaining is mounted soft with what is obtained When the unique mark of the submodule of part is different, the submodule for storing the software is updated the data, to realize mounted software Update, specifically include:
The unique mark and the submodule of the mounted software for obtaining updated the data in the submodule of the software for obtaining When unique mark is different, the mount message that the submodule of the software of the upgrade server storage is updated the data, institute are obtained State configuration information of the mount message including CPU and/or bluetooth;
Obtain the configuration information of smart machine, the CPU of the configuration information including smart machine and/or bluetooth with confidence Breath;
Updated with the submodule of the software of the upgrade server storage for obtaining in the configuration information of smart machine When the mount message of data is matched, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
Further, the mount message include free memory, now, the configuration information in smart machine with obtain The mount message that updates the data of submodule of the software of upgrade server storage when matching, store the software Submodule is updated the data, and to realize the renewal of mounted software, is specifically included:
Updated with the submodule of the software of the upgrade server storage for obtaining in the configuration information of smart machine When the mount message of data is matched, judge whether the free memory of smart machine be more than or equal to that the mount message includes can Use internal memory;
When the free memory of smart machine is more than or equal to the free memory that the mount message includes, store described soft The submodule of part is updated the data, to realize the renewal of mounted software.
Further, when the free memory of smart machine is less than the free memory that the mount message includes, do not store The submodule of the software is updated the data.
Example IV:
Fig. 4 is a kind of schematic block diagram of smart machine that fourth embodiment of the invention is provided, the intelligence as depicted Equipment can include:One or more processors 401 (only show one) in figure;One or more input equipments 402 are (in figure only Show one), one or more output equipment 403 (one is only shown in figure), memory 404 and displays 405.Above-mentioned treatment Device 401, input equipment 402, output equipment 403, memory 404 and display 405 are connected by bus 406.Memory 402 is used In store instruction, processor 401 is used to perform the instruction of the storage of memory 402.Wherein:
The processor 401, after being connected with upgrade server foundation, obtains the software of the upgrade server storage The unique mark that updates the data of submodule;Obtain the unique mark of the submodule of mounted software;In the software for obtaining When the unique mark that submodule is updated the data is different from the unique mark of the submodule of the mounted software for obtaining, storage is described The submodule of software is updated the data, to realize the renewal of mounted software.
It should be appreciated that in embodiments of the present invention, the processor 401 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device can also be any conventional processor etc..
Input equipment 402 can include that Trackpad, fingerprint adopt sensor (finger print information and fingerprint for gathering user Directional information), microphone, data receiver interface etc..Output equipment 403 can be including display (LCD etc.), loudspeaker, data Transmission interface etc..
The memory 404 can include read-only storage and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
Display 405 can be used for display by the information of user input or be supplied to information of user etc..Display 405 can be wrapped Display panel is included, optionally, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used Forms such as (Organic Light-Emitting Diode, OLED) is managed to configure display panel.Further, the display 405 may also include contact panel, and the contact panel can cover display panel, when contact panel detect it is thereon or neighbouring After touch operation, processor 401 is sent to determine the type of touch event, with preprocessor 401 according to the class of touch event Type provides corresponding visual output on a display panel.
In implementing, processor 401, input equipment 402, output equipment 403 described in the embodiment of the present invention, deposit Reservoir 404 and display 405 can perform described in the embodiment of the Memory adjustments method of terminal provided in an embodiment of the present invention Implementation, also can perform the implementation described in embodiment two described in terminal, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (11)

1. a kind of Oftware updating method, it is characterised in that methods described includes:
Set up with upgrade server after be connected, obtain that the submodule of the software that the upgrade server is stored updates the data is unique Mark;
Obtain the unique mark of the submodule of mounted software;
The unique mark updated the data in the submodule of the software for obtaining is unique with the submodule of the mounted software for obtaining When identifying different, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
2. method according to claim 1, it is characterised in that the unique mark that the submodule of the software is updated the data is The digital digest generated using HASH algorithms, now, the unique mark of the submodule for obtaining mounted software, specific bag Include:
The unique mark that submodule according to the software for obtaining is updated the data determines the unique mark of software;
Unique mark according to the software for determining determines the submodule that same software includes;
Generated using the HASH algorithm same with the unique mark that updates the data of submodule of upgrade server generation software The unique mark of the submodule that the same software for determining includes.
3. method according to claim 1, it is characterised in that the submodule in the software for obtaining is updated the data only When one mark is different from the unique mark of the submodule of the mounted software for obtaining, the submodule for storing the software updates number According to realize the renewal of mounted software, specifically including:
The unique mark updated the data in the submodule of the software for obtaining is unique with the submodule of the mounted software for obtaining When identifying different, the mount message that the submodule of the software of the upgrade server storage is updated the data, the peace are obtained Dress information includes the configuration information of CPU and/or bluetooth;
The configuration information of smart machine is obtained, the configuration information includes the CPU of smart machine and/or the configuration information of bluetooth;
The submodule of the software stored with the upgrade server for obtaining in the configuration information of smart machine is updated the data Mount message when matching, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
4. method according to claim 3, it is characterised in that the mount message includes free memory, now, it is described The installation that the configuration information of smart machine is updated the data with the submodule of the software of the upgrade server storage for obtaining During information matches, the submodule for storing the software is updated the data, and to realize the renewal of mounted software, is specifically included:
The submodule of the software stored with the upgrade server for obtaining in the configuration information of smart machine is updated the data Mount message when matching, judge whether the free memory of smart machine available interior more than or equal to what the mount message included Deposit;
When the free memory of smart machine is more than or equal to the free memory that the mount message includes, the software is stored Submodule is updated the data, to realize the renewal of mounted software.
5. method according to claim 4, it is characterised in that be less than the mount message in the free memory of smart machine Including free memory when, the submodule that the software is not stored is updated the data.
6. a kind of smart machine, it is characterised in that the smart machine includes:
The fresh information acquiring unit of upgrade server, after being connected with upgrade server foundation, obtains the upgrade service The unique mark that the submodule of the software of device storage is updated the data;
Mounted submodule information acquisition unit, the unique mark of the submodule for obtaining mounted software;
Software upgrading unit, the unique mark for being updated the data in the submodule of the software for obtaining is mounted soft with what is obtained When the unique mark of the submodule of part is different, the submodule for storing the software is updated the data, to realize mounted software Update.
7. smart machine according to claim 6, it is characterised in that unique mark that the submodule of the software is updated the data Knowledge is the digital digest generated using HASH algorithms, and now, the mounted submodule information acquisition unit includes:
Software determining module, the unique mark for being updated the data according to the submodule of the software for obtaining determines unique mark of software Know;
The submodule determining module that software includes, for determining the son that same software includes according to the unique mark of the software for determining Module;
The unique mark generation module of submodule, for being updated the data using the submodule with upgrade server generation software The unique mark of submodule that includes of the same software that determines of the same HASH algorithms generation of unique mark.
8. smart machine according to claim 6, it is characterised in that the software upgrading unit includes:
Mount message acquisition module, for the unique mark updated the data in the submodule of the software for obtaining and the installation for obtaining Software submodule unique mark it is different when, the submodule for obtaining the software of the upgrade server storage updates number According to mount message, the mount message includes the configuration information of CPU and/or bluetooth;
Configuration information acquisition module, the configuration information for obtaining smart machine, the configuration information includes the CPU of smart machine And/or the configuration information of bluetooth;
Configuration information comparison module, for described in the configuration information in smart machine and the upgrade server for obtaining storage When the mount message that the submodule of software is updated the data is matched, the submodule for storing the software is updated the data, to realize having pacified The renewal of the software of dress.
9. smart machine according to claim 8, it is characterised in that the mount message includes free memory, now, institute Stating configuration information comparison module includes:
Free memory judge module, for described in the configuration information in smart machine and the upgrade server for obtaining storage When the mount message that the submodule of software is updated the data is matched, judge the free memory of smart machine whether more than or equal to described The free memory that mount message includes;
Software upgrading module, for the free memory in smart machine more than or equal to the free memory that the mount message includes When, the submodule for storing the software is updated the data, to realize the renewal of mounted software.
10. smart machine according to claim 9, it is characterised in that the smart machine includes:
Software suspends updating block, for the free memory in smart machine less than the free memory that the mount message includes When, the submodule that the software is not stored is updated the data.
11. a kind of smart machines, it is characterised in that the smart machine includes:
Processor,
The processor, after being connected with upgrade server foundation, obtains the submodule of the software of the upgrade server storage The unique mark that block is updated the data;Obtain the unique mark of the submodule of mounted software;In the submodule of the software for obtaining When the unique mark for updating the data is different from the unique mark of the submodule of the mounted software for obtaining, the software is stored Submodule is updated the data, to realize the renewal of mounted software.
CN201611042991.5A 2016-11-21 2016-11-21 Oftware updating method and smart machine Pending CN106775641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611042991.5A CN106775641A (en) 2016-11-21 2016-11-21 Oftware updating method and smart machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611042991.5A CN106775641A (en) 2016-11-21 2016-11-21 Oftware updating method and smart machine

Publications (1)

Publication Number Publication Date
CN106775641A true CN106775641A (en) 2017-05-31

Family

ID=58974040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611042991.5A Pending CN106775641A (en) 2016-11-21 2016-11-21 Oftware updating method and smart machine

Country Status (1)

Country Link
CN (1) CN106775641A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107621964A (en) * 2017-10-19 2018-01-23 歌尔科技有限公司 Program loading method, device and wearable device
CN111984293A (en) * 2020-08-17 2020-11-24 腾讯科技(上海)有限公司 Information processing method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719977A (en) * 2009-11-17 2010-06-02 四川长虹电器股份有限公司 Method for updating functional modules of set-top box
CN101770375A (en) * 2008-12-26 2010-07-07 新奥特(北京)视频技术有限公司 Method for realizing automatic update of software as well as system and device therefor
CN103984564A (en) * 2013-02-08 2014-08-13 百度国际科技(深圳)有限公司 Method and device for installing and upgrading software
US20150331676A1 (en) * 2008-05-28 2015-11-19 Red Hat, Inc. Managing a software appliance
CN105893075A (en) * 2015-12-28 2016-08-24 乐视网信息技术(北京)股份有限公司 Update method and device of application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150331676A1 (en) * 2008-05-28 2015-11-19 Red Hat, Inc. Managing a software appliance
CN101770375A (en) * 2008-12-26 2010-07-07 新奥特(北京)视频技术有限公司 Method for realizing automatic update of software as well as system and device therefor
CN101719977A (en) * 2009-11-17 2010-06-02 四川长虹电器股份有限公司 Method for updating functional modules of set-top box
CN103984564A (en) * 2013-02-08 2014-08-13 百度国际科技(深圳)有限公司 Method and device for installing and upgrading software
CN105893075A (en) * 2015-12-28 2016-08-24 乐视网信息技术(北京)股份有限公司 Update method and device of application

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107621964A (en) * 2017-10-19 2018-01-23 歌尔科技有限公司 Program loading method, device and wearable device
CN111984293A (en) * 2020-08-17 2020-11-24 腾讯科技(上海)有限公司 Information processing method, device and storage medium
CN111984293B (en) * 2020-08-17 2023-09-12 腾讯科技(上海)有限公司 Information processing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN103500227B (en) Video frame storage management method, related device and related communication system
CN107402964A (en) A kind of information recommendation method, server and terminal
CN107657222A (en) Face identification method and Related product
CN106775827A (en) A kind of application program update method and device, computer equipment
CN107153537A (en) A kind of information display method based on multitask interface, device and mobile terminal
CN106658354A (en) Data transmission method and equipment
CN106445596A (en) Method and device for managing setting items
CN106445336A (en) Fast acquisition method for electronic resource and mobile terminal
CN106534288A (en) Data transmission method and mobile terminal
CN106201547A (en) Method, device and the mobile terminal that a kind of message based on mobile terminal shows
CN106408995A (en) Information processing method and related device
CN106576123A (en) A method, an apparatus and an electronic device for controlling an electronic device
CN107317918A (en) Parameter setting method and related product
CN106569815A (en) Message display method and terminal
CN106550152A (en) Realize the method and mobile terminal of modem energy-conservation
CN106648460A (en) Step-counting data filtering method and intelligent terminal
CN106775641A (en) Oftware updating method and smart machine
CN107678822A (en) A kind of information processing method and device, terminal and readable storage medium storing program for executing
CN107657160A (en) Facial information acquisition method and Related product
CN106791074A (en) Song information display methods, device and mobile terminal
CN107329777A (en) Using startup method and terminal device
CN107205082A (en) A kind of short message method for cleaning and mobile terminal
CN106598563A (en) Method and device for restarting intelligent terminal, and intelligent terminal
CN106527856A (en) Application icon display method and terminal
CN106844057A (en) Data processing method, device and mobile terminal

Legal Events

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

Application publication date: 20170531