CN106970816A - A kind of software upgrading processing method, device and audio-frequence player device - Google Patents

A kind of software upgrading processing method, device and audio-frequence player device Download PDF

Info

Publication number
CN106970816A
CN106970816A CN201710210351.9A CN201710210351A CN106970816A CN 106970816 A CN106970816 A CN 106970816A CN 201710210351 A CN201710210351 A CN 201710210351A CN 106970816 A CN106970816 A CN 106970816A
Authority
CN
China
Prior art keywords
audio
frequence player
packet
installation kit
player device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710210351.9A
Other languages
Chinese (zh)
Other versions
CN106970816B (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

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 present invention provides a kind of software upgrading processing method, device and audio-frequence player device, by the free memory for obtaining audio-frequence player device to be upgraded;Judge free memory whether more than or equal to the memory space needed for upgrade file installation kit;If it is not, then carrying out being divided into multiple packets to upgrade file installation kit;Multiple packets are respectively stored into audio-frequence player device to be upgraded, and stored into other audio-frequence player devices in audio frequency broadcast system.Therefore, the present invention is enabled to when the free memory of audio-frequence player device to be upgraded is not enough to storage upgrade file installation kit, can be to the interim storage upgrade file installation kit of the audio-frequence player device of other in audio frequency broadcast system request;Updating operation can also be completed during insufficient space so as to effectively realizing, the utilization rate of the free memory of other audio-frequence player devices in audio frequency broadcast system is improved.

Description

A kind of software upgrading processing method, device and audio-frequence player device
Technical field
Play and set the present invention relates to communication technical field, more particularly to a kind of software upgrading processing method, device and audio It is standby.
Background technology
Intelligent network audio-frequence player device (such as audio amplifier) is increasingly popularized, these intelligent network audio amplifiers be integrated with processor and Network interface, therefore the Streaming Media music of internet can be accessed, according to the selection of user, directly from Network Capture music sources Play out.Intelligent network audio amplifier is usually to be controlled using mobile terminal (such as mobile phone and tablet personal computer).Such as, mobile whole Installed on end after special application program, then intelligent network audio amplifier can be accessed by the application program, may browse through interconnection Online Streaming Media music, and select song to be pushed to the broadcasting of intelligent network audio amplifier.
However, when intelligent sound box needs upgrading, then intelligent sound box needs to download newest upgrading text from the webserver Then part installation kit decompresses installation, so as to complete updating operation again to local.However, if it is desired to the intelligent sound box of upgrading When memory space is used to store other data, then can exist and upgrade file installation is preserved without enough free memories Bag, so that intelligent sound box can be caused can not to complete upgrading.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of software upgrading processing method, device and audio-frequence player device, when , can be to audio frequency broadcast system when the free memory of audio-frequence player device to be upgraded is not enough to storage upgrade file installation kit The interior interim storage upgrade file installation kit of other audio-frequence player devices request, available storage is downloaded to by upgrade file installation kit In other sufficient audio-frequence player devices of space.
The embodiments of the invention provide a kind of software upgrading processing method, applied to audio frequency broadcast system, including step:
Obtain the free memory of audio-frequence player device to be upgraded;
Judge the free memory whether more than or equal to the memory space needed for upgrade file installation kit;
If it is not, then carrying out being divided into multiple packets to the upgrade file installation kit;
The multiple packet is respectively stored into the audio-frequence player device to be upgraded, and storage is played to audio In other audio-frequence player devices in system.
The embodiment of the present invention additionally provides a kind of software upgrading processing unit, applied to audio frequency broadcast system, including:
Memory space acquisition module, the free memory for obtaining audio-frequence player device to be upgraded;
Memory space judge module, for judging whether the free memory is more than or equal to upgrade file installation kit Required memory space;
Split module, if for judging that the free memory is empty less than the storage needed for upgrade file installation kit Between, then the upgrade file installation kit is carried out being divided into multiple packets;
Storage control module, for the multiple packet to be respectively stored into the audio-frequence player device to be upgraded, And store into other audio-frequence player devices in audio frequency broadcast system.
The embodiment of the present invention additionally provides a kind of audio-frequence player device, including memory and processor, the processor and The memory is connected by bus;The memory is used to store batch processing code, and the processor is described for calling The program code stored in memory, performs following operation:
Obtain the free memory of audio-frequence player device to be upgraded;
Judge the free memory whether more than or equal to the memory space needed for upgrade file installation kit;
If it is not, then carrying out being divided into multiple packets to the upgrade file installation kit;
The multiple packet is respectively stored into the audio-frequence player device to be upgraded, and storage is played to audio In other audio-frequence player devices in system.
Software upgrading processing method, device and audio-frequence player device that the present invention is provided, when audio-frequence player device to be upgraded When needing to store upgrade file installation kit, then by obtaining the free memory of audio-frequence player device to be upgraded;Sentence Whether the free memory that breaks is more than or equal to the memory space needed for upgrade file installation kit;If it is not, then to the liter Level file installation kit carries out being divided into multiple packets;The multiple packet is respectively stored into the audio to be upgraded to play In equipment, and store into other audio-frequence player devices in audio frequency broadcast system.Therefore, the present invention enables to work as and waits to rise , can be into audio frequency broadcast system when the free memory of level audio-frequence player device is not enough to storage upgrade file installation kit The interim storage upgrade file installation kit of other audio-frequence player devices request, free memory is downloaded to by upgrade file installation kit In other sufficient audio-frequence player devices;Updating operation can also be completed during insufficient space so as to effectively realize, audio is improved The utilization rate of the free memory of other audio-frequence player devices in play system.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram for the software upgrading processing method that one embodiment of the invention is provided.
Fig. 2 is the implementation process signal that audio-frequence player device to be upgraded provided in an embodiment of the present invention carries out software upgrading Figure.
Fig. 3 is that the software upgrading processing method that another embodiment of the present invention is provided implements schematic flow sheet.
Fig. 4 is the implementation process schematic diagram for the software upgrading processing method that further embodiment of this invention is provided.
Fig. 5 is the module diagram for the software upgrading processing unit that one embodiment of the invention is provided.
Fig. 6 is the detailed module diagram for the software upgrading processing unit that another embodiment of the present invention is provided.
Fig. 7 is the detailed module diagram for the software upgrading processing unit that further embodiment of this invention is provided.
Fig. 8 is the module diagram of audio-frequence player device provided in an embodiment of the present invention.
Embodiment
Refer to the schema in accompanying drawing, wherein identical element numbers represent identical component, principle of the invention be with Implement to illustrate in an appropriate computing environment.The following description is based on exemplified specific implementation of the invention Example, it is not construed as the limitation present invention other specific embodiments not detailed herein.
The principle of the invention illustrates that it is not represented as a kind of limitation with above-mentioned word, and those skilled in the art can Solve plurality of step as described below and operation also may be implemented among hardware.The principle of the present invention uses many other wide usages Or specific purpose computing, communication environment or configuration are operated.
Referring to Fig. 1, showing the software upgrading processing method of one embodiment of the invention offer.
The software upgrading processing method, applied in audio frequency broadcast system, comprises the following steps:
In step S101, the free memory of audio-frequence player device to be upgraded is obtained.
In embodiments of the present invention, when audio-frequence player device to be upgraded, which is detected, needs upgrading software, then this waits to rise Level audio-frequence player device can be communicated with the default webserver, and download upgrade file installation from the webserver Bag, and be buffered in internal memory, without being stored in the local storage space of audio-frequence player device to be upgraded.Then, this waits to rise Level audio-frequence player device just starts to perform step S101.
In step s 102, judge the free memory whether more than or equal to depositing needed for upgrade file installation kit Store up space.
It is understood that if it is judged that the free memory is greater than or equal to needed for upgrade file installation kit Memory space, i.e., the free memory of audio-frequence player device to be upgraded is enough to store upgrade file installation kit, then will be from The upgrade file installation kit that the webserver is downloaded is stored into local storage space, and then, the upgrade file installation kit is entered Row decompression is installed, it is achieved thereby that software upgrading is operated.
In step s 103, if it is not, then carrying out being divided into multiple packets to the upgrade file installation kit.
However, if it is judged that the free memory is treated less than the memory space needed for upgrade file installation kit The free memory of upgrading audio-frequence player device is not enough to store upgrade file installation kit, then need to the upgrade file Installation kit carries out being divided into multiple packets.
In step S104, the multiple packet is respectively stored into the audio-frequence player device to be upgraded, and Store in other audio-frequence player devices in audio frequency broadcast system.
It is preferred that, it is follow-up accurately by the multiple packets obtained after segmentation for convenience, it is reassembled into complete liter Level file installation kit, accordingly, it would be desirable to which sequence number is marked to the plurality of packet, is implemented as follows:
After the step of carrying out being divided into multiple packets to the upgrade file installation kit, advised according to preset order Then, sequence number is marked to the multiple packet successively.Then, multiple packets with sequence number are respectively stored into described In audio-frequence player device to be upgraded, and store into other audio-frequence player devices in audio frequency broadcast system.
Referring to Fig. 2, the realization that audio-frequence player device to be upgraded carries out software upgrading is as follows:
In step S105, when receiving upgrade command, played from the audio-frequence player device to be upgraded with audio In other audio-frequence player devices in system, corresponding packet is read.
In step s 106, the corresponding data bag of reading is cached into the internal memory of the audio-frequence player device to be upgraded.
In step s 107, the corresponding data bag of the reading is parsed, the complete upgrade file installation kit is obtained.
Specifically, multiple packets are reassembled into the complete upgrade file and pacified by putting in order according to sequence number Dress bag.
In step S108, according to the upgrade file installation kit, updating operation is carried out.
It is understood, however, that being the reserved free memory of upgrading next time, then need to discharge memory space The upgrade file installation kit upgraded is deleted, to vacate free memory, is realized as follows:
After upgrading successfully, storage is deleted to the packet in the audio-frequence player device to be upgraded;Also, Audio-frequence player device to be upgraded sends to the audio-frequence player device for the packet that is stored with and deletes instruction, so that it is described to be stored with The audio-frequence player device of packet is instructed according to described delete, and deletes corresponding packet.
Referring to Fig. 3, showing the software upgrading processing method of another embodiment of the present invention offer.
The software upgrading processing method, applied in audio frequency broadcast system, comprises the following steps:
In step s 201, the free memory of audio-frequence player device to be upgraded is obtained.
In step S202, judge the free memory whether more than or equal to depositing needed for upgrade file installation kit Store up space.
In step S203, if it is not, obtaining the number N of other audio-frequence player devices in the audio frequency broadcast system.
In step S204, according to free memory, by the upgrade file installation kit be divided into the first packet and Second packet;Wherein, the memory space needed for first packet is equal to the free memory.
In step S205, according to the number N of other audio-frequence player devices, second packet is averagely split Into N number of packet.
In step S206, by first packet storage into the audio-frequence player device to be upgraded.
In step S207, N number of packet is respectively stored into other audio-frequence player devices in audio frequency broadcast system.
Referring to Fig. 4, showing the software upgrading processing method of further embodiment of this invention offer.
The software upgrading processing method, applied in audio frequency broadcast system, comprises the following steps:
In step S301, the free memory of audio-frequence player device to be upgraded is obtained.
In step s 302, judge the free memory whether more than or equal to depositing needed for upgrade file installation kit Store up space.
In step S303, if it is not, other audio-frequence player devices obtained in the audio frequency broadcast system are corresponding available Memory space.
In step s 304, the upgrade file installation kit is divided into the first packet and the second packet;Wherein, institute Memory space needed for stating the first packet is equal to the free memory of audio-frequence player device to be upgraded.
In step S305, by the corresponding free memory of other audio-frequence player devices and depositing needed for the second packet Storage space is contrasted one by one.
In step S306, if there is the audio-frequence player device more than or equal to the memory space needed for the second packet, It is determined that by second packet storage into the audio-frequence player device.
In step S307, if it is not, then according to the corresponding free memory of other audio-frequence player devices, to described second Packet carries out being divided into multiple packets, so that the plurality of packet can be respectively stored into the available of other audio-frequence player devices In memory space.
From the foregoing, it will be observed that software upgrading processing method provided in an embodiment of the present invention, when audio-frequence player device to be upgraded needs When being stored to upgrade file installation kit, then by obtaining the free memory of audio-frequence player device to be upgraded;Judge institute Free memory is stated whether more than or equal to the memory space needed for upgrade file installation kit;If it is not, then to the upgrading text Part installation kit carries out being divided into multiple packets;The multiple packet is respectively stored into the audio-frequence player device to be upgraded In, and store into other audio-frequence player devices in audio frequency broadcast system.Therefore, the present invention enables to work as sound to be upgraded , can be to other in audio frequency broadcast system when the free memory of frequency playback equipment is not enough to storage upgrade file installation kit The interim storage upgrade file installation kit of audio-frequence player device request, downloads to free memory sufficient by upgrade file installation kit Other audio-frequence player devices in;Updating operation can also be completed during insufficient space so as to effectively realize, audio broadcasting is improved The utilization rate of the free memory of other audio-frequence player devices in system.
The implementation process of the software upgrading processing method of the present invention is described in detail below by citing.
1st, when audio amplifier A to be upgraded, which is detected, needs upgrading software, then audio amplifier A can enter with the default webserver Row communication, and upgrade file installation kit is downloaded from the webserver, and be buffered in internal memory, without being stored in audio amplifier A's In local storage space.
2nd, then, audio amplifier A obtains its free memory.
For example, audio amplifier A remaining free memory is B.
3rd, judge the free memory whether more than or equal to the memory space needed for upgrade file installation kit.
For example, the size of upgrade file installation kit is M.
4th, if it is not, obtaining the number N of other audio-frequence player devices in the audio frequency broadcast system.
If B>=M, illustrates that audio amplifier A free memory is enough to store upgrade file installation kit, then will be from network The upgrade file installation kit that server is downloaded is stored into local storage space, and then, the upgrade file installation kit is solved Pressure is installed, it is achieved thereby that software upgrading is operated.
If B<M, illustrates that audio amplifier A free memory is not enough to store upgrade file installation kit, then need to sound The interim storage upgrade file installation kit of other audio-frequence player devices request in frequency play system.
5th, according to free memory, the upgrade file installation kit is divided into the first packet and the second packet; Wherein, the memory space needed for first packet is equal to the free memory.
Wherein, upgrade file installation kit is divided into two packets first, the first packet is the data of B data amount, Second packet is M-B data volume.
6th, according to the number N of other audio-frequence player devices, second packet is averagely divided into N number of data Bag.
Wherein, C data amount is obtained according to other audio amplifiers in formula (M-B)/(N-1)=C, i.e. audio frequency broadcast system Upgrade file installation kit.
7th, by first packet storage into audio amplifier A.
8th, N number of packet is respectively stored into other audio-frequence player devices in audio frequency broadcast system.
It is understood that after upgrade file installation kit is respectively stored in audio amplifier A and other audio-frequence player devices, Just upgrade file installation kit is not present so in audio amplifier A internal memory.
9th, when audio amplifier A receives upgrade command, the first packet is read from the audio amplifier A, from audio frequency broadcast system In other audio-frequence player devices in read corresponding packet respectively.
10th, the corresponding data bag of reading is cached into audio amplifier A internal memory.
11st, audio amplifier A parses the corresponding data bag of the reading, obtains the complete upgrade file installation kit.
12nd, audio amplifier A carries out updating operation according to the upgrade file installation kit.
Likewise, after the completion of upgrading, then upgrade file installation kit is just not present in audio amplifier A internal memory.
It is the module diagram of software upgrading processing unit provided in an embodiment of the present invention also referring to Fig. 5 to Fig. 7; For convenience of description, it illustrate only the part related to the embodiment of the present invention.The software upgrading processing unit 100 includes:Deposit Store up space acquisition module 101, memory space judge module 102, segmentation module 103, storage control module 104.The software liter Level processing unit can be software unit, the list of hardware cell either software and hardware combining being built in audio-frequence player device Member.
Memory space acquisition module 101, the free memory for obtaining audio-frequence player device to be upgraded.
Memory space judge module 102, for judging whether the free memory is more than or equal to upgrade file peace Fill the memory space needed for bag.
Split module 103, if for judging the free memory less than the storage needed for upgrade file installation kit Space, then carry out being divided into multiple packets to the upgrade file installation kit.
Storage control module 104, for the multiple packet to be respectively stored into the audio-frequence player device to be upgraded In, and store into other audio-frequence player devices in audio frequency broadcast system.
In embodiments of the present invention, the software upgrading processing unit, in addition to:Packet read module 105, caching control Molding block 106, parsing module 107, upgraded module 108.
Packet read module 105, for when receiving upgrade command, being neutralized from the audio-frequence player device to be upgraded In other audio-frequence player devices in audio frequency broadcast system, corresponding packet is read.
Buffer control module 106, for the corresponding data bag of reading to be cached to the audio-frequence player device to be upgraded In internal memory.
Parsing module 107, the corresponding data bag for parsing the reading obtains the complete upgrade file and installed Bag.
Upgraded module 108, for according to the upgrade file installation kit, carrying out updating operation.
As a preferred embodiment of the present invention, follow-up accurately by the multiple packets obtained after segmentation, weight for convenience Combination nova is into complete upgrade file installation kit, accordingly, it would be desirable to which sequence number is marked to the plurality of packet, then, it is described soft Part upgrading processing device, in addition to:
Mark module 109, for according to preset order rule, sequence number to be marked to the multiple packet successively.
The parsing module 107, specifically for putting in order according to sequence number, multiple packets are reassembled into completely The upgrade file installation kit.
As one embodiment of the invention, the software upgrading processing unit, in addition to:Number acquisition module 110.
The number acquisition module 110, for obtaining other audio-frequence player devices in the audio frequency broadcast system Number N.
The segmentation module 103, specifically for according to free memory, the is divided into by the upgrade file installation kit One packet and the second packet;Wherein, the memory space needed for first packet is equal to the free memory;Root According to the number N of other audio-frequence player devices, second packet is averagely divided into N number of packet.
The storage control module 104, specifically for first packet storage is played to the audio to be upgraded In equipment;N number of packet is respectively stored into other audio-frequence player devices in audio frequency broadcast system.
As another embodiment of the present invention, the software upgrading processing unit, in addition to:Acquisition module 111.
The acquisition module 111, can for obtaining that other audio-frequence player devices in the audio frequency broadcast system are corresponding Use memory space.
The segmentation module 103, including:First segmentation module 1031, contrast module 1032, determining module 1033, second Split module 1034.
First segmentation module 1031, for the upgrade file installation kit to be divided into the first packet and the second data Bag;Wherein, the memory space needed for first packet is equal to the free memory of audio-frequence player device to be upgraded.
Contrast module 1032, for by needed for the corresponding free memory of other audio-frequence player devices and the second packet Memory space contrasted one by one.
Determining module 1033, if being set for there is the audio more than or equal to the memory space needed for the second packet to play It is standby, it is determined that by second packet storage into the audio-frequence player device.
Second segmentation module 1034, if for being not greater than or being broadcast equal to the audio of the memory space needed for the second packet Equipment is put, then according to the corresponding free memory of other audio-frequence player devices, second packet is divided into many Individual packet, so that the plurality of packet can be respectively stored into the free memory of other audio-frequence player devices.
It is the reserved free memory of upgrading next time to discharge memory space as another preferred embodiment of the invention, So need to delete the upgrade file installation kit upgraded, to vacate free memory, then, the software upgrading processing dress Put, in addition to:
Removing module 112, for after upgrading successfully, by storage to the data in the audio-frequence player device to be upgraded Bag is deleted.
Instruction sending module 113, plays to the audio for the packet that is stored with for audio-frequence player device to be upgraded and sets Preparation send deletion to instruct, so that the audio-frequence player device for the packet that is stored with is instructed according to described delete, deletes corresponding Packet.
From the foregoing, it will be observed that software upgrading processing unit provided in an embodiment of the present invention, when audio-frequence player device to be upgraded needs When being stored to upgrade file installation kit, then by obtaining the free memory of audio-frequence player device to be upgraded;Judge institute Free memory is stated whether more than or equal to the memory space needed for upgrade file installation kit;If it is not, then to the upgrading text Part installation kit carries out being divided into multiple packets;The multiple packet is respectively stored into the audio-frequence player device to be upgraded In, and store into other audio-frequence player devices in audio frequency broadcast system.Therefore, the present invention enables to work as sound to be upgraded , can be to other in audio frequency broadcast system when the free memory of frequency playback equipment is not enough to storage upgrade file installation kit The interim storage upgrade file installation kit of audio-frequence player device request, downloads to free memory sufficient by upgrade file installation kit Other audio-frequence player devices in;Updating operation can also be completed during insufficient space so as to effectively realize, audio broadcasting is improved The utilization rate of the free memory of other audio-frequence player devices in system.
Software upgrading processing method and processing device provided in an embodiment of the present invention belongs to same design, and it is detailed that it implements process See specification in full, here is omitted.
Fig. 8 shows the concrete structure block diagram of audio-frequence player device provided in an embodiment of the present invention, the audio-frequence player device 1200 can be used for implementing software upgrading processing method/device for providing in above-described embodiment.
As shown in figure 8, audio-frequence player device can include one or more (one is only shown in figure) computers The memory 801 of readable storage medium storing program for executing, voicefrequency circuit 802, transport module 803, include one or more than one (in figure only Show one) processor 804 and the grade part of power supply 805 of processing core.It will be understood by those skilled in the art that showing in Fig. 8 The audio-frequence player device structure gone out does not constitute the restriction to audio-frequence player device, can include than illustrating more or less portions Part, either combines some parts or different parts arrangement.Wherein:
Memory 801 can be used for software upgrading processing method/dress in storage software program and module, such as above-mentioned embodiment Corresponding programmed instruction/module is put, processor 804 is stored in software program and module in memory 801 by operation, from And perform various function application and data processing, that is, realize the function of software upgrading processing.Memory 801 may include at a high speed with Machine memory, may also include nonvolatile memory, such as one or more magnetic storage device, flash memory or other it is non-easily The property lost solid-state memory.In some instances, memory 801 can further comprise remotely located relative to processor 804 deposit Reservoir, these remote memories can pass through network connection to audio-frequence player device.The example of above-mentioned network includes but is not limited to Internet, intranet, LAN, mobile radio communication and combinations thereof.
Electric signal after the voice data received conversion can be transferred to loudspeaker, is turned by loudspeaker by voicefrequency circuit 802 It is changed to voice signal output.
Audio-frequence player device accesses streaming video by transport module 803 (such as Wi-Fi module), it is provided the user Wireless broadband internet is accessed.Although Fig. 8 shows transport module 803, but it is understood that, it is simultaneously not belonging to sound Must be configured into for frequency playback equipment, can be omitted in the essential scope for do not change invention as needed completely.
Processor 804 is the control centre of audio-frequence player device, is played using various interfaces and the whole audio of connection The various pieces of equipment, by operation or perform and are stored in software program and/or module in memory 801, and call and deposit The data in memory 801 are stored up, the various functions and processing data of audio-frequence player device are performed.Optionally, processor 804 can Including one or more processing cores;It is preferred that, processor 804 can integrated application processor and modem processor, wherein, Application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles channel radio Letter.It is understood that above-mentioned modem processor can not also be integrated into processor 804.
Audio-frequence player device also includes the power supply 805 (such as battery) powered to all parts, it is preferred that power supply can lead to Cross power-supply management system and processor 804 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 805 can also include one or more direct current or AC power, recharging system, electricity The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, audio-frequence player device can be with bluetooth module etc..It will not be repeated here.In addition, mobile terminal is also Include memory, and one or more than one program, one of them or more than one program storage is in memory In, and be configured to by one or more than one computing device one or more than one program bag contain be used to carrying out it is following The instruction of operation:
Obtain the free memory of audio-frequence player device to be upgraded;
Judge the free memory whether more than or equal to the memory space needed for upgrade file installation kit;
If it is not, then carrying out being divided into multiple packets to the upgrade file installation kit;
The multiple packet is respectively stored into the audio-frequence player device to be upgraded, and storage is played to audio In other audio-frequence player devices in system.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
In summary, although the present invention it is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit Adorn, therefore protection scope of the present invention is defined by the scope that claim is defined.

Claims (15)

1. a kind of software upgrading processing method, applied to audio frequency broadcast system, it is characterised in that including step:
Obtain the free memory of audio-frequence player device to be upgraded;
Judge the free memory whether more than or equal to the memory space needed for upgrade file installation kit;
If it is not, then carrying out being divided into multiple packets to the upgrade file installation kit;
The multiple packet is respectively stored into the audio-frequence player device to be upgraded, and audio frequency broadcast system is arrived in storage In other audio-frequence player devices in.
2. software upgrading processing method as claimed in claim 1, it is characterised in that methods described also includes:
When receiving upgrade command, other audios from the audio-frequence player device to be upgraded and in audio frequency broadcast system are broadcast Put in equipment, read corresponding packet;
The corresponding data bag of reading is cached into the internal memory of the audio-frequence player device to be upgraded;
The corresponding data bag of the reading is parsed, the complete upgrade file installation kit is obtained;
According to the upgrade file installation kit, updating operation is carried out.
3. software upgrading processing method as claimed in claim 1 or 2, it is characterised in that to the upgrade file installation kit After the step of progress is divided into multiple packets, in addition to:
According to preset order rule, sequence number is marked to the multiple packet successively.
4. software upgrading processing method as claimed in claim 3, it is characterised in that the corresponding data bag of the parsing reading, The step of obtaining the complete upgrade file installation kit, including:
According to putting in order for sequence number, multiple packets are reassembled into the complete upgrade file installation kit.
5. software upgrading processing method as claimed in claim 1, it is characterised in that carried out to the upgrade file installation kit Before the step of being divided into multiple packets, in addition to:
Obtain the number N of other audio-frequence player devices in the audio frequency broadcast system;
The step of carrying out being divided into multiple packets to the upgrade file installation kit, including:
According to free memory, the upgrade file installation kit is divided into the first packet and the second packet;Wherein, institute Memory space needed for stating the first packet is equal to the free memory;
According to the number N of other audio-frequence player devices, second packet is averagely divided into N number of packet;
The multiple packet is respectively stored into the audio-frequence player device to be upgraded, and audio frequency broadcast system is arrived in storage In other audio-frequence player devices in step, including:
By first packet storage into the audio-frequence player device to be upgraded;
N number of packet is respectively stored into other audio-frequence player devices in audio frequency broadcast system.
6. software upgrading processing method as claimed in claim 1, it is characterised in that carried out to the upgrade file installation kit Before the step of being divided into multiple packets, in addition to:
Obtain the corresponding free memory of other audio-frequence player devices in the audio frequency broadcast system;
The step of carrying out being divided into multiple packets to the upgrade file installation kit, including:
The upgrade file installation kit is divided into the first packet and the second packet;Wherein, needed for first packet Memory space be equal to audio-frequence player device to be upgraded free memory;
Memory space needed for the corresponding free memory of other audio-frequence player devices and the second packet is carried out one a pair Than;
If there is the audio-frequence player device more than or equal to the memory space needed for the second packet, it is determined that by second data Bag storage is into the audio-frequence player device;
If it is not, being then divided into according to the corresponding free memory of other audio-frequence player devices to second packet Multiple packets, so that the plurality of packet can be respectively stored into the free memory of other audio-frequence player devices.
7. software upgrading processing method as claimed in claim 2, it is characterised in that according to the upgrade file installation kit, enter After the step of row updating operation, in addition to:
After upgrading successfully, storage is deleted to the packet in the audio-frequence player device to be upgraded;
Audio-frequence player device to be upgraded sends to the audio-frequence player device for the packet that is stored with and deletes instruction, so as to be stored with The audio-frequence player device of the packet is instructed according to described delete, and deletes corresponding packet.
8. a kind of software upgrading processing unit, applied to audio frequency broadcast system, it is characterised in that including:
Memory space acquisition module, the free memory for obtaining audio-frequence player device to be upgraded;
Memory space judge module, for judging whether the free memory is more than or equal to needed for upgrade file installation kit Memory space;
Split module, if for judging the free memory less than the memory space needed for upgrade file installation kit, The upgrade file installation kit is carried out to be divided into multiple packets;
Storage control module, for the multiple packet to be respectively stored into the audio-frequence player device to be upgraded, and Store in other audio-frequence player devices in audio frequency broadcast system.
9. software upgrading processing unit as claimed in claim 8, it is characterised in that also include:
Packet read module, for when receiving upgrade command, being broadcast from the audio-frequence player device to be upgraded with audio In other audio-frequence player devices in place system, corresponding packet is read;
Buffer control module, for the corresponding data bag of reading to be cached into the internal memory of the audio-frequence player device to be upgraded;
Parsing module, the corresponding data bag for parsing the reading obtains the complete upgrade file installation kit;
Upgraded module, for according to the upgrade file installation kit, carrying out updating operation.
10. software upgrading processing unit as claimed in claim 8 or 9, it is characterised in that also include:
Mark module, for according to preset order rule, sequence number to be marked to the multiple packet successively.
11. software upgrading processing unit as claimed in claim 10, it is characterised in that
The parsing module, specifically for putting in order according to sequence number, by multiple packets be reassembled into it is complete described in Upgrade file installation kit.
12. software upgrading processing unit as claimed in claim 8, it is characterised in that also include:Number acquisition module;
The number acquisition module, the number N for obtaining other audio-frequence player devices in the audio frequency broadcast system;
The segmentation module, specifically for according to free memory, the upgrade file installation kit is divided into the first data Bag and the second packet;Wherein, the memory space needed for first packet is equal to the free memory;According to described The number N of other audio-frequence player devices, N number of packet is averagely divided into by second packet;
The storage control module, specifically for first packet is stored into the audio-frequence player device to be upgraded; N number of packet is respectively stored into other audio-frequence player devices in audio frequency broadcast system.
13. software upgrading processing unit as claimed in claim 8, it is characterised in that also include:Acquisition module;
The acquisition module, it is empty for obtaining the corresponding available storage of other audio-frequence player devices in the audio frequency broadcast system Between;
The segmentation module, including:First segmentation module, contrast module, determining module, the second segmentation module;
First segmentation module, for the upgrade file installation kit to be divided into the first packet and the second packet;Wherein, institute Memory space needed for stating the first packet is equal to the free memory of audio-frequence player device to be upgraded;
Contrast module, for the storage needed for the corresponding free memory of other audio-frequence player devices and the second packet is empty Between contrasted one by one;
Determining module, if for there is the audio-frequence player device more than or equal to the memory space needed for the second packet, it is determined that By second packet storage into the audio-frequence player device;
Second segmentation module, if for being not greater than or equal to the audio-frequence player device of the memory space needed for the second packet, Then according to the corresponding free memory of other audio-frequence player devices, second packet is carried out to be divided into multiple data Bag, so that the plurality of packet can be respectively stored into the free memory of other audio-frequence player devices.
14. software upgrading processing unit as claimed in claim 9, it is characterised in that also include:
Removing module, for after upgrading successfully, being carried out storing to the packet in the audio-frequence player device to be upgraded Delete;
Instruction sending module, sends to the audio-frequence player device for the packet that is stored with for audio-frequence player device to be upgraded and deletes Except instruction, so that the audio-frequence player device for the packet that is stored with is instructed according to described delete, corresponding packet is deleted.
15. a kind of audio-frequence player device, it is characterised in that including memory and processor, the processor and the memory Connected by bus;The memory is used to store batch processing code, and the processor is used to call to deposit in the memory The program code of storage, performs following operation:
Obtain the free memory of audio-frequence player device to be upgraded;
Judge the free memory whether more than or equal to the memory space needed for upgrade file installation kit;
If it is not, then carrying out being divided into multiple packets to the upgrade file installation kit;
The multiple packet is respectively stored into the audio-frequence player device to be upgraded, and audio frequency broadcast system is arrived in storage In other audio-frequence player devices in.
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 true CN106970816A (en) 2017-07-21
CN106970816B 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)

