CN104598279A - Method and device for upgrading firmware based on flight controller - Google Patents

Method and device for upgrading firmware based on flight controller Download PDF

Info

Publication number
CN104598279A
CN104598279A CN201510035618.6A CN201510035618A CN104598279A CN 104598279 A CN104598279 A CN 104598279A CN 201510035618 A CN201510035618 A CN 201510035618A CN 104598279 A CN104598279 A CN 104598279A
Authority
CN
China
Prior art keywords
firmware
flight controller
firmware file
storer
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510035618.6A
Other languages
Chinese (zh)
Inventor
吴斌
彭斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU KUAIFEI COMPUTER TECHNOLOGY Co Ltd
Original Assignee
GUANGZHOU KUAIFEI COMPUTER TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGZHOU KUAIFEI COMPUTER TECHNOLOGY Co Ltd filed Critical GUANGZHOU KUAIFEI COMPUTER TECHNOLOGY Co Ltd
Priority to CN201510035618.6A priority Critical patent/CN104598279A/en
Publication of CN104598279A publication Critical patent/CN104598279A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for upgrading firmware based on a flight controller. The method comprises the following steps of mounting a storage in the flight controller to a computer through a USB (Universal Serial Bus) connecting wire; obtaining a corresponding firmware file by the computer according to unique identification of the flight controller; saving the obtained firmware file in the storage, and uninstalling the storage from the computer; starting the flight controller, and detecting whether an effective firmware file exists in the storage or not; upgrading the effective firmware file and restarting the flight controller if the effective firmware file exists in the storage; otherwise, entering a normal working mode. According to the method and the device, disclosed by the invention, the storage in the flight controller is mounted to the computer in a way that the storage is mounted like a U disk, the corresponding firmware is matched and is saved in the storage according to the unique identification of the flight controller to carry out upgrading, the operation is very convenient, firmware upgrading can be carried out without installing specific upgrading software, and failed upgrading caused as upgrading is carried out on non-corresponding firmware which is matched can be avoided.

Description

