CN106990986A - A kind of control method of software upgrading, device and audio-frequence player device - Google Patents
A kind of control method of software upgrading, device and audio-frequence player device Download PDFInfo
- Publication number
- CN106990986A CN106990986A CN201710209406.4A CN201710209406A CN106990986A CN 106990986 A CN106990986 A CN 106990986A CN 201710209406 A CN201710209406 A CN 201710209406A CN 106990986 A CN106990986 A CN 106990986A
- Authority
- CN
- China
- Prior art keywords
- duration
- audio
- write
- upgrade file
- frequence player
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000005611 electricity Effects 0.000 claims abstract description 63
- 230000000052 comparative effect Effects 0.000 claims abstract description 15
- 230000015654 memory Effects 0.000 claims description 24
- 230000006870 function Effects 0.000 claims description 23
- 238000012545 processing Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000009434 installation Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3212—Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of control method of software upgrading, device and audio-frequence player device, by obtaining the downloading duration needed for redaction upgrade file and being installed to the write-in duration needed for audio-frequence player device;Obtain the corresponding duration of audio-frequence player device current residual electricity;The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are compared;According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.Therefore, the present invention can start different upgrade modes according to the current battery charge of audio-frequence player device, so that it is guaranteed that in the case of battery powered so that audio-frequence player device software upgrading is normally carried out.
Description
Technical field
The present invention relates to upgrading processing technical field, more particularly to a kind of control method of software upgrading, device and audio
Playback equipment.
Background technology
Intelligent network audio-frequence player device (such as audio amplifier) is increasingly popularized, these intelligent network audio amplifiers be integrated with processor and
Network interface, therefore the Streaming Media music of internet can be accessed, according to the selection of user, directly from Network Capture music sources
Play out.Intelligent network audio amplifier is usually to be controlled using mobile terminal (such as mobile phone and tablet personal computer).Such as, mobile whole
Installed on end after special application program, then intelligent network audio amplifier can be accessed by the application program, may browse through interconnection
Online Streaming Media music, and select song to be pushed to the broadcasting of intelligent network audio amplifier.
When intelligent sound box needs upgrading, then intelligent sound box needs to download newest upgrade file installation from the webserver
Wrap local, installation is then decompressed again, so as to complete updating operation.However, when intelligent sound box uses battery powered, carrying out
Software upgrading, then be necessary to ensure that the electricity of battery is enough.If during software of upgrading, dead battery, then meeting
Cause upgrading to be interrupted, seriously intelligent sound box can be caused normally to start.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of control method of software upgrading, device and audio-frequence player device,
It can start different upgrade modes according to the current battery charge of audio-frequence player device, so that it is guaranteed that battery powered
In the case of so that audio-frequence player device software upgrading is normally carried out.
The embodiments of the invention provide a kind of control method of software upgrading, applied to audio frequency broadcast system, including step:
Obtain redaction upgrade file needed for downloading duration and be installed to the write-in duration needed for audio-frequence player device;
Obtain the corresponding duration of audio-frequence player device current residual electricity;
The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are compared;
According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.
The embodiment of the present invention additionally provides a kind of control device of software upgrading, applied to audio frequency broadcast system, including:
Total duration acquisition module, sets for the downloading duration needed for obtaining redaction upgrade file with audio broadcasting is installed to
Write-in duration needed for standby;
Electricity duration acquisition module, for obtaining the corresponding duration of audio-frequence player device current residual electricity;
Duration comparison module, for the total duration of the downloading duration and write-in duration is corresponding with current residual electricity
Duration is compared;
Upgrade control module, holds for according to comparative result, determining upgrade mode, and according to the upgrade mode determined
The corresponding updating operation of row.
The embodiment of the present invention additionally provides a kind of audio-frequence player device, including memory and processor, the processor and
The memory is connected by bus;The memory is used to store batch processing code, and the processor is described for calling
The program code stored in memory, performs following operation:
Obtain redaction upgrade file needed for downloading duration and be installed to the write-in duration needed for audio-frequence player device;
Obtain the corresponding duration of audio-frequence player device current residual electricity;
The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are compared;
According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.
Control method, device and the audio-frequence player device for the software upgrading that the present invention is provided, are upgraded by obtaining redaction
Downloading duration needed for file and it is installed to the write-in duration needed for audio-frequence player device;Audio-frequence player device is obtained currently to remain
The corresponding duration of remaining electricity;The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are carried out
Compare;According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.Cause
This, the present invention can start different upgrade modes according to the current battery charge of audio-frequence player device, so that it is guaranteed that in electricity
In the case of battery-powered so that audio-frequence player device software upgrading is normally carried out.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram of the control method of software upgrading provided in an embodiment of the present invention.
Fig. 2 is that the control method of software upgrading provided in an embodiment of the present invention implements schematic flow sheet.
When Fig. 3 is that redaction upgrade file provided in an embodiment of the present invention is installed to the write-in needed for audio-frequence player device
Long implementation process schematic diagram.
Fig. 4 is the module diagram of the control device of software upgrading provided in an embodiment of the present invention.
Fig. 5 is the detailed module diagram of the control device of software upgrading provided in an embodiment of the present invention.
Fig. 6 is the module diagram of audio-frequence player device provided in an embodiment of the present invention.
Embodiment
Refer to the schema in accompanying drawing, wherein identical element numbers represent identical component, principle of the invention be with
Implement to illustrate in an appropriate computing environment.The following description is based on exemplified specific implementation of the invention
Example, it is not construed as the limitation present invention other specific embodiments not detailed herein.
The principle of the invention illustrates that it is not represented as a kind of limitation with above-mentioned word, and those skilled in the art can
Solve plurality of step as described below and operation also may be implemented among hardware.The principle of the present invention uses many other wide usages
Or specific purpose computing, communication environment or configuration are operated.
Fig. 1 and Fig. 2 is referred to, the control method of the software upgrading of one embodiment of the invention offer is provided.
The control method of the software upgrading, applied in audio frequency broadcast system, comprises the following steps:
In step S101, obtain redaction upgrade file needed for downloading duration and be installed to institute in audio-frequence player device
The write-in duration needed.
In embodiments of the present invention, before audio-frequence player device needs to carry out installing redaction upgrade file, then need
Judge whether audio-frequence player device current residual electricity is enough to support updating operation, therefore, it is also desirable to know that redaction is upgraded
Downloading duration needed for file and the write-in duration needed for audio-frequence player device is installed to, just can so combine audio and play
Downloading duration needed for equipment current residual electricity and redaction upgrade file and it is installed to needed for audio-frequence player device
Duration is write, to start different upgrade modes.
Wherein, obtain redaction upgrade file needed for downloading duration the step of before, in addition to:
In step s 11, working as the audio-frequence player device webserver corresponding with redaction upgrade file is obtained front lower
Carry speed.
Wherein, audio-frequence player device obtains current speed of download by performing network test instruction.For example, audio is played
Equipment sends Ping instructions to the webserver, and the webserver is received after Ping instructions, can returned to audio-frequence player device
As a result.Therefore, audio-frequence player device can obtain current speed of download according to the returning result.
In step s 12, according to the speed of download and the data package size of redaction upgrade file, redaction is calculated
Downloading duration needed for upgrade file.
Wherein, before the step of acquisition redaction upgrade file is installed to the write-in duration needed for audio-frequence player device,
Also include:
In the step s 21, according to the corresponding upgrade file of legacy version and redaction upgrade file, the redaction is calculated
Upgrade file is installed to the write-in duration needed for audio-frequence player device.
Referring to Fig. 3, in the present embodiment, step S21 is specifically included:
In step S31, obtain that the corresponding upgrade file of legacy version is installed to needed for audio-frequence player device first is write
Enter duration.
In step s 32, compare the corresponding upgrade file of legacy version and redaction upgrade file, obtain distinguishing file.
In step S33, the difference file is write computing is carried out into learning model building database, to obtain the area
Other file is installed to the second write-in duration needed for audio-frequence player device.
In step S34, according to the first write-in duration and the second write-in duration, the redaction upgrade file peace is calculated
It is attached to the write-in duration needed for audio-frequence player device.
It is understood that between the software installation bag of legacy version and the software installation bag of redaction, can there are identical
Function program data, the software installation bag of same redaction is bound to have more new function journey than the software installation bag of legacy version
In ordinal number evidence, the present embodiment, this is had more into new function program data and is referred to as to distinguish file.
It is such as poor for data package size because the flow that software program is installed in same audio-frequence player device is roughly the same
Few function program, its installation rate and time are much the same.Therefore, audio-frequence player device can carry out study automatically and build
Mould, obtains learning model building database, therefore, and audio-frequence player device can be installed to according to learning model building to obtain difference file
The second write-in duration needed for audio-frequence player device.Therefore, audio is installed to reference to the corresponding upgrade file of legacy version to play
The first write-in duration needed for equipment, and learning model building just can calculate redaction upgrade file and be installed to audio and play and sets
Write-in duration needed for standby.
In step s 102, the corresponding duration of audio-frequence player device current residual electricity is obtained.
In step s 103, by the downloading duration and the total duration duration corresponding with current residual electricity of write-in duration
It is compared.
In step S104, according to comparative result, upgrade mode is determined, and according to the upgrade mode execution pair determined
The updating operation answered.
In embodiments of the present invention, step S104, is specifically included:
In step S105, if the downloading duration is corresponding less than current residual electricity with the total duration of write-in duration
Duration, then perform complete upgrading operation according to the redaction upgrade file.
In step s 106, if the downloading duration and the total duration of write-in duration are more than or equal to current residual electricity
Corresponding duration, then contrasted the corresponding duration of the current residual electricity with preset duration.
In step s 107, if the corresponding duration of the current residual electricity is less than preset duration, upgrading is not performed
Operation, and point out current residual electricity to be not enough to support updating operation.
In step S108, if the corresponding duration of the current residual electricity is more than or equal to preset duration, upgrade
Preset function program is removed in preset function program in the redaction upgrade file, the redaction upgrade file that wouldn't upgrade
Outside other function programs.
That is, if the current residual electricity of audio-frequence player device is enough to support complete upgrading pattern, complete upgrading is performed
Operation;If the current residual electricity of audio-frequence player device is not enough to support complete upgrading pattern but is enough to support power saving upgrading mould
Formula, then performing power saving upgrade mode, (that is, the preset function program in the redaction upgrade file of upgrading, wouldn't upgrade described
Other function programs in redaction upgrade file in addition to preset function program);If the current residual of audio-frequence player device
Low battery, is not enough to support power saving upgrade mode, then does not perform updating operation, and point out current residual electricity to be not enough to support
Updating operation.
It is preferred that, after power saving upgrade mode has been performed, after a while, audio-frequence player device can detect battery electric quantity,
If other function programs that the battery electric quantity detected wouldn't upgrade before being enough to support, then to other work(that wouldn't upgrade
Energy program carries out updating operation, so as to reach the complete upgrading of redaction.
From the foregoing, it will be observed that the control method of software upgrading provided in an embodiment of the present invention, by obtaining redaction upgrade file
Required downloading duration and it is installed to the write-in duration needed for audio-frequence player device;Obtain audio-frequence player device current residual electricity
Measure corresponding duration;The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are compared
Compared with;According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.Therefore,
The present invention can start different upgrade modes according to the current battery charge of audio-frequence player device, so that it is guaranteed that being supplied in battery
In the case of electricity so that audio-frequence player device software upgrading is normally carried out.
It is the module signal of the control device of software upgrading provided in an embodiment of the present invention also referring to Fig. 4 and Fig. 5
Figure;For convenience of description, it illustrate only the part related to the embodiment of the present invention.The control device 100 of the software upgrading is wrapped
Include:Total duration acquisition module 101, electricity duration acquisition module 102, duration comparison module 103 and upgrade control module 104.
The control device of the software upgrading can be that software unit, the hardware cell being built in audio-frequence player device are either soft or hard
The unit that part is combined.
Total duration acquisition module 101, broadcasts for obtaining the downloading duration needed for redaction upgrade file and being installed to audio
Put the write-in duration needed for equipment.
Electricity duration acquisition module 102, for obtaining the corresponding duration of audio-frequence player device current residual electricity.
Duration comparison module 103, for by the downloading duration and writing total duration and the current residual electricity pair of duration
The duration answered is compared.
Upgrade control module 104, for according to comparative result, determining upgrade mode, and according to the upgrading mould determined
Formula performs corresponding updating operation.
In embodiments of the present invention, the control device of the software upgrading, in addition to:Speed of download acquisition module 105, under
Carry duration calculation module 106.
Speed of download acquisition module 105, for obtaining audio-frequence player device network clothes corresponding with redaction upgrade file
The current speed of download of business device.
Downloading duration calculation module 106, for the data package size according to the speed of download and redaction upgrade file,
Calculate the downloading duration needed for redaction upgrade file.
In embodiments of the present invention, the control device of the software upgrading, in addition to:Write duration calculation module 107.
Duration calculation module 107 is write, for according to the corresponding upgrade file of legacy version and redaction upgrade file, calculating
Go out the redaction upgrade file and be installed to write-in duration needed for audio-frequence player device.
In embodiments of the present invention, said write duration calculation module 107, including:First duration acquisition module 11, file
Comparison module 12, the second duration computing module 13, duration calculation module 14.
First duration acquisition module 11, institute in audio-frequence player device is installed to for obtaining the corresponding upgrade file of legacy version
The the first write-in duration needed.
Documents Comparison module 12, for comparing the corresponding upgrade file of legacy version and redaction upgrade file, is distinguished
File.
Second duration computing module 13, computing is carried out into learning model building database for the difference file to be write,
Second be installed to obtaining the difference file needed for audio-frequence player device writes duration.
Duration calculation module 14, for according to the first write-in duration and the second write-in duration, calculating the redaction liter
Level file is installed to the write-in duration needed for audio-frequence player device.
As one embodiment of the invention, the upgrade control module 104, in addition to:Complete upgrading module 21.
The complete upgrading module 21, if the total duration for the downloading duration and write-in duration is less than current residual
The corresponding duration of electricity, then perform complete upgrading operation according to the redaction upgrade file.
As another embodiment of the present invention, the upgrade control module 104, in addition to:Contrast module 31, reminding module
32 and part upgraded module 33.
Contrast module 31, if the total duration for the downloading duration and write-in duration is more than or equal to current residual electricity
Corresponding duration is measured, then is contrasted the corresponding duration of the current residual electricity with preset duration.
Reminding module 32, if being less than preset duration for the corresponding duration of the current residual electricity, does not perform liter
Level operation, and point out current residual electricity to be not enough to support updating operation.
Part upgraded module 33, if being more than or equal to preset duration for the corresponding duration of the current residual electricity,
Except default work(in the preset function program then upgraded in the redaction upgrade file, the redaction upgrade file that wouldn't upgrade
Other function programs outside energy program.
From the foregoing, it will be observed that the control device of software upgrading provided in an embodiment of the present invention, by obtaining redaction upgrade file
Required downloading duration and it is installed to the write-in duration needed for audio-frequence player device;Obtain audio-frequence player device current residual electricity
Measure corresponding duration;The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are compared
Compared with;According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.Therefore,
The present invention can start different upgrade modes according to the current battery charge of audio-frequence player device, so that it is guaranteed that being supplied in battery
In the case of electricity so that audio-frequence player device software upgrading is normally carried out.
The control method and device of software upgrading provided in an embodiment of the present invention belong to same design, and it implements process
Refer to specification in full, here is omitted.
Fig. 6 shows the concrete structure block diagram of audio-frequence player device provided in an embodiment of the present invention, the audio-frequence player device
1200 can be used for implementing software upgrading processing method/device for providing in above-described embodiment.
As shown in fig. 6, audio-frequence player device can include one or more (one is only shown in figure) computers
The memory 801 of readable storage medium storing program for executing, voicefrequency circuit 802, transport module 803, include one or more than one (in figure only
Show one) processor 804 and the grade part of power supply 805 of processing core.It will be understood by those skilled in the art that showing in Fig. 6
The audio-frequence player device structure gone out does not constitute the restriction to audio-frequence player device, can include than illustrating more or less portions
Part, either combines some parts or different parts arrangement.Wherein:
Memory 801 can be used for software upgrading processing method/dress in storage software program and module, such as above-mentioned embodiment
Corresponding programmed instruction/module is put, processor 804 is stored in software program and module in memory 801 by operation, from
And perform various function application and data processing, that is, realize the function of software upgrading processing.Memory 801 may include at a high speed with
Machine memory, may also include nonvolatile memory, such as one or more magnetic storage device, flash memory or other it is non-easily
The property lost solid-state memory.In some instances, memory 801 can further comprise remotely located relative to processor 804 deposit
Reservoir, these remote memories can pass through network connection to audio-frequence player device.The example of above-mentioned network includes but is not limited to
Internet, intranet, LAN, mobile radio communication and combinations thereof.
Electric signal after the voice data received conversion can be transferred to loudspeaker, is turned by loudspeaker by voicefrequency circuit 802
It is changed to voice signal output.
Audio-frequence player device accesses streaming video by transport module 803 (such as Wi-Fi module), it is provided the user
Wireless broadband internet is accessed.Although Fig. 6 shows transport module 803, but it is understood that, it is simultaneously not belonging to sound
Must be configured into for frequency playback equipment, can be omitted in the essential scope for do not change invention as needed completely.
Processor 804 is the control centre of audio-frequence player device, is played using various interfaces and the whole audio of connection
The various pieces of equipment, by operation or perform and are stored in software program and/or module in memory 801, and call and deposit
The data in memory 801 are stored up, the various functions and processing data of audio-frequence player device are performed.Optionally, processor 804 can
Including one or more processing cores;It is preferred that, processor 804 can integrated application processor and modem processor, wherein,
Application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles channel radio
Letter.It is understood that above-mentioned modem processor can not also be integrated into processor 804.
Audio-frequence player device also includes the power supply 805 (such as battery) powered to all parts, it is preferred that power supply can lead to
Cross power-supply management system and processor 804 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and
The functions such as power managed.Power supply 805 can also include one or more direct current or AC power, recharging system, electricity
The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, audio-frequence player device can be with bluetooth module etc..It will not be repeated here.In addition, mobile terminal is also
Include memory, and one or more than one program, one of them or more than one program storage is in memory
In, and be configured to by one or more than one computing device one or more than one program bag contain be used to carrying out it is following
The instruction of operation:
Obtain redaction upgrade file needed for downloading duration and be installed to the write-in duration needed for audio-frequence player device;
Obtain the corresponding duration of audio-frequence player device current residual electricity;
The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are compared;
According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
In summary, although the present invention it is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit
The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit
Adorn, therefore protection scope of the present invention is defined by the scope that claim is defined.
Claims (13)
1. a kind of control method of software upgrading, applied to audio frequency broadcast system, it is characterised in that including step:
Obtain redaction upgrade file needed for downloading duration and be installed to the write-in duration needed for audio-frequence player device;
Obtain the corresponding duration of audio-frequence player device current residual electricity;
The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are compared;
According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.
2. the control method of software upgrading as claimed in claim 1, it is characterised in that needed for acquisition redaction upgrade file
Before the step of downloading duration, in addition to:
Obtain the current speed of download of the audio-frequence player device webserver corresponding with redaction upgrade file;
According to the speed of download and the data package size of redaction upgrade file, under calculating needed for redaction upgrade file
Carry duration.
3. the control method of software upgrading as claimed in claim 1 or 2, it is characterised in that obtain redaction upgrade file peace
Before the step of write-in duration being attached to needed for audio-frequence player device, in addition to:
According to the corresponding upgrade file of legacy version and redaction upgrade file, calculate the redaction upgrade file and be installed to sound
Write-in duration needed for frequency playback equipment.
4. the control method of software upgrading as claimed in claim 3, it is characterised in that according to the corresponding upgrade file of legacy version
With redaction upgrade file, calculate the redaction upgrade file and be installed to write-in duration needed for audio-frequence player device
Step, including:
The corresponding upgrade file of acquisition legacy version is installed to the first write-in duration needed for audio-frequence player device;
Compare the corresponding upgrade file of legacy version and redaction upgrade file, obtain distinguishing file;
The difference file is write computing is carried out into learning model building database, audio is installed to obtain the difference file
The second write-in duration needed for playback equipment;
According to the first write-in duration and the second write-in duration, calculate the redaction upgrade file and be installed to audio-frequence player device
Needed for write-in duration.
5. the control method of software upgrading as claimed in claim 1, it is characterised in that according to comparative result, determines upgrading
Pattern, and according to the step of the upgrade mode execution corresponding updating operation determined, including:
If downloading duration duration corresponding less than current residual electricity with the total duration of write-in duration, according to described new
Edition upgrading file performs complete upgrading operation.
6. the control method of software upgrading as claimed in claim 1, it is characterised in that according to comparative result, determines upgrading
Pattern, and according to the step of the upgrade mode execution corresponding updating operation determined, in addition to:
If downloading duration duration corresponding more than or equal to current residual electricity with the total duration of write-in duration, by institute
The corresponding duration of current residual electricity is stated to be contrasted with preset duration;
If the corresponding duration of the current residual electricity is less than preset duration, updating operation is not performed, and point out current surplus
Remaining not enough power supply is in support updating operation;
If the corresponding duration of the current residual electricity is more than or equal to preset duration, the redaction upgrade file of upgrading
In preset function program, other function journeys in the redaction upgrade file that wouldn't upgrade in addition to preset function program
Sequence.
7. a kind of control device of software upgrading, applied to audio frequency broadcast system, it is characterised in that including:
Total duration acquisition module, for obtaining the downloading duration needed for redaction upgrade file and being installed in audio-frequence player device
Required write-in duration;
Electricity duration acquisition module, for obtaining the corresponding duration of audio-frequence player device current residual electricity;
Duration comparison module, for by the downloading duration and write duration total duration duration corresponding with current residual electricity
It is compared;
Upgrade control module, for according to comparative result, determining upgrade mode, and according to the upgrade mode execution pair determined
The updating operation answered.
8. the control device of software upgrading as claimed in claim 7, it is characterised in that the control device of the software upgrading,
Also include:
Speed of download acquisition module, for obtaining working as the audio-frequence player device webserver corresponding with redaction upgrade file
Preceding speed of download;
Downloading duration calculation module, for the data package size according to the speed of download and redaction upgrade file, is calculated
Downloading duration needed for redaction upgrade file.
9. the control device of software upgrading as claimed in claim 7 or 8, it is characterised in that the control dress of the software upgrading
Put, in addition to:
Duration calculation module is write, it is described for according to the corresponding upgrade file of legacy version and redaction upgrade file, calculating
Redaction upgrade file is installed to the write-in duration needed for audio-frequence player device.
10. the control device of software upgrading as claimed in claim 9, it is characterised in that said write duration calculation module, bag
Include:
First duration acquisition module, for obtain the corresponding upgrade file of legacy version be installed to needed for audio-frequence player device
One write-in duration;
Documents Comparison module, for comparing the corresponding upgrade file of legacy version and redaction upgrade file, obtains distinguishing file;
Second duration computing module, carries out computing into learning model building database, to obtain for the difference file to be write
The difference file is installed to the second write-in duration needed for audio-frequence player device;
Duration calculation module, for according to the first write-in duration and the second write-in duration, calculating the redaction upgrade file
It is installed to the write-in duration needed for audio-frequence player device.
11. the control device of software upgrading as claimed in claim 7, it is characterised in that the upgrade control module, is also wrapped
Include:Complete upgrading module;
The complete upgrading module, if the total duration for the downloading duration and write-in duration is less than current residual electricity pair
The duration answered, then perform complete upgrading operation according to the redaction upgrade file.
12. the control device of software upgrading as claimed in claim 7, it is characterised in that the upgrade control module, is also wrapped
Include:Contrast module, reminding module and part upgraded module;
Contrast module, if it is corresponding to be more than or equal to current residual electricity for the downloading duration and the total duration of write-in duration
Duration, then the corresponding duration of the current residual electricity is contrasted with preset duration;
Reminding module, if being less than preset duration for the corresponding duration of the current residual electricity, does not perform updating operation,
And point out current residual electricity to be not enough to support updating operation;
Part upgraded module, if being more than or equal to preset duration for the corresponding duration of the current residual electricity, upgrades
Preset function program is removed in preset function program in the redaction upgrade file, the redaction upgrade file that wouldn't upgrade
Outside other function programs.
13. a kind of audio-frequence player device, it is characterised in that including memory and processor, the processor and the memory
Connected by bus;The memory is used to store batch processing code, and the processor is used to call to deposit in the memory
The program code of storage, performs following operation:
Obtain redaction upgrade file needed for downloading duration and be installed to the write-in duration needed for audio-frequence player device;
Obtain the corresponding duration of audio-frequence player device current residual electricity;
The downloading duration and the total duration duration corresponding with current residual electricity for writing duration are compared;
According to comparative result, upgrade mode is determined, and corresponding updating operation is performed according to the upgrade mode determined.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209406.4A CN106990986B (en) | 2017-03-31 | 2017-03-31 | Software upgrading control method and device and audio playing equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209406.4A CN106990986B (en) | 2017-03-31 | 2017-03-31 | Software upgrading control method and device and audio playing equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106990986A true CN106990986A (en) | 2017-07-28 |
CN106990986B CN106990986B (en) | 2020-09-08 |
Family
ID=59414766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710209406.4A Expired - Fee Related CN106990986B (en) | 2017-03-31 | 2017-03-31 | Software upgrading control method and device and audio playing equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106990986B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107491331A (en) * | 2017-08-09 | 2017-12-19 | 上海壹账通金融科技有限公司 | A kind of application upgrade method and terminal device |
CN109064788A (en) * | 2018-08-14 | 2018-12-21 | 董必胜 | It is a kind of can subliminal learning learning device |
CN111182526A (en) * | 2018-11-12 | 2020-05-19 | 奇酷互联网络科技(深圳)有限公司 | Data updating method, mobile terminal and computer storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130055271A1 (en) * | 2011-08-24 | 2013-02-28 | Pantech Co., Ltd. | Apparatus and method for controlling polling |
US20150077127A1 (en) * | 2013-09-16 | 2015-03-19 | Shell Internet (Beijing) Security Technology Co., Ltd. | Method for determining remaining service time of battery, client device and mobile terminal |
CN104603753A (en) * | 2014-03-19 | 2015-05-06 | 华为技术有限公司 | Method, system and server for recommending application |
CN104881306A (en) * | 2015-05-15 | 2015-09-02 | 广东小天才科技有限公司 | Method and apparatus for realizing automatic upgrading of wearable smart device |
CN105025141A (en) * | 2015-07-29 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | Method and device for testing electricity consumption of terminal |
CN105828424A (en) * | 2016-03-11 | 2016-08-03 | 北京奇虎科技有限公司 | Intelligent terminal and energy consumption quantitative control method thereof |
-
2017
- 2017-03-31 CN CN201710209406.4A patent/CN106990986B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130055271A1 (en) * | 2011-08-24 | 2013-02-28 | Pantech Co., Ltd. | Apparatus and method for controlling polling |
US20150077127A1 (en) * | 2013-09-16 | 2015-03-19 | Shell Internet (Beijing) Security Technology Co., Ltd. | Method for determining remaining service time of battery, client device and mobile terminal |
CN104603753A (en) * | 2014-03-19 | 2015-05-06 | 华为技术有限公司 | Method, system and server for recommending application |
CN104881306A (en) * | 2015-05-15 | 2015-09-02 | 广东小天才科技有限公司 | Method and apparatus for realizing automatic upgrading of wearable smart device |
CN105025141A (en) * | 2015-07-29 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | Method and device for testing electricity consumption of terminal |
CN105828424A (en) * | 2016-03-11 | 2016-08-03 | 北京奇虎科技有限公司 | Intelligent terminal and energy consumption quantitative control method thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107491331A (en) * | 2017-08-09 | 2017-12-19 | 上海壹账通金融科技有限公司 | A kind of application upgrade method and terminal device |
CN107491331B (en) * | 2017-08-09 | 2019-03-12 | 深圳壹账通智能科技有限公司 | A kind of application upgrade method and terminal device |
CN109064788A (en) * | 2018-08-14 | 2018-12-21 | 董必胜 | It is a kind of can subliminal learning learning device |
CN111182526A (en) * | 2018-11-12 | 2020-05-19 | 奇酷互联网络科技(深圳)有限公司 | Data updating method, mobile terminal and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106990986B (en) | 2020-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109947498B (en) | Application program preloading method and device, storage medium and mobile terminal | |
CN106970816A (en) | A kind of software upgrading processing method, device and audio-frequence player device | |
CN106649010B (en) | terminal equipment test method and terminal equipment | |
WO2017215629A1 (en) | Sound effect configuration method and related device | |
CN106990986A (en) | A kind of control method of software upgrading, device and audio-frequence player device | |
CN108132401A (en) | Charge abnormal detection method, device, storage medium and mobile terminal | |
CN108021219A (en) | Control method of electronic device, device and electronic equipment | |
CN106126175A (en) | The control method of a kind of sound effect parameters and mobile terminal | |
CN105959483B (en) | A kind of audio stream processing method and mobile terminal | |
CN207680035U (en) | Toy, toy box and NFC chip thereof | |
CN102508680B (en) | Mobile-terminal-based automatic audio parameter updating method and system | |
CN107025120A (en) | Software upgrading processing method, device and terminal | |
EP3930284A1 (en) | Method, device, terminal, and system for playing back multimedia resource | |
CN102932366A (en) | Method and device for managing multimedia resource, and player | |
CN102830943B (en) | Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform | |
CN107436410A (en) | A kind of electric quantity controlling method, device, equipment and storage medium | |
CN202996304U (en) | WiFi (Wireless Fidelity) audio player | |
CN103106088A (en) | Hardware and firmware independently updating system and method thereof | |
CN106973138A (en) | A kind of control method of mobile terminal, device and mobile terminal | |
CN107566465A (en) | A kind of method, apparatus, storage medium and the mobile terminal of information push | |
US20190324717A1 (en) | Multimedia Data Playing Method And Terminal Device | |
CN110876098A (en) | Audio processing method and electronic equipment | |
CN107038047A (en) | Software version synchronization method, device and the audio-frequence player device of audio-frequence player device | |
CN106484076A (en) | The optimization method of user terminal operational mode | |
CN103049074B (en) | A kind of method and system controlling running of mobile terminal single application program |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200908 |
|
CF01 | Termination of patent right due to non-payment of annual fee |