The content of the invention
It is UAV Intelligent battery it is an object of the invention to provide a kind of firmware upgrade method of UAV Intelligent battery
It is normal using providing safeguard so that even if the upgrading failure of UAV Intelligent battery also can be used normally.
It is UAV Intelligent another object of the present invention is to provide a kind of device for upgrading firmware of UAV Intelligent battery
The normal use of battery provides safeguard so that even if the upgrading failure of UAV Intelligent battery also can be used normally.
Another object of the present invention is to provide a kind of intelligent battery, even if also can be normal during intelligent battery upgrading failure
Use, for normal use of intelligent battery provides safeguard measure.
To achieve these goals, the technical scheme that the embodiment of the present invention is used is as follows:
In a first aspect, the embodiment of the invention provides a kind of firmware upgrade method of UAV Intelligent battery, the unmanned plane is received
Remote control end remote control, the intelligent battery includes the first memory space and the second memory space, and the first memory space is stored with currently
Version firmware, the firmware upgrade method of the UAV Intelligent battery includes:
The upgrade command that the remote control end of unmanned plane receives is responded, latest edition firmware is downloaded from unmanned plane and is stored in the second storage
Space;
Latest edition firmware verify to obtain check results;
Determine whether that the latest edition firmware covering that will be stored in the second memory space is stored in the first storage according to check results
The current version firmware in space.
Second aspect, the embodiment of the present invention additionally provides a kind of device for upgrading firmware of UAV Intelligent battery, is applied to
The intelligent battery of unmanned plane, the intelligent battery includes the first memory space and the second memory space, first memory space
Be stored with current version firmware, and the device for upgrading firmware of the UAV Intelligent battery includes:
Acquisition module, the upgrade command that the remote control end for responding unmanned plane receives, latest edition firmware is downloaded simultaneously from unmanned plane
It is stored in the second memory space;
Correction verification module, for latest edition firmware verify obtaining check results;
Overlay module, for determining whether that the latest edition firmware covering that will be stored in the second memory space is deposited according to check results
It is stored in the current version firmware of the first memory space.
The third aspect, the embodiment of the present invention additionally provides a kind of intelligent battery, and the intelligent battery is applied to unmanned plane, institute
Unmanned plane is stated by the remote control of remote control end, the intelligent battery includes the first memory space and the second memory space, the first memory space
Be stored with current version firmware, and the intelligent battery includes:
Memory;
Processor;And
The device for upgrading firmware of UAV Intelligent battery, the device for upgrading firmware of the UAV Intelligent battery is installed on described depositing
In reservoir and including one or more by the computing device software function module, the firmware of the UAV Intelligent battery
Update device includes:
Acquisition module, the upgrade command that the remote control end for responding unmanned plane receives, latest edition firmware is downloaded simultaneously from unmanned plane
It is stored in the second memory space;
Correction verification module, for latest edition firmware verify obtaining check results;
Overlay module, for determining whether that the latest edition firmware covering that will be stored in the second memory space is deposited according to check results
It is stored in the current version firmware of the first memory space.
A kind of firmware upgrade method of UAV Intelligent battery provided in an embodiment of the present invention, device and intelligent battery, nothing
Human-machine intelligence's battery includes the first memory space and the second memory space, and its first memory space is stored with current version firmware,
The firmware upgrade method of its UAV Intelligent battery includes connecing the upgrade command that the remote control end of response unmanned plane receives, from unmanned plane
Download latest edition firmware and be stored in the second memory space, while latest edition firmware is verified, according to check results
The latest edition firmware covering for determining whether to will be stored in the second memory space is stored in the current version of the first memory space and consolidates
Part.When upgrading to UAV Intelligent battery, the second storage sky is will be stored in if latest edition firmware is by verification
Between the covering of latest edition firmware be stored in the current version firmware of the first memory space, perform latest edition in the first memory space
This firmware.Current version firmware in continuing executing with the first memory space if latest edition firmware is not over verification.So as to
When the firmware upgrade success of UAV Intelligent battery, redaction firmware is performed, when UAV Intelligent battery upgrades failure, held
Row current version firmware so that even if the firmware of UAV Intelligent battery remains able to normal fortune in the case of failure of upgrading
OK, for normal use of UAV Intelligent battery provides safeguard.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing.Meanwhile, of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Fig. 1 is refer to, is the schematic diagram that unmanned plane provided in an embodiment of the present invention 400 receives latest edition firmware.
Remote control end 100 carries out data interaction by wireless network 300 and server 200, and server 200 is to remote control end 100
Latest edition firmware is pushed, operating personnel send upgrade command, and the upgrade command is included but is not limited to, operating personnel's touching telecontrol
The thoughts and feelings signal of the generation of end 100, remote control end 100 responds the upgrade command and downloaded from server 200 and store latest edition to be consolidated
Part.Behind remote control end 100 and the wireless connection of unmanned plane 400, remote control end 100 obtains the firmware version number of the memory storage of unmanned plane 400, when
When the firmware of unmanned plane 400 is inconsistent with the latest edition firmware number at remote control end 100, the firmware of the memory storage of unmanned plane 400 is illustrated
It is not latest edition firmware, then remote control end 100 pushes latest edition firmware to unmanned plane 400, operating personnel pass through remote control end 100
Upgrade command is sent, the response of unmanned plane 400 upgrade command is downloaded and stores latest edition firmware.
Fig. 2 is refer to, is the structural representation of intelligent battery provided in an embodiment of the present invention 410.Intelligent battery 410 is installed
In in unmanned plane 400, for providing power supply for the work of unmanned plane 400.Intelligent battery 410 includes processor 414, memory 411
With the device for upgrading firmware 420 of UAV Intelligent battery.
Memory 411, each element of processor 414 are directly or indirectly electrically connected with each other, to realize the biography of data
Defeated or interaction.For example, these elements can be realized being electrically connected with by one or more communication bus or holding wire each other.Nothing
The device for upgrading firmware 420 of human-machine intelligence's battery can be with software or firmware including at least one(firmware)Form be stored in
In the memory 411 or it is solidificated in the operating system of intelligent battery 410(Operating system, OS)In software function
Module.Processor 414 is used to performing the executable module stored in the memory 411, and such as UAV Intelligent battery is consolidated
Software function module and computer program included by part update device 420 etc..
Wherein, memory 411 may be, but not limited to, random access memory(Random Access Memory,
RAM), read-only storage(Read Only Memory, ROM), programmable read only memory(Programmable Read-Only
Memory, PROM), erasable read-only memory(Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM)(Electric Erasable Programmable Read-Only Memory, EEPROM)Deng.
Wherein, memory 411 is used for storage program, and processor 414 performs the program after execute instruction is received.
The memory 411 includes the first memory space 412 and the second memory space 413, is stored in the first memory space 412
There is the current version firmware that intelligent battery 410 runs, the second memory space 413 is used to store from the newest of the download of unmanned plane 400
Version firmware, this current version firmware is the currently used firmware of intelligent battery 410, and this latest edition firmware is intelligent battery
410 version firmwares to be upgraded, current version firmware herein refers both to the application journey of intelligent battery 410 with latest edition firmware
Sequence, including the cell safety protection algorism of intelligent battery 410 etc., the normal operation of the application program ensure that intelligence to this application program
Can battery 410 can normal work, for sending the essential information of intelligent battery 410, such as electricity, voltage to unmanned plane 400.
Fig. 3 is refer to, is that the square frame of the device for upgrading firmware 420 of UAV Intelligent battery provided in an embodiment of the present invention shows
It is intended to.The device for upgrading firmware 420 of the UAV Intelligent battery includes acquisition module 421, correction verification module 422 and overlay module
423。
The acquisition module 421 is used to respond the upgrade command that the remote control end 100 of unmanned plane 400 receives, under unmanned plane 400
Carry latest edition firmware and be stored in the second memory space 413.
Unmanned plane 400 obtains the firmware version number of intelligent battery 410, when in the firmware and unmanned plane 400 of intelligent battery 410
When the firmware of storage is inconsistent, illustrate that the firmware in intelligent battery 410 is not latest edition firmware, now, unmanned plane 400 is to intelligence
Energy battery 410 pushes latest edition firmware, and operating personnel's manipulation remote control end 100 sends upgrade command, the response of acquisition module 421 institute
State upgrade command and download latest edition firmware from unmanned plane 400, and the latest edition firmware is stored in the second memory space
413.When the firmware of intelligent battery 410 is consistent with the firmware of the memory storage of unmanned plane 400, the firmware in intelligent battery 410 is illustrated
It has been latest edition firmware, unmanned plane 400 to intelligent battery 410 without pushing latest edition firmware.
Correction verification module 422 to latest edition firmware verify obtaining check results.Correction verification module 422 will be stored in second
The latest edition firmware of memory space 413 is compared with the latest edition firmware of the memory storage of unmanned plane 400, judges the second storage
Whether the latest edition firmware in space 413 is consistent with the latest edition firmware of the memory storage of unmanned plane 400.For example, compare second depositing
Store up flag, data check position, the data length of latest edition firmware in space 413 etc. newest with the memory storage of unmanned plane 400
Whether version firmware is consistent.
If the latest edition of the latest edition firmware and the memory storage of unmanned plane 400 for being stored in the second memory space 413 is consolidated
Part is consistent, illustrate that latest edition firmware that the second memory space 413 is stored is complete, then overlay module 423 will be stored in the
The latest edition firmware covering of two memory spaces 413 is stored in the current version firmware of the first memory space 412, realizes intelligence electricity
The firmware upgrade in pond 410, now, the latest edition firmware in the memory space 412 of processor 414 first.If being stored in second
The latest edition firmware of memory space 413 is inconsistent with the latest edition firmware of the memory storage of unmanned plane 400, illustrates that the second storage is empty
Between 413 storage latest edition firmwares be not complete, now, receiver module 421 needs to obtain newest from unmanned plane 400 again
Version firmware is upgraded again, or abandons upgrading, directly performs the current version firmware in the first memory space 412, is protected
When having demonstrate,proved upgrading failure, intelligent battery 410 can also run current version firmware and keep normal work.The UAV Intelligent battery
Device for upgrading firmware 420 also includes mark module 424.
When realizing that intelligent battery 410 is upgraded, mark module 424 is marked after upgrading successfully in order to show upgrading
Success, in the present embodiment, the mode of the mark of mark module 424 is the mark upgraded successfully in the write-in of corresponding mark region position
Will, but not limited to this, mark module 424 can also be marked using other reasonable manners, such as specific pattern mark.Work as intelligence
During the energy upgrading failure of battery 410, mark module 424 writes the mark of failure of upgrading in corresponding mark region position.
Whether the correct mode of latest edition firmware of another kind the second memory space 413 of inspection is, fixed with house dog
When device trial operation be stored in latest edition firmware in the second memory space 413, if being stored in the second memory space 413 most
Redaction firmware can normally be run, and the latest edition firmware covering that overlay module 423 will be stored in the second memory space 413 is deposited
The current version firmware in the first memory space 412 is stored in, the firmware upgrade of intelligent battery 410 is realized.If house dog is regularly
Device operation is stored in the latest edition firmware error of the second memory space 413, then illustrate that the latest edition firmware is imperfect, obtains
Module 421 can obtain latest edition firmware or abandon upgrading and directly perform in the first memory space 412 from unmanned plane 400 again
Current version firmware.
The embodiment of the present invention additionally provides a kind of firmware upgrade method of UAV Intelligent battery, refer to Fig. 4, is the nothing
The flow chart of the firmware upgrade method of human-machine intelligence's battery.The firmware upgrade method of the UAV Intelligent battery includes following step
Suddenly:
Step S110, responds the upgrade command that the remote control end of unmanned plane receives, and downloads latest edition firmware from unmanned plane and stores
In the second memory space.
In the present embodiment, step S110 is performed by acquisition module 421.Specifically,
Unmanned plane 400 obtains the firmware version number of intelligent battery 410, when firmware and the memory storage of unmanned plane 400 of intelligent battery 410
Firmware it is inconsistent when, illustrate that the firmware in intelligent battery 410 is not latest edition firmware, now, unmanned plane 400 is to intelligent electricity
Pond 410 pushes latest edition firmware, and operating personnel's manipulation remote control end 100 sends upgrade command, and acquisition module 421 responds the liter
Level instruction downloads latest edition firmware from unmanned plane 400, and the latest edition firmware is stored in into the second memory space 413.When
When the firmware of intelligent battery 410 is consistent with the firmware of the memory storage of unmanned plane 400, illustrate that the firmware in intelligent battery 410 has been
Latest edition firmware, unmanned plane 400 to intelligent battery 410 without pushing latest edition firmware.
Latest edition firmware verify and obtains check results, be i.e. step S120, judgement is stored in the second memory space
Latest edition firmware it is whether consistent with the latest edition firmware of unmanned plane memory storage.Meanwhile, determined whether according to check results
The latest edition firmware covering that will be stored in the second memory space 413 is stored in the current version firmware of the first memory space 412.
In the present embodiment, step S120 can be performed by correction verification module 422.Specifically, will be stored in the second memory space 413
Latest edition firmware be compared with the latest edition firmware of the memory storage of unmanned plane 400, judge the second memory space 413 most
Whether redaction firmware is consistent with the latest edition firmware of the memory storage of unmanned plane 400.For example, comparing the second memory space 413
Whether the latest edition firmware of flag, data check position, data length of latest edition firmware etc. and the memory storage of unmanned plane 400
Unanimously.
When the latest edition firmware and the latest edition firmware of the memory storage of unmanned plane 400 that are stored in the second memory space 413
When consistent, step S130 is performed, the latest edition firmware covering that will be stored in the second memory space is stored in the first memory space
Current version firmware.Step S140 is performed simultaneously, is marked.
In the present embodiment, step S130 can be performed by overlay module 423, realize the firmware upgrade of intelligent battery 410,
Now, the latest edition firmware in the first memory space 412 is performed.In the present embodiment, step S140 can be by marking
Module 424 is performed.Mark module 424 is marked after upgrading successfully and upgrade successfully in order to showing, in the present embodiment, mark
The mode of the note mark of module 424 is but not limited to this, mark module in the mark that upgrades successfully of corresponding mark region position write-in
424 can also be marked using other reasonable manners, such as specific pattern mark.
When the latest edition firmware and the latest edition firmware of the memory storage of unmanned plane 400 that are stored in the second memory space 413
When inconsistent, latest edition firmware is received from unmanned plane 400 by acquisition module 421 again.
In sum, a kind of firmware upgrade method of UAV Intelligent battery provided in an embodiment of the present invention, device and intelligence
Energy battery, UAV Intelligent battery includes the first memory space and the second memory space, and its first memory space is stored with currently
Version firmware.The firmware upgrade method of its UAV Intelligent battery includes the upgrade command that the remote control end of response unmanned plane receives,
Latest edition firmware is downloaded from unmanned plane and be stored in the second memory space, while latest edition firmware is verified, according to
Check results determine whether that the latest edition firmware covering that will be stored in the second memory space is stored in working as the first memory space
Preceding version firmware.When upgrading to UAV Intelligent battery, the is will be stored in if latest edition firmware is by verification
The latest edition firmware covering of two memory spaces is stored in the current version firmware of the first memory space, performs the first memory space
Middle latest edition firmware.Current version is consolidated in continuing executing with the first memory space if latest edition firmware is not over verification
Part.So as to when the firmware upgrade of UAV Intelligent battery is successful, perform redaction firmware, upgrade when UAV Intelligent battery and lose
When losing, current version firmware is performed so that even if the firmware of UAV Intelligent battery is remained able in the case of failure of upgrading
Normal operation, for normal use of UAV Intelligent battery provides safeguard.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code
Part a, part for the module, program segment or code is used to realize holding for the logic function for specifying comprising one or more
Row instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be being different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of the square frame in individual square frame and block diagram and/or flow chart, can use the function or the special base of action for performing regulation
Realized in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment(Can be individual
People's computer, server, or network equipment etc.)Perform all or part of step of each embodiment methods described of the invention.
It should be noted that herein, such as first and second or the like relational terms are used merely to an entity or behaviour
Make with another entity or operation make a distinction, and not necessarily require or imply these entities or operate between exist it is any this
Plant actual relation or order.And, term " including ", "comprising" or its any other variant be intended to nonexcludability
Include so that process, method, article or equipment including a series of key elements not only include those key elements, but also
Including other key elements being not expressly set out, or also include for this process, method, article or equipment it is intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, article or the equipment of element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing
It is further defined and is explained.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.