CN106997302A - Firmware upgrade method, device and audio-frequence player device - Google Patents

Firmware upgrade method, device and audio-frequence player device Download PDF

Info

Publication number
CN106997302A
CN106997302A CN201710210353.8A CN201710210353A CN106997302A CN 106997302 A CN106997302 A CN 106997302A CN 201710210353 A CN201710210353 A CN 201710210353A CN 106997302 A CN106997302 A CN 106997302A
Authority
CN
China
Prior art keywords
audio
file
frequence player
player device
firmware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710210353.8A
Other languages
Chinese (zh)
Inventor
林尚波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710210353.8A priority Critical patent/CN106997302A/en
Publication of CN106997302A publication Critical patent/CN106997302A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44573Execute-in-place [XIP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The embodiment of the invention discloses a kind of firmware upgrade method, device and audio-frequence player device, the version information that this method is applied using obtaining in terminal;When the current version information of version information and the first audio-frequence player device firmware is incompatible, the AKU for the first audio-frequence player device firmware of upgrading is obtained;Difference analysis is carried out to the bag that is currently installed on of AKU and the first audio-frequence player device firmware, difference bag is generated;The first audio-frequence player device firmware is upgraded by difference bag, and difference bag is sent to the second audio-frequence player device, so that the second audio-frequence player device is upgraded according to difference bag to the second audio-frequence player device firmware.The program improves upgrading efficiency by the way that the first audio-frequence player device is to AKU and is currently installed on bag and carries out difference analysis and obtain difference bag upgrading to the first audio-frequence player device and the second audio-frequence player device.

Description

Firmware upgrade method, device and audio-frequence player device
Technical field
The present invention relates to communication technical field, and in particular to a kind of firmware upgrade method, device and audio-frequence player device.
Background technology
Intelligent audio playback equipment is a kind of new intelligent appliance equipment, including intelligent sound box, intelligent television etc..It collects Into processor and network interface, it can directly be broadcast by accessing the Streaming Media music of internet from Network Capture music sources Put.Intelligent audio playback equipment can also be connected with the electronic equipment such as smart mobile phone, tablet personal computer simultaneously, in these electronic equipments In control application control under work.
Wherein, intelligent audio play system includes at least two intelligent audio playback equipments, and one is that main audio broadcasting is set Standby, other is from audio-frequence player device.After control application upgrade in electronic equipment, accordingly also intelligent audio is played and be Firmware version in the audio-frequence player device of each in system is upgraded.Existing upgrade method is to detect each audio-frequence player device Firmware version whether with control application edition compatibility, upgraded if incompatible.This upgrade method needs will be every The current firmware version of individual audio-frequence player device is compared with new firmware version, is risen with finding out the data of renewal Level, reduces the efficiency of upgrading.
The content of the invention
The embodiment of the present invention provides a kind of firmware upgrade method, device and audio-frequence player device, can improve audio broadcasting The upgrading efficiency of equipment.
The embodiment of the present invention provides a kind of firmware upgrade method, including:
Obtain the version information applied in terminal;
When the current version information of version information and the first audio-frequence player device firmware is incompatible, obtain for upgrading the The AKU of one audio-frequence player device firmware;
Difference analysis is carried out to the bag that is currently installed on of AKU and the first audio-frequence player device firmware, difference bag is generated;
The first audio-frequence player device firmware is upgraded by difference bag, and difference bag is sent to the second audio and is played Equipment, so that the second audio-frequence player device is upgraded according to difference bag to the second audio-frequence player device firmware.
The embodiment of the present invention also provides a kind of device for upgrading firmware, including:
First acquisition module, the version information applied for obtaining in terminal;
Second acquisition module, it is incompatible for the current version information in version information and the first audio-frequence player device firmware When, obtain the AKU for the first audio-frequence player device firmware of upgrading;
Generation module, differentiation point is carried out for the bag that is currently installed on to AKU and the first audio-frequence player device firmware Analysis, generates difference bag;
Upgraded module, for being upgraded by difference bag to the first audio-frequence player device firmware, and difference bag is sent To the second audio-frequence player device, so that the second audio-frequence player device is risen according to difference bag to the second audio-frequence player device firmware Level.
The embodiment of the present invention additionally provides a kind of audio-frequence player device, including:
Being stored with can be with the memory of configuration processor code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs such as the embodiment of the present invention Part or all of step described in either method.
This preferred embodiment is obtained using the first audio-frequence player device to AKU with bag progress difference analysis is currently installed on To difference bag come the scheme upgraded to the first audio-frequence player device and the second audio-frequence player device, upgrading efficiency is improved.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the schematic flow sheet of the firmware upgrade method of the preferred embodiment of the present invention.
Fig. 2 is the schematic diagram of a scenario of the firmware upgrade method of the preferred embodiment of the present invention.
Fig. 3 is the another schematic flow sheet of the firmware upgrade method of the preferred embodiment of the present invention.
Fig. 4 is the structural representation of the device for upgrading firmware of the preferred embodiment of the present invention.
Fig. 5 is the structural representation of the audio-frequence player device of the preferred embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " and " the 4th " in the present invention etc. is to be used to distinguish different objects, rather than For describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that covering is non-exclusive Comprising.Process, method, system, product or the equipment for for example containing series of steps or module are not limited to what is listed Step or module, but alternatively also include the step of do not list or module, or alternatively also include for these processes, side Method, product or equipment intrinsic other steps or module.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
The executive agent of firmware upgrade method provided in an embodiment of the present invention, can be firmware provided in an embodiment of the present invention Update device, or the system for being integrated with device for upgrading firmware.Audio-frequence player device described by the embodiment of the present invention can be Intelligent sound box, intelligent television equipment, said apparatus are only citings, and non exhaustive, including but not limited to said apparatus.
The embodiments of the invention provide a kind of firmware upgrade method, device and audio-frequence player device.It will carry out respectively below Describe in detail.
Fig. 1 is refer to, Fig. 1 is a kind of schematic flow sheet of firmware upgrade method provided in an embodiment of the present invention.It is right below Each step of firmware upgrade method is described in detail.
S101, obtains the version information applied in terminal.
Wherein, terminal be smart mobile phone, tablet personal computer, palm PC, notebook computer or mobile internet device (MID, Mobile Internet Devices) etc. mobile device.The application in the terminal and the first audio-frequence player device are installed Communication link is set up by modes such as bluetooth, WiFi (Wireless Fidelity, Wireless Fidelity) and fetches control the first audio broadcasting Equipment, such as control the first audio-frequence player device to play music, pause and play music etc..Wherein the first audio-frequence player device can be with For audio-frequence player devices such as intelligent sound box, intelligent televisions.
In order to ensure that the communication between terminal applies and the first audio-frequence player device is smooth, it is necessary to keep the version of application with The version of first audio-frequence player device firmware is compatible.Therefore after the application version in terminal has been upgraded, the first audio Playback equipment should be also adjusted to itself firmware version with the application version after compatible upgrading accordingly.
After in terminal using edition upgrading operation has been carried out, the version information applied after upgrading is sent to the first audio Playback equipment, the wherein version information include version number.Then the first audio-frequence player device receives the version information of the application.Lift For example, the current version number of terminal applies is 3.0, and it is 4.0 to carry out version number after updating operation, then terminal will carry version number The message of 4.0 information is sent to the first audio-frequence player device, as shown in Figure 2.
S102, when the current version information of version information and the first audio-frequence player device firmware is incompatible, obtaining is used for Upgrade the AKU of the first audio-frequence player device firmware.
Then, the first audio-frequence player device judge the version information whether the current version with the first audio-frequence player device firmware Whether this information is compatible, wherein the first audio-frequence player device firmware refers to be stored in inside the first audio-frequence player device, to drive The driver of equipment operation.Assuming that edition 4 .0 compatible version is Android6.0, then the first audio-frequence player device is received Carry version number for 4.0 information message after, check itself firmware version be Android 5.0 after can determine whether version information and The current version information of first audio-frequence player device firmware is incompatible, it is therefore desirable to obtain firmware upgrade to Android 6.0 AKU.
As shown in Fig. 2 the first audio-frequence player device will be sent to server obtains asking for the upgrade edition upgrade packs of Android 6.0 Ask, the AKU of multiple Android versions is stored in the server, server is received after the request, will be corresponding The upgrade edition upgrade packs of Android 6.0 are sent to first audio-frequence player device.
S103, carries out difference analysis, it is poor to generate to the bag that is currently installed on of AKU and the first audio-frequence player device firmware Subpackage.
Wherein, multiple upgrade files are included in AKU, are currently installed in bag including multiple installation files.These file groups Various functions can be realized by being combined, and difference bag can be generated by carrying out difference analysis to these files.
In certain embodiments, AKU can be compared with the filename for being currently installed on file in bag first, such as Really some filename by the file with file name only in AKU without that in bag is currently installed on, can be set to difference Bag.As shown in Fig. 2 including file A, file B, file C and file D in AKU, it is currently installed on including file B and file C.Above-mentioned filename is compared and understood, is currently installed in bag not including file A and file D, therefore can be by AKU File A and file D be set to difference bag.
In certain embodiments, the file size with same file name can further be compared, if size is unequal, This document is then set to difference bag.As shown in Fig. 2 the file B sizes in AKU are 3M, file C sizes are 4M, and current File B sizes in installation kit are 5M, and file C sizes are 4M, and comparative analysis understands AKU and the file B being currently installed in bag Size is unequal, it can be considered that file B has carried out content modification relative to file B in bag is currently installed in AKU, because File B in AKU is set to difference bag by this.
By above-mentioned difference analysis, file A, file B and file D in AKU constitute difference bag.
S104, is upgraded, and difference bag is sent into the second sound by difference bag to the first audio-frequence player device firmware Frequency playback equipment, so that the second audio-frequence player device is upgraded according to difference bag to the second audio-frequence player device firmware.
Installation file corresponding with difference bag in bag will be currently installed on first to delete, and such as be had with differential file in difference bag The installation file B of same file name.Then the differential file in difference bag is write in the first audio-frequence player device firmware, with reality Now to the upgrading of the first audio-frequence player device firmware.
As shown in Fig. 2 difference bag can also be sent to the second audio-frequence player device by the first audio-frequence player device, so that the Two audio-frequence player devices are upgraded according to the difference bag to audio-frequence player device firmware.Wherein, the second audio-frequence player device is The audio-frequence player devices such as intelligent sound box, intelligent television.Such second audio-frequence player device need not carry out difference analysis again Operation, can directly be upgraded according to the difference bag, improve upgrading efficiency.Further, before difference bag is sent also The operation that difference bag can be packaged and be compressed, then the difference bag after compression is sent to the second audio-frequence player device, from And efficiency of transmission is improved, further save update time.
The firmware upgrade method of this preferred embodiment, using to AKU and be currently installed on bag carry out difference analysis generation Difference bag, to upgrade to the first audio-frequence player device firmware, sets while the second audio that the difference bag is sent to is played The standby scheme to be upgraded to the second audio-frequence player device firmware, improves the efficiency of upgrading.
Fig. 3 is refer to, Fig. 3 is the another schematic flow sheet of firmware upgrade method provided in an embodiment of the present invention.It is right below Each step of firmware upgrade method is described in detail.
S201, obtains the version information applied in terminal.
Wherein, terminal be smart mobile phone, tablet personal computer, palm PC, notebook computer or mobile internet device (MID, Mobile Internet Devices) etc. mobile device.The application in the terminal and the first audio-frequence player device are installed Communication link is set up by modes such as bluetooth, WiFi (Wireless Fidelity, Wireless Fidelity) and fetches control the first audio broadcasting Equipment, such as control the first audio-frequence player device to play music, pause and play music etc..Wherein the first audio-frequence player device can be with For audio-frequence player devices such as intelligent sound box, intelligent televisions.
In order to ensure that the communication between terminal applies and the first audio-frequence player device is smooth, it is necessary to keep the version of application with The version of first audio-frequence player device firmware is compatible.Therefore after the application version in terminal has been upgraded, the first audio Playback equipment should be also adjusted to itself firmware version with the application version after compatible upgrading accordingly.
After in terminal using edition upgrading operation has been carried out, the version information applied after upgrading is sent to the first audio Playback equipment, the wherein version information include version number.Then the first audio-frequence player device receives the version information of the application.Lift For example, the current version number of terminal applies is 3.0, and it is 4.0 to carry out version number after updating operation, then terminal will carry version number The message of 4.0 information is sent to the first audio-frequence player device, as shown in Figure 2.
S202, in version information and incompatible the first audio-frequence player device firmware current version information, is obtained for rising The AKU of the first audio-frequence player device firmware of level.
Then, the first audio-frequence player device judge the version information whether the current version with the first audio-frequence player device firmware Whether this information is compatible, wherein the first audio-frequence player device firmware refers to be stored in inside the first audio-frequence player device, to drive The driver of equipment operation.Assuming that edition 4 .0 compatible version is Android6.0, then the first audio-frequence player device is received Carry version number for 4.0 information message after, check itself firmware version be Android 5.0 after can determine whether version information and The current version information of first audio-frequence player device firmware is incompatible, it is therefore desirable to obtain firmware upgrade to Android 6.0 AKU.
As shown in Fig. 2 the first audio-frequence player device will be sent to server obtains asking for the upgrade edition upgrade packs of Android 6.0 Ask, the AKU of multiple Android versions is stored in the server, server is received after the request, will be corresponding The upgrade edition upgrade packs of Android 6.0 are sent to first audio-frequence player device.
S203, obtains the first file identification of upgrade file in AKU.
Next the bag that is currently installed on of the AKU got and the first audio-frequence player device is compared, to generate difference Subpackage.Wherein, the AKU has multiple upgrade files, and the bag that is currently installed on has multiple installation files.Wherein, each Upgrade file or installation file all have can be with the file identification of unique mark this document, such as filename, reference number of a document etc..Cause This can be distinguished in AKU according to file identification from being currently installed in bag whether having different files.
The first file identification of upgrade file in AKU is obtained first.As shown in Fig. 2 there is 4 upgrading texts in AKU Part, obtains the filename of 3 upgrade files, respectively file A, file B, file C and file D successively.Then by these texts The name of part name and installation file in installation file is contrasted successively.
S204, judges whether the installation file being currently installed in bag has the second files-designated matched with the first file identification Know.
For example, if it is " upgrading explanation that some upgrade file entitled " upgrading specification ", which is the first file identification, Book ", if only " instruction for mounting " does not have " upgrading specification " i.e. the second file identification to be " installation instructions in installation file Book ", then illustrate the second file identification not matched in installation file with the first file identification, be transferred to step S206.Accordingly, Illustrate there is the second files-designated matched with the first file identification in installation file if having " upgrading specification " in installation file Know, be transferred to step S205.
Step S203 is accepted, as shown in Fig. 2 being currently installed on having 2 installation files, respectively file B and file C in bag. Due to be currently installed on bag in not with the file that file A, file D matchs in upgrade file, therefore can be transferred to step S206 general File A, file D are set to difference bag.And it is currently installed on Bao Zhongyou and the file that file B, file C are matched in upgrade file, because This needs to be transferred to step S205 determines whether to file B and file C.
S205, if the second file identification of matching, then by the corresponding fisrt feature parameter of the first file identification and the The corresponding second feature parameter of two file identifications is contrasted.
Further, each upgrade file or installation file also have the characteristic parameter for characterizing file characteristic, such as literary Part type, file size etc..Therefore, can be further according to file characteristic in the case of the second file identification with matching Parameter come distinguish with same file identify file content whether change.Such as, if installation file and upgrading text All include the file of " upgrading specification " in part, then whether the size that can contrast two parts of files is equal, if unequal theory The content of prescribed paper is changed, therefore is transferred to step S206.
Step S204 is accepted, as shown in Fig. 2 the file B sizes in AKU are 3M, file C sizes are 4M, and are currently pacified File B sizes in dress bag are 5M, and file C sizes are 4M, and comparative analysis understands that AKU and the file B being currently installed in bag are big It is small unequal, it can be considered that file B has carried out content modification relative to file B in bag is currently installed in AKU, therefore will File B in AKU is set to difference bag.
S206, if the second file identification for not matching or if fisrt feature parameter and second feature parameter not Match somebody with somebody, then upgrade file is set to difference bag.
If the second file identification not matched in installation file with the first file identification, illustrates the first file identification pair The upgrade file answered is newly-increased, therefore upgrade file is set into difference bag.If the second file identification of matching, still Fisrt feature parameter is mismatched with second feature parameter, illustrates that the content of the upgrade file is changed, therefore also rise this Level file is set to difference bag.
S207, deletion is currently installed on target installation file corresponding with difference bag in bag.
As shown in Fig. 2 file B corresponding target installation files in bag is currently installed on are file B in difference bag, thus it is first First the file B being currently installed in bag is deleted.
S208, writes the first audio-frequence player device firmware, to be risen to the first audio-frequence player device firmware by difference bag Level.
Step S207 is accepted, the file A in difference bag, file B and file D are write into the first audio-frequence player device firmware Flash memory area, you can realize the operation upgraded to the first audio-frequence player device firmware.
S209, the upgrade file in difference bag is packaged and compressed;Difference bag after compression is sent to the second sound Frequency playback equipment, so that the second audio-frequence player device is upgraded according to difference bag to the second audio-frequence player device firmware.
Often volume ratio is larger for un-encapsulated and compression upgrade file, is set if being transferred directly to the second audio and playing It is standby, transmission time will be greatly increased.Therefore the upgrade file in difference bag can be packaged and is compressed, by the difference after compression Subpackage is sent to the second audio-frequence player device.
Second audio-frequence player device receives the difference bag after compression, first decompresses the difference bag, then directly by the difference Upgrade file in bag writes the flash memory area of the second audio-frequence player device firmware, so as to save the second audio-frequence player device from clothes The step of business device obtains AKU and generates difference bag, improves upgrading efficiency.
The firmware upgrade method of this preferred embodiment, using to AKU and be currently installed on bag carry out difference analysis generation Difference bag, to upgrade to the first audio-frequence player device firmware, sets while the second audio that the difference bag is sent to is played The standby scheme to be upgraded to the second audio-frequence player device firmware, improves the efficiency of upgrading.
Fig. 4 is refer to, Fig. 4 is the structure chart of the device for upgrading firmware of the preferred embodiment of the present invention.Device for upgrading firmware 30 Including the first acquisition module 301, the second acquisition module 302, generation module 303 and upgraded module 304.It is described in detail below:
First acquisition module 301, the version information applied for obtaining in terminal;Second acquisition module 302, in version When this information and the incompatible current version information of the first audio-frequence player device firmware, obtain and set for the first audio broadcasting of upgrading The AKU of standby firmware;Generation module 303, is carried out for the bag that is currently installed on to AKU and the first audio-frequence player device firmware Difference analysis, generates difference bag;Upgraded module 304, for being risen by difference bag to the first audio-frequence player device firmware Level, and is sent to the second audio-frequence player device by difference bag so that the second audio-frequence player device according to difference bag to the second audio Playback equipment firmware is upgraded.
After in terminal using edition upgrading operation has been carried out, the version information applied after upgrading is sent to the first audio Playback equipment, the wherein version information include version number.Then the first acquisition module 301 receives the version information of the application.Lift For example, the current version number of terminal applies is 3.0, and it is 4.0 to carry out version number after updating operation, then terminal will carry version number The message of 4.0 information is sent to the first audio-frequence player device, and the first acquisition module 301 will receive the message, and from the message It is 4.0 to get version number.
Then, judge whether whether the version information compatible with the current version information of the first audio-frequence player device firmware, Wherein the first audio-frequence player device firmware refers to be stored in inside the first audio-frequence player device, the driving journey run with driving equipment Sequence.Assuming that edition 4 .0 compatible version is Android 6.0, then receiving carrying version number in the first acquisition module 301 is After the message of 4.0 information, check itself firmware version to can determine whether that version information and the first audio are played after Android5.0 The current version information of equipment firmware is incompatible, and then passing through the acquisition of the second acquisition module 302 can be by firmware upgrade to Android 6.0 AKU.
Wherein, multiple upgrade files are included in AKU, are currently installed in bag including multiple installation files.These file groups Various functions can be realized by being combined, and difference can be generated by carrying out difference analysis to these files by generation module 303 Bag.Specifically, AKU is compared by generation module 303 with the filename for being currently installed on file in bag first, if some Filename is only without in bag is currently installed on, difference bag is set to by the file with file name in AKU.Further , generation module 303 compares the file size with same file name, if size is unequal, this document is set into difference Subpackage.
In certain embodiments, generation module 303 also includes the first acquisition submodule 3031, judging submodule 3032 and set Put submodule 3033.It is described in detail below:
First acquisition submodule 3031, the first file identification for obtaining upgrade file in AKU;Judging submodule 3032, whether the installation file for judging to be currently installed in bag has the second file identification matched with the first file identification;If Submodule 3033 is put, during for the second file identification in no matching, upgrade file is set to difference bag.
Due to each upgrade file or installation file have can be with the file identification of unique mark this document, such as file Name, reference number of a document etc..Therefore it can be distinguished according to file identification in AKU from whether being currently installed in bag with different File.
As shown in Fig. 2 there is 4 upgrade files in AKU, the first acquisition submodule 3031 obtains this 3 upgrading texts successively The filename of part, respectively file A, file B, file C and file D.Then judging submodule 3032 is by these filenames and pacifies The name of installation file is contrasted successively in dress file.It is currently installed on having 2 installation files, respectively file B and text in bag Part C.Due to be currently installed in bag not with the file that file A, file D are matched in upgrade file, therefore judging submodule 3032 Judge the second file identification not matched with file A, file D, therefore by setting submodule 3033 to set file A, file D For difference bag.
In certain embodiments, generation module 303 also includes the second acquisition submodule 3034.Second acquisition submodule 3034, for when there is the second file identification of matching, obtaining the corresponding fisrt feature parameter of the first file identification and the second text Part identifies corresponding second feature parameter.Submodule 3033 is set, is additionally operable in fisrt feature parameter and second feature parameter not During matching, upgrade file is set to difference bag.
Each upgrade file or installation file also have the characteristic parameter for characterizing file characteristic, such as file type, text Part size etc..Therefore, can be further according to file characteristic parameter come area in the case of the second file identification with matching Divide whether the file content identified with same file changes.
The file B sizes that second acquisition submodule 3034 gets in AKU are 3M, and file C sizes are 4M, and current File B sizes in installation kit are 5M, and file C sizes are 4M, and comparative analysis understands AKU and the file B being currently installed in bag Size is unequal, it can be considered that file B has carried out content modification relative to file B in bag is currently installed in AKU, therefore Set submodule 3033 that the file B in AKU is set into difference bag.
In certain embodiments, upgraded module 304 includes deleting submodule 3041 and upgrading submodule 3042.Specifically describe It is as follows:
Submodule 3041 is deleted, target installation file corresponding with difference bag in bag is currently installed on for deleting;Upgrading Submodule 3042, for difference bag to be write into the first audio-frequence player device firmware, to be carried out to the first audio-frequence player device firmware Upgrading.
In certain embodiments, upgraded module 304 includes compression submodule 3043 and sending submodule 3044, specifically describes It is as follows:
Submodule 3043 is compressed, for the upgrade file in difference bag to be packaged and compress;Sending submodule 3044, For the difference bag after compression to be sent into the second audio-frequence player device.
Often volume ratio is larger for un-encapsulated and compression upgrade file, is set if being transferred directly to the second audio and playing It is standby, transmission time will be greatly increased.Therefore the upgrade file in difference bag can be packaged by compressing submodule 3043 And compress, then the difference bag after compression is sent to by the second audio-frequence player device by sending submodule 3044.
Second audio-frequence player device receives the difference bag after compression, first decompresses the difference bag, then directly by the difference Upgrade file in bag writes the flash memory area of the second audio-frequence player device firmware, so as to save the second audio-frequence player device from clothes The step of business device obtains AKU and generates difference bag, improves upgrading efficiency.
The device for upgrading firmware of this preferred embodiment, using to AKU and be currently installed on bag carry out difference analysis generation Difference bag, to upgrade to the first audio-frequence player device firmware, sets while the second audio that the difference bag is sent to is played The standby scheme to be upgraded to the second audio-frequence player device firmware, improves the efficiency of upgrading.
It refer to Fig. 5, the structural representation of the audio-frequence player device of Fig. 5 preferred embodiment of the present invention.The audio is played and set It standby 400 can include radio frequency (RF, Radio Frequency) circuit 401, include one or more and computer-readable deposit The memory 402 of storage media, voicefrequency circuit 403, Wireless Fidelity (WiFi, Wireless Fidelity) module 404 and including There are one or the grade part of processor 405 of more than one processing core.It will be understood by those skilled in the art that being shown in Fig. 5 Audio-frequence player device structure do not constitute restriction to audio-frequence player device, can include than illustrating more or less portions Part, either combines some parts or different parts arrangement.
Radio circuit 401 can be used for receiving and sending messages, such as after the downlink information of base station is received, transfer to one or one Individual above processor 405 is handled.Radio circuit 401 can also be communicated by radio communication with network and other equipment, such as taken Business device, terminal device etc..
Memory 402 can be used for storage software program and module.Processor 408 is stored in memory 402 by operation Software program and module, so as to perform various function application and data processing.Memory 402 can include random at a high speed Access memory, can also include nonvolatile memory, for example, at least one disk memory, flush memory device or other Volatile solid-state part.
Voicefrequency circuit 403 can provide the COBBAIF between user and audio-frequence player device by loudspeaker, microphone.Sound The voice data received can be converted into electric signal by frequency circuit 403, be transferred to loudspeaker, voice signal is converted to by loudspeaker Output;On the other hand, the voice signal of collection is converted to electric signal by microphone, by voicefrequency circuit 403 receive after be converted to sound Frequency evidence, then after voice data output processor 405 is handled, sent through radio circuit 401.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and audio-frequence player device passes through wireless fidelity module 404 It may browse through webpage and access streaming video, or communication connection is set up with other equipment.
Processor 405 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 402, and call and deposit The data in memory 402 are stored up, the various functions and processing data of audio-frequence player device are performed, so as to audio-frequence player device Carry out integral monitoring.
Although not shown, audio-frequence player device can also include power supply, bluetooth module etc., will not be repeated here.
Specifically in the present embodiment, processor 405 first obtains the version information applied in terminal, then in version information and When the current version information of first audio-frequence player device firmware is incompatible, obtain for the first audio-frequence player device firmware of upgrading AKU;Difference analysis is carried out to the bag that is currently installed on of AKU and the first audio-frequence player device firmware again, difference bag is generated; The first audio-frequence player device firmware is upgraded finally by difference bag, and difference bag is sent to the broadcasting of the second audio and is set It is standby, so that the second audio-frequence player device is upgraded according to difference bag to the second audio-frequence player device firmware.
Further, processor 405 also obtains the first file identification of upgrade file in AKU;Judgement is currently installed on bag In installation file whether have the second file identification matched with the first file identification;If the second files-designated not matched Know, then upgrade file is set to difference bag.
Further, processor 405 is also when there is the second file identification of matching, obtains the first file identification corresponding the One characteristic parameter and the corresponding second feature parameter of the second file identification;Mismatched in fisrt feature parameter and second feature parameter When, upgrade file is set to difference bag.
Further, processor 405, which is also deleted, is currently installed on target installation file corresponding with difference bag in bag;By difference Subpackage writes the first audio-frequence player device firmware, to upgrade to the first audio-frequence player device firmware.
Further, the upgrade file in difference bag is also packaged and compressed by processor 405;
Difference bag after compression is sent to the second audio-frequence player device.
The audio-frequence player device of this preferred embodiment, using to AKU and be currently installed on bag carry out difference analysis generation Difference bag, to upgrade to the first audio-frequence player device firmware, sets while the second audio that the difference bag is sent to is played The standby scheme to be upgraded to the second audio-frequence player device firmware, improves the efficiency of upgrading.
A kind of firmware upgrade method provided in an embodiment of the present invention, device and terminal are described in detail above, its Each functional module can be integrated in a process chip or modules are individually physically present, can also two or Two or more module is integrated in a module.Above-mentioned integrated module can both be realized in the form of hardware, can also be adopted Realized with the form of software function module.Specific case used herein is explained the principle and embodiment of the present invention State, the explanation of above example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for this area Technical staff, according to the thought of the present invention, will change in specific embodiments and applications, to sum up, this theory Bright book content should not be construed as limiting the invention.

Claims (11)

1. a kind of firmware upgrade method, applied to audio-frequence player device, it is characterised in that methods described includes:
Obtain the version information applied in terminal;
When the current version information of the version information and the first audio-frequence player device firmware is incompatible, obtain for the institute that upgrades State the AKU of the first audio-frequence player device firmware;
Difference analysis is carried out to the bag that is currently installed on of the AKU and the first audio-frequence player device firmware, difference is generated Bag;
The first audio-frequence player device firmware is upgraded by the difference bag, and the difference bag is sent to second Audio-frequence player device, so that second audio-frequence player device is carried out according to the difference bag to the second audio-frequence player device firmware Upgrading.
2. firmware upgrade method according to claim 1, it is characterised in that the AKU has multiple upgrade files, The bag that is currently installed on has multiple installation files;It is described that the AKU and the first audio-frequence player device firmware are worked as Preceding installation kit carries out difference analysis, and generation difference bag step also includes:
Obtain the first file identification of upgrade file in the AKU;
Whether the installation file being currently installed on described in judging in bag has the second file identification matched with first file identification;
If the second file identification not matched, difference bag is set to by the upgrade file.
3. firmware upgrade method according to claim 2, it is characterised in that be currently installed on installing in bag described in the judgement File also includes after whether having the second file identification step matched with first file identification:
If the second file identification of matching, then the corresponding fisrt feature parameter of first file identification and described are obtained The corresponding second feature parameter of two file identifications;
If the fisrt feature parameter is mismatched with the second feature parameter, the upgrade file is set to difference Bag.
4. the firmware upgrade method according to Claims 2 or 3, it is characterised in that it is described by the difference bag to described First audio-frequence player device firmware, which carries out upgrade step, to be included:
Corresponding target installation file in difference bag described in Bao Zhongyu is currently installed on described in deleting;
The difference bag is write into the first audio-frequence player device firmware, to be carried out to the first audio-frequence player device firmware Upgrading.
5. firmware upgrade method according to claim 1, it is characterised in that described that the difference bag is sent to the second sound Frequency playback equipment step includes:
Upgrade file in the difference bag is packaged and compressed;
Difference bag after compression is sent to the second audio-frequence player device.
6. a kind of device for upgrading firmware, it is characterised in that described device includes:
First acquisition module, the version information applied for obtaining in terminal;
Second acquisition module, it is incompatible for the current version information in the version information and the first audio-frequence player device firmware When, obtain the AKU for the first audio-frequence player device firmware of upgrading;
Generation module, differentiation is carried out for the bag that is currently installed on to the AKU and the first audio-frequence player device firmware Analysis, generates difference bag;
Upgraded module, for being upgraded by the difference bag to the first audio-frequence player device firmware, and by the difference Subpackage is sent to the second audio-frequence player device, so that second audio-frequence player device is broadcast according to the difference bag to the second audio Equipment firmware is put to be upgraded.
7. device for upgrading firmware according to claim 6, it is characterised in that the AKU has multiple upgrade files, The bag that is currently installed on has multiple installation files;The generation module also includes:
First acquisition submodule, the first file identification for obtaining upgrade file in the AKU;
Judging submodule, is matched for judging whether the installation file being currently installed in bag has with first file identification The second file identification;
Submodule is set, during for the second file identification in no matching, the upgrade file is set to difference bag.
8. device for upgrading firmware according to claim 7, it is characterised in that the generation module also includes:
Second acquisition submodule, for when there is the second file identification of matching, obtains first file identification corresponding the One characteristic parameter and the corresponding second feature parameter of second file identification;
The setting submodule, is additionally operable to when the fisrt feature parameter and the second feature parameter are mismatched, will be described Upgrade file is set to difference bag.
9. the device for upgrading firmware according to claim 7 or 8, it is characterised in that the upgraded module includes:
Submodule is deleted, described corresponding target installation file in difference bag described in Bao Zhongyu is currently installed on for deleting;
Upgrading submodule, for the difference bag to be write into the first audio-frequence player device firmware, with to first audio Playback equipment firmware is upgraded.
10. device for upgrading firmware according to claim 6, it is characterised in that the upgraded module includes:
Submodule is compressed, for the upgrade file in the difference bag to be packaged and compress;
Sending submodule, for the difference bag after compression to be sent into the second audio-frequence player device.
11. a kind of audio-frequence player device, it is characterised in that including:
Being stored with can be with the memory of configuration processor code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs as claim 1-5 is any Method described in.
CN201710210353.8A 2017-03-31 2017-03-31 Firmware upgrade method, device and audio-frequence player device Pending CN106997302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710210353.8A CN106997302A (en) 2017-03-31 2017-03-31 Firmware upgrade method, device and audio-frequence player device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710210353.8A CN106997302A (en) 2017-03-31 2017-03-31 Firmware upgrade method, device and audio-frequence player device

Publications (1)

Publication Number Publication Date
CN106997302A true CN106997302A (en) 2017-08-01

Family

ID=59434541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710210353.8A Pending CN106997302A (en) 2017-03-31 2017-03-31 Firmware upgrade method, device and audio-frequence player device

Country Status (1)

Country Link
CN (1) CN106997302A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810698A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones, charging box and its upgrade method, storage medium
CN109688472A (en) * 2018-12-10 2019-04-26 未来电视有限公司 Upgrading TV system method, apparatus, equipment and storage medium
CN110795131A (en) * 2018-08-01 2020-02-14 技嘉科技股份有限公司 Server firmware updating method
CN111431975A (en) * 2019-03-26 2020-07-17 惠州迪芬尼声学科技股份有限公司 Firmware upgrade for wireless stereo headphones
WO2022095199A1 (en) * 2020-11-05 2022-05-12 歌尔股份有限公司 Differential upgrade method for embedded device, and related components
CN114513413A (en) * 2022-01-04 2022-05-17 广东万和新电气股份有限公司 Upgrading method of intelligent household equipment, intelligent household equipment and system
CN114567462A (en) * 2022-02-14 2022-05-31 上海迈内能源科技有限公司 Network access authentication method including software compatibility check and system thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033758A (en) * 2009-09-25 2011-04-27 深圳市福智软件技术有限公司 Firmware updating method of audio playing device and system using same
CN103577319A (en) * 2012-08-07 2014-02-12 腾讯科技(深圳)有限公司 Source code file detection method, source code file detection device and file release system
CN104184814A (en) * 2014-08-25 2014-12-03 中山市永衡日用制品有限公司 Method and system for generating and compounding embedded firmware differential upgrading file
CN104539696A (en) * 2014-12-26 2015-04-22 北京像素软件科技股份有限公司 Client end incremental updating method and system
CN105389183A (en) * 2015-11-04 2016-03-09 广东欧珀移动通信有限公司 Method and apparatus for making application version and intelligent sound box software version correspond
CN105549995A (en) * 2015-12-10 2016-05-04 广东欧珀移动通信有限公司 Audio device upgrading method and apparatus
CN105657154A (en) * 2015-10-30 2016-06-08 东莞酷派软件技术有限公司 Method and device for selecting audio channel and terminal
CN106354525A (en) * 2016-08-11 2017-01-25 深圳市宜搜科技发展有限公司 Difference storing method and system for application software installation package

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033758A (en) * 2009-09-25 2011-04-27 深圳市福智软件技术有限公司 Firmware updating method of audio playing device and system using same
CN103577319A (en) * 2012-08-07 2014-02-12 腾讯科技(深圳)有限公司 Source code file detection method, source code file detection device and file release system
CN104184814A (en) * 2014-08-25 2014-12-03 中山市永衡日用制品有限公司 Method and system for generating and compounding embedded firmware differential upgrading file
CN104539696A (en) * 2014-12-26 2015-04-22 北京像素软件科技股份有限公司 Client end incremental updating method and system
CN105657154A (en) * 2015-10-30 2016-06-08 东莞酷派软件技术有限公司 Method and device for selecting audio channel and terminal
CN105389183A (en) * 2015-11-04 2016-03-09 广东欧珀移动通信有限公司 Method and apparatus for making application version and intelligent sound box software version correspond
CN105549995A (en) * 2015-12-10 2016-05-04 广东欧珀移动通信有限公司 Audio device upgrading method and apparatus
CN106354525A (en) * 2016-08-11 2017-01-25 深圳市宜搜科技发展有限公司 Difference storing method and system for application software installation package

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810698A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones, charging box and its upgrade method, storage medium
US11477563B2 (en) 2018-06-15 2022-10-18 Goertek Technology Co., Ltd. TWS earphone, charging case, upgrading method thereof and storage medium
CN110795131A (en) * 2018-08-01 2020-02-14 技嘉科技股份有限公司 Server firmware updating method
CN109688472A (en) * 2018-12-10 2019-04-26 未来电视有限公司 Upgrading TV system method, apparatus, equipment and storage medium
CN111431975A (en) * 2019-03-26 2020-07-17 惠州迪芬尼声学科技股份有限公司 Firmware upgrade for wireless stereo headphones
WO2022095199A1 (en) * 2020-11-05 2022-05-12 歌尔股份有限公司 Differential upgrade method for embedded device, and related components
CN114513413A (en) * 2022-01-04 2022-05-17 广东万和新电气股份有限公司 Upgrading method of intelligent household equipment, intelligent household equipment and system
CN114513413B (en) * 2022-01-04 2023-10-10 广东万和新电气股份有限公司 Intelligent household equipment upgrading method, intelligent household equipment and system
CN114567462A (en) * 2022-02-14 2022-05-31 上海迈内能源科技有限公司 Network access authentication method including software compatibility check and system thereof

Similar Documents

Publication Publication Date Title
CN106997302A (en) Firmware upgrade method, device and audio-frequence player device
US7401065B2 (en) System for downloading contents, and client terminal for downloading contents from contents server
CN105528229B (en) Improve the method and device that mobile terminal first powers on speed
CN105302587B (en) Data-updating method and device
CN107273160A (en) A kind of method and device of edition upgrading
CN105677335A (en) Method and device for increasing first starting speed of mobile terminal
CN105763723A (en) Mobile terminal and system update method
CN103338384A (en) Video play method and video play device
CN110058850B (en) Application development method and device and storage medium
US11785092B2 (en) Multimedia resource playing method, apparatus, terminal, and system
CN106970816B (en) Software upgrading processing method and device and audio playing equipment
CN103249027B (en) The method and apparatus that a kind of terminal traffic processes
CN107038046B (en) Method and device for upgrading audio playing system and terminal
CN108347719B (en) Bluetooth device connection method, device, storage medium, mobile terminal and server
CN107025121B (en) Software upgrading method and device and electronic device
CN103607431B (en) Mobile terminal resource processing method, device and equipment
CN103607236A (en) Method and device for outputting prompt information, wireless repeater and terminal equipment
CN104092648B (en) file request method and device
CN105430448A (en) Control processing method for video player and video player client
CN104199682A (en) Information processing method and electronic equipment
EP2579163A1 (en) Information appliance data connection system, authentication device, client appliance, information appliance data connection method and storage medium
CN107018192B (en) Upgrade method, device and the audio-frequence player device of audio frequency broadcast system
CN106792206A (en) A kind of TV menu adaptive updates method and system
CN111314895A (en) Bluetooth-based wireless upgrading method and device, server and electronic equipment
CN105657691A (en) Mobile terminal and data sharing method of double-chip system thereof

Legal Events

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

Application publication date: 20170801

RJ01 Rejection of invention patent application after publication