CN107015829A - Audio system upgrade method, device - Google Patents
Audio system upgrade method, device Download PDFInfo
- Publication number
- CN107015829A CN107015829A CN201710209382.2A CN201710209382A CN107015829A CN 107015829 A CN107015829 A CN 107015829A CN 201710209382 A CN201710209382 A CN 201710209382A CN 107015829 A CN107015829 A CN 107015829A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- slave unit
- main equipment
- subfile
- check value
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000005540 biological transmission Effects 0.000 claims description 58
- 238000012790 confirmation Methods 0.000 claims description 20
- 238000002360 preparation method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 6
- 108020001568 subdomains Proteins 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000003860 storage Methods 0.000 description 3
- 238000000151 deposition Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44573—Execute-in-place [XIP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
Abstract
The present invention provides a kind of audio system upgrade method, device.This method includes:Upgrade file is obtained according to upgrade command;The upgrade file is divided into by multiple upgrading subfiles according to default division rule;It is successively read multiple upgrading subfiles and writes into main equipment internal memory to complete to upgrade to the main equipment;And a upgrading subfile is often read, the upgrading subfile is sent to the slave unit to complete to upgrade to the slave unit.This method can greatly reduce upgrading spent time, improve upgrading efficiency.
Description
Technical field
The present invention relates to audio frequency apparatus technical field, more particularly to a kind of audio system upgrade method and device.
Background technology
Intelligent network audio-frequence player device can be connected with the terminal such as mobile phone, tablet personal computer.User passes through corresponding in terminal
Application program access intelligent network audio-frequence player device, and control intelligent network audio-frequence player device work.Intelligent network sound
Frequency play system includes at least two intelligent network audio-frequence player devices, and one of them is main equipment, and other is slave unit.
When the version of each equipment in intelligent network audio frequency broadcast system needs upgrading, usually main equipment is first upgrading
File download gets off, and main equipment sends whole upgrade file to slave unit, slave unit needs while upgrade file is installed
Complete upgrade file is first got, update could be carried out, will certainly so increase intelligent network audio frequency broadcast system
Edition upgrading duration, user need waiting the long period just can normally use intelligent network audio frequency broadcast system, to user with
It is inconvenient to come.
The content of the invention
The embodiment of the present invention provides a kind of audio system upgrade method, device, it is possible to reduce audio frequency broadcast system upgrading
Time, improve upgrading efficiency.
The embodiment of the present invention provides a kind of audio system upgrade method, and the audio system includes main equipment and at least one
Slave unit, methods described includes:
Upgrade file is obtained according to upgrade command;
The upgrade file is divided into by multiple upgrading subfiles according to default division rule;
It is successively read multiple upgrading subfiles and writes into main equipment internal memory to complete to upgrade to the main equipment;
And
A upgrading subfile is often read, the upgrading subfile is sent to the slave unit to complete to described
Slave unit is upgraded.
The embodiment of the present invention also provides a kind of audio system upgrade method, and the audio system includes main equipment and at least one
Individual slave unit, methods described includes:Multiple upgrading subfiles of the main equipment transmission are received successively and are write to slave unit
To complete to upgrade to the slave unit in depositing, wherein, multiple upgrading subfiles are that the main equipment is advised according to default divide
Then by upgrade file divided obtained by subfile.
The embodiment of the present invention provides a kind of audio system upgrading control device again, and the audio system is including main equipment and extremely
A few slave unit, described device includes:
Acquisition module, for obtaining upgrade file according to upgrade command;
Division module, for the upgrade file to be divided into multiple upgrading subfiles according to default division rule;
Writing module is read, for being successively read multiple upgrading subfiles and writing into main equipment internal memory to complete
The main equipment is upgraded;And
Sending module, for often reading a upgrading subfile, sends the upgrading subfile to described from setting
It is standby to complete to upgrade to the slave unit.
The embodiment of the present invention provides a kind of audio system upgrading control device again, and the audio system is including main equipment and extremely
A few slave unit, described device includes:Writing module is received, for receiving multiple upgradings that the main equipment is sent successively
File is simultaneously write into slave unit internal memory to complete to upgrade to the slave unit, wherein, multiple upgrading subfiles are described
Main equipment subfile according to obtained by default division rule is divided upgrade file.
The embodiment of the present invention provides a kind of audio system upgrade method, device.This method receives upgrading in main equipment and referred to
After order, upgrade file is obtained according to upgrade command, and the upgrade file is divided into by multiple upgradings according to default division rule
Subfile.Often read one upgrading subfile, while being written into main equipment internal memory, by the upgrading subfile send to from
Equipment, to cause slave unit to write the upgrading subfile to slave unit internal memory, sets when subfile of all upgrading all is write to master
After standby internal memory and slave unit internal memory, just complete to main equipment and the updating operation of slave unit.This method can greatly reduce liter
Level spent time, improves upgrading efficiency.
Brief description of the drawings
Figure 1A is the structural representation of middle pitch display system of the embodiment of the present invention.
Figure 1B is another structural representation of middle pitch display system of the embodiment of the present invention.
Fig. 1 C are the another structural representation of middle pitch display system of the embodiment of the present invention.
Fig. 1 D are another structural representation of middle pitch display system of the embodiment of the present invention.
Fig. 2 interacts schematic diagram for main equipment and the slave unit of middle pitch display system of the embodiment of the present invention.
Fig. 3 interacts schematic diagram for the main equipment of middle pitch display system of the embodiment of the present invention with the another of slave unit.
Fig. 4 is the structural representation of sound intermediate frequency system upgrade device of the embodiment of the present invention.
Fig. 5 is another structural representation of sound intermediate frequency system upgrade device of the 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 " in the present invention etc. can be used to describe various elements herein, but these elements are not
It is limited by these terms.These terms are only used for distinguishing first element and another element.For example, not departing from the present invention
Scope in the case of, the first control can be referred to as the second control, and similarly, the second control can be referred to as the first control.
First control and the second control both controls, but it is not same control.In addition, term " comprising " and " having " and it
Any deformation, it is intended that covering non-exclusive is included.
Figure 1A is referred to, Figure 1A is the structural representation of middle pitch display system of the embodiment of the present invention.Middle pitch of the embodiment of the present invention
Display system 200 includes main equipment 210 and at least one slave unit 220.The number of the slave unit 220 shown in Figure 1A is 4, can
With understanding, the quantity of slave unit can be set according to the actual requirements, and the audio system 200 can include more or less
Slave unit 220.
In the present embodiment, the main equipment 210 and slave unit 220 shown in Figure 1A are intelligent sound box, it is to be understood that
Main equipment 210 and slave unit 220 can also have the electronic equipment of audio playing function for other.For example, referring to Figure 1B extremely
Shown in Fig. 1 C, in fig. ib, main equipment 210 and slave unit 220 are intelligent television.In fig. 1 c, main equipment 210 and slave unit
220 be mobile phone.
Certainly, main equipment 210 and slave unit 220 can also use different audio-frequence player devices.For example, referring to Fig. 1 D
Shown, in Fig. 1 D, main equipment 210 is intelligent sound box, and slave unit 220 includes intelligent sound box, intelligent television and mobile phone.
It is understood that the electronic equipment with audio playing function be not limited to it is several shown in Figure 1A to Fig. 1 D,
Main equipment 210 and slave unit 20 can also be the tablet personal computer with audio playing function, electronic watch, computer etc., herein not
Do concrete restriction.
In addition, when main equipment 210 and slave unit 220 are using different audio-frequence player devices, its combination also not office
It is limited to the combination shown in Fig. 1 D, can be herein not particularly limited according to actual use situation come independent assortment.
In the present embodiment, main equipment 210 is attached by the radio connections such as network, bluetooth and slave unit 220
Communication, can also be attached with slave unit 220 by the mode such as wired and communicated, is not particularly limited herein.
In order to which user can be allowed to carry out intuitive operation to audio system 200, user can be in terminal 100 (such as mobile phone, flat board
The terminal devices such as computer) on install with the supporting application program of audio system 200.User is controlled in Application Program Interface
Operation, terminal 100 will generate corresponding control instruction according to the control operation of user, and send to main equipment 210, then be set by master
Standby 210 send corresponding control instruction to other slave units 220, so as to realize the purpose for controlling whole audio system 200.
For example, when user wishes that user can be at end when carrying out the updating operations such as firmware upgrade to whole audio system 200
Operation buttons such as " upgradings " is clicked at the interface of the corresponding application programs at end 100, and such terminal 100 will be generated according to the updating operation
Upgrade command is simultaneously sent to main equipment 210, so that main device 210 controls whole audio system 200 to enter according to the upgrade command
The updating operations such as row firmware upgrade.
The upgrade method of audio system 200 is described in detail below in conjunction with Figure 1A, Fig. 2 to Fig. 3.
Refer to Fig. 2, Fig. 2 interacts schematic diagram for main equipment and the slave unit of the present embodiment middle pitch display system.In fig. 2
Only illustrate a slave unit 220, when in audio system 200 include multiple slave units 220 when, multiple slave units 220 with
Interaction between main equipment 210 can also be using the interaction schematic diagram shown in Fig. 2.
When user wishes upgrading audio system 200, main equipment 210 of the terminal 100 into audio system 200 can be passed through
Send upgrade command.When main equipment 210 receives the upgrade command of the transmission of terminal 100, it will be obtained and risen according to the upgrade command
Level file, i.e. main equipment 210 perform step S101.
Here, main equipment 210 can download the upgrade file of redaction according to upgrade command from network, can also be from end
Hold acquisition upgrade file at 100.That is, when terminal 100 sends upgrade command, the upgrade file downloaded is sent out in passing
Main equipment 210 is delivered to, thus upgrade file is downloaded again without main equipment 210.Certainly, main equipment 210 obtains upgrade file
Mode is not limited to above two, can also be other modes, be not particularly limited herein.
In one embodiment, main equipment 210 obtains upgrade file according to upgrade command and also included:Judge the main equipment
Whether 210 be connected with the slave unit 220;If the main equipment 210 is connected with the slave unit 220, to the slave unit
220 send upgrading control instruction.When slave unit 220 receives the upgrading control instruction, will be according to the upgrading control instruction at
In state to be upgraded.
After main equipment 210 gets upgrade file, upgrade file will be divided to form multiple upgrading subfiles,
I.e. main equipment 210 performs step S102.
In the present embodiment, main equipment 210 divides upgrade file according to main equipment memory address space size.At other
In embodiment, main equipment 210 can also divide upgrade file according to other preset rules, be not particularly limited herein.
After upgrade file is divided into multiple upgrading subfiles by main equipment 210, upgrading subfile, and root are successively read
Write successively on the relevant position to main equipment internal memory according to the main equipment sub-domains display subfile that will upgrade, until by all upgradings
Untill subfile is write into main equipment internal memory, now complete to upgrade to the main equipment, i.e., main equipment 210 performs step
S103。
In one embodiment, main equipment 210 is successively read upgrading subfile and writes upgrading subfile to master successively and sets
On the relevant position of standby internal memory, in addition to:A upgrading subfile is often write into the main equipment internal memory, judgement has been write
Whether the upgrading subfile entered is identical with the upgrading subfile;If the upgrading subfile having been written into and the upgrading Ziwen
Part is identical, reads next upgrading subfile and writes into the main equipment internal memory;If or the liter having been written into
Level subfile is differed with the upgrading subfile, the upgrading subfile being had been written into described in erasing, and re-writes the upgrading
Subfile.It so may insure that main equipment 210 writes the accuracy of the data to main equipment internal memory.
In the present embodiment, main equipment 210 often reads a upgrading subfile, and the upgrading subfile is sent to slave unit
220, i.e. main equipment 210 perform step S104.
In one embodiment, upgrading subfile is sent to before slave unit 220 in main equipment 210, in addition to:Often read
One upgrading subfile, calculates the hash check value of the upgrading subfile;By the hash check value and upgrading Ziwen
Part is sent to the slave unit.
In one embodiment, when main equipment 210 has sent upgrading subfile and corresponding hash check value to from setting
After standby 220, in addition to:Judge whether to receive the transmission request of data again that the slave unit 220 is fed back, wherein described heavy
It is endless that the request of new biography transmission of data verifies the upgrading subfile received for the slave unit 220 according to the hash check value
The solicited message of generation after whole;If transmitting request of data again described in receiving, the hash check value and liter are transmitted again
Level subfile is to the slave unit 220.
In the present embodiment, when main equipment 210 reads last upgrading subfile, main equipment 210 will send institute
Upgrading subfile and upgrading subfile end of transmission information are stated to the slave unit 220.Main equipment 210 judges whether to receive institute
State confirmation of the slave unit 220 according to the completion upgrading of the upgrading subfile end of transmission feedback of the information;If receiving institute
Confirmation is stated, is sent to the slave unit 220 and restarts control instruction so that the slave unit 220 restarts control according to described
Instruct and carry out reboot operation to complete the upgrading of the slave unit 220, and restart the main equipment 210 and set with completing the master
Standby 210 upgrading.
When main equipment 210 successively sends upgrading subfile to slave unit 220, slave unit 220 will be sequentially received this
Upgrading subfile, and write upgrading subfile on the relevant position to slave unit internal memory according to slave unit sub-domains display.This
Sample just completes the upgrading to slave unit 220, i.e. slave unit after all upgrading subfiles write to slave unit internal memory successively
220 perform step S105.
For example, upgrade file is divided into 4 upgrading subfiles, in main equipment sub-domains display, Ziwen of each upgrading
Part all corresponds to a memory address.Main equipment 210 reads first upgrading subfile, according to main equipment sub-domains display by this
One upgrading subfile is write to the corresponding position of main equipment internal memory, while this first upgrading subfile is sent to Figure 1A
In 4 slave units 220 in, such 4 slave units 220 will respectively according to slave unit sub-domains display by this first upgrading son
File is write on the relevant position to slave unit internal memory.When main equipment 210 writes first upgrading subfile, second will be read
Individual upgrading subfile, and operate as procedure described above, until four upgrading subfiles are all write to the phase of main equipment internal memory
Answer position, such main equipment 210 just completes updating operation, and 4 slave units 220 are write to from setting by four upgrading subfiles
Behind the relevant position of standby internal memory, the updating operation of slave unit 220 is also completed.
In one embodiment, multiple upgrading subfiles of the transmission of main equipment 210 are received successively in slave unit 220 and write
Before entering into slave unit internal memory, in addition to:Judge whether to receive the upgrading control instruction that the main equipment 210 is sent;If
The upgrading control instruction is received, state to be upgraded is according to the upgrading control instruction.
In one embodiment, slave unit 220 receives multiple upgrading subfiles of the transmission of main equipment 210 and write successively
Into slave unit internal memory with complete to the slave unit upgrade, in addition to:Multiple liters that the main equipment 210 is sent are received successively
Level subfile and with the corresponding hash check value of each upgrading subfile;Often receive one it is described upgrading subfile and with
Its corresponding hash check value, calculates the hash check value of the upgrading subfile received;Judge to calculate obtained Hash
Whether check value is identical with the hash check value that the main equipment 210 is sent;If calculating obtained hash check value and the master
The hash check value that equipment 210 is sent is identical, and the upgrading subfile is write in the slave unit internal memory;If or calculating
The hash check value arrived is different from the hash check value that the main equipment 210 is sent, and sends and transmits again to the main equipment 210
Request of data, with cause the main equipment 210 according to it is described again transmission request of data resend it is described upgrading subfile and
Corresponding hash check value.
In the present embodiment, when slave unit 220 receives the upgrading subfile end of transmission letter that the main equipment 210 is sent
During breath, judge whether multiple upgrading subfiles are all write in the slave unit internal memory;If multiple upgrading subfiles
All in the write-in slave unit internal memory, the confirmation of upgrading is sent completely to the main equipment 210;Judge whether to receive
The main equipment 210 restarts control instruction according to what the confirmation was fed back;If restarting control instruction described in receiving, according to
It is described restart control instruction and restart the slave unit 220 upgraded with completing the slave unit 220.
Audio system upgrade method in the present embodiment can be in the audio system shown in application drawing 1A, can also to be applied to
Other have the upgrading of the similar systems such as main equipment, slave unit, are not particularly limited herein.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the present invention, herein no longer using any combination
Repeat one by one.
Audio system upgrade method in the present embodiment, it refers to after main equipment 210 receives upgrade command according to upgrading
Order obtains upgrade file, and the upgrade file is divided into multiple upgrading subfiles according to default division rule.Often read one
Individual upgrading subfile, while being written into main equipment internal memory, the upgrading subfile is sent to slave unit 220, to cause
Slave unit 220 writes the upgrading subfile to slave unit internal memory, all write to main equipment internal memory when whole upgrading subfiles and
After slave unit internal memory, just complete to main equipment 210 and the updating operation of slave unit 220.This method can greatly reduce upgrading
Spent time, improves upgrading efficiency.
Fig. 3 is referred to, Fig. 3 interacts schematic diagram for the main equipment of the present embodiment middle pitch display system with the another of slave unit.
A slave unit 220 is only illustrated in Fig. 2, when including multiple slave units 220 in audio system 200, multiple slave units
Interactive can also use shown in Fig. 2 between 220 and main equipment 210 interact schematic diagram.
When user wishes upgrading audio system 200, main equipment 210 of the terminal 100 into audio system 200 can be passed through
Send upgrade command.When main equipment 210 receives the upgrade command of the transmission of terminal 100, it will be obtained and risen according to the upgrade command
Level file, i.e. main equipment 210 perform step S201.
Here, main equipment 210 can download the upgrade file of redaction according to upgrade command from network, can also be from end
Hold acquisition upgrade file at 100.That is, when terminal 100 sends upgrade command, the upgrade file downloaded is sent out in passing
Main equipment 210 is delivered to, thus upgrade file is downloaded again without main equipment 210.Certainly, main equipment 210 obtains upgrade file
Mode is not limited to above two, can also be other modes, be not particularly limited herein.
In general, if user opens all devices in audio system 200, then main equipment 210 will with it is each from
Equipment 220 is attached, and main equipment 210 and all slave units 220 will constitute an audio system 200.So it is easy to main equipment
210 control whole audio system 200 according to the setting of user.If user only opens main equipment 210 and part slave unit
220, that is to say, that only part slave unit 220 can be attached with main equipment 210 and primary device 210 is controlled, then master sets
An audio system 200 will be constituted for 210 and part slave unit 220.If user only opens main equipment 210, and is not switched on appointing
What slave unit 220, then now audio system 200 is just made up of a main equipment 210.Therefore, opened when main equipment 210 is in
During state, main equipment 210 needs to determine whether that slave unit 220 is connected thereto, i.e., main equipment 210 performs step S202.
It should be noted that step S201 and S202 can be carried out simultaneously, can also step S202 before step S201
Performing can be with.
If main equipment 210 has detected slave unit 220 and has been connected thereto, then in order to which slave unit 220 can be allowed also to be risen
Level operation, main equipment 210 will send upgrading control instruction, i.e. main equipment 210 to slave unit 220 and perform step S203.
Slave unit 220 will judge whether to receive the upgrading control instruction of main equipment transmission at interval of certain time, i.e., from
Equipment 220 performs step S204.
If slave unit 220 receives the upgrading control instruction of main equipment transmission, slave unit 220 will refer to according to upgrading control
Order is in state to be upgraded, i.e. slave unit 220 and performs step S205.So whole audio system 200 will be in state to be upgraded.
After main equipment 210 gets upgrade file, upgrade file will be divided to form multiple upgrading Ziwens
Part, i.e. main equipment 210 perform step S206.In the present embodiment, main equipment 210 according to main equipment memory address space size come
Divide upgrade file.In other embodiments, main equipment 210 can also divide upgrade file according to other preset rules, herein
It is not particularly limited.
Upgrade file is divided into after multiple upgrading subfiles by main equipment 210, and main equipment 210 will be read successively in sequence
Take upgrading subfile.Main equipment 210 often reads a upgrading subfile, and the upgrading subfile is write into main equipment internal memory,
And the hash check value of the upgrading subfile is calculated according to hash algorithm.Meanwhile, judge that the upgrading subfile currently read is
It is no to perform step S207 for last upgrading subfile, i.e. main equipment 210.
If main equipment 210 judges that the upgrading subfile currently read is not last upgrading subfile, then will send out
The upgrading subfile currently read and corresponding hash check value to slave unit 220, i.e. main equipment 210 is sent to perform step
S208。
Slave unit 220 receives the upgrading subfile and hash check value that main equipment 210 is sent, that is, performs step S209.
After the upgrading subfile that slave unit 220 receives the transmission of main equipment 210, in order to verify that the upgrading subfile is
No complete, slave unit 220 will calculate the hash check value of the upgrading subfile according to hash algorithm, and compare the Kazakhstan for calculating and obtaining
Whether uncommon check value is identical with the hash check value that main equipment is sent, i.e., slave unit 220 performs step S212.
If slave unit 220 judges the hash check value phase that the hash check value that the calculating is obtained is sent with main equipment 210
Together, illustrate that upgrading subfile that slave unit 220 receives is complete file, slave unit 220 by the upgrading subfile write to
In slave unit internal memory, that is, perform step S213.
If slave unit 220 judges hash check value that the hash check value that the calculating obtains sends with main equipment 210 not
It is identical, illustrate that the upgrading subfile that slave unit 220 is received is incomplete file, slave unit 220 will be sent to main equipment 210
Again request of data is transmitted, that is, performs step S214.
Main equipment 210 is after upgrading subfile and corresponding hash check value to slave unit 220 has been sent, and master sets
Standby 210 will determine that the transmission request of data again for whether receiving the feedback of slave unit 220, i.e. main equipment 210 perform step S215.
If main equipment 210 receives the transmission request of data again of the transmission of slave unit 220, main equipment 210 will be transmitted again
Subfile of upgrading and corresponding hash check value to slave unit 220, i.e. main equipment 210 perform step S216.
Slave unit 220 will receive upgrading subfile and corresponding hash check value that main equipment is sent again, and hold
The correlation steps such as row step S212, S213.
In the present embodiment, in step S207, read upgrading subfile is write to master in main equipment 210
After device memory, in order to ensure write main equipment internal memory data accuracy and integrality, main equipment 210 will be from main equipment
Read the upgrading subfile having been written into internal memory, and judge the upgrading subfile having been written into whether with the upgrading subfile that reads
Identical, i.e., main equipment 210 performs step S217.
If main equipment 210 judges the upgrading subfile having been written into, the upgrading subfile with reading is differed, and is illustrated
The upgrading subfile of write-in is incorrect, and in order to successfully upgrade to main equipment 210, main equipment 210 has been written into erasing
Upgrading subfile, and re-write upgrading subfile, i.e., main equipment 210 performs step S218.
In order to further determine that whether the upgrading subfile re-write is correct, main equipment is re-writing upgrading subfile
It will return afterwards and perform step S217.
If main equipment 210 judges that the upgrading subfile having been written into is identical with the upgrading subfile read, illustrate to have write
The upgrading subfile entered is correct, and now main equipment will perform step S219, that is, returns and perform step S207, read next upgrading
Subfile, and above-mentioned correlation step is repeated, until main equipment 210 reads all upgrading subfiles.
In the present embodiment, when main equipment 210 reads last upgrading subfile, main equipment 210 is in step
It will judge that the upgrading subfile currently read is last upgrading subfile in S207, now main equipment 210 is removed
Last upgrading subfile and corresponding hash check value are sent to outside slave unit 220, upgrading Ziwen is also sent
Part end of transmission information to slave unit 220, i.e. main equipment 210 performs step S210.
It is understood that upgrading subfile end of transmission information can not also with last upgrading subfile and and its
Corresponding hash check value is sent to slave unit 220 together, that is to say, that main equipment 210 can first send last upgrading
Subfile and corresponding hash check value retransmit upgrading subfile end of transmission information to slave unit to slave unit 220
220。
Slave unit 220 will receive last upgrading subfile, hash check value and upgrading of the transmission of main equipment 210
Subfile end of transmission information, i.e. slave unit 220 perform step S211.
After slave unit 220 is in execution of step S211, the correlation steps such as step S212, S213 will be performed with by finally
One upgrading subfile is successfully written into slave unit internal memory.
Because slave unit 220 receives the upgrading subfile end of transmission information of main equipment transmission, slave unit 220 will determine that
Whether multiple upgrading subfiles are all write into slave unit internal memory, i.e., slave unit 220 will perform step S220.
If slave unit 220 judges that all upgrading subfile has been successfully written into slave unit internal memory, slave unit 220 will
The confirmation of upgrading, i.e. slave unit 220 are sent completely to main equipment will perform step S221.
Main equipment 210 will determine that whether receive the slave unit according to the upgrading after execution of step S210
The confirmation of the completion upgrading of subfile end of transmission feedback of the information, i.e. main equipment 210 performs step S222.
If main equipment 210 receives the confirmation of the transmission of slave unit 220, main equipment 210 will send weight to slave unit 220
Control instruction is opened, and restarts main equipment 210 and is upgraded with completing main equipment 210, i.e., main equipment 210 performs step S223.
Slave unit 220 will determine that whether receive the basis of main equipment 210 after confirmation has been sent to main equipment 210
Restart control instruction, the i.e. slave unit 220 of the confirmation feedback perform step S224.
If what slave unit 220 received main equipment transmission restarts control instruction, slave unit 220 is restarted control and referred to according to described
Order restarts the slave unit 220 to complete the slave unit upgrading, i.e. slave unit 220 performs step S225.
In one embodiment, if the speed that writes subfile of upgrading to slave unit internal memory of slave unit 220 is slower, slave unit
220 will keep in the upgrading subfile being sequentially received, in order to allow upgrading subfile can be according to correct suitable
Sequence is written into slave unit internal memory, while main equipment 210 is divided into multiple upgrading subfiles to upgrade file, to multiple liters
Level subfile is numbered.When main equipment 210 reads upgrading subfile, numbering corresponding with upgrading subfile is also read, and
Upgrading subfile, corresponding numbering and hash check value are together sent to slave unit 220.Slave unit 220 is according to numbering
Multiple upgrading subfiles for being sequentially received of order buffer, and write successively to from setting according to the number order subfile that will upgrade
Standby internal memory.
Audio system upgrade method in the present embodiment, it refers to after main equipment 210 receives upgrade command according to upgrading
Order obtains upgrade file, and the upgrade file is divided into multiple upgrading subfiles according to default division rule.Often read one
Individual upgrading subfile, while being written into main equipment internal memory, the upgrading subfile is sent to slave unit 220, to cause
Slave unit 220 writes the upgrading subfile to slave unit internal memory, all write to main equipment internal memory when whole upgrading subfiles and
After slave unit internal memory, just complete to main equipment 210 and the updating operation of slave unit 220.This method can greatly reduce upgrading
Spent time, improves upgrading efficiency.
It is shown in Figure 4, the structural representation for the audio system update device that Fig. 4 provides for the present embodiment.This implementation
Audio system update device 500 in example includes audio system upgrading control device 300 and audio system upgrading reception device
400.Wherein, audio system upgrading control device 300 is installed in main equipment 210, and audio upgrade-system reception device 400 is installed
In in slave unit 220.
Audio system upgrading control device 300 includes acquisition module 310, division module 320, module for reading and writing 330 and hair
Send module 340.The audio upgrade-system reception device 400 includes receiving writing module 410.
The audio system upgrading control device 300 and audio upgrade-system in the present embodiment are received below in conjunction with Fig. 4
Operation principle of device 400 etc. is described in detail.
When acquisition module 310 receives the upgrade command of the transmission of terminal 100, upgrading text will be obtained according to the upgrade command
Part.
, can also be from here, acquisition module 310 can download the upgrade file of redaction according to upgrade command from network
Upgrade file is obtained at terminal 100.That is, when terminal 100 sends upgrade command, in passing by the upgrade file downloaded
Send to acquisition module 310, thus download upgrade file again without acquisition module 310.Certainly, acquisition module 310, which is obtained, rises
The mode of level file is not limited to above two, can also be other modes, be not particularly limited herein.
After acquisition module 310 gets upgrade file, upgrade file is transferred to division module 320, by division module
320 pairs of upgrade files are divided to form multiple upgrading subfiles.
In the present embodiment, division module 320 divides upgrade file according to main equipment memory address space size.At it
In his embodiment, division module 320 can also divide upgrade file according to other preset rules, be not particularly limited herein.
After upgrade file is divided into multiple upgrading subfiles by division module 320, reading writing module 330 will successively
Upgrading subfile is read from division module 320, and is write upgrading subfile to master successively according to main equipment sub-domains display
On the relevant position of device memory, untill all upgrading subfiles are write into main equipment internal memory, now complete to institute
State main equipment upgrading.
Meanwhile, read writing module 330 and often read a upgrading subfile, the upgrading subfile is transferred to sending module
340, the upgrading subfile is transferred to the reception writing module in audio system upgrading reception device 400 by sending module 340
410。
The upgrading subfile that main equipment 210 is sent will be received successively by receiving writing module 410, and be believed according to slave unit subregion
Breath table writes upgrading subfile on the relevant position to slave unit internal memory.So when it is all upgrading subfiles write successively to from
After device memory, the upgrading to slave unit 220 is just completed.
In the present embodiment, the acquisition module 310 in audio system upgrading control device 300 is received after upgrade command,
Upgrade file is obtained according to upgrade command, the upgrade file is divided into multiple by division module 320 according to default division rule
Upgrading subfile.Read writing module 330 and often read a upgrading subfile, will while being written into main equipment internal memory
The upgrading subfile is transferred to sending module 340, is sent by sending module 340 in upgrading reception device 400 to audio system
Receive in writing module 410, the upgrading subfile is write to slave unit internal memory with to receive writing module 410, works as whole
Upgrading subfile is all write to main equipment internal memory and slave unit internal memory, is just completed to main equipment 210 and the liter of slave unit 220
Level operation.The audio system upgrade control device 300 and audio system upgrading reception device 400 with the use of can subtract significantly
Upgrade less spent time, improve upgrading efficiency.
Fig. 5 is referred to, Fig. 5 is another structural representation of the present embodiment sound intermediate frequency system upgrade device.In the present embodiment
Audio system update device 700 include audio system upgrade control device 500 and audio system upgrading reception device 600.Its
In, audio system upgrading control device 500 is installed in main equipment 210, and audio upgrade-system reception device 600 is installed on from setting
In standby 220.
Audio system upgrading control device 500 includes acquisition module 510, division module 520, module for reading and writing 530, calculating
Module 580 is restarted in module 540, sending module 550, the first judge module 560, the second judge module 570 and transmission.The audio liter
Level system reception device 600 includes judging control module 610 and receives writing module 620.
The audio system upgrading control device 500 and audio upgrade-system in the present embodiment are received below in conjunction with Fig. 5
Operation principle of device 600 etc. is described in detail.
When acquisition module 510 receives the upgrade command of the transmission of terminal 100, upgrading text will be obtained according to the upgrade command
Part.
, can also be from here, acquisition module 510 can download the upgrade file of redaction according to upgrade command from network
Upgrade file is obtained at terminal 100.Certainly, the mode of the acquisition of acquisition module 510 upgrade file is not limited to above two, may be used also
Think other modes, be not particularly limited herein.
In the present embodiment, acquisition module 510 judges whether after upgrade command is got always according to the upgrade command
There is slave unit 220 to be connected thereto.If acquisition module 510 judges have slave unit 220 to be connected with main equipment 210, to audio system
System upgrading reception device 600 sends upgrading control instruction.
Judge that control module 610 will determine that whether receive the main equipment in audio system upgrading reception device 600
The 210 upgrading control instructions sent.If judging, control module 610 receives the upgrading control instruction, is controlled according to the upgrading
System instruction control slave unit 220 is in state to be upgraded.So whole audio system 200 will be in state to be upgraded.
After acquisition module 510 gets upgrade file, the upgrade file is transferred to division module 520, by dividing
Module 520 is divided to form multiple upgrading subfiles to upgrade file.
In the present embodiment, division module 520 divides upgrade file according to main equipment memory address space size.At it
In his embodiment, division module 520 can also divide upgrade file according to other preset rules, be not particularly limited herein.
Upgrade file is divided into after multiple upgrading subfiles by division module 520, and reading writing module 530 will be according to suitable
Sequence is successively read upgrading subfile.
Read writing module 530 and often read a upgrading subfile, the upgrading subfile is write into main equipment internal memory.
Meanwhile, whether judge the upgrading subfile currently read is last upgrading subfile.
If reading writing module 530 judges that the upgrading subfile currently read is not last upgrading subfile,
The upgrading subfile is transferred to computing module 540.
Computing module 540 is received after the upgrading subfile, the Kazakhstan of the upgrading subfile will be calculated according to hash algorithm
Uncommon check value, and send upgrading subfile and corresponding hash check value to sending module 550.
After upgrading subfile and corresponding hash check value is received the upgrading will occur for sending module 550
Subfile and corresponding hash check value to audio system are upgraded reception device 600.
Upgrading subfile and hash check value that sending module 550 is sent will be received successively by receiving writing module 620.
Writing module 620 is received after upgrading subfile is received, in order to verify whether the upgrading subfile is complete, connects
The hash check value of the upgrading subfile will be calculated according to hash algorithm by receiving writing module 620, and compare the Hash for calculating and obtaining
Whether check value is identical with the hash check value that main equipment is sent.
If receiving writing module 620 judges the Hash that the hash check value that the calculating is obtained is sent with sending module 550
Check value is identical, illustrates that the upgrading subfile that reception writing module 620 is received is complete file, receives writing module 620
The upgrading subfile is write into slave unit internal memory.
If receiving writing module 620 judges the Hash that the hash check value that the calculating is obtained is sent with sending module 550
Check value is differed, and is illustrated that the upgrading subfile that reception writing module 620 is received is incomplete file, is received writing module
620 will send to audio system upgrading control device 300 and transmit request of data again.
After sending module 550 has sent upgrading subfile and corresponding hash check value, sending module 550 will
The first signal is sent to the first judge module 560, to cause the first judge module 560 to judge whether to receive according to the first signal
Receive the transmission request of data again that writing module 620 feeds back.
If the first judge module 560, which is received, receives the transmission request of data again that writing module 620 is sent, first judges
Module 560 will send secondary signal to sending module 550, to cause sending module 550 to transmit upgrading again according to secondary signal
Subfile and corresponding hash check value extremely receive writing module 620.
In the present embodiment, read upgrading subfile is write to main equipment in reading writing module 530
After depositing, in order to ensure write main equipment internal memory data accuracy and integrality, read writing module 530 will be from main equipment
Read the upgrading subfile having been written into internal memory, and judge the upgrading subfile that has been written into whether with the upgrading Ziwen before write-in
Part is identical.
If reading writing module 530 judges the upgrading subfile that has been written into and the upgrading subfile before writing not phase
Together, illustrate that the upgrading subfile having been written into is incorrect, in order to successfully upgrade to main equipment 210, read writing module
530 will wipe the upgrading subfile having been written into, and re-write upgrading subfile.
If reading writing module 530 judges that the upgrading subfile having been written into is identical with the upgrading subfile read, say
The bright upgrading subfile having been written into is correct, and next upgrading subfile will be read by reading writing module 530, and repeat foregoing mistake
Journey, until reading whole upgrading subfiles.
In the present embodiment, when reading writing module 530 reads last upgrading subfile, writing module is read
530 will judge that the upgrading subfile currently read is last upgrading subfile, now read writing module 530
In addition to last upgrading subfile is transferred into computing module 540, the 3rd signal also is sent to computing module 540, so that
Last upgrading subfile and its corresponding hash check value are being sent same to sending module 550 by computing module 540
When, also the 3rd signal is sent to sending module 550.
Sending module 550 is received after the 3rd signal, and the subfile that will be upgraded according to the 3rd signal generation is transferred
Finish information, and last upgrading subfile, corresponding hash check value and upgrading subfile end of transmission information are passed
It is handed to reception writing module 620.
Meanwhile, sending module 550 will send the 4th signal to the second judge module 570.Second judge module 570 is the 4th
After signal, the completion liter for whether receiving the slave unit according to the upgrading subfile end of transmission feedback of the information will determine that
The confirmation of level.
Receive writing module 620 and receive last upgrading subfile, hash check value of the transmission of sending module 550
After upgrading subfile end of transmission information, to last the upgrading subfile progress integrity validation received, and
In the case of confirming that last the upgrading subfile received is complete file, by last upgrading subfile write-in from setting
On the relevant position of standby internal memory.
Simultaneously as receiving writing module 620 receives upgrading subfile end of transmission information, writing module 620 is received
It will determine that whether multiple upgrading subfiles are all write into slave unit internal memory.If receiving writing module 620 judges upgrading
File all receives writing module 620 and is sent completely liter to audio system upgrading control device 500 in write-in slave unit internal memory, then
The confirmation of level.
After reception writing module 620 has sent the confirmation, it will determine that whether receive audio system upgrading control
Device 500 restarts control instruction according to what the confirmation was fed back.
Audio system upgrading control device 500 in the second judge module 570 detect receive writing module 620 send
Confirmation after, module 580 will be restarted to transmission and sends the 5th signal, to cause transmission to restart module 580 according to the 5th
Signal restarts control instruction to the transmission of writing module 620 is received, and controls main equipment 210 to carry out reboot operation to complete main equipment
210 upgrading.
Restart in transmission after module 580 sent and restart control instruction, receive writing module 620 and will receive this and restart
Control instruction, and control instruction is restarted according to this restart slave unit 220 to complete the upgrading of slave unit 220.
It is in one embodiment, slower if receiving the speed that writing module 620 writes subfile of upgrading to slave unit internal memory,
The upgrading subfile being sequentially received will be kept in by receiving writing module 620, in order to allow upgrading subfile can
It is written into the correct order into slave unit internal memory, division module 520 is divided into multiple upgrading subfiles to upgrade file
While, multiple upgrading subfiles are numbered.When reading the reading upgrading subfile of writing module 530, also read with rising
The corresponding numbering of level subfile, and by sending module 550 by upgrading subfile, corresponding numbering and hash check value one
Writing module 620 is extremely received with sending.So, receiving writing module 620 can be sequentially received according to the order buffer of numbering
Multiple upgrading subfiles, and according to number order by upgrade subfile write successively to slave unit internal memory.
In the present embodiment, the acquisition module 510 in audio system upgrading control device 500 is received after upgrade command,
Upgrade file is obtained according to upgrade command, the upgrade file is divided into multiple by division module 520 according to default division rule
Upgrading subfile.Read writing module 530 and often read a upgrading subfile, while being written into main equipment internal memory, hair
Send module 550 that the upgrading subfile is transferred in the reception writing module 620 in audio system upgrading reception device 600, with
The upgrading subfile is write to slave unit internal memory so that receiving writing module 620, when all upgrading subfile is all write to master
After device memory and slave unit internal memory, just complete to main equipment 210 and the updating operation of slave unit 220.The audio system liter
Level control device 500 and using cooperatively for audio system upgrading reception device 600 can greatly reduce upgrading spent time, improve
Upgrading efficiency.
Each functional module in the embodiment of the present invention can be integrated in a processing module or modules list
Solely be physically present, can also two or more modules 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 (20)
1. a kind of audio system upgrade method, the audio system includes main equipment and at least one slave unit, it is characterised in that
Methods described includes:
Upgrade file is obtained according to upgrade command;
The upgrade file is divided into by multiple upgrading subfiles according to default division rule;
It is successively read multiple upgrading subfiles and writes into main equipment internal memory to complete to upgrade to the main equipment;And
A upgrading subfile is often read, the upgrading subfile is sent to the slave unit to complete to described from setting
Standby upgrading.
2. audio system upgrade method according to claim 1, it is characterised in that described obtained according to upgrade command is upgraded
File also includes:
Judge whether the main equipment is connected with the slave unit;
If the main equipment is connected with the slave unit, upgrading control instruction is sent to the slave unit, with cause it is described from
Equipment is in state to be upgraded according to the upgrading control instruction.
3. audio system upgrade method according to claim 1, it is characterised in that described to be successively read multiple upgradings
Subfile and writing to main equipment internal memory includes:
A upgrading subfile is often write into the main equipment internal memory, the upgrading subfile that judgement has been written into and the liter
Whether level subfile is identical;
If the upgrading subfile having been written into is identical with the upgrading subfile, reads next upgrading subfile and write
Enter into the main equipment internal memory;Or
If the upgrading subfile having been written into is differed with the upgrading subfile, the upgrading Ziwen being had been written into described in erasing
Part, and re-write the upgrading subfile.
4. the audio system upgrade method according to any one in claims 1 to 3, it is characterised in that described institute
Upgrading subfile is stated to send to before the slave unit, in addition to:
A upgrading subfile is often read, the hash check value of the upgrading subfile is calculated, wherein, the hash check
It is worth the integrality verified for the slave unit and receive upgrading subfile;
The hash check value and upgrading subfile are sent to the slave unit.
5. audio system upgrade method according to claim 4, it is characterised in that it is described by the hash check value and
The upgrading subfile is sent to the slave unit, in addition to:
Judge whether to receive the transmission request of data again that the slave unit is fed back, wherein the request of data of transmission again is
The slave unit verifies the solicited message of the imperfect rear generation of the upgrading subfile received according to the hash check value;
If receive it is described transmit request of data again, transmit again the hash check value and upgrading subfile to it is described from
Equipment.
6. audio system upgrade method according to claim 1, it is characterised in that described often to read upgrading
File, sends the upgrading subfile to the slave unit to complete to upgrade to the slave unit, in addition to:
When reading last described upgrading subfile, the upgrading subfile and upgrading subfile end of transmission information are sent
To the slave unit;
Judge whether that receive the slave unit upgrades really according to the completion of the upgrading subfile end of transmission feedback of the information
Recognize information;
If receiving the confirmation, sent to the slave unit and restart control instruction so that the slave unit is according to described
Restart control instruction to carry out reboot operation to complete the upgrading of the slave unit, and restart the main equipment to complete the master
The upgrading of equipment.
7. a kind of audio system upgrade method, the audio system includes main equipment and at least one slave unit, it is characterised in that
Methods described includes:
Receive successively multiple upgrading subfiles that the main equipment sends and write into slave unit internal memory with complete to it is described from
Device upgrade, wherein, multiple upgrading subfiles are that the main equipment is drawn upgrade file according to default division rule
Subfile obtained by point.
8. audio system upgrade method according to claim 7, it is characterised in that receive the main equipment successively described
Send multiple upgrading subfiles and write into slave unit internal memory with complete to the slave unit upgrade before, in addition to:
Judge whether to receive the upgrading control instruction that the main equipment is sent;
If receiving the upgrading control instruction, state to be upgraded is according to the upgrading control instruction.
9. audio system upgrade method according to claim 7, it is characterised in that described to receive the main equipment hair successively
Multiple upgrading subfiles for sending simultaneously write into slave unit internal memory to complete to upgrade to the slave unit, in addition to:
Multiple upgrading subfiles that the main equipment sends and Hash school corresponding with each upgrading subfile are received successively
Test value;
A upgrading subfile and corresponding hash check value are often received, the upgrading Ziwen received is calculated
The hash check value of part;
Judge whether the hash check value that calculating is obtained is identical with the hash check value that the main equipment is sent;
If it is identical with the hash check value that the main equipment is sent to calculate obtained hash check value, the upgrading subfile is write
Enter in the slave unit internal memory;Or
If it is different from the hash check value that the main equipment is sent to calculate obtained hash check value, weight is sent to the main equipment
New biography transmission of data is asked, to cause the main equipment to resend the upgrading subfile according to the request of data of transmission again
With corresponding hash check value.
10. audio system upgrade method according to claim 7, it is characterised in that described to receive the main equipment successively
Multiple upgrading subfiles of transmission simultaneously write into slave unit internal memory to complete to upgrade to the slave unit, in addition to:
When receiving the upgrading subfile end of transmission information that the main equipment is sent, judge that multiple upgrading subfiles are
In no all write-ins slave unit internal memory;
If in the write-in slave unit internal memory, upgrading all is sent completely really to the main equipment for multiple upgrading subfiles
Recognize information;
Judge whether that receive the main equipment restarts control instruction according to what the confirmation was fed back;
If receive it is described restart control instruction, according to it is described restart control instruction restart the slave unit with described in completing from setting
Standby upgrading.
A kind of control device 11. audio system is upgraded, the audio system includes main equipment and at least one slave unit, its feature
It is, described device includes:
Acquisition module, for obtaining upgrade file according to upgrade command;
Division module, for the upgrade file to be divided into multiple upgrading subfiles according to default division rule;
Writing module is read, for being successively read multiple upgrading subfiles and writing into main equipment internal memory to complete to institute
State main equipment upgrading;And
Sending module, for often reading a upgrading subfile, it is described upgrading subfile send to the slave unit with
Complete to upgrade to the slave unit.
The control device 12. audio system according to claim 11 is upgraded, it is characterised in that the acquisition module is additionally operable to
Judge whether the main equipment is connected with the slave unit;If the main equipment is connected with the slave unit, to described from setting
Preparation send upgrading control instruction, to cause the slave unit to be in state to be upgraded.
The control device 13. audio system according to claim 11 is upgraded, it is characterised in that the reading writing module is also
The upgrading subfile that has been written into and the liter are judged into the main equipment internal memory for every write-in one upgrading subfile
Whether level subfile is identical;If the upgrading subfile having been written into is identical with the upgrading subfile, read next described
Subfile of upgrading simultaneously is write into the main equipment internal memory;If or the upgrading subfile having been written into and the upgrading Ziwen
Part is differed, the upgrading subfile being had been written into described in erasing, and re-writes the upgrading subfile.
14. the audio system upgrading control device according to any one in claim 11 to 13, it is characterised in that described
Device also includes computing module, and the computing module is used to often read a upgrading subfile, calculates the upgrading Ziwen
The hash check value of part, wherein, the hash check value is used for slave unit checking and receives the complete of the upgrading subfile
Whole property;
The sending module is additionally operable to send the hash check value and upgrading subfile to the slave unit.
The control device 15. audio system according to claim 14 is upgraded, it is characterised in that described device also includes first
Judge module, first judge module is used for the transmission request of data again for judging whether to receive the slave unit feedback,
The wherein described request of data of transmission again is that the slave unit verifies the upgrading subfile received according to the hash check value
The solicited message of generation after imperfect;
If the sending module be used to receiving it is described transmit request of data again, the hash check value and liter are transmitted again
Level subfile is to the slave unit.
The control device 16. audio system according to claim 11 is upgraded, it is characterised in that described device also includes second
Module is restarted in judge module and transmission;The sending module is additionally operable to, when reading last described upgrading subfile, send
The upgrading subfile and upgrading subfile end of transmission information to the slave unit;
Second judge module is used to judge whether that receive the slave unit believes according to the upgrading subfile end of transmission
The confirmation of the completion upgrading of breath feedback;
If module is restarted in the transmission to be used to receive the confirmation, sent to the slave unit and restart control instruction, made
Obtain the slave unit to restart control instruction progress reboot operation according to complete the upgrading of the slave unit, and restart institute
Main equipment is stated to complete the upgrading of the main equipment.
A kind of reception device 17. audio system is upgraded, the audio system includes main equipment and at least one slave unit, its feature
It is, described device includes:
Writing module is received, for receiving multiple upgrading subfiles of the main equipment transmission successively and writing to slave unit internal memory
In with complete to the slave unit upgrade, wherein, it is multiple it is described upgrading subfiles be the main equipment according to default division rule
By upgrade file divided obtained by subfile.
The reception device 18. audio system according to claim 17 is upgraded, it is characterised in that described device also includes judging
Control module, the judgement control module is used to judge whether to receive the upgrading control instruction that the main equipment is sent;If connecing
The upgrading control instruction is received, state to be upgraded is according to the upgrading control instruction.
The reception device 19. audio system according to claim 17 is upgraded, it is characterised in that the reception writing module is used
In receiving multiple upgrading subfiles that the main equipment sends and hash check corresponding with each upgrading subfile successively
Value;A upgrading subfile and corresponding hash check value are often received, the upgrading Ziwen received is calculated
The hash check value of part;Judge whether the hash check value that calculating is obtained is identical with the hash check value that the main equipment is sent;
If it is identical with the hash check value that the main equipment is sent to calculate obtained hash check value, by the upgrading subfile write-in institute
State in slave unit internal memory;Or if the hash check value that calculating is obtained is different from the hash check value that the main equipment is sent, to
The main equipment sends and transmits request of data again, to cause the main equipment to be sent out again according to the request of data of transmission again
Send the upgrading subfile and corresponding hash check value.
The reception device 20. audio system according to claim 17 is upgraded, it is characterised in that the reception writing module is also
For when receiving the upgrading subfile end of transmission information that the main equipment is sent, judging that multiple subfiles of upgrading are
In no all write-ins slave unit internal memory;If multiple upgrading subfiles are all write in the slave unit internal memory, to institute
State the confirmation that main equipment is sent completely upgrading;Judge whether to receive what the main equipment fed back according to the confirmation
Restart control instruction;If receive it is described restart control instruction, restart control instruction according to described and restart the slave unit with complete
Into slave unit upgrading.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209382.2A CN107015829B (en) | 2017-03-31 | 2017-03-31 | Audio system upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209382.2A CN107015829B (en) | 2017-03-31 | 2017-03-31 | Audio system upgrading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107015829A true CN107015829A (en) | 2017-08-04 |
CN107015829B CN107015829B (en) | 2021-03-23 |
Family
ID=59446333
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710209382.2A Expired - Fee Related CN107015829B (en) | 2017-03-31 | 2017-03-31 | Audio system upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107015829B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068211A (en) * | 2018-08-01 | 2018-12-21 | 广东思派康电子科技有限公司 | A kind of TWS earphone and its computer readable storage medium |
CN109683930A (en) * | 2018-12-17 | 2019-04-26 | 珠海格力电器股份有限公司 | Air-conditioning equipment programme upgrade method, device, system and household appliance |
CN110780943A (en) * | 2019-10-18 | 2020-02-11 | 厦门亿联网络技术股份有限公司 | Method and system for unifying firmware of slave equipment |
CN112506545A (en) * | 2020-12-14 | 2021-03-16 | 珠海格力智能装备有限公司 | System upgrading method and system upgrading device for industrial control equipment and electric control equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101447884A (en) * | 2007-11-26 | 2009-06-03 | 华为技术有限公司 | Method for achieving software upgrade by cooperation among network elements, equipment and system therefor |
CN102831000A (en) * | 2012-09-11 | 2012-12-19 | 华为技术有限公司 | System upgrading method and system |
CN102970359A (en) * | 2012-11-13 | 2013-03-13 | 航天科工深圳(集团)有限公司 | Remote upgrade method and device based on main and auxiliary equipment |
CN103023990A (en) * | 2012-11-28 | 2013-04-03 | 迈普通信技术股份有限公司 | Image file upgrade system and method in stack system |
CN104144179A (en) * | 2013-05-07 | 2014-11-12 | 上海斐讯数据通信技术有限公司 | System and method for upgrading ONU devices |
CN105511903A (en) * | 2015-11-23 | 2016-04-20 | 广东欧珀移动通信有限公司 | Audio device updating method and apparatus |
CN105549995A (en) * | 2015-12-10 | 2016-05-04 | 广东欧珀移动通信有限公司 | Audio device upgrading method and apparatus |
CN106028142A (en) * | 2016-05-25 | 2016-10-12 | 广东欧珀移动通信有限公司 | Upgrading control method and upgrading control apparatus for playing devices |
-
2017
- 2017-03-31 CN CN201710209382.2A patent/CN107015829B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101447884A (en) * | 2007-11-26 | 2009-06-03 | 华为技术有限公司 | Method for achieving software upgrade by cooperation among network elements, equipment and system therefor |
CN102831000A (en) * | 2012-09-11 | 2012-12-19 | 华为技术有限公司 | System upgrading method and system |
CN102970359A (en) * | 2012-11-13 | 2013-03-13 | 航天科工深圳(集团)有限公司 | Remote upgrade method and device based on main and auxiliary equipment |
CN103023990A (en) * | 2012-11-28 | 2013-04-03 | 迈普通信技术股份有限公司 | Image file upgrade system and method in stack system |
CN104144179A (en) * | 2013-05-07 | 2014-11-12 | 上海斐讯数据通信技术有限公司 | System and method for upgrading ONU devices |
CN105511903A (en) * | 2015-11-23 | 2016-04-20 | 广东欧珀移动通信有限公司 | Audio device updating method and apparatus |
CN105549995A (en) * | 2015-12-10 | 2016-05-04 | 广东欧珀移动通信有限公司 | Audio device upgrading method and apparatus |
CN106028142A (en) * | 2016-05-25 | 2016-10-12 | 广东欧珀移动通信有限公司 | Upgrading control method and upgrading control apparatus for playing devices |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068211A (en) * | 2018-08-01 | 2018-12-21 | 广东思派康电子科技有限公司 | A kind of TWS earphone and its computer readable storage medium |
CN109068211B (en) * | 2018-08-01 | 2020-06-05 | 广东思派康电子科技有限公司 | TWS earphone and computer readable storage medium thereof |
CN109683930A (en) * | 2018-12-17 | 2019-04-26 | 珠海格力电器股份有限公司 | Air-conditioning equipment programme upgrade method, device, system and household appliance |
CN109683930B (en) * | 2018-12-17 | 2020-07-24 | 珠海格力电器股份有限公司 | Air conditioning equipment program upgrading method, device and system and household electrical appliance |
CN110780943A (en) * | 2019-10-18 | 2020-02-11 | 厦门亿联网络技术股份有限公司 | Method and system for unifying firmware of slave equipment |
CN110780943B (en) * | 2019-10-18 | 2022-07-12 | 厦门亿联网络技术股份有限公司 | Method and system for unifying firmware of slave equipment |
CN112506545A (en) * | 2020-12-14 | 2021-03-16 | 珠海格力智能装备有限公司 | System upgrading method and system upgrading device for industrial control equipment and electric control equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107015829B (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107015829A (en) | Audio system upgrade method, device | |
CN102495744B (en) | Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus | |
CN107783777A (en) | A kind of upgrade method, equipment and the system of vehicle-mounted integral machine | |
CN104503796B (en) | A kind of configurable whole network remote node firmware upgrade method based on IAP | |
US20090198770A1 (en) | System and method of updating codes in controller | |
CN109656597A (en) | Firmware upgrade method, device and computer readable storage medium | |
CN101542445A (en) | Apparatus and methods of a zero single point of failure load balancer | |
CN101610499A (en) | The upgrade method of wireless data card and system | |
CN109002310A (en) | firmware upgrade method | |
CN108958772A (en) | A kind of batch upgrading method and system of more board equipment | |
CN106843983A (en) | The system and method for remote upgrading field programmable gate array | |
CN112698854A (en) | Vehicle multi-controller flashing device | |
CN109901866A (en) | Online upgrading method and rotary steering system for multi-module system | |
CN100395705C (en) | Device to serve software to a host device through a peripheral device and method thereof | |
CN106201588A (en) | The method for upgrading software of terminal and terminal | |
CN106020898A (en) | Software upgrading method and system of multi-processor device | |
CN108762761A (en) | Generation method, device, server and the storage medium of target channel packet | |
CN109358872A (en) | Remote firmware updating method, device and computer readable storage medium | |
CN106951296A (en) | A kind of Oftware updating method and device | |
CN106445592A (en) | Long-distance multi-machine program upgrading method based on WIFI and CAN bus | |
CN112650510A (en) | Method and device for upgrading instrument control system software and automobile | |
CN103179016A (en) | Method and system for updating multi-case terminal roaming configuration data and server | |
JP2020154438A (en) | Electronic control device and method of setting control data | |
CN102193884B (en) | Data transfer circuit and method | |
CN113342385A (en) | Software upgrading method and device and air conditioner control panel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210323 |