Based on firmware upgrade method and the device of flight controller
Technical field
The present invention relates to Data Update technical field, be specifically related to the firmware upgrade method based on flight controller and device.
Background technology
Unmanned vehicle is a kind of based on the not manned vehicle of wireless remote control or self programmed control.No matter be wireless remote control type or the unmanned vehicle by self type of programme control, all in aircraft, flight controller must be installed, the main work of flight controller is exactly read the flight of parameter to unmanned vehicle preset to control, and the data that each pen recorder in reception unmanned vehicle and sensing device are monitored, these data can be write in journal file after flight controller process.After unmanned vehicle dispatches from the factory, producer also may carry out performance boost, reparation BUG to unmanned vehicle or add the maintenances such as function in follow-up, is generally carry out upgrade maintenance by the mode of firmware updating.
In prior art, usually need to connect flight controller by supporting software and could push firmware to unmanned vehicle, this mode has certain limitation, firmware pushes inconvenient, need supporting software is installed, comparatively loaded down with trivial details, do not install in the computing machine of software kit at one if interim and just cannot carry out upgrade maintenance to unmanned vehicle.
Summary of the invention
In order to overcome the deficiencies in the prior art, the object of the present invention is to provide the firmware upgrade method based on flight controller and device, by the storer in flight controller with the mode carry of similar USB flash disk to computing machine, the firmware corresponding according to the ID coupling of flight controller is saved in storer and can upgrades, operation is very easy, do not need to be upgraded by upgrade software.
For solving the problem, the technical solution adopted in the present invention is as follows:
Scheme one:
Based on the firmware upgrade method of flight controller, comprise the following steps:
Steps A: by USB connecting line by the storer carry in flight controller in computing machine;
Step B: the unique identification according to this flight controller obtains corresponding firmware file by computing machine;
Step C: the firmware file of acquisition is saved in storer, and storer is unloaded from computing machine;
Step D: start flight controller, and detect in storer whether there is effective firmware file, if so, then perform this firmware file and carry out upgrading and restarting flight controller, otherwise enter normal mode of operation.
Further, in stepb, the step obtaining corresponding firmware file is: connect firmware library by network, and input the unique identification of this flight controller, firmware library mates corresponding up-to-date firmware file according to this unique identification, and the download link of the firmware file providing this up-to-date, download for user.
Further, in step D, detecting in storer the detected rule that whether there is effective firmware file is: the flag in firmware file, data check position and data length are all identical with default data length with default zone bit, default data check position, be then effective firmware file.
Further, in step D, after this firmware file of execution is upgraded, this firmware file is deleted.
Scheme two:
Based on the device for upgrading firmware of flight controller, comprise with lower module:
Modules A: for passing through USB connecting line by the storer carry in flight controller in computing machine;
Module B: obtain corresponding firmware file by computing machine for the unique identification according to this flight controller;
Module C: for the firmware file of acquisition is saved in storer, and storer is unloaded from computing machine;
Module D: for starting flight controller, and detect in storer whether there is effective firmware file, if so, then perform this firmware file and carry out upgrading and restarting flight controller, otherwise enter normal mode of operation.
Further, in module B, obtain being operating as of corresponding firmware file: connect firmware library by network, and input the unique identification of this flight controller, firmware library mates corresponding up-to-date firmware file according to this unique identification, and the download link of the firmware file providing this up-to-date, download for user.
Further, in module D, detecting in storer the detected rule that whether there is effective firmware file is: the flag in firmware file, data check position and data length are all identical with default data length with default zone bit, default data check position, be then effective firmware file.
Further, in module D, after this firmware file of execution is upgraded, this firmware file is deleted.
Compared to existing technology, beneficial effect of the present invention is: by the storer in flight controller with the mode carry of similar USB flash disk to computing machine, the firmware corresponding according to the unique identification coupling of flight controller is saved in storer and can upgrades, operation is very easy, do not need to carry out firmware upgrade by installing specific upgrade software, and can avoid matching not corresponding firmware and carry out upgrading and cause and upgrade unsuccessfully or damage flight controller.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the firmware upgrade method based on flight controller of the present invention.
Embodiment
Below, by reference to the accompanying drawings and embodiment, the present invention is described further:
Be the firmware upgrade method based on flight controller of the present invention with reference to figure 1, be applied to the flight controller in unmanned vehicle, storer in flight controller is generally FLASH memory, less but the data stable storage of capacity, the controling parameters called for flight controller is preserved in storer, and for the journal file etc. of record flight data, flight controller can control unmanned vehicle by calling controling parameters, the data of detection and service data can feed back in storer and generate journal file by each sensor simultaneously in unmanned vehicle and instrument.Manufacturer production unmanned vehicle out has later maintenance certainly, correspondingly will regularly or irregularly issue new firmware and be optimized upgrading to flight controller.The present invention adopts following methods step to carry out firmware upgrade:
Steps A: by USB connecting line by the storer carry in flight controller in computing machine.
USB is set in the storer in flight controller and drives file, flight controller also provides the USB interface be electrically connected with storer simultaneously, then storer just can by USB connecting line as USB flash disk carry in computing machine, there will be corresponding disk drive in computing machine, user just can directly be operated the file in storer by this disk.Further, except USB connected mode, can also be set to other exchanges data connected mode, such as storer can be connected with computing machine by SATA connected mode.Wherein, with USB interface, microcontroller is become USB flash disk type of service for prior art, be specifically record in the patent of CN200910045659.8 at application number, flight controller of the present invention is equivalent to microcontroller, does not repeat them here.
Step B: the unique identification according to this flight controller obtains corresponding firmware file by computing machine.
Each flight controller has its corresponding unique identification, can obtain corresponding firmware according to unique identification.Wherein, firmware is divided into multiple grade, such as be divided into rudimentary, intermediate and senior, different grades has different functions, user can by buying the corresponding firmware of the firmware permission match of different brackets, the low-grade firmware file that can only be matched by the unique identification that rudimentary flight controller is corresponding.The concrete step obtaining corresponding firmware file is: connect firmware library by computing machine, the unique identification of this flight controller is inputted in firmware library, the firmware file that firmware library is corresponding according to this unique identification coupling, and the download link of this firmware file is provided, download for user.Wherein preferably, the firmware file matched is up-to-date firmware file, and the firmware file of old version also can be provided in addition to download for user.It should be noted that, user have purchased the firmware authority of certain grade, keeper can modify to the firmware file that it can mate by the unique identification in firmware library corresponding to the unmanned vehicle of this user, such as, user have purchased rudimentary firmware authority, after rudimentary firmware authority is upgraded to senior firmware authority by user, firmware modification corresponding to the unique identification of the unmanned vehicle of this user can be high-grade firmware by keeper in firmware library, and user is by just obtaining high-grade firmware file after input unique identification.Wherein, the firmware that unique identification is corresponding and download link can store by usage data sheet form, and tables of data comprises three fields, and such as, this data tableau format is as follows:
ID Firmware grade Firmware downloads links
Step C: the firmware file of acquisition is saved in storer, and storer is unloaded from computing machine.Just be saved in storer obtain corresponding firmware file from firmware library after, and storer unloaded from computing machine, to perform step below.
Step D: start flight controller, and detect in storer whether there is effective firmware file, if so, then perform this firmware file and carry out upgrading and restarting flight controller, otherwise enter normal mode of operation.In previous step, firmware file is saved to after in storer, just needs the firmware file in detection storer in this step and installs this firmware file.
Preferably, detecting in storer the detected rule that whether there is effective firmware file is: the flag in firmware file, data check position and data length are all identical with default data length with default zone bit, default data check position, be then effective firmware file.This judgment rule can prevent staging error or unmatched firmware file, avoids making the mistake.In addition, after this firmware file of execution is upgraded, this firmware file is deleted from storer, avoid duplicate detection and judge whether this firmware file is installed.
By above-mentioned firmware upgrade method, by the storer in flight controller with the mode carry of similar USB flash disk to computing machine, the firmware corresponding according to the unique identification coupling of flight controller is saved in storer and can upgrades, operation is very easy, do not need to carry out firmware upgrade by installing specific upgrade software, and can avoid matching not corresponding firmware and carry out upgrading and cause and upgrade unsuccessfully or damage flight controller.
Corresponding to the above-mentioned firmware upgrade method based on flight controller, also have the device for upgrading firmware based on flight controller, comprise with lower module:
Modules A: for passing through USB connecting line by the storer carry in flight controller in computing machine;
Module B: obtain corresponding firmware file by computing machine for the unique identification according to this flight controller;
Module C: for the firmware file of acquisition is saved in storer, and storer is unloaded from computing machine;
Module D: for starting flight controller, and detect in storer whether have firmware file, if so, then perform this firmware file and carry out upgrading and restarting flight controller, otherwise enter normal mode of operation.
Further, in module B, obtain being operating as of corresponding firmware file: connect firmware library by network, and input the unique identification of this flight controller, firmware library mates corresponding up-to-date firmware file according to this unique identification, and the download link of the firmware file providing this up-to-date, download for user.
Further, in module D, if have firmware file in storer, also can perform following operation: judge that whether the version number in this firmware file is identical with the version number of the current firmware of flight controller, if, then do not perform this firmware file and enter normal mode of operation, otherwise performing this firmware file and carry out upgrading and restarting flight controller.
Further, in module D, after this firmware file of execution is upgraded, this firmware file is deleted.
To one skilled in the art, according to technical scheme described above and design, other various corresponding change and deformation can be made, and all these change and deformation all should belong within the protection domain of the claims in the present invention.