Cited By (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
CN109558072A (en) * 2018-10-10 2019-04-02 建荣半导体(深圳)有限公司 The memory expanding method, system, audio that audio plays chip play chip and storage device
CN110221856A (en) * 2019-06-25 2019-09-10 努比亚技术有限公司 A kind of wearable device upgrade method, wearable device and storage medium
CN111352730A (en) * 2020-02-11 2020-06-30 浙江大华技术股份有限公司 Caching method and device for application program upgrading, 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
CN113704177A (en) * 2021-07-30 2021-11-26 苏州浪潮智能科技有限公司 Storage method, system and related components of server firmware upgrade file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770384A (en) * 2010-01-18 2010-07-07 深圳市航盛电子股份有限公司 Car audio system and software upgrading method thereof
CN103237300A (en) * 2013-04-28 2013-08-07 北京小米科技有限责任公司 Method, device and system for downloading file
CN103677946A (en) * 2013-12-30 2014-03-26 广州日滨科技发展有限公司 Method and system for updating elevator device control programs
US20140281126A1 (en) * 2013-03-14 2014-09-18 Sandisk Technologies Inc. Overprovision capacity in a data storage device
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770384A (en) * 2010-01-18 2010-07-07 深圳市航盛电子股份有限公司 Car audio system and software upgrading method thereof
US20140281126A1 (en) * 2013-03-14 2014-09-18 Sandisk Technologies Inc. Overprovision capacity in a data storage device
CN103237300A (en) * 2013-04-28 2013-08-07 北京小米科技有限责任公司 Method, device and system for downloading file
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

Cited By (9)

* 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
CN109558072A (en) * 2018-10-10 2019-04-02 建荣半导体(深圳)有限公司 The memory expanding method, system, audio that audio plays chip play chip and storage device
CN110221856A (en) * 2019-06-25 2019-09-10 努比亚技术有限公司 A kind of wearable device upgrade method, wearable device and storage medium
CN110221856B (en) * 2019-06-25 2024-03-19 努比亚技术有限公司 Wearable device upgrading method, wearable device and storage medium
CN111352730A (en) * 2020-02-11 2020-06-30 浙江大华技术股份有限公司 Caching method and device for application program upgrading, computer equipment 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
CN113704177A (en) * 2021-07-30 2021-11-26 苏州浪潮智能科技有限公司 Storage method, system and related components of server firmware upgrade file
CN113704177B (en) * 2021-07-30 2023-06-20 苏州浪潮智能科技有限公司 Storage method, system and related components of server firmware upgrade file

Also Published As

Publication number Publication date
CN106970816B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN106970816A (en) A kind of software upgrading processing method, device and audio-frequence player device
CN104994401A (en) Barrage processing method, device and system
CN104270528A (en) System and method for mass sending of message
CN107766474A (en) Dynamic Display relation expands drawing method and application server
CN101968969A (en) Electronic book mobile device and electronic book background music playing method
US11785092B2 (en) Multimedia resource playing method, apparatus, terminal, and system
CN106997302A (en) Firmware upgrade method, device and audio-frequence player device
CN105681395A (en) Resource sharing control method, device, server and terminal
CN107301176A (en) A kind of interpretation method, device and storage medium, electronic equipment
CN107479954A (en) process management method, device, storage medium and electronic equipment
CN104167216B (en) A kind of audio file sharing method, device and audio amplifier
CN104376859B (en) The method and online music player of a kind of playlist adjust automatically
CN101374298A (en) Automatic classification system and method for data
CN106990986A (en) A kind of control method of software upgrading, device and audio-frequence player device
CN105511849A (en) Method, device and system for application program display
CN106022090A (en) User login information processing method, user login information processing device and electronic equipment
CN102172003A (en) Method and terminal device for information processing
CN101295277A (en) System and method for recognizing external device by portable terminal
CN103873631A (en) Method and device for displaying call interface of mobile terminal
CN103139046B (en) For the method and apparatus sending content-data
CN107038047A (en) Software version synchronization method, device and the audio-frequence player device of audio-frequence player device
CN106664637A (en) Routing information configuration method and apparatus
CN106970812A (en) upgrade file processing, device and terminal
CN101098263A (en) Network music playing apparatus and method
CN107910012A (en) Audio data processing method, apparatus and system

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