CN106990986B - Software upgrading control method and device and audio playing equipment - Google Patents

Software upgrading control method and device and audio playing equipment Download PDF

Info

Publication number
CN106990986B
CN106990986B CN201710209406.4A CN201710209406A CN106990986B CN 106990986 B CN106990986 B CN 106990986B CN 201710209406 A CN201710209406 A CN 201710209406A CN 106990986 B CN106990986 B CN 106990986B
Authority
CN
China
Prior art keywords
duration
upgrading
file
new version
upgrade
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.)
Expired - Fee Related
Application number
CN201710209406.4A
Other languages
Chinese (zh)
Other versions
CN106990986A (en
Inventor
林尚波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710209406.4A priority Critical patent/CN106990986B/en
Publication of CN106990986A publication Critical patent/CN106990986A/en
Application granted granted Critical
Publication of CN106990986B publication Critical patent/CN106990986B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring 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 invention provides a control method and a control device for software upgrading and an audio playing device, wherein the downloading time required by a new version upgrading file and the writing time required by the new version upgrading file installed in the audio playing device are obtained; acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment; comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity; and determining an upgrading mode according to the comparison result, and executing corresponding upgrading operation according to the determined upgrading mode. Therefore, the invention can start different upgrading modes according to the current battery electric quantity of the audio playing equipment, thereby ensuring the normal operation of the software upgrading of the audio playing equipment under the condition of battery power supply.

Description

Software upgrading control method and device and audio playing equipment
Technical Field
The present invention relates to the field of upgrade processing technologies, and in particular, to a method and an apparatus for controlling software upgrade, and an audio playing device.
Background
Intelligent network audio playing devices (such as sound boxes) are becoming more and more popular, and these intelligent network sound boxes integrate a processor and a network interface, so that streaming media music on the internet can be accessed, and music resources are directly obtained from the network for playing according to the selection of a user. The smart network speaker is generally controlled by using a mobile terminal (such as a mobile phone and a tablet computer). For example, after a dedicated application is installed on the mobile terminal, the smart network speaker can be accessed through the application, streaming media music on the internet can be browsed, and songs are selected and pushed to the smart network speaker for playing.
When the smart sound box needs to be upgraded, the smart sound box needs to download the latest upgrade file installation package from the network server to the local, and then decompress and install the latest upgrade file installation package, so that the upgrade operation is completed. However, when the smart speaker is powered by a battery, software upgrading needs to be performed to ensure that the battery is sufficient. If the battery is not charged in the process of upgrading the software, upgrading interruption can be caused, and if the upgrading interruption is serious, the intelligent sound box cannot be started normally.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for controlling software upgrade, and an audio playing device, which can start different upgrade modes according to a current battery power of the audio playing device, so as to ensure that the software upgrade of the audio playing device is normally performed under a condition of battery power supply.
The embodiment of the invention provides a control method for software upgrading, which is applied to an audio playing system and comprises the following steps:
acquiring the downloading time required by the new version upgrading file and the writing time required by installing the new version upgrading file into the audio playing equipment;
acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment;
comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity;
and determining an upgrading mode according to the comparison result, and executing corresponding upgrading operation according to the determined upgrading mode.
The embodiment of the invention also provides a control device for software upgrading, which is applied to an audio playing system and comprises the following components:
the total duration acquisition module is used for acquiring the downloading duration required by the new version upgrading file and the writing duration required by the new version upgrading file installed in the audio playing equipment;
the electric quantity duration acquisition module is used for acquiring duration corresponding to the current residual electric quantity of the audio playing equipment;
the time length comparison module is used for comparing the total time length of the downloading time length and the writing time length with the time length corresponding to the current residual electric quantity;
and the upgrading control module is used for determining an upgrading mode according to the comparison result and executing corresponding upgrading operation according to the determined upgrading mode.
The embodiment of the invention also provides audio playing equipment, which comprises a memory and a processor, wherein the processor is connected with the memory through a bus; the memory is used for storing a group of program codes, and the processor is used for calling the program codes stored in the memory and executing the following operations:
acquiring the downloading time required by the new version upgrading file and the writing time required by installing the new version upgrading file into the audio playing equipment;
acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment;
comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity;
and determining an upgrading mode according to the comparison result, and executing corresponding upgrading operation according to the determined upgrading mode.
According to the control method and device for software upgrading and the audio playing equipment, the downloading time required by the new version upgrading file and the writing time required by the new version upgrading file installed in the audio playing equipment are obtained; acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment; comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity; and determining an upgrading mode according to the comparison result, and executing corresponding upgrading operation according to the determined upgrading mode. Therefore, the invention can start different upgrading modes according to the current battery electric quantity of the audio playing equipment, thereby ensuring the normal operation of the software upgrading of the audio playing equipment under the condition of battery power supply.
Drawings
Fig. 1 is a schematic diagram of an implementation flow of a control method for software upgrading according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a specific implementation of a software upgrade control method according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart illustrating an implementation process of a write-in duration required by installing a new version upgrade file into an audio playing device according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of a control device for software upgrade according to an embodiment of the present invention.
Fig. 5 is a detailed module schematic diagram of a control device for software upgrade provided by an embodiment of the present invention.
Fig. 6 is a schematic block diagram of an audio playing device according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements throughout, the principles of the present invention are illustrated in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
While the principles of the invention have been described in the foregoing context, which is not intended to be limiting, those of ordinary skill in the art will appreciate that various of the steps and operations described below may also be implemented in hardware. The principles of the present invention are operational with numerous other general purpose or special purpose computing, communication environments or configurations.
Referring to fig. 1 and fig. 2, a method for controlling software upgrade according to an embodiment of the present invention is shown.
The control method for software upgrading is applied to an audio playing system and comprises the following steps:
in step S101, a download duration required for the new version upgrade file and a write duration required for installation into the audio playback device are obtained.
In the embodiment of the present invention, before the audio playing device needs to install the new version upgrade file, it needs to determine whether the current remaining power of the audio playing device is sufficient to support the upgrade operation, and therefore, it needs to know the download duration required by the new version upgrade file and the write-in duration required by the new version upgrade file installed in the audio playing device, so that different upgrade modes can be started by combining the current remaining power of the audio playing device, the download duration required by the new version upgrade file, and the write-in duration required by the new version upgrade file installed in the audio playing device.
Before the step of obtaining the download duration required by the new version upgrade file, the method further includes:
in step S11, the current downloading speed of the network server corresponding to the new version upgrade file is obtained.
The audio playing device obtains the current downloading speed by executing the network test instruction. For example, the audio playing device sends a Ping instruction to the network server, and the network server returns a result to the audio playing device after receiving the Ping instruction. Therefore, the audio playback apparatus can obtain the current download speed from the returned result.
In step S12, the download duration required by the new version upgrade file is calculated according to the download speed and the size of the data packet of the new version upgrade file.
Before the step of obtaining the write-in duration required for installing the new version upgrade file into the audio playing device, the method further includes:
in step S21, according to the upgrade file corresponding to the old version and the new version upgrade file, a write-in duration required for installing the new version upgrade file in the audio playback device is calculated.
Referring to fig. 3, in the present embodiment, step S21 specifically includes:
in step S31, a first writing time period required for installing the upgrade file corresponding to the old version in the audio playback apparatus is acquired.
In step S32, the upgrade file corresponding to the old version is compared with the upgrade file of the new version to obtain a difference file.
In step S33, the difference file is written into a learning modeling database for operation, so as to obtain a second writing duration required for installing the difference file into an audio playing device.
In step S34, a writing duration required for installing the new version upgrade file into the audio playing device is calculated according to the first writing duration and the second writing duration.
It can be understood that the same functional program data may exist between the software installation package of the old version and the software installation package of the new version, and the software installation package of the new version may certainly have more new functional program data than the software installation package of the old version.
Since the procedure of installing software programs in the same audio playing device is substantially the same, the installation speed and time are almost the same for the function program with the data packet size. Therefore, the audio playing device can automatically perform learning modeling to obtain the learning modeling database, and therefore, the audio playing device can obtain the second writing time required for installing the distinguishing file into the audio playing device according to the learning modeling. Therefore, the writing time required by installing the new version upgrading file into the audio playing device can be calculated by combining the first writing time required by installing the upgrading file corresponding to the old version into the audio playing device and learning modeling.
In step S102, a duration corresponding to the current remaining power of the audio playing device is obtained.
In step S103, the total duration of the download duration and the write duration is compared with the duration corresponding to the current remaining power.
In step S104, an upgrade mode is determined according to the comparison result, and a corresponding upgrade operation is performed according to the determined upgrade mode.
In this embodiment of the present invention, step S104 specifically includes:
in step S105, if the total duration of the download duration and the write-in duration is less than the duration corresponding to the current remaining power, a full upgrade operation is performed according to the new version upgrade file.
In step S106, if the total duration of the download duration and the write-in duration is greater than or equal to the duration corresponding to the current remaining power, comparing the duration corresponding to the current remaining power with a preset duration.
In step S107, if the duration corresponding to the current remaining power is less than the preset duration, the upgrade operation is not performed, and it is prompted that the current remaining power is insufficient to support the upgrade operation.
In step S108, if the duration corresponding to the current remaining power is greater than or equal to a preset duration, the preset function program in the new version upgrade file is upgraded, and other function programs except the preset function program in the new version upgrade file are not upgraded for the moment.
That is, if the current remaining power of the audio playing device is sufficient to support the full upgrade mode, the full upgrade operation is performed; if the current remaining capacity of the audio playing device is not enough to support the full-scale upgrade mode but enough to support the power-saving upgrade mode, executing the power-saving upgrade mode (i.e. upgrading the preset function program in the new version upgrade file, temporarily not upgrading other function programs in the new version upgrade file except the preset function program); and if the current residual capacity of the audio playing equipment is too low to support the power-saving upgrading mode, not executing upgrading operation and prompting that the current residual capacity is not enough to support the upgrading operation.
Preferably, after the power-saving upgrade mode is executed, the audio playing device may detect the battery power for a while, and if the detected battery power is sufficient to support other functional programs that have not been upgraded before, perform an upgrade operation on the other functional programs that have not been upgraded before, thereby achieving a full upgrade of a new version.
As can be seen from the above, the control method for software upgrade provided in the embodiment of the present invention obtains the download duration required by the new version upgrade file and the write duration required by the new version upgrade file installed in the audio playback device; acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment; comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity; and determining an upgrading mode according to the comparison result, and executing corresponding upgrading operation according to the determined upgrading mode. Therefore, the invention can start different upgrading modes according to the current battery electric quantity of the audio playing equipment, thereby ensuring the normal operation of the software upgrading of the audio playing equipment under the condition of battery power supply.
Please refer to fig. 4 and fig. 5, which are schematic block diagrams of a control device for software upgrade according to an embodiment of the present invention; for convenience of explanation, only portions related to the embodiments of the present invention are shown. The control device 100 for software upgrade includes: the system comprises a total duration acquisition module 101, an electric quantity duration acquisition module 102, a duration comparison module 103 and an upgrade control module 104. The control device of the software upgrade can be a software unit, a hardware unit or a unit combining software and hardware which is built in the audio playing device.
The total duration obtaining module 101 is configured to obtain a downloading duration required by the new version upgrade file and a writing duration required by the new version upgrade file installed in the audio playing device.
The electric quantity duration obtaining module 102 is configured to obtain a duration corresponding to a current remaining electric quantity of the audio playing device.
And the duration comparison module 103 is configured to compare the total duration of the download duration and the write-in duration with a duration corresponding to the current remaining power.
And the upgrade control module 104 is configured to determine an upgrade mode according to the comparison result, and execute a corresponding upgrade operation according to the determined upgrade mode.
In this embodiment of the present invention, the control device for software upgrade further includes: a download speed obtaining module 105 and a download duration calculating module 106.
And the download speed obtaining module 105 is configured to obtain a current download speed of the audio playing device and the network server corresponding to the new version upgrade file.
And the downloading time length calculating module 106 is used for calculating the downloading time length required by the new version upgrading file according to the downloading speed and the data packet size of the new version upgrading file.
In this embodiment of the present invention, the control device for software upgrade further includes: a write duration calculation module 107.
And the writing duration calculation module 107 is configured to calculate, according to the upgrade file corresponding to the old version and the new version upgrade file, a writing duration required for installing the new version upgrade file in the audio playing device.
In this embodiment of the present invention, the writing duration calculating module 107 includes: the device comprises a first time length obtaining module 11, a file comparison module 12, a second time length operation module 13 and a time length calculation module 14.
The first duration obtaining module 11 is configured to obtain a first writing duration required for installing the upgrade file corresponding to the old version in the audio playing device.
And the file comparison module 12 is used for comparing the upgrade file corresponding to the old version with the upgrade file of the new version to obtain a difference file.
And a second time duration operation module 13, configured to write the difference file into a learning modeling database for operation, so as to obtain a second write time duration required for installing the difference file into the audio playing device.
And the time length calculating module 14 is configured to calculate, according to the first writing time length and the second writing time length, a writing time length required for installing the new version upgrade file into the audio playing device.
As an embodiment of the present invention, the upgrade control module 104 further includes: the module 21 is fully upgraded.
And the comprehensive upgrading module 21 is configured to, if the total duration of the downloading duration and the writing duration is less than the duration corresponding to the current remaining power, execute a comprehensive upgrading operation according to the new version upgrading file.
As another embodiment of the present invention, the upgrade control module 104 further includes: a comparison module 31, a prompt module 32, and a partial upgrade module 33.
And the comparison module 31 is configured to compare the duration corresponding to the current remaining power with a preset duration if the total duration of the download duration and the write-in duration is greater than or equal to the duration corresponding to the current remaining power.
And the prompting module 32 is configured to not execute the upgrade operation and prompt that the current remaining power is insufficient to support the upgrade operation if the duration corresponding to the current remaining power is less than a preset duration.
And the partial upgrading module 33 is configured to upgrade the preset functional program in the new version upgrade file if the duration corresponding to the current remaining power is greater than or equal to a preset duration, and temporarily not upgrade other functional programs in the new version upgrade file except the preset functional program.
As can be seen from the above, the control device for software upgrade provided in the embodiment of the present invention obtains the download duration required by the new version upgrade file and the write duration required by the new version upgrade file installed in the audio playback device; acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment; comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity; and determining an upgrading mode according to the comparison result, and executing corresponding upgrading operation according to the determined upgrading mode. Therefore, the invention can start different upgrading modes according to the current battery electric quantity of the audio playing equipment, thereby ensuring the normal operation of the software upgrading of the audio playing equipment under the condition of battery power supply.
The method and the device for controlling software upgrading provided by the embodiment of the invention belong to the same concept, and the specific implementation process is detailed in the whole specification and is not repeated herein.
Fig. 6 shows a specific structural block diagram of an audio playing device according to an embodiment of the present invention, where the audio playing device 1200 may be used to implement the software upgrade processing method/apparatus provided in the foregoing embodiment.
As shown in fig. 6, the audio playing device may include a memory 801 including one or more computer-readable storage media (only one shown), an audio circuit 802, a transmission module 803, a processor 804 including one or more processing cores (only one shown), and a power supply 805. Those skilled in the art will appreciate that the audio playback device configuration shown in fig. 6 is not intended to be limiting of the audio playback device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components. Wherein:
the memory 801 may be used to store software programs and modules, such as program instructions/modules corresponding to the software upgrading processing method/apparatus in the foregoing embodiments, and the processor 804 executes various functional applications and data processing, i.e., functions of software upgrading processing, by running the software programs and modules stored in the memory 801. The memory 801 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 801 may further include memory located remotely from the processor 804, which may be connected to an audio playback device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The audio circuit 802 may transmit the electrical signal converted from the received audio data to a speaker, and the electrical signal is converted into a sound signal by the speaker and output.
The audio playback device accesses streaming media, etc. through a transport module 803 (e.g., a Wi-Fi module), which provides wireless broadband internet access for the user. Although fig. 6 shows the transmission module 803, it is understood that it does not belong to the essential constitution of the audio playback apparatus, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 804 is a control center of the audio playback device, connects various parts of the entire audio playback device using various interfaces and lines, and performs various functions of the audio playback device and processes data by operating or executing software programs and/or modules stored in the memory 801 and calling up data stored in the memory 801. Optionally, processor 804 may include one or more processing cores; preferably, the processor 804 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 804.
The audio playback device further includes a power source 805 (e.g., a battery) for supplying power to various components, and preferably, the power source may be logically connected to the processor 804 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 805 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any other components.
Although not shown, the audio playback device may also be a bluetooth module or the like. And will not be described in detail herein. Additionally, the mobile terminal also includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors the one or more programs including instructions for:
acquiring the downloading time required by the new version upgrading file and the writing time required by installing the new version upgrading file into the audio playing equipment;
acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment;
comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity;
and determining an upgrading mode according to the comparison result, and executing corresponding upgrading operation according to the determined upgrading mode.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (14)

1. A control method for software upgrading is applied to an audio playing system and is characterized by comprising the following steps:
acquiring the downloading time required by the new version upgrading file and the writing time required by installing the new version upgrading file into the audio playing equipment;
acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment;
comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity;
according to the comparison result, determining an upgrading mode, and executing corresponding upgrading operation according to the determined upgrading mode, wherein the upgrading operation comprises the following steps: if the total duration of the downloading duration and the writing duration is greater than or equal to the duration corresponding to the current residual electric quantity, and if the duration corresponding to the current residual electric quantity is greater than or equal to the preset duration, upgrading the preset functional program in the new version upgrade file, and temporarily not upgrading other functional programs except the preset functional program in the new version upgrade file;
after the upgrade is executed and after the preset time, the audio playing device detects the electric quantity of the battery, and if the detected electric quantity of the battery is enough to support other functional programs which are not upgraded before, the other functional programs which are not upgraded before are upgraded, so that the comprehensive upgrade of the new version is achieved.
2. The method for controlling software upgrade of claim 1, wherein before the step of obtaining the download duration required by the new version upgrade file, the method further comprises:
acquiring the current downloading speed of the audio playing equipment and a network server corresponding to the new version upgrading file;
and calculating the downloading time required by the new version upgrading file according to the downloading speed and the data packet size of the new version upgrading file.
3. The method for controlling software upgrade according to claim 1 or 2, wherein before the step of obtaining a writing time required for installing the new version upgrade file into the audio playing device, the method further comprises:
and calculating the writing time required for installing the new version upgrade file into the audio playing equipment according to the upgrade file corresponding to the old version and the new version upgrade file.
4. The method for controlling software upgrade according to claim 3, wherein the step of calculating a write-in duration required for installing the new version upgrade file into the audio playing device according to the upgrade file corresponding to the old version and the new version upgrade file comprises:
acquiring a first writing time required for installing an upgrade file corresponding to an old version into audio playing equipment;
comparing the upgrade file corresponding to the old version with the upgrade file of the new version to obtain a difference file;
writing the distinguishing file into a learning modeling database for operation to obtain a second writing time length required for installing the distinguishing file into audio playing equipment;
and calculating the writing time required for installing the new version upgrading file into the audio playing equipment according to the first writing time and the second writing time.
5. The method for controlling software upgrading according to claim 1, wherein the step of determining an upgrading mode according to the comparison result and performing corresponding upgrading operation according to the determined upgrading mode comprises:
and if the total duration of the downloading duration and the writing duration is less than the duration corresponding to the current residual electric quantity, executing comprehensive upgrading operation according to the new version upgrading file.
6. The method for controlling software upgrading according to claim 1, wherein the step of determining an upgrading mode according to the comparison result and performing corresponding upgrading operation according to the determined upgrading mode further comprises:
if the total duration of the downloading duration and the writing duration is greater than or equal to the duration corresponding to the current residual electric quantity, comparing the duration corresponding to the current residual electric quantity with a preset duration;
and if the time length corresponding to the current residual capacity is less than the preset time length, not executing the upgrading operation and prompting that the current residual capacity is less than the support of the upgrading operation.
7. A control device for software upgrade, which is applied to an audio playing system, is characterized by comprising:
the total duration acquisition module is used for acquiring the downloading duration required by the new version upgrading file and the writing duration required by the new version upgrading file installed in the audio playing equipment;
the electric quantity duration acquisition module is used for acquiring duration corresponding to the current residual electric quantity of the audio playing equipment;
the time length comparison module is used for comparing the total time length of the downloading time length and the writing time length with the time length corresponding to the current residual electric quantity;
the upgrading control module is used for determining an upgrading mode according to the comparison result and executing corresponding upgrading operation according to the determined upgrading mode;
wherein, the upgrade control module includes: a partial upgrade module;
the partial upgrading module is used for upgrading the preset functional program in the new version upgrading file and temporarily not upgrading other functional programs except the preset functional program in the new version upgrading file if the total duration of the downloading duration and the writing duration is greater than or equal to the duration corresponding to the current residual electric quantity and if the duration corresponding to the current residual electric quantity is greater than or equal to the preset duration; after the upgrade is executed and after the preset time, the audio playing device detects the electric quantity of the battery, and if the detected electric quantity of the battery is enough to support other functional programs which are not upgraded before, the other functional programs which are not upgraded before are upgraded, so that the comprehensive upgrade of the new version is achieved.
8. The control device of software upgrade of claim 7, further comprising:
the download speed acquisition module is used for acquiring the current download speed of the audio playing equipment and the network server corresponding to the new version upgrade file;
and the download duration calculation module is used for calculating the download duration required by the new version upgrade file according to the download speed and the data packet size of the new version upgrade file.
9. The control device of software upgrade according to claim 7 or 8, further comprising:
and the writing time length calculation module is used for calculating the writing time length required for installing the new version upgrading file into the audio playing equipment according to the upgrading file corresponding to the old version and the new version upgrading file.
10. The software upgrade control device according to claim 9, wherein said writing duration calculation module includes:
the first time length obtaining module is used for obtaining a first writing time length required for installing the upgrade file corresponding to the old version into the audio playing equipment;
the file comparison module is used for comparing the upgrade file corresponding to the old version with the upgrade file of the new version to obtain a difference file;
the second time length operation module is used for writing the distinguishing file into a learning modeling database for operation so as to obtain second writing time length required for installing the distinguishing file into the audio playing equipment;
and the time length calculation module is used for calculating the writing time length required for installing the new version upgrading file into the audio playing equipment according to the first writing time length and the second writing time length.
11. The software upgrade control device according to claim 7, wherein said upgrade control module further comprises: comprehensively upgrading the module;
and the comprehensive upgrading module is used for executing comprehensive upgrading operation according to the new version upgrading file if the total duration of the downloading duration and the writing duration is less than the duration corresponding to the current residual electric quantity.
12. The software upgrade control device according to claim 7, wherein said upgrade control module further comprises: a comparison module and a prompt module;
the comparison module is used for comparing the duration corresponding to the current residual electric quantity with a preset duration if the total duration of the downloading duration and the writing duration is greater than or equal to the duration corresponding to the current residual electric quantity;
and the prompting module is used for not executing the upgrading operation and prompting that the current residual capacity is not enough to support the upgrading operation if the duration corresponding to the current residual capacity is less than the preset duration.
13. An audio playing device is characterized by comprising a memory and a processor, wherein the processor and the memory are connected through a bus; the memory is used for storing a group of program codes, and the processor is used for calling the program codes stored in the memory and executing the following operations:
acquiring the downloading time required by the new version upgrading file and the writing time required by installing the new version upgrading file into the audio playing equipment;
acquiring the duration corresponding to the current residual electric quantity of the audio playing equipment;
comparing the total duration of the downloading duration and the writing duration with the duration corresponding to the current remaining electric quantity;
according to the comparison result, determining an upgrading mode, and executing corresponding upgrading operation according to the determined upgrading mode, wherein the upgrading operation comprises the following steps: if the total duration of the downloading duration and the writing duration is greater than or equal to the duration corresponding to the current residual electric quantity, and if the duration corresponding to the current residual electric quantity is greater than or equal to the preset duration, upgrading the preset functional program in the new version upgrade file, and temporarily not upgrading other functional programs except the preset functional program in the new version upgrade file;
after the upgrade is executed and after the preset time, the audio playing device detects the electric quantity of the battery, and if the detected electric quantity of the battery is enough to support other functional programs which are not upgraded before, the other functional programs which are not upgraded before are upgraded, so that the comprehensive upgrade of the new version is achieved.
14. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method according to any of the claims 1-6.
CN201710209406.4A 2017-03-31 2017-03-31 Software upgrading control method and device and audio playing equipment Expired - Fee Related CN106990986B (en)

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 CN106990986A (en) 2017-07-28
CN106990986B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN117693003A (en) * 2023-12-11 2024-03-12 广州通则康威科技股份有限公司 MIFI upgrading method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 device for realizing automatic upgrading of wearable intelligent equipment
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101332814B1 (en) * 2011-08-24 2013-12-02 주식회사 팬택 Apparatus and Method for Controlling Polling
CN103455126B (en) * 2013-09-16 2017-02-15 贝壳网际(北京)安全技术有限公司 Method and client device for determining residual service life of battery and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 device for realizing automatic upgrading of wearable intelligent equipment
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

Also Published As

Publication number Publication date
CN106990986A (en) 2017-07-28

Similar Documents

Publication Publication Date Title
CN106990986B (en) Software upgrading control method and device and audio playing equipment
CN106970816B (en) Software upgrading processing method and device and audio playing equipment
US9785428B2 (en) Internal software updating method and system
CN106649010B (en) terminal equipment test method and terminal equipment
CN109324857B (en) User guide implementation method, device and storage medium
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN104951335A (en) Processing method and device for application program installation packages
CN107025120B (en) Software upgrading processing method and device and terminal
CN104182330A (en) Application recommendation method and device and terminal
CN111813425A (en) Equipment upgrading method, device, equipment and storage medium
CN102830943B (en) Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform
CN106997302A (en) Firmware upgrade method, device and audio-frequence player device
CN105227606A (en) Application program adaptation method and device
CN107436410A (en) A kind of electric quantity controlling method, device, equipment and storage medium
CN105335192B (en) A kind of information processing method and electronic equipment
CN111262737B (en) Port configuration management method and device, storage medium and terminal
CN117369844A (en) OTA upgrading method, device, equipment and storage medium
CN108933715B (en) Interaction method and device and intelligent equipment
CN107015830B (en) Method and device for upgrading audio playing system and audio playing equipment
CN106970815A (en) Audio software upgrade method and device, audio-frequence player device
CN116533817A (en) Charging remaining time prediction method, device and storage medium
CN112860352A (en) Application loading method and device, storage medium and terminal
CN107038047B (en) Software version synchronization method and device of audio playing equipment and audio playing equipment
CN107018021B (en) Software upgrading processing method, device and terminal
CN113179344B (en) SIM card detection method, device, storage medium and 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
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