Claims (8)

1. based on the firmware upgrade method of flight controller, it is characterized in that, comprise the following steps:
Steps A: by USB connecting line by the storer carry in flight controller in computing machine;
Step B: the unique identification according to this flight controller obtains corresponding firmware file by computing machine;
Step C: the firmware file of acquisition is saved in storer, and storer is unloaded from computing machine;
Step D: start flight controller, and detect in storer whether there is effective firmware file, if so, then perform this firmware file and carry out upgrading and restarting flight controller, otherwise enter normal mode of operation.
2. the firmware upgrade method based on flight controller according to claim 1, it is characterized in that, in stepb, the step obtaining corresponding firmware file is: connect firmware library by network, and input the unique identification of this flight controller, firmware library mates corresponding up-to-date firmware file according to this unique identification, and the download link of the firmware file providing this up-to-date, download for user.
3. the firmware upgrade method based on flight controller according to claim 1, it is characterized in that, in step D, detecting in storer the detected rule that whether there is effective firmware file is: the flag in firmware file, data check position and data length are all identical with default data length with default zone bit, default data check position, be then effective firmware file.
4. the firmware upgrade method based on flight controller according to claim 1, is characterized in that, in step D, is deleted by this firmware file after this firmware file of execution is upgraded.
5. based on the device for upgrading firmware of flight controller, it is characterized in that, comprise with lower module:
Modules A: for passing through USB connecting line by the storer carry in flight controller in computing machine;
Module B: obtain corresponding firmware file by computing machine for the unique identification according to this flight controller;
Module C: for the firmware file of acquisition is saved in storer, and storer is unloaded from computing machine;
Module D: for starting flight controller, and detect in storer whether there is effective firmware file, if so, then perform this firmware file and carry out upgrading and restarting flight controller, otherwise enter normal mode of operation.
6. the device for upgrading firmware based on flight controller according to claim 5, it is characterized in that, in module B, obtain being operating as of corresponding firmware file: connect firmware library by network, and input the unique identification of this flight controller, firmware library mates corresponding up-to-date firmware file according to this unique identification, and the download link of the firmware file providing this up-to-date, download for user.
7. the device for upgrading firmware based on flight controller according to claim 5, it is characterized in that, in module D, detecting in storer the detected rule that whether there is effective firmware file is: the flag in firmware file, data check position and data length are all identical with default data length with default zone bit, default data check position, be then effective firmware file.
8. the device for upgrading firmware based on flight controller according to claim 5, is characterized in that, in module D, is deleted by this firmware file after this firmware file of execution is upgraded.
CN201510035618.6A 2015-01-23 2015-01-23 Method and device for upgrading firmware based on flight controller Pending CN104598279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510035618.6A CN104598279A (en) 2015-01-23 2015-01-23 Method and device for upgrading firmware based on flight controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510035618.6A CN104598279A (en) 2015-01-23 2015-01-23 Method and device for upgrading firmware based on flight controller

