CN106970816B - Software upgrading processing method and device and audio playing equipment - Google Patents

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

Info

Publication number
CN106970816B
CN106970816B CN201710210351.9A CN201710210351A CN106970816B CN 106970816 B CN106970816 B CN 106970816B CN 201710210351 A CN201710210351 A CN 201710210351A CN 106970816 B CN106970816 B CN 106970816B
Authority
CN
China
Prior art keywords
audio playing
storage space
upgraded
installation package
file installation
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
CN201710210351.9A
Other languages
Chinese (zh)
Other versions
CN106970816A (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 CN201710210351.9A priority Critical patent/CN106970816B/en
Publication of CN106970816A publication Critical patent/CN106970816A/en
Application granted granted Critical
Publication of CN106970816B publication Critical patent/CN106970816B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The invention provides a software upgrading processing method, a device and audio playing equipment, which are characterized in that the available storage space of the audio playing equipment to be upgraded is obtained; judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package; if not, the upgrade file installation package is divided into a plurality of data packages; and respectively storing the plurality of data packets into the audio playing equipment to be upgraded and other audio playing equipment in the audio playing system. Therefore, when the available storage space of the audio playing equipment to be upgraded is not enough to store the upgrade file installation package, the invention can request other audio playing equipment in the audio playing system to temporarily store the upgrade file installation package; therefore, the upgrading operation can be completed when the space is insufficient, and the utilization rate of the available storage space of other audio playing equipment in the audio playing system is improved.

Description

Software upgrading processing method and device and audio playing equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a software upgrade processing method and apparatus, 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.
However, when the smart speaker needs to be upgraded, the smart speaker 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, thereby completing the upgrade operation. However, if the storage space of the smart speaker that needs to be upgraded is used to store other data, there may be insufficient storage space available to store the upgrade file installation package, which may result in that the smart speaker cannot complete the upgrade.
Disclosure of Invention
Embodiments of the present invention provide a software upgrade processing method and apparatus, and an audio playing device, where when an available storage space of an audio playing device to be upgraded is not sufficient for storing an upgrade file installation package, the upgrade file installation package may be requested to be temporarily stored in another audio playing device in an audio playing system, and the upgrade file installation package is downloaded to another audio playing device with a sufficient available storage space.
The embodiment of the invention provides a software upgrading processing method, which is applied to an audio playing system and comprises the following steps:
acquiring an available storage space of audio playing equipment to be upgraded;
judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package;
if not, the upgrade file installation package is divided into a plurality of data packages;
and respectively storing the data packets into the audio playing equipment to be upgraded and other audio playing equipment in an audio playing system.
The embodiment of the present invention further provides a software upgrade processing apparatus, applied to an audio playing system, including:
the storage space acquisition module is used for acquiring the available storage space of the audio playing equipment to be upgraded;
the storage space judgment module is used for judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package;
the dividing module is used for dividing the upgrade file installation package into a plurality of data packages if the available storage space is judged to be smaller than the storage space required by the upgrade file installation package;
and the storage control module is used for respectively storing the plurality of data packets into the audio playing equipment to be upgraded and other audio playing equipment in the audio playing system.
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 an available storage space of audio playing equipment to be upgraded;
judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package;
if not, the upgrade file installation package is divided into a plurality of data packages;
and respectively storing the data packets into the audio playing equipment to be upgraded and other audio playing equipment in an audio playing system.
According to the software upgrading processing method and device and the audio playing equipment, when the audio playing equipment to be upgraded needs to store the upgrade file installation package, the available storage space of the audio playing equipment to be upgraded is obtained; judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package; if not, the upgrade file installation package is divided into a plurality of data packages; and respectively storing the data packets into the audio playing equipment to be upgraded and other audio playing equipment in an audio playing system. Therefore, when the available storage space of the audio playing equipment to be upgraded is not enough to store the upgrade file installation package, the invention can request other audio playing equipment in the audio playing system to temporarily store the upgrade file installation package, and download the upgrade file installation package to other audio playing equipment with sufficient available storage space; therefore, the upgrading operation can be completed when the space is insufficient, and the utilization rate of the available storage space of other audio playing equipment in the audio playing system is improved.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation process of a software upgrade processing method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an implementation flow of software upgrade performed by an audio playing device to be upgraded according to an embodiment of the present invention.
Fig. 3 is a schematic flowchart of a specific implementation of a software upgrade processing method according to another embodiment of the present invention.
Fig. 4 is a schematic flow chart illustrating an implementation of a software upgrade processing method according to another embodiment of the present invention.
Fig. 5 is a block diagram of a software upgrade processing apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic block diagram illustrating a software upgrade processing apparatus according to another embodiment of the present invention.
Fig. 7 is a detailed module schematic diagram of a software upgrade processing apparatus according to another embodiment of the present invention.
Fig. 8 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, a software upgrade processing method according to an embodiment of the present invention is shown.
The software upgrading processing method is applied to an audio playing system and comprises the following steps:
in step S101, an available storage space of the audio playing device to be upgraded is obtained.
In the embodiment of the present invention, when the audio playing device to be upgraded detects that software needs to be upgraded, the audio playing device to be upgraded communicates with a preset network server, and downloads an upgrade file installation package from the network server, and caches the upgrade file installation package in the memory, instead of storing the upgrade file installation package in the local storage space of the audio playing device to be upgraded. Then, the audio playing device to be upgraded starts to execute step S101.
In step S102, it is determined whether the available storage space is greater than or equal to a storage space required for upgrading the file installation package.
It can be understood that, if it is determined that the available storage space is greater than or equal to the storage space required by the upgrade file installation package, that is, the available storage space of the audio playing device to be upgraded is sufficient for storing the upgrade file installation package, the upgrade file installation package downloaded from the network server is stored in the local storage space, and then the upgrade file installation package is decompressed and installed, thereby implementing the software upgrade operation.
In step S103, if not, the upgrade file installation package is divided into a plurality of data packages.
However, if it is determined that the available storage space is smaller than the storage space required by the upgrade file installation package, that is, the available storage space of the audio playing device to be upgraded is not sufficient for storing the upgrade file installation package, the upgrade file installation package needs to be divided into a plurality of data packages.
In step S104, the plurality of data packets are respectively stored in the audio playing device to be upgraded and other audio playing devices in the audio playing system.
Preferably, in order to conveniently and accurately recombine a plurality of data packets obtained after segmentation into a complete upgrade file installation package, sequence numbers of the plurality of data packets need to be marked, and the method is specifically implemented as follows:
after the step of dividing the upgrade file installation package into a plurality of data packages, sequentially marking serial numbers of the plurality of data packages according to a preset sequence rule. And then, respectively storing the plurality of data packets with the sequence numbers into the audio playing device to be upgraded and other audio playing devices in the audio playing system.
Referring to fig. 2, the audio playing device to be upgraded performs software upgrade as follows:
in step S105, when receiving the upgrade instruction, reading corresponding data packets from the audio playing device to be upgraded and other audio playing devices in the audio playing system.
In step S106, the read corresponding data packet is cached in the memory of the audio playing device to be upgraded.
In step S107, the read corresponding data package is analyzed to obtain the complete upgrade file installation package.
Specifically, according to the sequence of the sequence numbers, the plurality of data packages are recombined into the complete upgrade file installation package.
In step S108, an upgrade operation is performed according to the upgrade file installation package.
However, it is understood that in order to free up storage space, and reserve available storage space for the next upgrade, the upgraded upgrade file installation package needs to be deleted to make up available storage space, which is implemented as follows:
after the upgrade is successful, deleting the data packet stored in the audio playing device to be upgraded; and the audio playing device to be upgraded sends a deleting instruction to the audio playing device in which the data packet is stored, so that the audio playing device in which the data packet is stored deletes the corresponding data packet according to the deleting instruction.
Referring to fig. 3, a software upgrade processing method according to another embodiment of the invention is shown.
The software upgrading processing method is applied to an audio playing system and comprises the following steps:
in step S201, an available storage space of the audio playing device to be upgraded is obtained.
In step S202, it is determined whether the available storage space is greater than or equal to a storage space required for upgrading the file installation package.
In step S203, if not, the number N of other audio playing devices in the audio playing system is obtained.
In step S204, the upgrade file installation package is divided into a first data package and a second data package according to the available storage space; wherein the storage space required for the first data packet is equal to the available storage space.
In step S205, the second data packet is equally divided into N data packets according to the number N of the other audio playback devices.
In step S206, the first data packet is stored in the audio playing device to be upgraded.
In step S207, the N packets are stored in other audio playing devices in the audio playing system, respectively.
Referring to fig. 4, a software upgrade processing method according to another embodiment of the present invention is shown.
The software upgrading processing method is applied to an audio playing system and comprises the following steps:
in step S301, an available storage space of the audio playing device to be upgraded is obtained.
In step S302, it is determined whether the available storage space is greater than or equal to a storage space required for upgrading the file installation package.
In step S303, if not, an available storage space corresponding to other audio playing devices in the audio playing system is obtained.
In step S304, the upgrade file installation package is divided into a first data package and a second data package; and the storage space required by the first data packet is equal to the available storage space of the audio playing equipment to be upgraded.
In step S305, the available storage space corresponding to other audio playing devices is compared with the storage space required by the second data packet one by one.
In step S306, if there is an audio playing device with a storage space greater than or equal to the storage space required by the second data packet, it is determined that the second data packet is stored in the audio playing device.
In step S307, if not, the second data packet is divided into a plurality of data packets according to the available storage spaces corresponding to the other audio playing devices, so that the plurality of data packets can be stored in the available storage spaces of the other audio playing devices, respectively.
As can be seen from the above, in the software upgrade processing method provided in the embodiment of the present invention, when the audio playback device to be upgraded needs to store the upgrade file installation package, the available storage space of the audio playback device to be upgraded is obtained; judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package; if not, the upgrade file installation package is divided into a plurality of data packages; and respectively storing the data packets into the audio playing equipment to be upgraded and other audio playing equipment in an audio playing system. Therefore, when the available storage space of the audio playing equipment to be upgraded is not enough to store the upgrade file installation package, the invention can request other audio playing equipment in the audio playing system to temporarily store the upgrade file installation package, and download the upgrade file installation package to other audio playing equipment with sufficient available storage space; therefore, the upgrading operation can be completed when the space is insufficient, and the utilization rate of the available storage space of other audio playing equipment in the audio playing system is improved.
The following describes in detail the implementation flow of the software upgrade processing method of the present invention by way of example.
1. When the loudspeaker box A to be upgraded detects that software needs to be upgraded, the loudspeaker box A can communicate with a preset network server, download an upgrade file installation package from the network server, and cache the upgrade file installation package in a memory instead of storing the upgrade file installation package in a local storage space of the loudspeaker box A.
2. Speaker a then obtains its available storage space.
For example, the remaining available storage space of speaker a is B.
3. And judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package.
For example, the upgrade file installation package has a size of M.
4. And if not, acquiring the number N of other audio playing devices in the audio playing system.
If the available storage space of the sound box A is enough to store the upgrade file installation package, the upgrade file installation package downloaded from the network server is stored in the local storage space, and then the upgrade file installation package is decompressed and installed, so that the software upgrade operation is realized.
If B < M, it means that the available storage space of the loudspeaker box A is not enough to store the upgrade file installation package, then it needs to request other audio playing devices in the audio playing system to temporarily store the upgrade file installation package.
5. According to the available storage space, the upgrade file installation package is divided into a first data package and a second data package; wherein the storage space required for the first data packet is equal to the available storage space.
Firstly, the upgrade file installation package is divided into two data packages, wherein the first data package is data with the data size of B, and the second data package is the data size of M-B.
6. And according to the number N of the other audio playing devices, equally dividing the second data packet into N data packets.
And obtaining an upgrade file installation package of the data volume C by other sound boxes in the audio playing system according to a formula (M-B)/(N-1) ═ C.
7. And storing the first data packet into the sound box A.
8. And respectively storing the N data packets into other audio playing devices in the audio playing system.
It can be understood that, after the upgrade file installation package is stored in the sound box a and the other audio playing devices, the upgrade file installation package does not exist in the memory of the sound box a.
9. When the sound box A receives the upgrading instruction, the first data packet is read from the sound box A, and the corresponding data packets are respectively read from other audio playing devices in the audio playing system.
10. And caching the read corresponding data packet into the memory of the sound box A.
11. And the sound box A analyzes the read corresponding data packet to obtain the complete upgrade file installation packet.
12. And the sound box A performs upgrading operation according to the upgrading file installation package.
Similarly, after the upgrade is completed, the upgrade file installation package does not exist in the internal memory of the sound box a.
Please refer to fig. 5 to fig. 7, which are schematic block diagrams of a software upgrade processing apparatus 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 software upgrade processing apparatus 100 includes: the device comprises a storage space acquisition module 101, a storage space judgment module 102, a segmentation module 103 and a storage control module 104. The software upgrade processing device can be a software unit, a hardware unit or a combination of software and hardware unit built in the audio playing device.
A storage space obtaining module 101, configured to obtain an available storage space of the audio playing device to be upgraded.
The storage space determining module 102 is configured to determine whether the available storage space is greater than or equal to a storage space required by the upgrade file installation package.
A dividing module 103, configured to divide the upgrade file installation package into a plurality of data packages if it is determined that the available storage space is smaller than the storage space required by the upgrade file installation package.
And the storage control module 104 is configured to store the multiple data packets in the audio playing device to be upgraded and in other audio playing devices in the audio playing system, respectively.
In this embodiment of the present invention, the software upgrade processing apparatus further includes: a data packet reading module 105, a cache control module 106, a parsing module 107 and an upgrading module 108.
And the data packet reading module 105 is configured to, when receiving the upgrade instruction, read corresponding data packets from the audio playing device to be upgraded and other audio playing devices in the audio playing system.
And the cache control module 106 is configured to cache the read corresponding data packet into the memory of the audio playing device to be upgraded.
And the analysis module 107 is configured to analyze the read corresponding data package to obtain the complete upgrade file installation package.
And the upgrading module 108 is used for performing upgrading operation according to the upgrading file installation package.
As a preferred embodiment of the present invention, in order to facilitate the subsequent accurate recombination of a plurality of data packets obtained after being divided into a complete upgrade file installation package, therefore, serial numbers of the plurality of data packets need to be marked, the software upgrade processing apparatus further includes:
and the marking module 109 is configured to mark sequence numbers of the multiple data packets in sequence according to a preset sequence rule.
The parsing module 107 is specifically configured to recombine the multiple data packages into the complete upgrade file installation package according to the sequence of the sequence numbers.
As an embodiment of the present invention, the software upgrade processing apparatus further includes: a number acquisition module 110.
The number obtaining module 110 is configured to obtain the number N of other audio playing devices in the audio playing system.
The dividing module 103 is specifically configured to divide the upgrade file installation package into a first data package and a second data package according to an available storage space; wherein the storage space required by the first data packet is equal to the available storage space; and according to the number N of the other audio playing devices, equally dividing the second data packet into N data packets.
The storage control module 104 is specifically configured to store the first data packet in the audio playing device to be upgraded; and respectively storing the N data packets into other audio playing devices in the audio playing system.
As another embodiment of the present invention, the software upgrade processing apparatus further includes: an acquisition module 111.
The obtaining module 111 is configured to obtain an available storage space corresponding to other audio playing devices in the audio playing system.
The segmentation module 103 includes: a first segmentation module 1031, a comparison module 1032, a determination module 1033, and a second segmentation module 1034.
A first dividing module 1031, configured to divide the upgrade file installation package into a first data package and a second data package; and the storage space required by the first data packet is equal to the available storage space of the audio playing equipment to be upgraded.
The comparison module 1032 is configured to compare the available storage space corresponding to the other audio playing devices with the storage space required by the second data packet one by one.
A determining module 1033, configured to determine to store the second data packet in the audio playing device if there is an audio playing device that is greater than or equal to the storage space required by the second data packet.
The second dividing module 1034 is configured to, if there is no audio playing device with a storage space that is greater than or equal to the storage space required by the second data packet, divide the second data packet into a plurality of data packets according to the available storage spaces corresponding to other audio playing devices, so that the plurality of data packets can be stored in the available storage spaces of other audio playing devices, respectively.
As another preferred embodiment of the present invention, in order to free up storage space, if available storage space is reserved for the next upgrade, the upgraded upgrade file installation package needs to be deleted to make up available storage space, and then the software upgrade processing apparatus further includes:
and the deleting module 112 is configured to delete the data packet stored in the audio playing device to be upgraded after the upgrade is successful.
And the instruction sending module 113 is configured to send a deletion instruction to the audio playing device in which the data packet is stored, so that the audio playing device in which the data packet is stored deletes the corresponding data packet according to the deletion instruction.
As can be seen from the above, in the software upgrade processing apparatus provided in the embodiment of the present invention, when the audio playing device to be upgraded needs to store the upgrade file installation package, the available storage space of the audio playing device to be upgraded is obtained; judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package; if not, the upgrade file installation package is divided into a plurality of data packages; and respectively storing the data packets into the audio playing equipment to be upgraded and other audio playing equipment in an audio playing system. Therefore, when the available storage space of the audio playing equipment to be upgraded is not enough to store the upgrade file installation package, the invention can request other audio playing equipment in the audio playing system to temporarily store the upgrade file installation package, and download the upgrade file installation package to other audio playing equipment with sufficient available storage space; therefore, the upgrading operation can be completed when the space is insufficient, and the utilization rate of the available storage space of other audio playing equipment in the audio playing system is improved.
The software upgrading processing method and device 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 described herein again.
Fig. 8 is a block diagram illustrating a specific structure 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. 8, 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. 8 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. 8 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 an available storage space of audio playing equipment to be upgraded;
judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package;
if not, the upgrade file installation package is divided into a plurality of data packages;
and respectively storing the data packets into the audio playing equipment to be upgraded and other audio playing equipment in an audio playing system.
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 (12)

1. A software upgrading processing method is applied to an audio playing system and is characterized by comprising the following steps:
when the audio playing device to be upgraded detects that software needs to be upgraded, the audio playing device to be upgraded communicates with a preset network server, downloads an upgrade file installation package from the network server, and caches the upgrade file installation package in a memory, wherein the upgrade file installation package is not stored in a local storage space of the audio playing device to be upgraded;
the method comprises the steps that the audio playing equipment to be upgraded acquires an available storage space of the audio playing equipment to be upgraded;
judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package;
if yes, storing the upgrade file installation package downloaded from the network server into a local storage space;
if not, the upgrade file installation package is divided into a plurality of data packages;
respectively storing the plurality of data packets into the audio playing equipment to be upgraded and other audio playing equipment in an audio playing system;
when an upgrading instruction is received, reading corresponding data packets from the audio playing equipment to be upgraded and other audio playing equipment in the audio playing system;
caching the read corresponding data packet into a memory of the audio playing equipment to be upgraded;
analyzing the read corresponding data packet to obtain a complete upgrade file installation packet;
performing upgrading operation according to the upgrading file installation package;
after the upgrade is successful, deleting the data packet stored in the audio playing device to be upgraded;
and the audio playing equipment to be upgraded sends a deleting instruction to the audio playing equipment in which the data packet is stored, so that the audio playing equipment in which the data packet is stored deletes the corresponding data packet according to the deleting instruction.
2. The software upgrade processing method according to claim 1, further comprising, after the step of dividing the upgrade file installation package into a plurality of data packages:
and sequentially marking serial numbers of the plurality of data packets according to a preset sequence rule.
3. The software upgrade processing method according to claim 2, wherein the step of parsing the read corresponding data package to obtain the complete upgrade file installation package comprises:
and recombining the plurality of data packets into a complete upgrade file installation packet according to the sequence of the sequence numbers.
4. The software upgrade processing method according to claim 1, further comprising, before the step of dividing the upgrade file installation package into a plurality of data packages:
acquiring the number N of other audio playing devices in the audio playing system;
the step of dividing the upgrade file installation package into a plurality of data packages comprises the following steps:
according to the available storage space, the upgrade file installation package is divided into a first data package and a second data package; wherein the storage space required by the first data packet is equal to the available storage space;
according to the number N of other audio playing devices, equally dividing the second data packet into N data packets;
the step of storing the plurality of data packets into the audio playing device to be upgraded and other audio playing devices in the audio playing system respectively includes:
storing the first data packet into the audio playing device to be upgraded;
and respectively storing the N data packets into other audio playing devices in the audio playing system.
5. The software upgrade processing method according to claim 1, further comprising, before the step of dividing the upgrade file installation package into a plurality of data packages:
acquiring available storage space corresponding to other audio playing devices in the audio playing system;
the step of dividing the upgrade file installation package into a plurality of data packages comprises the following steps:
dividing the upgrade file installation package into a first data package and a second data package; the storage space required by the first data packet is equal to the available storage space of the audio playing device to be upgraded;
comparing available storage spaces corresponding to other audio playing devices with storage spaces required by the second data packet one by one;
if the audio playing equipment with the storage space more than or equal to the storage space required by the second data packet exists, determining to store the second data packet into the audio playing equipment;
if not, the second data packet is divided into a plurality of data packets according to the available storage spaces corresponding to other audio playing devices, so that the plurality of data packets can be stored in the available storage spaces of other audio playing devices respectively.
6. A software upgrade processing device applied to an audio playing system is characterized by comprising:
the download module is used for communicating the audio playing equipment to be upgraded with a preset network server when the audio playing equipment to be upgraded detects that software needs to be upgraded, downloading an upgrade file installation package from the network server, caching the upgrade file installation package in a memory and not storing the upgrade file installation package in a local storage space of the audio playing equipment to be upgraded;
the storage space acquisition module is used for acquiring the available storage space of the audio playing equipment to be upgraded;
the storage space judgment module is used for judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package;
the storage module is used for storing the upgrade file installation package downloaded from the network server into a local storage space if the available storage space is judged to be larger than or equal to the storage space required by the upgrade file installation package;
the dividing module is used for dividing the upgrade file installation package into a plurality of data packages if the available storage space is judged to be smaller than the storage space required by the upgrade file installation package;
the storage control module is used for respectively storing the plurality of data packets into the audio playing equipment to be upgraded and other audio playing equipment in the audio playing system;
the data packet reading module is used for reading corresponding data packets from the audio playing equipment to be upgraded and other audio playing equipment in the audio playing system when an upgrading instruction is received;
the cache control module is used for caching the read corresponding data packet into a memory of the audio playing equipment to be upgraded;
the analysis module is used for analyzing the read corresponding data packet to obtain a complete upgrade file installation packet;
the upgrading module is used for carrying out upgrading operation according to the upgrading file installation package;
the deleting module is used for deleting the data packet stored in the audio playing equipment to be upgraded after the upgrading is successful;
and the instruction sending module is used for sending a deleting instruction to the audio playing equipment in which the data packet is stored by the audio playing equipment to be upgraded so that the audio playing equipment in which the data packet is stored deletes the corresponding data packet according to the deleting instruction.
7. The software upgrade processing apparatus according to claim 6, further comprising:
and the marking module is used for marking the serial numbers of the plurality of data packets in sequence according to a preset sequence rule.
8. The software upgrade processing apparatus according to claim 7,
the analysis module is specifically configured to recombine the multiple data packages into the complete upgrade file installation package according to the sequence of the sequence numbers.
9. The software upgrade processing apparatus according to claim 6, further comprising: a number acquisition module;
the number obtaining module is used for obtaining the number N of other audio playing devices in the audio playing system;
the dividing module is specifically used for dividing the upgrade file installation package into a first data package and a second data package according to the available storage space; wherein the storage space required by the first data packet is equal to the available storage space; according to the number N of other audio playing devices, equally dividing the second data packet into N data packets;
the storage control module is specifically configured to store the first data packet in the audio playing device to be upgraded; and respectively storing the N data packets into other audio playing devices in the audio playing system.
10. The software upgrade processing apparatus according to claim 6, further comprising: an acquisition module;
the acquisition module is used for acquiring available storage space corresponding to other audio playing devices in the audio playing system;
the segmentation module includes: the device comprises a first segmentation module, a comparison module, a determination module and a second segmentation module;
the first segmentation module is used for segmenting the upgrade file installation package into a first data package and a second data package; the storage space required by the first data packet is equal to the available storage space of the audio playing device to be upgraded;
the comparison module is used for comparing the available storage space corresponding to other audio playing equipment with the storage space required by the second data packet one by one;
the determining module is used for determining to store the second data packet into the audio playing equipment if the audio playing equipment with the storage space larger than or equal to the storage space required by the second data packet exists;
and the second dividing module is used for dividing the second data packet into a plurality of data packets according to the available storage space corresponding to other audio playing equipment if the audio playing equipment with the storage space larger than or equal to the storage space required by the second data packet does not exist, so that the plurality of data packets can be respectively stored in the available storage space of other audio playing equipment.
11. 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:
when the audio playing device to be upgraded detects that software needs to be upgraded, the audio playing device to be upgraded communicates with a preset network server, downloads an upgrade file installation package from the network server, and caches the upgrade file installation package in a memory, wherein the upgrade file installation package is not stored in a local storage space of the audio playing device to be upgraded;
the method comprises the steps that the audio playing equipment to be upgraded acquires an available storage space of the audio playing equipment to be upgraded;
judging whether the available storage space is larger than or equal to the storage space required by the upgrade file installation package;
if yes, storing the upgrade file installation package downloaded from the network server into a local storage space;
if not, the upgrade file installation package is divided into a plurality of data packages;
respectively storing the plurality of data packets into the audio playing equipment to be upgraded and other audio playing equipment in an audio playing system;
when an upgrading instruction is received, reading corresponding data packets from the audio playing equipment to be upgraded and other audio playing equipment in the audio playing system;
caching the read corresponding data packet into a memory of the audio playing equipment to be upgraded;
analyzing the read corresponding data packet to obtain a complete upgrade file installation packet;
performing upgrading operation according to the upgrading file installation package;
after the upgrade is successful, deleting the data packet stored in the audio playing device to be upgraded;
and the audio playing equipment to be upgraded sends a deleting instruction to the audio playing equipment in which the data packet is stored, so that the audio playing equipment in which the data packet is stored deletes the corresponding data packet according to the deleting instruction.
12. 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-5.
CN201710210351.9A 2017-03-31 2017-03-31 Software upgrading processing method and device and audio playing equipment Expired - Fee Related CN106970816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710210351.9A CN106970816B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and audio playing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710210351.9A CN106970816B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and audio playing equipment

Publications (2)

Publication Number Publication Date
CN106970816A CN106970816A (en) 2017-07-21
CN106970816B true CN106970816B (en) 2021-01-26

Family

ID=59336879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710210351.9A Expired - Fee Related CN106970816B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and audio playing equipment

Country Status (1)

Country Link
CN (1) CN106970816B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107817997A (en) * 2017-11-24 2018-03-20 四川长虹电器股份有限公司 Solves the method for upgrading software for causing upgrading to fail for Insufficient disk space
CN109558072B (en) * 2018-10-10 2022-03-25 建荣半导体(深圳)有限公司 Storage space expansion method and system of audio playing chip, audio playing chip and storage device
CN110221856B (en) * 2019-06-25 2024-03-19 努比亚技术有限公司 Wearable device upgrading method, wearable device and storage medium
CN111352730B (en) * 2020-02-11 2023-07-14 浙江大华技术股份有限公司 Caching method and device for application program upgrade, computer equipment and storage medium
CN111580840A (en) * 2020-03-27 2020-08-25 惠州市德赛西威汽车电子股份有限公司 Method for realizing ECU (electronic control Unit) updating based on distributed memory management
CN113704177B (en) * 2021-07-30 2023-06-20 苏州浪潮智能科技有限公司 Storage method, system and related components of server firmware upgrade file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677946A (en) * 2013-12-30 2014-03-26 广州日滨科技发展有限公司 Method and system for updating elevator device control programs
CN104639647A (en) * 2015-02-12 2015-05-20 广东欧珀移动通信有限公司 Loudspeaker box upgrading method and loudspeaker box upgrading device
CN105843656A (en) * 2016-04-22 2016-08-10 Tcl集团股份有限公司 System upgrading method for insufficient disk space, terminal device and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770384B (en) * 2010-01-18 2012-12-05 深圳市航盛电子股份有限公司 Car audio system software upgrading method
US9804960B2 (en) * 2013-03-14 2017-10-31 Western Digital Technologies, Inc. Overprovision capacity in a data storage device
CN103237300B (en) * 2013-04-28 2015-09-09 小米科技有限责任公司 A kind of method of file download, Apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677946A (en) * 2013-12-30 2014-03-26 广州日滨科技发展有限公司 Method and system for updating elevator device control programs
CN104639647A (en) * 2015-02-12 2015-05-20 广东欧珀移动通信有限公司 Loudspeaker box upgrading method and loudspeaker box upgrading device
CN105843656A (en) * 2016-04-22 2016-08-10 Tcl集团股份有限公司 System upgrading method for insufficient disk space, terminal device and server

Also Published As

Publication number Publication date
CN106970816A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
CN106970816B (en) Software upgrading processing method and device and audio playing equipment
CN102694861B (en) A kind of terminal application software sorting technique, Apparatus and system based on cloud
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN104243586A (en) Content sharing method, device and equipment
CN104104971A (en) Video file processing method and system
CN106997302A (en) Firmware upgrade method, device and audio-frequence player device
CN107025121B (en) Software upgrading method and device and electronic device
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN108540509A (en) A kind of processing method of terminal browser, device and server, intelligent terminal
CN107798064A (en) Page processing method, electronic equipment and computer-readable recording medium
CN114185491A (en) Method and device for downloading partitioned file, storage medium and computer equipment
CN103593233A (en) Method and system for pushing software information
CN114124917A (en) Remote upgrading method, equipment, system and medium for ground lock firmware
CN104536782A (en) Guide content display method, and file generation method and device
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN106990986B (en) Software upgrading control method and device and audio playing equipment
CN105187562A (en) System and method for operating remote file
CN105511849A (en) Method, device and system for application program display
JP2004171258A (en) Permission token management system and program
CN102377793A (en) Flash interaction method and device based on mobile communication equipment terminal
CN112346758B (en) Digital infrastructure service updating platform, updating method and electronic equipment
CN111262737B (en) Port configuration management method and device, storage medium and terminal
CN115269517A (en) File management method, device, storage medium and terminal
CN107015830B (en) Method and device for upgrading audio playing system and audio playing equipment
CN106970812A (en) upgrade file processing, device and terminal

Legal Events

Date Code Title Description
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
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.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210126