CN106970812A - upgrade file processing, device and terminal - Google Patents

upgrade file processing, device and terminal Download PDF

Info

Publication number
CN106970812A
CN106970812A CN201710208198.6A CN201710208198A CN106970812A CN 106970812 A CN106970812 A CN 106970812A CN 201710208198 A CN201710208198 A CN 201710208198A CN 106970812 A CN106970812 A CN 106970812A
Authority
CN
China
Prior art keywords
subfile
audio frequency
frequency apparatus
file
firmware file
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
CN201710208198.6A
Other languages
Chinese (zh)
Other versions
CN106970812B (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 CN201710208198.6A priority Critical patent/CN106970812B/en
Publication of CN106970812A publication Critical patent/CN106970812A/en
Application granted granted Critical
Publication of CN106970812B publication Critical patent/CN106970812B/en
Active 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
    • G06F8/658Incremental updates; Differential updates

Abstract

The embodiment of the present invention provides a kind of upgrade file processing method, device and terminal.This method is applied to audio frequency broadcast system, and the audio frequency broadcast system includes multiple audio frequency apparatuses, comprised the following steps:First version firmware file is divided into multiple subfiles, and the distribution of the plurality of subfile is stored to multiple audio frequency apparatuses;When detecting second edition firmware file, the first subfile and the second subfile are determined from multiple subfiles, wherein, the first subfile is the subfile that second edition firmware file retains, and the second subfile is the subfile replaced by second edition firmware file;The first subfile in second edition firmware file is deleted to generate more new file;More new file is divided into the 3rd subfile of predetermined number, and the 3rd subfile distribution of the predetermined number is stored to the audio frequency apparatus for second subfile that is stored with to replace the second subfile.The present invention has the beneficial effect for saving memory space.

Description

Upgrade file processing, device and terminal
Technical field
The present invention relates to the communications field, more particularly to a kind of upgrade file processing, device and terminal.
Background technology
With technology continue to develop and economic level continuous improvement, intelligent network audio amplifier increasingly popularizes.These Intelligent network audio amplifier is integrated with processor and network interface, can access the Streaming Media music of internet.Intelligent network audio amplifier can With the selection according to user, directly played from Network Capture music sources.
Intelligent network audio amplifier is usually to be controlled using mobile terminal (such as mobile phone and tablet personal computer).Install on mobile terminals After special application program, the application program can be passed through and access intelligent network audio amplifier.
In the prior art, the process of firmware upgrade, often will first download complete firmware file, write-in is then performed again The operation of program storage.In the music playing system being made up of many audio amplifiers, if every audio amplifier all stores a complete Firmware, be also the waste to memory space.
The content of the invention
The embodiment of the present invention provides a kind of upgrade file processing, device and terminal, with the beneficial effect for saving memory space Really.
The embodiment of the present invention provides a kind of upgrade file processing method, and applied to audio frequency broadcast system, the audio plays system System includes multiple audio frequency apparatuses, comprises the following steps:
First version firmware file is divided into multiple subfiles, and the distribution of the plurality of subfile is stored to multiple audios set It is standby;
When detecting second edition firmware file, the first subfile and the second Ziwen are determined from multiple subfiles Part, wherein, the first subfile is the subfile that second edition firmware file retains, and the second subfile is by second edition firmware text The subfile that part is replaced;
The first subfile in second edition firmware file is deleted to generate more new file;
More new file is divided into the 3rd subfile of predetermined number, and the 3rd subfile of the predetermined number is distributed storage To the audio frequency apparatus for second subfile that is stored with to replace the second subfile.
The embodiment of the present invention provides a kind of upgrade file processing unit, including:
First memory module, for first version firmware file to be divided into multiple subfiles, and the plurality of subfile is divided Cloth is stored to multiple audio frequency apparatuses;
Determining module, for when detecting second edition firmware file, the first Ziwen to be determined from multiple subfiles Part and the second subfile, wherein, the first subfile is the subfile that second edition firmware file retains, and the second subfile is quilt The subfile that second edition firmware file is replaced;
Generation module, for the first subfile in second edition firmware file to be deleted to generate more new file;
Second memory module, the 3rd subfile for more new file to be divided into predetermined number, and by the predetermined number The distribution of 3rd subfile stores to the audio frequency apparatus for second subfile that is stored with to replace the second subfile.
The embodiment of the present invention provides a kind of terminal, including memory, processor and stores on a memory and can handle The computer program run on device, realizes any of the above-described described method during the computing device computer program.
From the foregoing, it will be observed that upgrade file processing method provided in an embodiment of the present invention, by the way that first version firmware file is divided Stored correspondingly to multiple audio frequency apparatuses into multiple subfiles, and by the plurality of subfile;Consolidate when detecting the second edition During part file, the first subfile being present in second edition firmware file is determined from multiple subfiles and is not present In the second subfile in the second firmware file;The first subfile in second edition firmware file is deleted and updates text to generate Part;The more new file is divided into the 3rd subfile of predetermined number, and corresponded using the 3rd subfile of the predetermined number Replace the second subfile being stored in audio frequency apparatus in ground;So that when detecting the firmware file of redaction, it is only necessary to will be distributed The subfile updated in each audio frequency apparatus is replaced, without being repaiied to the subfile in all audio frequency apparatuses Change, with the beneficial effect saved memory space, improve upgrade file renewal efficiency and reduction data traffic.
Brief description of the drawings
Fig. 1 be one embodiment of the present invention in upgrade file processing method and processing device schematic diagram of a scenario.
Fig. 2 be one embodiment of the present invention in upgrade file processing method a kind of flow chart.
Fig. 3 be one embodiment of the present invention in upgrade file processing method another flow chart.
Fig. 4 shows for the segmentation of the first version firmware file of the upgrade file processing method in one embodiment of the present invention It is intended to.
Fig. 5 is the index relative set up in the upgrade file processing method in one embodiment of the present invention.
Fig. 6 is the index relative after deletion part in the upgrade file processing method in one embodiment of the present invention.
Fig. 7 is the index relative that re-establishes in the upgrade file processing method in one embodiment of the present invention.
Fig. 8 be one embodiment of the present invention in upgrade file processing unit structural representation.
Fig. 9 is the structural representation of terminal in one embodiment of the present invention.
Embodiment
It refer to schema, wherein identical element numbers represent identical component, principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention will be referred to as the operation performed by one or multi-section computer The step of and symbol illustrate, unless otherwise stating clearly.Therefore, it will appreciate that these steps and operation, be carried for several times wherein having To be performed by computer, include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern Member is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match somebody with somebody again Put or change in a manner familiar to those skilled in the art in addition the running of the computer.The data knot that the data are maintained Structure is the provider location of the internal memory, and it has the particular characteristics as defined in the data format.But, the principle of the invention is with above-mentioned Word illustrates, it is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and Operation also may be implemented among hardware.
It is the schematic diagram of a scenario of the method in the embodiment of the present invention referring to Fig. 1 and Fig. 2, Fig. 1.
Fig. 2 be this in the present embodiment, so that the control method of the audio frequency apparatus is integrated in a terminal device as an example carry out Illustrate, a kind of upgrade file processing method, applied to audio frequency broadcast system, the audio frequency broadcast system is set including multiple audios It is standby, comprise the following steps:
S101, first version firmware file is divided into multiple subfiles, and the distribution of the plurality of subfile is stored to multiple Audio frequency apparatus.
In this step, it can be divided according to function, such as volume control, tone control, so that by the first edition This firmware file divide into multiple subfiles.When the first version firmware file is divided into multiple subfiles, will not be upset The order for the data that one version firmware file is carried.For example shown in Fig. 3, the first version firmware file is in turn divided into Ziwen Part X1, subfile X2, subfile X3, subfile X4 ... subfiles Xm, subfile Xn, subfile Xl.
In actual application, step S101 includes following sub-step:
S1011, first version firmware file is divided into multiple subfiles.In the present embodiment, by the first version firmware File is in turn divided into subfile X1, subfile X2, subfile X3, subfile X4 ... subfiles Xm, subfile Xn, subfile Xl。
S1012, set up the plurality of subfile and the plurality of audio frequency apparatus index relative.For example, as shown in figure 4, subfile Xp respectively with audio frequency apparatus Yp correspond, wherein P=1,2,3 ... m, n, L.
In certain embodiments, step S1012 can include:The residual memory space for obtaining each audio frequency apparatus is big It is small;The multiple subfile and the multiple audio are set up according to the data volume of the remaining memory capacity and each subfile The one-to-one index relative of equipment.In practical operation, first the plurality of subfile can be ranked up according to data volume size, And be ranked up the remaining memory capacity size of multiple audio frequency apparatuses, then deposited according to the big audio frequency apparatus of remaining memory capacity The principle of the big subfile of data volume is stored up, to set up index relative.
It is to be appreciated that for some of important subfiles, such as the corresponding function of the subfile is played in audio Often it is used in equipment, can be by subfile storage into two or more audio frequency apparatuses.Therefore, step S1012 Comprise the following steps:
The plurality of subfile is divided into first set and second set, wherein, the subfile in first set is corresponding Utilization rate of the function in audio frequency apparatus is less than predetermined value, and the corresponding function of subfile in second set is in audio frequency apparatus Utilization rate is higher than predetermined value.Subfile in the first set is hardly important or less conventional subfile.In other words, Frequency of use of the corresponding function of subfile in audio frequency apparatus in the first set is relatively low, for example, often playing 10 just meetings Use 2 times.Subfile in the second set is important or conventional subfile.In other words, the son in the second set Frequency of use of the function of file in audio frequency apparatus is higher, and for example often playing 10 music will use more than 5 times.
The each subfile set up in the subfile of the first set and the first index relative of audio frequency apparatus, first set One audio frequency apparatus of correspondence;The subfile and the second index relative of audio frequency apparatus set up in the second set, wherein, the second collection Each subfile at least two audio frequency apparatuses of correspondence in conjunction.So, when each audio frequency apparatus is required for using this utilization rate When higher subfile is to be updated, data faster can be obtained from least two audio frequency apparatuses, upgrading efficiency can be improved.
S1013, according to index relative each subfile is stored to corresponding audio frequency apparatus.In this step, according to this Index relative stores each subfile to corresponding audio frequency apparatus respectively, to cause a certain audio frequency apparatus to need this by firmware text When part upgrades to the first version firmware file, it can be gone to obtain each Ziwen from each audio frequency apparatus respectively according to index relative Part, so as to constitute complete first version firmware file.
S102, when detecting second edition firmware file, the first subfile and are determined from multiple subfiles Two subfiles, wherein, the first subfile is the subfile that second edition firmware file retains, and the second subfile is by the second edition The subfile that firmware file is replaced.
In this step, second edition firmware file is the firmware file higher than the first version firmware file version, It can be by the way that the plurality of subfile be contrasted with the second edition firmware file successively, to have judged which subfile It is updated, so that by corresponding partial replacement in second edition firmware file;Which subfile does not change, and still retains In the second edition firmware file.
In actual applications, step S102 includes following sub-step:
S1021, when detecting second edition firmware file, the multiple subfile is consolidated with the second edition respectively Part file is compared.It is that the data extracted in each subfile are gone and the second edition firmware file in practical operation It is compared, to confirm whether have a data segment identical with the subfile in the second edition firmware file.
S1022, when the subfile is identical with the data segment in the second edition firmware file, confirm the Ziwen Part is the first subfile.In practical operation, when the data segment carried in the subfile can in the second edition firmware file To find identical data segment, then it is the first subfile being retained in second edition firmware file to confirm the subfile.
S1023, when the arbitrary data Duan Jun in the subfile and the second edition firmware file is differed, confirm The subfile is the second subfile.In practical operation, when arbitrary data section in the subfile and the second edition firmware file When differing, then it is the second subfile replaced by the partial data of second edition firmware file to confirm the subfile.
S103, the first subfile in second edition firmware file deleted to generate more new file.
In this step, mainly by the data segment phase in second edition firmware file with the interior carrying of first subfile Same data segment is deleted.
In actual applications, step S103 includes following sub-step:
S1031, the first data message for extracting the carrying of the first subfile.
S1032, the first data message in the second edition firmware file deleted to generate firmware file.In the step In rapid, when deleting the first data message, delete and generated at the position of the first data message in the second edition firmware file Empty data segment.
S104, the 3rd subfile that the more new file is divided into predetermined number, and using the 3rd Ziwen of the predetermined number Part replaces the second subfile being stored in audio frequency apparatus correspondingly.
Step S104 includes following sub-step:
S1041, the 3rd subfile that the more new file is divided into predetermined number, the number and second of the 3rd subfile The number of subfile is identical.In this step, it is each when the more new file is divided into three subfile of predetermined number Data before and after empty data segment are located in the 3rd different subfiles.In order to the plurality of subfile of subsequent combination.
S1042, the audio frequency apparatus for deleting second subfile that is stored with and corresponding subfile index relative.
In the index relative that will be set up in step S1012, the index on the audio frequency apparatus for second subfile that is stored with is closed System deletes.For example, refer to Fig. 6, in the plurality of subfile, subfile X3, subfile X4, subfile Xm are the second Ziwen Part, that is to say relation subfile X3, subfile X4, subfile Xm and audio frequency apparatus X3, audio frequency apparatus X4 in index relative And audio frequency apparatus Xm index relative is deleted.
The new rope of the audio frequency apparatus of S1043, the 3rd subfile for setting up the predetermined number and second subfile that is stored with Draw relation, every one the 3rd subfile correspondence one is stored with the audio frequency apparatus of the second subfile.
In this step, the more new file divide into the 3rd subfile X3, the 3rd subfile X4 and the 3rd subfile Xm, Then the subfile X3 of correspondence establishment the 3rd to should audio frequency apparatus X3, the 3rd subfile X4 to should audio frequency apparatus X4 and the 3rd Subfile Xm to should audio frequency apparatus Ym new index relative.And closed the new index relative and original index relative And, obtain index relative as shown in Figure 7.
S1044, every one the 3rd subfile is sent to by corresponding audio frequency apparatus according to the new index relative, and delete should The second subfile stored in audio frequency apparatus.
In this step, the 3rd subfile X3 is sent to audio frequency apparatus Y3, and subfile X3 therein is deleted.Will 3rd subfile X4 is sent to audio frequency apparatus Y4, and subfile X4 therein is deleted.3rd subfile Xm is sent to this Audio frequency apparatus Ym, and subfile Xm therein is deleted.
From the foregoing, it will be observed that upgrade file processing method provided in an embodiment of the present invention, by the way that first version firmware file is divided Stored correspondingly to multiple audio frequency apparatuses into multiple subfiles, and by the plurality of subfile;Consolidate when detecting the second edition During part file, the first subfile being present in second edition firmware file is determined from multiple subfiles and is not present In the second subfile in the second firmware file;The first subfile in second edition firmware file is deleted and updates text to generate Part;The more new file is divided into the 3rd subfile of predetermined number, and corresponded using the 3rd subfile of the predetermined number Replace the second subfile being stored in audio frequency apparatus in ground;So that when detecting the firmware file of redaction, it is only necessary to will be distributed The subfile updated in each audio frequency apparatus is replaced, without being repaiied to the subfile in all audio frequency apparatuses Change, with the beneficial effect for improving upgrade file renewal efficiency and reduction data traffic.
It refer to Fig. 8, Fig. 8 is the structure chart of the upgrade file processing unit in one embodiment of the present invention, the upgrading Document handling apparatus 200 includes:First memory module 201, determining module 202, the memory module of generation module 203 and second 204。
Wherein, first memory module 201 is used to first version firmware file being divided into multiple subfiles, and will be the plurality of Subfile is stored to multiple audio frequency apparatuses correspondingly.First memory module 201 includes:First cutting unit 2011, One sets up unit 2012, the first memory cell 2013.First cutting unit 2011 is used to first version firmware file being divided into many Individual subfile.First, which sets up unit 2012, is used to set up the multiple subfile and the multiple audio frequency apparatus index relative.The One memory cell 2013 is used to be stored each subfile to corresponding audio frequency apparatus according to the index relative.
In certain embodiments, first set up unit 2012 be used for obtain each audio frequency apparatus residual memory space it is big It is small, and the multiple subfile is set up according to the data volume of remaining memory capacity and each subfile set with the multiple audio Standby one-to-one index relative.
In further embodiments, first unit 2012 is set up for being set according to the corresponding function of each subfile in audio It is standby it is interior the plurality of subfile is divided into first set and second set depending on frequency of use, wherein, the son in first set The frequency of use that the frequency of use of the corresponding function of file is less than the corresponding function of subfile in predetermined value, second set is more than Predetermined value;The subfile and the first index relative of audio frequency apparatus set up in the first set, the wherein Ziwen in first set Part is corresponded with audio frequency apparatus;The subfile and the second index relative of audio frequency apparatus set up in second set, wherein, second Subfile at least two audio frequency apparatuses of correspondence in set.
Determining module 202 is used for when detecting second edition firmware file, determines and is present in from multiple subfiles The first subfile in second edition firmware file and the second subfile being not present in the second firmware file.The determination Module 202 includes comparing unit 2021, the first confirmation unit 2022, the second confirmation unit 2023.Comparing unit 2021 is used to work as When detecting second edition firmware file, the multiple subfile is compared with the second edition firmware file respectively. First confirmation unit 2022 is used for when the subfile is identical with the data segment in the second edition firmware file, confirms The subfile is the first subfile, wherein, the first subfile is the subfile that second edition firmware file retains.Second confirmation form Member 2023 is used to, when the arbitrary data Duan Jun in the subfile and the second edition firmware file is differed, confirm the son File is the second subfile, wherein, second subfile is the subfile replaced by second edition firmware file.
Generation module 203 is used to delete to generate more new file by the first subfile in second edition firmware file.Should Generation module 203 includes:Extraction unit 2031 and first deletes unit 2032.Extraction unit 2031 is used to extract the first son The first data message that file is carried.First, which deletes unit 2032, is used for the first data in the second edition firmware file Information deletion is to generate more new file.
Second memory module 204 is used for the 3rd subfile that the more new file is divided into predetermined number, and is made a reservation for using this 3rd subfile of number replaces the second subfile being stored in audio frequency apparatus correspondingly.Second memory module 204 is wrapped Include:Second cutting unit 2041, second deletion unit 2042, second set up unit 2043, the second memory cell 2044.Second point Cut the 3rd subfile that unit 2041 is used to being divided into the more new file into predetermined number, the number and second of the 3rd subfile The number of subfile is identical.Second deletion unit 2042 is used for the audio frequency apparatus and corresponding Ziwen for deleting second subfile that is stored with The index relative of part.Second, which sets up unit 2043, is used to set up the 3rd subfile of the predetermined number and second Ziwen that is stored with The new index relative of the audio frequency apparatus of part, every one the 3rd subfile correspondence one is stored with the audio frequency apparatus of the second subfile.Second Memory cell 2044 is used to every one the 3rd subfile is sent into corresponding audio frequency apparatus according to the new index relative, and deletes The second subfile stored in the audio frequency apparatus.
Refer to Fig. 9, the embodiment of the present invention also provides a kind of terminal 300, the terminal 300 can include radio frequency (RF, Radio Frequency) circuit 301, include the memories 302, defeated of one or more computer-readable recording mediums Enter unit 303, display unit 304, sensor 305, voicefrequency circuit 306, Wireless Fidelity (WiFi, Wireless Fidelity) Module 307, include the part such as one or the processor 308 and power supply 309 of more than one processing core.This area skill Art personnel are appreciated that the restriction of the terminal structure shown in Fig. 9 not structure paired terminal, can include more more or more than illustrating Few part, either combines some parts or different parts arrangement.Wherein:
RF circuits 301 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, transfer to one or more than one processor 308 is handled;In addition, being sent to up data are related to Base station.Generally, RF circuits 301 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuits 301 can also pass through radio communication and network and its His equipment communication.The radio communication can use any communication standard or agreement, including but not limited to global system for mobile telecommunications system Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is many Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 302 can be used for storage software program and module, and processor 308 is stored in memory 302 by operation Software program and module, so as to perform various function application and data processing.Memory 302 can mainly include storage journey Sequence area and storage data field, wherein, the application program (ratio that storing program area can be needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created data according to terminal (such as voice data, phone directory etc.) etc..In addition, memory 302 can include high-speed random access memory, it can also include Nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory 302 can also include Memory Controller, to provide processor 308 and input block 303 to memory 302 Access.
Input block 303 can be used for the numeral or character information for receiving input, and generation to be set with user and function The relevant keyboard of control, mouse, action bars, optics or the input of trace ball signal.Specifically, in a specific embodiment In, input block 303 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or tactile Control plate, collect user on or near it touch operation (such as user using any suitable object such as finger, stylus or Operation of the annex on touch sensitive surface or near touch sensitive surface), and filled according to the corresponding connection of formula set in advance driving Put.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects the signal that touch operation is brought, touch controller is transmitted a signal to;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 308, and can reception processing Order that device 308 is sent simultaneously is performed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.Except touch sensitive surface, input block 303 can also include other input equipments.Specifically, other are defeated Physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse can be included but is not limited to by entering equipment One or more in mark, action bars etc..
Display unit 304 can be used for the various of the information that is inputted by user of display or the information for being supplied to user and terminal Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display Unit 304 may include display panel, optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, after touch sensitive surface detects the touch operation on or near it, send processing to Device 308 is provided accordingly on a display panel with determining the type of touch event with preprocessor 308 according to the type of touch event Visual output.Although in fig .9, touch sensitive surface is that input is realized as two independent parts and is inputted with display panel Function, but in some embodiments it is possible to by touch sensitive surface and display panel it is integrated and realize input and output function.
Terminal may also include at least one sensor 305, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity transducer can close display panel and/or the back of the body when terminal is moved in one's ear Light.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axles) acceleration Size, can detect that size and the direction of gravity when static, available for identification mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 306, loudspeaker, microphone can provide the COBBAIF between user and terminal.Voicefrequency circuit 306 can Electric signal after the voice data received is changed, is transferred to loudspeaker, and voice signal output is converted to by loudspeaker;It is another The voice signal of collection is converted to electric signal by aspect, microphone, by voicefrequency circuit 306 receive after be converted to voice data, then After voice data output processor 308 is handled, through RF circuits 301 to be sent to such as another terminal, or by voice data Output is to memory 302 so as to further processing.Voicefrequency circuit 306 is also possible that earphone jack, with provide peripheral hardware earphone with The communication of terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronicses postal by WiFi module 307 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 9 is shown WiFi module 307, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, can not change as needed completely Become in the essential scope of invention and omit.
Processor 308 is the control centre of terminal, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform and be stored in software program and/or module in memory 302, and call and be stored in memory 302 Data, perform the various functions and processing data of terminal, so as to carry out integral monitoring to mobile phone.Optionally, processor 308 can be wrapped Include one or more processing cores;It is preferred that, processor 308 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 308.
Terminal also includes the power supply 309 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 308 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 309 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, mobile terminal can also include camera, bluetooth module etc., will not be repeated here.Specifically at this In embodiment, the processor 308 in terminal can be according to following instruction, by the process pair of one or more application program The executable file answered is loaded into memory 302, and the application journey stored in the memory 302 is run by processor 308 Sequence, so as to realize following functions:
First version firmware file is divided into multiple subfiles, and the plurality of subfile is stored to multiple correspondingly Audio frequency apparatus;
When detecting second edition firmware file, determined from multiple subfiles and be present in second edition firmware file The first interior subfile and the second subfile being not present in the second firmware file;
The first subfile in second edition firmware file is deleted to generate more new file;
The more new file is divided into the 3rd subfile of predetermined number, and uses the 3rd subfile of the predetermined number one by one Accordingly replace the second subfile being stored in audio frequency apparatus.
From the foregoing, it will be observed that terminal provided in an embodiment of the present invention by first version firmware file by being divided into multiple subfiles, And store the plurality of subfile to multiple audio frequency apparatuses correspondingly;When detecting second edition firmware file, from many The first subfile being present in second edition firmware file is determined in individual subfile and the second firmware file is not present in The second interior subfile;The first subfile in second edition firmware file is deleted to generate more new file;By renewal text Part is divided into the 3rd subfile of predetermined number, and is replaced be stored in sound correspondingly using the 3rd subfile of the predetermined number The second subfile in frequency equipment;So that when detecting the firmware file of redaction, it is only necessary to will be distributed over each audio frequency apparatus The interior subfile updated is replaced, without being modified to the subfile in all audio frequency apparatuses, is risen with improving Level file updates efficiency and reduces the beneficial effect of data traffic.
There is provided herein the various operations of embodiment.In one embodiment, described one or more operations can be with structure The computer-readable instruction stored on into one or more computer-readable mediums, it will make to succeed in one's scheme when being performed by electronic equipment Calculate equipment and perform the operation.Describing the orders of some or all of operations, to should not be construed as to imply that these operations necessarily suitable Sequence correlation.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that Not all operation must exist in each embodiment provided in this article.
Moreover, word " preferably " used herein means serving as example, example or illustration.Feng Wen is described as " preferably " any aspect or design be not necessarily to be construed as than other aspect or design it is more favourable.On the contrary, the use purport of word " preferably " Concept is being proposed in a concrete fashion.Term "or" as used in this application is intended to mean the "or" included and non-excluded "or".I.e., unless otherwise or clear from the context, " X means that nature includes any one of arrangement using A or B ". That is, if X uses A;X uses B;Or X uses A and B both, then " X is met using A or B " in foregoing any example.
Although moreover, the disclosure, this area skill has shown and described relative to one or more implementations Art personnel are based on the reading to the specification and drawings and understand it will be appreciated that equivalent variations and modification.The disclosure include it is all this The modifications and variations of sample, and be limited only by the scope of the following claims.Particularly with by said modules (such as element, Resource etc.) various functions that perform, it is intended to correspond to the specified work(for performing the component for describing the term of such component The random component (unless otherwise instructed) of energy (for example it is functionally of equal value), it is illustrated herein with execution in structure The disclosure exemplary implementations in function open structure it is not equivalent.Although in addition, the special characteristic of the disclosure is Through being disclosed relative to the only one in some implementations, but this feature can with such as can be to given or application-specific For be expect and other favourable implementations other one or more combinations of features.Moreover, with regard to term " comprising ", " tool Have ", " containing " or its deformation be used in embodiment or claim for, such term be intended to with term The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module or unit list Solely be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module can both be used The form of hardware is realized, it would however also be possible to employ the form of software function module is realized.If the integrated module is with software function The form of module is realized and is situated between as independent production marketing or in use, an embodied on computer readable storage can also be stored in In matter.Storage medium mentioned above can be read-only storage, disk or CD etc..Above-mentioned each device or system, can be with Perform the method in correlation method embodiment.
In summary, although the present invention it is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit Adorn, therefore protection scope of the present invention is defined by the scope that claim is defined.

Claims (13)

1. a kind of upgrade file processing method, applied to audio frequency broadcast system, the audio frequency broadcast system includes multiple audio frequency apparatuses, It is characterised in that it includes following steps:
First version firmware file is divided into multiple subfiles, and the distribution of the plurality of subfile is stored to multiple audio frequency apparatuses;
When detecting second edition firmware file, the first subfile and the second subfile are determined from multiple subfiles, Wherein, the first subfile is the subfile that second edition firmware file retains, and the second subfile is by second edition firmware file The subfile of replacement;
The first subfile in second edition firmware file is deleted to generate more new file;
More new file is divided into the 3rd subfile of predetermined number, and the 3rd subfile distribution of the predetermined number is stored to depositing The audio frequency apparatus of the second subfile is contained to replace the second subfile.
2. upgrade file processing method according to claim 1, it is characterised in that described by first version firmware file point Into multiple subfiles, and by the plurality of subfile distribution store to multiple audio frequency apparatuses the step of include:
First version firmware file is divided into multiple subfiles;
Set up the index relative of the multiple subfile and the multiple audio frequency apparatus;
Each subfile is stored to corresponding audio frequency apparatus according to the index relative.
3. upgrade file processing method according to claim 2, it is characterised in that it is described set up the multiple subfile with The step of index relative of the multiple audio frequency apparatus, includes:
Obtain the remaining memory capacity of each audio frequency apparatus;
According to the data volume of the remaining memory capacity of each audio frequency apparatus and each subfile set up the multiple subfile with The multiple one-to-one index relative of audio frequency apparatus.
4. upgrade file processing method according to claim 2, it is characterised in that it is described set up the multiple subfile with The step of index relative of the multiple audio frequency apparatus, includes:
The plurality of subfile is divided into by first set according to frequency of use of the corresponding function of each subfile in audio frequency apparatus And second set, wherein, the frequency of use of the corresponding function of subfile in first set is less than in predetermined value, second set The corresponding function of subfile frequency of use be more than predetermined value;
The subfile and the first index relative of audio frequency apparatus set up in the first set, the wherein subfile pair in first set Answer an audio frequency apparatus;
The subfile and the second index relative of audio frequency apparatus set up in second set, wherein, the subfile pair in second set Answer at least two audio frequency apparatuses.
5. upgrade file processing method according to claim 1, it is characterised in that described to detect second edition firmware During file, the step of the first subfile and the second subfile are determined from multiple subfiles includes:
When detecting second edition firmware file, the multiple subfile is carried out with the second edition firmware file respectively Compare;
When the subfile is identical with the data segment in the second edition firmware file, it is the first son to confirm the subfile File;
When the arbitrary data Duan Jun in the subfile and the second edition firmware file is differed, confirm that the subfile is Second subfile.
6. upgrade file processing method according to claim 1, it is characterised in that described that more new file is divided into predetermined The 3rd several subfiles, and the 3rd subfile distribution of the predetermined number is stored to the audio frequency apparatus for second subfile that is stored with Included with replacing the step of the second subfile:
The more new file is divided into the 3rd subfile of predetermined number, the number of the 3rd subfile and of the second subfile Number is identical;
Delete the audio frequency apparatus for second subfile that is stored with and the index relative of corresponding subfile;
The new index relative of the audio frequency apparatus of the 3rd subfile of the predetermined number and second subfile that is stored with is set up, it is each The audio frequency apparatus that 3rd subfile correspondence one is stored with the second subfile;
Every one the 3rd subfile is sent to by corresponding audio frequency apparatus according to the new index relative, and deleted in the audio frequency apparatus Second subfile of storage.
7. a kind of upgrade file processing unit, it is characterised in that including:
First memory module, for first version firmware file to be divided into multiple subfiles, and the distribution of the plurality of subfile is deposited Store up to multiple audio frequency apparatuses;
Determining module, for when detecting second edition firmware file, determined from multiple subfiles the first subfile with And second subfile, wherein, the first subfile is the subfile that second edition firmware file retains, and the second subfile is by second The subfile that version firmware file is replaced;
Generation module, for the first subfile in second edition firmware file to be deleted to generate more new file;
Second memory module, the 3rd subfile for more new file to be divided into predetermined number, and by the 3rd of the predetermined number the Subfile distribution stores to the audio frequency apparatus for second subfile that is stored with to replace the second subfile.
8. upgrade file processing unit according to claim 7, it is characterised in that first memory module includes:
First cutting unit, for first version firmware file to be divided into multiple subfiles;
First sets up unit, for setting up the multiple subfile and the one-to-one index relative of the multiple audio frequency apparatus;
First memory cell, for being stored each subfile to corresponding audio frequency apparatus according to the index relative.
9. upgrade file processing unit according to claim 8, it is characterised in that described first, which sets up unit, is used to obtain The residual memory space size of each audio frequency apparatus, and built according to the data volume of the remaining memory capacity and each subfile Found the multiple subfile and the one-to-one index relative of the multiple audio frequency apparatus.
10. upgrade file processing unit according to claim 8, it is characterised in that described first, which sets up unit, is used for:
The plurality of subfile is divided into by the first collection according to frequency of use of the corresponding function of each subfile in audio frequency apparatus Close and second set, wherein, the frequency of use of the corresponding function of subfile in first set is less than predetermined value, second set In the corresponding function of subfile frequency of use be more than predetermined value;
The subfile and the first index relative of audio frequency apparatus set up in the first set, the wherein subfile pair in first set Answer an audio frequency apparatus;
The subfile and the second index relative of audio frequency apparatus set up in second set, wherein, the subfile pair in second set Answer at least two audio frequency apparatuses.
11. upgrade file processing unit according to claim 7, it is characterised in that the determining module includes:
Comparing unit, for when detecting second edition firmware file, by the multiple subfile respectively with the second edition This firmware file is compared;
First confirmation unit, for when the subfile is identical with the data segment in the second edition firmware file, really The subfile is recognized for the first subfile, wherein, the first subfile is the subfile that second edition firmware file retains;
Second confirmation unit, for being differed when the subfile with the arbitrary data Duan Jun in the second edition firmware file When, it is the second subfile to confirm the subfile, wherein, second subfile is the Ziwen replaced by second edition firmware file Part.
12. upgrade file processing unit according to claim 7, it is characterised in that second memory module includes:
Second cutting unit, the 3rd subfile for the more new file to be divided into predetermined number, of the 3rd subfile Number is identical with the number of the second subfile;
Second deletes unit, for deleting the audio frequency apparatus for second subfile that is stored with and the index relative of corresponding subfile;
Second sets up unit, the audio frequency apparatus for setting up the 3rd subfile of the predetermined number and second subfile that is stored with New index relative, every one the 3rd subfile correspondence one is stored with the audio frequency apparatus of the second subfile;
Second memory cell, for every one the 3rd subfile to be sent into corresponding audio frequency apparatus according to the new index relative, And delete the second subfile stored in the audio frequency apparatus.
13. a kind of terminal, it is characterised in that including memory, processor and store on a memory and can transport on a processor Capable computer program, realizes the method as described in claim 1-6 is any during the computing device computer program.
CN201710208198.6A 2017-03-31 2017-03-31 Upgrade file processing device and terminal Active CN106970812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710208198.6A CN106970812B (en) 2017-03-31 2017-03-31 Upgrade file processing device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710208198.6A CN106970812B (en) 2017-03-31 2017-03-31 Upgrade file processing device and terminal

Publications (2)

Publication Number Publication Date
CN106970812A true CN106970812A (en) 2017-07-21
CN106970812B CN106970812B (en) 2020-04-10

Family

ID=59336444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710208198.6A Active CN106970812B (en) 2017-03-31 2017-03-31 Upgrade file processing device and terminal

Country Status (1)

Country Link
CN (1) CN106970812B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008179A (en) * 2019-04-02 2019-07-12 深圳创维汽车智能有限公司 File memory method, automobile data recorder and readable storage medium storing program for executing
CN111273939A (en) * 2020-01-20 2020-06-12 Oppo(重庆)智能科技有限公司 Information processing method, information processing device and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1482547A (en) * 2002-07-29 2004-03-17 �Ҵ���˾ Method and system for upgrading drive firmware in a non-disruptive manner
CN101145941A (en) * 2006-12-13 2008-03-19 中兴通讯股份有限公司 A method and system for distributed storage and load of communication system software versions
CN101179430A (en) * 2007-12-03 2008-05-14 中兴通讯股份有限公司 Device and method of controlling distributed system software version updating

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1482547A (en) * 2002-07-29 2004-03-17 �Ҵ���˾ Method and system for upgrading drive firmware in a non-disruptive manner
CN101145941A (en) * 2006-12-13 2008-03-19 中兴通讯股份有限公司 A method and system for distributed storage and load of communication system software versions
CN101179430A (en) * 2007-12-03 2008-05-14 中兴通讯股份有限公司 Device and method of controlling distributed system software version updating

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008179A (en) * 2019-04-02 2019-07-12 深圳创维汽车智能有限公司 File memory method, automobile data recorder and readable storage medium storing program for executing
CN110008179B (en) * 2019-04-02 2023-06-16 深圳创维汽车智能有限公司 File storage method, automobile data recorder and readable storage medium
CN111273939A (en) * 2020-01-20 2020-06-12 Oppo(重庆)智能科技有限公司 Information processing method, information processing device and terminal equipment
CN111273939B (en) * 2020-01-20 2023-11-10 Oppo(重庆)智能科技有限公司 Information processing method, information processing device and terminal equipment

Also Published As

Publication number Publication date
CN106970812B (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN106557330B (en) Method and device for processing notification information of notification bar of mobile terminal system and mobile terminal
CN106775637B (en) Page display method and device for application program
CN104427074B (en) A kind of methods, devices and systems for showing incoming information
CN103678502B (en) Information collection method and device
CN103414766A (en) Method, device and terminal equipment for installing application
CN103455330A (en) Application program management method, terminal, equipment and system
CN103699309B (en) A kind of method for recording of synchronization video, device and mobile terminal
CN106126174A (en) The control method of a kind of scene audio and electronic equipment
CN104111927A (en) Method, equipment and system for information classification
CN103455348A (en) Subarea adjustment method, device, terminal, server and system
CN103368828B (en) A kind of message temporary storage and system
CN106775827A (en) A kind of application program update method and device, computer equipment
CN104516888B (en) The permission querying method and device of multidimensional data
CN104252341A (en) Method and device for resurfacing application program and client side device of application program
CN103491245A (en) Method and device for storing short messages and terminal equipment
CN107422962A (en) A kind of bright screen control method and equipment
CN107291327A (en) Application control method and related product
CN105550316A (en) Pushing method and device of audio list
CN104426926A (en) Processing method and apparatus for regularly issued data
CN106970812A (en) upgrade file processing, device and terminal
CN103412707A (en) Displaying method, device and equipment for display frame
CN106682189A (en) Filename display method and device
CN104424324A (en) Method and device for positioning list item in list component
CN103617036B (en) A kind of method, apparatus and terminal device for showing plug-in unit
CN106228994A (en) A kind of method and apparatus detecting tonequality

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