Publications (1)

Publication Number Publication Date
CN104598279A true CN104598279A (en) 2015-05-06

Family

ID=53124097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510035618.6A Pending CN104598279A (en) 2015-01-23 2015-01-23 Method and device for upgrading firmware based on flight controller

Country Status (1)

Country Link
CN (1) CN104598279A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815050A (en) * 2016-12-30 2017-06-09 深圳怡化电脑股份有限公司 A kind of firmware management method and device of embedded device
CN106980511A (en) * 2017-05-09 2017-07-25 深圳市乐得瑞科技有限公司 Firmware upgrade method, apparatus and system
CN107045451A (en) * 2017-05-10 2017-08-15 深圳领英特科技有限公司 The method for upgrading software and system of a kind of code reading card
CN107357601A (en) * 2016-05-10 2017-11-17 零度智控(北京)智能科技有限公司 Unmanned plane device for upgrading firmware, method and terminal
CN107438830A (en) * 2016-09-30 2017-12-05 深圳市大疆创新科技有限公司 Upgrade method, update device, updating apparatus and upgrade-system
CN108958765A (en) * 2018-06-12 2018-12-07 新华三技术有限公司 Upgrade the method and device of optical module firmware
WO2019205124A1 (en) * 2018-04-28 2019-10-31 深圳市大疆创新科技有限公司 Method for protecting cradle head, device for protecting cradle head, cradle head and unmanned aerial vehicle
CN113282324A (en) * 2021-06-10 2021-08-20 华帝股份有限公司 Plug-in dish washing machine and plug-in upgrading method thereof
CN113362584A (en) * 2017-07-10 2021-09-07 深圳市道通智能航空技术股份有限公司 Communication method and device and unmanned aerial vehicle
CN113485727A (en) * 2021-08-23 2021-10-08 一飞(海南)科技有限公司 Design method, system, terminal and unmanned aerial vehicle supported by formation aircraft firmware

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101101554A (en) * 2006-07-07 2008-01-09 上海上工佳源机电科技有限公司 Computer embroidery machine firmware program remote upgrading method
CN101957765A (en) * 2010-09-02 2011-01-26 北京中星微电子有限公司 Method, system and equipment for updating equipment firmware
CN103207800A (en) * 2013-04-24 2013-07-17 厦门亿联网络技术股份有限公司 Method for safely and flexibly upgrading firmware
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101101554A (en) * 2006-07-07 2008-01-09 上海上工佳源机电科技有限公司 Computer embroidery machine firmware program remote upgrading method
CN101957765A (en) * 2010-09-02 2011-01-26 北京中星微电子有限公司 Method, system and equipment for updating equipment firmware
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN103207800A (en) * 2013-04-24 2013-07-17 厦门亿联网络技术股份有限公司 Method for safely and flexibly upgrading firmware

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357601A (en) * 2016-05-10 2017-11-17 零度智控(北京)智能科技有限公司 Unmanned plane device for upgrading firmware, method and terminal
CN107438830A (en) * 2016-09-30 2017-12-05 深圳市大疆创新科技有限公司 Upgrade method, update device, updating apparatus and upgrade-system
WO2018058564A1 (en) * 2016-09-30 2018-04-05 深圳市大疆创新科技有限公司 Upgrade method, upgrade apparatus, upgrade device and upgrade system
CN106815050A (en) * 2016-12-30 2017-06-09 深圳怡化电脑股份有限公司 A kind of firmware management method and device of embedded device
CN106815050B (en) * 2016-12-30 2020-06-09 深圳怡化电脑股份有限公司 Firmware management method and device of embedded equipment
CN106980511A (en) * 2017-05-09 2017-07-25 深圳市乐得瑞科技有限公司 Firmware upgrade method, apparatus and system
CN107045451A (en) * 2017-05-10 2017-08-15 深圳领英特科技有限公司 The method for upgrading software and system of a kind of code reading card
CN113362584A (en) * 2017-07-10 2021-09-07 深圳市道通智能航空技术股份有限公司 Communication method and device and unmanned aerial vehicle
CN113362584B (en) * 2017-07-10 2024-06-11 深圳市道通智能航空技术股份有限公司 Communication method and device and unmanned aerial vehicle
WO2019205124A1 (en) * 2018-04-28 2019-10-31 深圳市大疆创新科技有限公司 Method for protecting cradle head, device for protecting cradle head, cradle head and unmanned aerial vehicle
CN108958765A (en) * 2018-06-12 2018-12-07 新华三技术有限公司 Upgrade the method and device of optical module firmware
CN113282324A (en) * 2021-06-10 2021-08-20 华帝股份有限公司 Plug-in dish washing machine and plug-in upgrading method thereof
CN113485727A (en) * 2021-08-23 2021-10-08 一飞(海南)科技有限公司 Design method, system, terminal and unmanned aerial vehicle supported by formation aircraft firmware

Similar Documents

Publication Publication Date Title
CN104598279A (en) Method and device for upgrading firmware based on flight controller
CN101739266B (en) Firmware updating method
CN103067445B (en) Method and device of software upgrading of distributed system
CN103092642B (en) For upgrading equipment, the system and method for the firmware of electric power meter
CN106055361B (en) Integrated firmware implementation method and system for multiple different types based on BMC (baseboard management controller)
US11494494B2 (en) Apparatus with exchangeable communication module and application module, application module, and method
CN103955383A (en) Method and system for rapidly positioning automobile diagnosis application program
CN103164238A (en) Method for automatically and continuously installing operating system
CN103744824A (en) Outgoing testing method and testing system
CN102591670A (en) Firmware upgrading system and method
CN107391195A (en) A kind of method that SSD FW upgradings are carried out under linux
CN103593281A (en) Test system and test method
CN105279117A (en) Bridge module for updating basic input output system and updating method thereof
CN103761125A (en) Application system and method for upgrading programs
CN106775847B (en) Board card software version updating method and device
CN111782246A (en) Embedded program upgrading method of multi-node equipment based on bus
CN103440146A (en) BIOS updating method based on cloud storage
US10002082B2 (en) Method and apparatus for cyclical key-off file replacement
CN102968089B (en) Programmable logic controller and implementing method
CN104133743A (en) Method and device for burning file into EMMC (Embedded MultiMedia Card)
CN109614118A (en) A kind of SPI Flash firmware burning method and device
JP6525275B2 (en) Management device, information processing method, and program
CN116028084A (en) Cross-version hot upgrading method, system and terminal based on OpenStack cloud platform
CN104731618A (en) Design method for automatically refreshing firmware based on RACK cabinet node middle plate
CN102135896B (en) A kind of method and system based on Implementation of Embedded System software upgrading

Legal Events

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

Application publication date: 20150506