CN109416629A - Firmware upgrade method, electronic equipment, camera system and unmanned vehicle - Google Patents

Firmware upgrade method, electronic equipment, camera system and unmanned vehicle Download PDF

Info

Publication number
CN109416629A
CN109416629A CN201780027021.4A CN201780027021A CN109416629A CN 109416629 A CN109416629 A CN 109416629A CN 201780027021 A CN201780027021 A CN 201780027021A CN 109416629 A CN109416629 A CN 109416629A
Authority
CN
China
Prior art keywords
firmware updating
application program
processor
firmware
memory block
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
CN201780027021.4A
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.)
Shenzhen Dajiang Innovations Technology Co Ltd
Original Assignee
Shenzhen Dajiang Innovations 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 Shenzhen Dajiang Innovations Technology Co Ltd filed Critical Shenzhen Dajiang Innovations Technology Co Ltd
Publication of CN109416629A publication Critical patent/CN109416629A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

A kind of firmware upgrade method, electronic equipment, camera system and unmanned vehicle.During the firmware upgrade method includes: the application program stored in running application program memory block, firmware updating is obtained from upgrading end equipment, the firmware updating is written in target storage;The Boot loader stored in operation Boot loader memory block, obtains the firmware updating in the target storage, is upgraded according to the firmware updating to the application program stored in application program storage area.It is possible thereby to the case where avoiding abnormal power-down and leading to upgrading failure.

Description

Firmware upgrade method, electronic equipment, camera system and unmanned vehicle
Technical field
This disclosure relates to field of computer technology, in particular to a kind of firmware upgrade method, electronic equipment, camera System and unmanned vehicle.
Background technique
Electronic equipment work operation during, it is possible that various loopholes, compatibility it is not high, viral it is easy invasion, cannot Preferably meet the problems such as user requires, this just needs to upgrade the firmware of electronic equipment.
However, during firmware upgrade, in fact it could happen that the case where abnormal power-down, this will result in upgrading failure, In this case, it may be necessary to upgrading be carried out to electronic equipment using upgrading tool manually and remedied, process is relatively complicated.In addition, If the case where user occurs abnormal power-down in upgrading electronic equipment and cannot upgrade again, needs to return to electronic equipment Manufacturer repairs, and then may influence the daily life and work of user.
Summary of the invention
The disclosure is designed to provide a kind of firmware upgrade method, electronic equipment, camera system and unmanned vehicle, into And one or more is overcome the problems, such as caused by the limitation and defect due to the relevant technologies at least to a certain extent.
According to one aspect of the disclosure, the firmware upgrade method of a kind of electronic equipment is provided, comprising:
During the application program stored in running application program memory block, it is solid that upgrading is obtained from upgrading end equipment The firmware updating is written in target storage by part;
The Boot loader stored in operation Boot loader memory block, obtains the upgrading in the target storage Firmware upgrades the application program stored in application program storage area according to the firmware updating.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising: processor,
The processor is used for:
During the application program stored in running application program memory block, it is solid that upgrading is obtained from upgraded side processor The firmware updating is written in target storage by part;
The Boot loader stored in operation Boot loader memory block, obtains the upgrading in the target storage Firmware upgrades the application program stored in application program storage area according to the firmware updating.
According to one aspect of the disclosure, a kind of firmware upgrade method of camera system is provided, the camera system includes Upgraded side processor and transfer processor, which comprises
The transfer processor turns the process of the application program stored in the application program memory block of processor in operation In, transfer processor obtains the firmware updating for the transfer processor that upgraded side processor is sent, and the firmware updating is written Into first object memory block, wherein the firmware updating of the transfer processor is upgraded side processor from storage firmware updating Storage device read to obtain;
The Boot loader stored in transfer processor operation Boot loader memory block, obtains the first object Firmware updating in memory block rises the application program stored in the application program memory block according to the firmware updating Grade.
According to one aspect of the disclosure, a kind of camera system, including upgraded side processor and transfer processor are provided,
The transfer processor is used for:
During turning the application program stored in the application program memory block of processor in operation, obtain at upgraded side The firmware updating for the transfer processor that device is sent is managed, and the firmware updating is written in first object memory block, wherein institute The firmware updating for stating transfer processor is that upgraded side processor reads to obtain from the storage device of storage firmware updating;
The Boot loader stored in operation Boot loader memory block, obtains in the first object memory block Firmware updating upgrades the application program stored in the application program memory block according to the firmware updating.
According to one aspect of the disclosure, a kind of unmanned vehicle is provided, including the phase according to above-mentioned any one Machine system.
In the technical solution provided by some embodiments of the present disclosure, on the one hand, it is solid to obtain upgrading from upgrading end equipment Firmware updating is written in target storage part, and when running Boot loader, according to the firmware updating of target storage Application program is upgraded, the disclosure is avoided in escalation process by the way that target storage is written in firmware updating from liter Terminal unit obtains the process of firmware updating, greatly reduces upgrading the time it takes, can be to avoid due to rising for a long time Occurs the case where powering off and leading to upgrading failure during grade;On the other hand, for the transfer processor in camera system, pass through First object memory block is written into the firmware updating of the transfer processor obtained from upgraded side processor, and is transported in transfer processor When row Boot loader, its firmware updating is obtained from first object memory block, according to its firmware updating to transfer processor Application program upgraded, can to avoid caused in transfer processor firmware upgrade process due to power-off upgrading fail Situation;In another aspect, the unmanned vehicle includes above-mentioned camera system, right the invention also discloses a kind of unmanned vehicle The case where camera system of unmanned vehicle carries out in firmware upgrade process, can be to avoid upgrading failure is caused due to power-off. In addition, the disclosure can also avoid failing due to upgrading, electronic equipment, camera system or unmanned vehicle are returned to each system by user The process that manufacturer repairs is made, the maintenance rate of these products is also substantially reduced immediately.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the block diagram of the firmware upgrade method correspondence system of the electronic equipment of some technologies;
Fig. 2 diagrammatically illustrates the stream of the firmware upgrade method of electronic equipment according to an exemplary embodiment of the present disclosure Cheng Tu;
The firmware upgrade method that Fig. 3 diagrammatically illustrates electronic equipment according to an exemplary embodiment of the present disclosure is corresponding The block diagram of system;
Fig. 4 diagrammatically illustrates the block diagram of electronic equipment according to an exemplary embodiment of the present disclosure;
Fig. 5 diagrammatically illustrates the stream of the firmware upgrade method of camera system according to an exemplary embodiment of the present disclosure Cheng Tu;And
Fig. 6 diagrammatically illustrates the block diagram of camera system according to an exemplary embodiment of the present disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all steps.For example, the step of having It can also decompose, and the step of having can merge or part merges, therefore the sequence actually executed is possible to according to the actual situation Change.
Current firmware upgrade method is illustrated for including the electronic equipment of processor below, wherein processing Device is any modularized circuit that can have computing capability, specifically, can be executed for the program code in calling memory The circuit of corresponding data operation.In practical applications, the processor can be microcontroller, FPGA, DSP etc..Under Face is schematically illustrated by taking microcontroller as an example, and the place that part herein below is related to microcontroller can be with It is equally substituted using processor.
MCU at runtime, calls the program of the storage in memory, and the memory can be flash, and MCU can be transported The Boot loader (BootLoader) of the Boot loader memory block storage of row flash and the storage of application program memory block Application program (Application), for convenience of description, the Boot loader memory block hereinafter referred to as area Loader, and answering With the program storage area hereinafter referred to as area APP.MCU executes the process that the Boot loader in the area Loader completes firmware upgrade, MCU executes the application programs in the area APP to complete the operation of data.In the prior art, the process of specific firmware upgrade Can be described as follows: as shown in Figure 1, the MCU 111 of electronic equipment 11 run the area APP 112 in store application program when, When there are when firmware updating in discovery upgrading end equipment 12, wherein upgrading end equipment 12 can be a storage device, such as SD A flag bit can be set in card, or other processors, MCU 111, then jumps the storage of the operation area Loader Boot loader is to read the firmware updating from upgrading end equipment 12, using reading read firmware updating while Firmware updating covering upgrades the application program stored in the area APP 112, i.e., using the firmware updating read to the area APP The application program stored in 112 is covered, until the firmware updating reading area Wan Qie APP 112 has covered.It upgrades successfully Afterwards, MCU 111 jumps the application program after the upgrading that the operation area APP 112 stores.
However, MCU in operation Boot loader, on the one hand will obtain from upgrading end equipment, on the other hand utilize liter Grade firmware upgrades the application program stored in the area APP, this process needs to spend longer time, generally reaches second grade Or minute grade.During this period of time if encountering abnormal power-down, it will appear the case where covering of the area APP is not over, lead to APP The code in area is imperfect, will lead to electronic equipment upgrading failure, so that electronic equipment is unable to operate normally.
In consideration of it, present disclose provides a kind of firmware upgrade methods of new electronic equipment.
Fig. 2 diagrammatically illustrates the process of the firmware upgrade method of the electronic equipment of the illustrative embodiments of the disclosure Figure.With reference to Fig. 2, the firmware upgrade method be may comprise steps of:
S20. during the application program stored in running application program memory block, upgrading is obtained from upgrading end equipment The firmware updating is written in target storage by firmware.
In the illustrative embodiments of the disclosure, the executing subject of the method can be electronic equipment, specifically, institute Stating executing subject can be the processor of electronic equipment, wherein and electronic equipment can be any equipment including processor, In, the definition of processor refers to preceding sections.As shown in figure 3, electronic equipment 31 is in operation application program memory block (i.e. APP Area 311) in during the application program that stores, be stored with firmware updating when detecting in upgrading end equipment 32 or detect When the firmware updating that upgraded side firmware is sent, electronic equipment 31 obtains firmware updating from upgrading end equipment 32.Upgrade end equipment 32 It can be the equipment with 31 communication connection of electronic equipment, upgrading end equipment 32 can be and electronic equipment 31 is mutually independent sets It is standby, and it is also possible to configure or be mounted on the equipment on electronic equipment 31, wherein upgrading end equipment 32 can be a storage and fill It sets, such as SD card, or other processors.Upgrading end equipment 32 can store the firmware updating of electronic equipment 31, or Person sends firmware updating to electronic equipment 31.In practical applications, SD card can be installed by upgrading in end equipment 32, upgrade end equipment 32 processor reads the firmware updating stored in SD card, and sends the firmware updating to electronic equipment 31.Electronic equipment 31 When getting the firmware updating, the firmware updating is written to target storage 311.Wherein, target storage 311 can Memory block on the storage device configured on electronic equipment 31 is thought, specifically, target storage 311 can be on electronic equipment 31 Storage area on one flash of configuration.
It is described to obtain firmware updating from upgrading end equipment according to some embodiments of the present disclosure, the firmware updating is write Entering into target storage includes: that multiple data packets of firmware updating are obtained from upgrading end equipment, and by the multiple data packet Directly write to target storage.Specifically, the firmware updating may include multiple data packets, and firmware updating is with multiple data The form of packet is stored in upgrading end equipment or upgraded side sends multiple data packets of firmware updating, electronics to electronic equipment Equipment can obtain multiple data packets from upgrading end equipment, and the multiple data packet is written to target storage.
It is described to obtain firmware updating from upgrading end equipment according to other embodiment, the firmware updating is written to It include: multiple data packets that the firmware updating is obtained from the upgrading end equipment in target storage, by the firmware updating Multiple data packet groups synthesize firmware updating, the firmware updating is written to target storage.Specifically, firstly, electronics is set Standby multiple data packets that firmware updating can be just obtained from upgrading end equipment;Next, electronic equipment can be by the multiple number It is combined into firmware updating according to default rule according to packet, for example, the multiple data packets received can be closed with default rule At a complete firmware updating;Then, firmware updating is written to target storage.
Specifically, described obtain firmware updating from upgrading end equipment, the firmware updating is written in target storage It include: to send multiple data packet request instructions to upgrading end equipment;After every transmission one data packet request instruction, obtain Upgrade a data packet of the firmware updating that end equipment is sent.Specifically, it includes: electronics that firmware updating, which includes multiple data, Equipment can send multiple data packet request instructions to upgrading end equipment, and upgrading end equipment often receives a data packet request and refers to After order, a data packet of firmware updating can be sent to electronic equipment.For example, if firmware updating by 100 data packet groups at, Then electronic equipment can send 100 data packet request instructions to upgrading end equipment.
In addition, working as the sequence number for the data packet for detecting the firmware updating currently got and the last data packet got Sequence number it is discontinuous when, to the upgrading end equipment send reissue commands with indicate the upgrading end equipment from sequence number and before The continuous data packet of the sequence number of one data packet starts to retransmit.Specifically, the data packet of each firmware updating can include One sequence number, electronic equipment can detecte sequence number and the acquisition of the data packet currently got when getting data packet When the sequence number of the previous data packet arrived is discontinuous, when detecting discontinuous, electronic equipment can be to upgrading end equipment hair A reissue commands are sent, to indicate upgrading end equipment weight since the continuous data packet of sequence number of sequence number and last data packet Hair.For example, by taking Serial No. sequence of natural numbers as an example, when electronic equipment detects the Serial No. 50 of the data packet currently obtained And in the case where the Serial No. 30 of the last data packet got, electronic equipment, which can send to retransmit to upgrading end equipment, to be referred to It enables, wherein the reissue commands may include the information of Serial No. 30, upgrade data of the end equipment from Serial No. 31 with instruction Packet starts to retransmit, wherein may include the sequence number of the previous data packet got, i.e. sequence number in the reissue commands 30。
S22. the Boot loader stored in Boot loader memory block is run, is obtained in the target storage Firmware updating upgrades the application program stored in application program storage area according to the firmware updating.
In the illustrative embodiments of the disclosure, when running the application program, the firmware updating is written to In target storage, electronic equipment can jump the Boot loader stored in operation Boot loader memory block, When running the Boot loader, the firmware updating of the available target storage of electronic equipment utilizes the firmware updating The application program of application program storage area is upgraded, to realize to storing in the application program memory block of electronic equipment The purpose that application program is upgraded.
The firmware updating obtained in the target storage, according to the firmware updating in application program storage area It includes: to obtain the data packet of multiple firmware updatings in the target storage that the application program of storage, which carries out upgrading, according to institute Multiple data packets are stated to upgrade the application program stored in application program storage area.Specifically, electronic equipment is available Multiple data packets of firmware updating in target storage, and according to multiple data packets of firmware updating to using program storage area The application program of storage is upgraded, i.e., is carried out using the firmware content in multiple data packets to application program storage application program Covering.
According to some embodiments of the present disclosure, the firmware upgrade method of the electronic equipment of the disclosure can also be included in solid Before part upgrading, to the process that firmware updating is verified, with the correctness for ensuring to upgrade and prevent malice from distorting firmware.From liter Terminal unit obtains the first check information of the firmware updating;After getting the firmware updating, according to the liter got Grade firmware determines the second check information;The Boot loader stored in the operation Boot loader memory block, obtains institute The firmware updating in target storage is stated, the application program stored in application program storage area is carried out according to the firmware updating Upgrading includes: to run in Boot loader memory block and store when first check information and the matching of the second check information Boot loader, obtain the firmware updating in the target storage, according to the firmware updating to application program store The application program stored in area is upgraded.
Firstly, electronic equipment can obtain the first check information of firmware updating from upgrading end equipment, wherein described first Check information is corresponding with firmware updating;Next, electronic equipment is after getting firmware updating, it can be according to the liter got Grade firmware determines the second check information;Then, electronic equipment may determine that the first check information and the second check information whether Match.On the one hand, if the first check information is matched with the second check information, application program is risen according to firmware updating Grade;On the other hand, it if the first check information and the second check information mismatch, needs to re-start escalation process.Wherein, First check information and the second check information can be the MD5 value of the firmware updating, however without being limited thereto, can also use other Encryption Algorithm realizes the consistency checkings of data, for example, can pass through SHA1 algorithm, GPG tool realizes above-mentioned checking procedure.
According to some embodiments of the present disclosure, above-mentioned application program memory block and Boot loader memory block are deposited with target Storage area can be the memory block on same storage device, the i.e. memory of storage Boot loader and application program and storage electricity The memory for the firmware updating that sub- equipment is got is the same memory on electronic equipment.For example, above-mentioned application program is deposited Storage area and Boot loader memory block and target storage may each be the storage in the same flash memory of electronic equipment The memory for the firmware updating that the memory and storage electronic equipment in area, i.e. storage Boot loader and application program are got It is the same flash memory on electronic equipment.
According to other embodiment, above-mentioned application program memory block and Boot loader memory block and target storage The memory block on storage device, the i.e. memory of storage Boot loader and application program and storage electricity can also be different The memory for the firmware updating that sub- equipment is got is the different memories on electronic equipment.For example, above procedure memory block It may each be the memory block on the different flash memories of electronic equipment with Boot loader memory block and target storage, i.e. storage is drawn The memory for the firmware updating that the memory and storage electronic equipment for leading load module and application program are got is electronic equipment On different flash memories.
In the firmware upgrade method of the electronic equipment of the illustrative embodiments of the disclosure, electronic equipment is applied in operation When program, firmware updating is obtained from upgrading end equipment, firmware updating is written in target storage, electronic equipment is guided in operation When load module, it is only necessary to be upgraded according to the firmware updating of target storage to application program, the disclosure will be by that will upgrade Target storage is written in firmware, i.e., the firmware updating for storing target storage is only needed to copy in application program memory block, The time that the process of this copy expends is seldom, usually in millisecond rank, avoids during running Boot loader The process that firmware updating is obtained from upgrading end equipment, greatly reduces upgrading the time it takes, can be to avoid due to for a long time Escalation process in the case where occurring powering off and leading to upgrading failure.
Further, a kind of electronic equipment is additionally provided in this example embodiment.
With reference to Fig. 4, electronic equipment 4 according to an exemplary embodiment of the present disclosure may include processor 41, wherein place Reason device 41 can be used for:
During the application program stored in running application program memory block, it is solid that upgrading is obtained from upgrading end equipment The firmware updating is written in target storage by part;
The Boot loader stored in operation Boot loader memory block, obtains the upgrading in the target storage Firmware upgrades the application program stored in application program storage area according to the firmware updating.
In the electronic equipment of the illustrative embodiments of the disclosure, firmware updating is obtained from upgrading end equipment, will be upgraded Firmware is written in target storage, and when running Boot loader, according to the firmware updating of target storage to using journey Sequence is upgraded, and the disclosure is avoided in escalation process by the way that target storage is written in firmware updating from upgrading end equipment The process for obtaining firmware updating, greatly reduces upgrading the time it takes, can be to avoid due in prolonged escalation process The case where appearance powers off and leads to upgrading failure.
According to an exemplary embodiment of the present disclosure, described to obtain firmware updating from upgrading end equipment, by the firmware updating It is written in target storage and includes:
Multiple data packets that the firmware updating is obtained from the upgrading end equipment, by multiple data of the firmware updating Packet is written to target storage;
The firmware updating obtained in the target storage, according to the firmware updating in application program storage area The application program of storage carries out upgrading
The multiple data packets for obtaining the firmware updating in the target storage, according to the multiple of the firmware updating Data packet upgrades the application program stored in application program storage area.
In the present embodiment, the side upgraded by multiple data packets of firmware updating to application program may be implemented Case.
According to an exemplary embodiment of the present disclosure, described to obtain firmware updating from upgrading end equipment, by the firmware updating It is written in target storage and includes:
Multiple data packets that the firmware updating is obtained from the upgrading end equipment, by multiple data of the firmware updating Package synthesizes firmware updating, and the firmware updating is written to target storage.
In the present embodiment, it may be implemented to upgrade application program based on the firmware updating that multiple data packet groups synthesize Scheme.
According to an exemplary embodiment of the present disclosure, described to obtain firmware updating sequence of data packet packet from the upgrading end equipment It includes:
Multiple data packet request instructions are sent to upgrading end equipment;
After every transmission one data packet request instruction, the one of the firmware updating that upgrading end equipment is sent is obtained A data packet.
By way of the corresponding data packet of a request instruction, facilitating discovery may in transmission of data packets The mistake of appearance can in time restore transmission process.
According to an exemplary embodiment of the present disclosure, each data packet of the firmware updating includes a sequence number, The processor 41 is also used to:
When the sequence of the sequence number and the last data packet got of the data packet for detecting the firmware updating currently got When row number is discontinuous, reissue commands are sent to indicate the upgrading end equipment from sequence number and previous number to the upgrading end equipment Start to retransmit according to the continuous data packet of the sequence number of packet.
It is whether continuous by detection sequence number, the chaotic situation of data packet transmission is avoided, electronic equipment logarithm is facilitated These data packets are integrated and executed according to packet, it can be to avoid mistake occurs in escalation process.
According to an exemplary embodiment of the present disclosure, the processor 41 is also used to:
The first check information of the firmware updating is obtained from upgrading end equipment;After getting the firmware updating, root The second check information is determined according to the firmware updating got;
Wherein, the Boot loader stored in the operation Boot loader memory block, obtains the target storage Firmware updating in area, carrying out upgrading to the application program stored in application program storage area according to the firmware updating includes:
When first check information and the second check information match, stored in operation Boot loader memory block Boot loader obtains the firmware updating in the target storage, according to the firmware updating to using program storage area The application program of middle storage is upgraded.
Pass through the process verified to firmware updating, it can be ensured that the correctness of upgrading simultaneously prevents malice from distorting firmware.
According to an exemplary embodiment of the present disclosure, the application program memory block and Boot loader memory block with it is described Target storage is the memory block on the same storage device.
According to an exemplary embodiment of the present disclosure, the application program memory block and Boot loader memory block with it is described Target storage is different the memory block on storage device.
The disclosure does not carry out application program storage area, Boot loader memory block and the specific location of target storage It limits, facilitates developer and neatly they are stored in conjunction with actual storage situation.
In addition, further, the illustrative embodiments of the disclosure additionally provide a kind of firmware upgrade side of camera system Method.
Fig. 5 diagrammatically illustrates the process of the firmware upgrade method of the camera system of the illustrative embodiments of the disclosure Figure.The camera system may include upgraded side processor and transfer processor.With reference to Fig. 5, the firmware upgrade of camera system Method may comprise steps of:
S50. the transfer processor turns the application program stored in the application program memory block of processor in operation In the process, transfer processor obtains the firmware updating for the transfer processor that upgraded side processor is sent, and by the firmware updating It is written in first object memory block, wherein the firmware updating of the transfer processor is that upgraded side processor upgrades from storage The storage device of firmware reads to obtain.
S52. the Boot loader stored in transfer processor operation Boot loader memory block, described in acquisition Firmware updating in first object memory block, according to the firmware updating to the application journey stored in the application program memory block Sequence is upgraded.
In the firmware upgrade method of the camera system of the illustrative embodiments of the disclosure, in camera system Turn processor, first object memory block is written by the firmware updating for the transfer processor that will be obtained from upgraded side processor, and When transfer processor runs Boot loader, its firmware updating is obtained from first object memory block, it is solid according to its upgrading Part upgrades the application program of transfer processor, can to avoid in transfer processor firmware upgrade process due to power-off and The case where leading to upgrading failure.
Below in conjunction with Fig. 6 block diagram to the firmware upgrade method of the camera systems of the illustrative embodiments of the disclosure It is described in detail.
Each component part of camera system shown in fig. 6 can be illustrated first.Specifically, camera system 6 can be with Including transfer processor 611 and upgraded side processor 62, in certain embodiments, the camera system can also include holder control Processor 612 and electricity processed adjust control processor 613;Upgraded side processor 62 may include deposits corresponding with upgraded side processor 62 Storage device 63.
In addition, upgraded side processor 62 can be established by wired or wireless transmission mode and transfer processor 611 Connection, the transfer processor 611 can be built by being different from the external protocol of the internal agreement with upgraded side processor 62 Vertical connection.
Specifically, transfer processor 611 can be transfer MCU, between internal agreement and external protocol conversion, At least one of control to the imaging sensor (not shown) of camera system, in certain embodiments, when the camera system System is arranged when on unmanned plane, and the transfer processor 611 can be also used for the control to the controlling terminal from unmanned plane Instruction is parsed or is responded;Cradle head control processor 612 can be holder MCU, carry out for the attitude angle to camera system Control, may be implemented to increase the functions such as steady stabilization;Electricity adjusts control processor 613 that can adjust MCU for electricity, in attitude angle control The rotation of motor is controlled;Upgraded side processor 62 can for MCU perhaps DSP for image carry out coding with or The storage work of code stream is completed, in addition, storage device 63 can be a SD card, can store transfer processor 611 thereon Firmware updating, the firmware updating of cradle head control processor 612 and electricity adjust one or more in the firmware updating of control processor 613 A firmware updating.It should be understood that transfer processor 611, cradle head control processor 612, electricity are adjusted control processor 613, are risen Each of grade end processor 62 may each be independent chip, and each chip all has respective flash memory area, at certain In a little embodiments, transfer processor 611, cradle head control processor 612, electricity adjust control processor 613, in upgraded side processor 62 One or more can be set on the same chip.
Next, the method upgraded to each section in camera system 6 is illustrated respectively.
In the first embodiment of the firmware upgrade method of the camera system of the disclosure, to the firmware of transfer processor 611 Escalation process is illustrated.
Firstly, transfer processor 611 turns the application program stored in the application program memory block of processor in operation In the process, the firmware updating for the transfer processor 611 that available upgraded side processor 62 is sent.Specifically, transfer processor 611 can read the version that upgraded side processor 62 sends the firmware updating of transfer processor 611 by wired or wireless protocols This number, the version number that will acquire is compared with the version number of the current firmware of transfer processor 611, and is comparing acquisition In the case that version number is higher than current version number, transfer processor 611 obtains transfer processor 611 from upgraded side processor 62 Firmware updating, and the firmware updating is written in first object memory block, and a flag bit is set.Wherein, first object is deposited Storage area can be, for example, the memory block on the flash memory communicated to connect with transfer processor 611.In addition, the firmware updating can be liter Grade end processor 62 is obtained from the reading of storage device 63 for being stored with firmware updating of insertion.
Next, transfer processor 611 can run the Boot loader stored in Boot loader memory block, from Obtain firmware updating in first object memory block, and according to the firmware updating to depositing in the application program memory block of transfer processor The application program of storage is upgraded.
It is set it should be noted that the transfer processor 611 of the camera system 6 in the disclosure can be electronics described above Corresponding electronic equipment in standby firmware upgrade method.It is recorded in the firmware upgrade method of above-mentioned electronic equipment and electronic equipment Content also can be applied to transfer processor 611 described herein, details are not described herein.
In the second embodiment of the firmware upgrade method of the camera system of the disclosure, to the firmware of upgraded side processor 62 Escalation process is illustrated.When the firmware of the determining upgraded side processor 62 of the transfer processor 611 needs to upgrade, institute It states transfer processor 611 and sends the first upgrade command to the upgraded side processor;The upgraded side processor 62 is receiving After first upgrade command, the firmware updating of upgraded side processor 62 is obtained from the storage device 63 of storage firmware updating, And the application program stored in the application program memory block of upgraded side processor 62 is upgraded according to the firmware updating.
Specifically, firstly, transfer processor 611 may determine that whether upgraded side processor 62 needs firmware updating.Specifically , transfer processor 611 can read storage firmware updating by upgraded side processor 62 by wired or wireless protocols The version number of the firmware updating of the upgraded side processor 62 stored in storage device 63 reads upgraded side processor 62 and is currently running Firmware version number, the two version numbers are compared, in the version number for comparing firmware updating than the version that is currently running In the case where number height, then show that the firmware of upgraded side processor 62 needs to upgrade.
When the firmware of upgraded side processor 62 needs to upgrade, transfer processor 611 can be sent out to upgraded side processor 62 Send the first upgrade command.
Next, upgraded side processor 62 is after receiving first upgrade command, it can depositing from storage firmware updating The firmware updating of upgraded side processor 62 is obtained in storage device 63, and according to firmware updating to the application journey of upgraded side processor 62 The application program of sequence memory block storage is upgraded.
Specifically, the application journey that upgraded side processor 62 stores in the application program memory block of operation upgraded side processor During sequence, after operation receives the first upgrade command, it can obtain and rise from the storage device 63 of storage firmware updating The firmware updating of grade end processor 62, and firmware updating is written to the second target storage.Wherein, the second target storage can To be the memory block on the flash memory communicated to connect with upgraded side processor 62.Then, upgraded side processor 62 is run at upgraded side Manage device Boot loader memory block Boot loader, obtain the second target storage in firmware updating, and according to Firmware updating upgrades the application program stored in the application program memory block of upgraded side processor 62.
In the 3rd embodiment of the firmware upgrade method of the camera system of the disclosure, to cradle head control processor 612 Firmware upgrade process is illustrated.Cradle head control processor 612 is connect with the transfer processor 611, is handled in the transfer When device 611 judges that the firmware of the cradle head control processor 612 needs to upgrade, the transfer processor 611 is obtained at upgraded side The firmware updating for the cradle head control processor 612 that device is sent is managed, and the firmware updating is sent to cradle head control processor 612, wherein the firmware updating of the cradle head control processor 612 is the storage of upgraded side processor 62 from storage firmware updating Reading obtains in device 63;Cradle head control processor 612 is after receiving the firmware updating, according to the firmware updating pair The application program stored in the application program memory block of cradle head control processor 612 is upgraded.
Specifically, firstly, transfer processor 611 may determine that whether cradle head control processor 612 needs firmware updating.Tool Body, transfer processor 611 can store in the storage device 63 by reading storage firmware updating in upgraded side processor 62 Cradle head control processor 612 firmware updating version number, and can pass through internal agreement obtain cradle head control processor 612 The two version numbers are compared by the version number of currently running firmware, in the version number for comparing firmware updating than current In the case that the version number of operation is high, then show that the firmware of cradle head control processor 612 needs to upgrade.
When the firmware of cradle head control processor 612 needs to upgrade, the available upgraded side processor of transfer processor 611 The firmware updating of the 62 cradle head control processors 612 sent, and firmware updating is sent to cradle head control processor 612, wherein The firmware updating of cradle head control processor 612 is upgraded side processor 62 read from the storage device 63 of storage firmware updating and It obtains.
Cradle head control processor 612, can be according to firmware updating to cradle head control processor after receiving firmware updating The application program stored in 612 application program memory block is upgraded.
Specifically, what cradle head control processor 612 stored in the application program memory block of operation cradle head control processor During application program, after receiving firmware updating, firmware updating can be written to third target storage, and be arranged One flag bit.Wherein, third target storage can be the storage on the flash memory communicated to connect with cradle head control processor 612 Area.Then, cradle head control processor 612 runs the boot-loader of the Boot loader memory block storage of cradle head control processor Program, the flag bit based on setting obtain the firmware updating in third target storage, and according to firmware updating to cradle head control The application program stored in the application program memory block of processor 612 is upgraded.
In the fourth embodiment of the firmware upgrade method of the camera system of the disclosure, control processor 613 is adjusted to electricity Firmware upgrade process is illustrated.Electricity adjusts control processor 613 to connect with the cradle head control processor 612;In the transfer When processor 611 judges that the electricity adjusts the firmware of control processor 613 to need to upgrade by the cradle head control processor 612, The transfer processor 611 obtains the firmware updating that the electricity that upgraded side processor 62 is sent adjusts control processor 613, and will be described Firmware updating is sent to electricity by cradle head control processor 612 and adjusts control processor 613, wherein the electricity adjusts control processor 613 firmware updating, which is upgraded side processor 62, to be read from the storage device 63 of storage firmware updating and obtains;Electricity regulation system Processor 613 adjusts the application program of control processor 613 according to the firmware updating after receiving the firmware updating to electricity The application program stored in memory block is upgraded.
Specifically, firstly, transfer processor 611 can judge that electricity adjusts control processor by cradle head control processor 612 Whether 613 firmware, which needs, upgrades.Specifically, transfer processor 611 can obtain electric regulation by cradle head control processor 612 The version number of the currently running firmware of processor 613 processed, and can be by reading storage upgrading in upgraded side processor 62 Stored in the storage device 63 of firmware electricity adjust control processor 613 firmware updating version number, by the two version numbers into Row compares, and in the case where the version number for comparing firmware updating is higher than currently running version number, then shows at electric regulation The firmware of reason device 613 needs to upgrade.
When electricity adjusts the firmware of control processor 613 to need to upgrade, the available upgraded side processor of transfer processor 611 62 electricity sent adjust the firmware updating of control processor 613, and the firmware updating is sent to by cradle head control processor 612 Electricity adjusts control processor 613, wherein it is that upgraded side processor 62 upgrades from storage that electricity, which adjusts the firmware updating of control processor 613, It reads and obtains in the storage device 63 of firmware.
Electricity adjusts control processor 613 after receiving firmware updating, can adjust control processor to electricity according to firmware updating Application program memory block in the application program that stores upgraded.
Specifically, electricity adjusts control processor 613 to store in the application program memory block that operation electricity adjusts control processor During application program, after receiving firmware updating, firmware updating can be written to the 4th target storage.Wherein, 4th target storage can be the flash memory area that electricity adjusts control processor 613.Then, electricity adjusts control processor 613 to run electric tune The Boot loader of the Boot loader memory block storage of control processor, the upgrading obtained in the 4th target storage are solid Part, and the application program stored in the application program memory block of electricity tune control processor 613 is upgraded according to firmware updating.
Control processor 613 is adjusted by cradle head control processor 612 and electricity in addition, transfer processor 611 is described above The process interacted, it is understood, however, that design of the invention can also include transfer processor 611 directly with electricity Control processor 613 is adjusted to interact to realize the scheme for adjusting the firmware of control processor 613 to be upgraded electricity.
Furthermore, it is to be noted however that on the one hand, during each equipment is upgraded, transfer processor can be determined When inquiry upgrading whether complete;On the other hand, the term " first " of above-mentioned use, " second ", " third ", " the 4th " merely to The purpose of differentiation does not indicate the limitation to present disclosure.
By the firmware upgrade method of above-mentioned camera system, realizing respectively to transfer processor, cradle head control processing While device, electricity adjust the escalation process of control processor and upgraded side processor, firstly, firmware updating is copied to corresponding equipment Flash memory area, and be arranged a flag bit be convenient for determine firmware updating position;Next, each equipment jumps to Boot loader Area runs Boot loader, and firmware updating is directly acquired from flash memory area.On the one hand, this process time-consuming is Millisecond, is avoided Carry out escalation process while current some technologies directly obtain firmware updating from upgraded side processor and cause it is time-consuming compared with Long problem, and then avoid since some technology upgrading take a long time, the problem of upgrading failure is caused after abnormal power-down;Separately On the one hand, in some technologies, in firmware updating, Boot loader needs to increase the behaviour such as the Bluetooth protocol parsing entirely upgraded Make, this will cause application program and Boot loader has Bluetooth protocol parsing code, and the same code in many places place will Increase the cost of system maintenance, and increase the complexity of Boot loader, using the firmware of the camera system of the disclosure Upgrade method can be effectively reduced the complexity of this Boot loader.
Further, the illustrative embodiments of the disclosure additionally provide a kind of camera system.
Still referring to FIG. 6, the camera system 6 of the illustrative embodiments of the disclosure may include upgraded side processor 62 and Transfer processor 611, wherein the transfer processor 611 is used for:
During turning the application program stored in the application program memory block of processor 611 in operation, upgrading is obtained The firmware updating for the transfer processor 611 for holding processor 62 to send, and the firmware updating is written to first object memory block In, wherein the firmware updating of the transfer processor 611 is storage device 63 of the upgraded side processor 62 from storage firmware updating Reading obtains;
The Boot loader stored in operation Boot loader memory block, obtains in the first object memory block Firmware updating upgrades the application program stored in the application program memory block according to the firmware updating.
In the camera system of the illustrative embodiments of the disclosure, for the transfer processor 611 in camera system, lead to The firmware updating write-in first object memory block for the transfer processor that will be obtained from upgraded side processor 62 is crossed, and is handled in transfer When device 611 runs Boot loader, its firmware updating is obtained from first object memory block, according to its firmware updating to transfer The application program of processor 611 is upgraded, and can be led to avoid in 611 firmware upgrade process of transfer processor due to power-off The case where causing upgrading failure.
According to an exemplary embodiment of the present disclosure, the transfer processor 611 is used to determine in the transfer processor 611 When the firmware of the upgraded side processor 62 needs to upgrade, Xiang Suoshu upgraded side processor 62 sends the first upgrade command;
The upgraded side processor 62 is used for after receiving first upgrade command, from the storage of storage firmware updating The firmware updating of upgraded side processor 62, and the application according to the firmware updating to upgraded side processor 62 are obtained in device 63 The application program stored in program storage area is upgraded.
According to an exemplary embodiment of the present disclosure, after receiving first upgrade command, from storage firmware updating The firmware updating of upgraded side processor 62 is obtained in storage device 63, and according to the firmware updating to upgraded side processor 62 The application program stored in application program memory block carries out upgrading
During the application program stored in the application program memory block for running upgraded side processor 62, connect in operation After receiving first upgrade command, the upgrading that upgraded side processor 62 is obtained from the storage device 63 of storage firmware updating is solid The firmware updating is written to the second target storage by part;
The Boot loader for running the Boot loader memory block storage of upgraded side processor 62, obtains described second Firmware updating in target storage, according to the firmware updating to the application program stored in the application program memory block into Row upgrading.
Through the foregoing embodiment, the escalation process of upgraded side processor itself may be implemented, and can be to avoid due to power-off And the case where leading to upgrading failure.
According to an exemplary embodiment of the present disclosure, the camera system 6 further includes connecting with the transfer processor 611 Cradle head control processor 612;Wherein,
The transfer processor 611 is also used to when judging that the firmware of the cradle head control processor 612 needs to upgrade, The firmware updating for the cradle head control processor 612 that upgraded side processor 62 is sent is obtained, and the firmware updating is sent to cloud Platform control processor 612, wherein the firmware updating of the cradle head control processor 612 is that upgraded side processor 62 rises from storage Reading obtains in the storage device 63 of grade firmware;
The cradle head control processor 612, for after receiving the firmware updating, according to the firmware updating to cloud The application program stored in the application program memory block of platform control processor 612 is upgraded.
According to an exemplary embodiment of the present disclosure, after receiving the firmware updating, according to the firmware updating to cloud The application program stored in the application program memory block of platform control processor 612 carries out upgrading
During the application program stored in the application program memory block for running cradle head control processor 612, connecing After receiving the firmware updating, the firmware updating is written to third target storage;
The Boot loader for running the Boot loader memory block storage of cradle head control processor 612, described in acquisition Firmware updating in third target storage, according to the firmware updating to the application journey stored in the application program memory block Sequence is upgraded.
Through the foregoing embodiment, may be implemented the escalation process of cradle head control processor, and can to avoid due to power-off and The case where leading to upgrading failure.
According to an exemplary embodiment of the present disclosure, the camera system 6 further includes connecting with the cradle head control processor 612 The electricity connect adjusts control processor 613;Wherein,
The transfer processor 611 is also used to judging by the cradle head control processor 612 at the electric regulation system When the firmware of reason device 613 needs to upgrade, the firmware updating for the cradle head control processor 612 that upgraded side processor 62 is sent is obtained, And the firmware updating is sent to electricity by cradle head control processor 612 and adjusts control processor 613, wherein the electricity regulation The firmware updating of processor 613 processed, which is upgraded side processor 62, to be read from the storage device 63 of storage firmware updating and obtains;
The electricity adjusts control processor 613, for after receiving the firmware updating, according to the firmware updating to electricity The application program stored in the application program memory block of control processor 613 is adjusted to be upgraded.
According to an exemplary embodiment of the present disclosure, after receiving the firmware updating, according to the firmware updating to electricity The application program stored in the application program memory block of tune control processor 613 carries out upgrading
During the application program stored in the application program memory block that operation electricity adjusts control processor 613, connecing After receiving the firmware updating, the firmware updating is written to the 4th target storage;
Operation electricity adjusts the Boot loader of the Boot loader memory block storage of control processor 613, described in acquisition Firmware updating in 4th target storage, according to the firmware updating to the application journey stored in the application program memory block Sequence is upgraded.
Through the foregoing embodiment, may be implemented the escalation process that electricity adjusts control processor, and can to avoid due to power-off and The case where leading to upgrading failure.
Further, the disclosure additionally provides a kind of unmanned vehicle, which may include above-mentioned camera system System.
It carries out to cause to upgrade to avoid due to power-off in firmware upgrade process in the camera system to unmanned vehicle The case where failure.
In addition, the disclosure can also avoid failing due to upgrading, user is by electronic equipment, camera system or unmanned vehicle The process that each manufacturer repairs is returned, the maintenance rate of these products is also substantially reduced immediately.
It should be noted that although describing each step of method in the disclosure in the accompanying drawings with particular order, this is simultaneously Undesired or hint must execute these steps in this particular order, or have to carry out the ability of step shown in whole Realize desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, And/or a step is decomposed into execution of multiple steps etc..
In addition, each functional module and the above method of the program analysis of running performance device due to embodiment of the present invention It is identical in invention embodiment, therefore details are not described herein.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the attached claims.

Claims (31)

1. the firmware upgrade method of a kind of electronic equipment characterized by comprising
During the application program stored in running application program memory block, firmware updating is obtained from upgrading end equipment, it will The firmware updating is written in target storage;
The Boot loader stored in operation Boot loader memory block, the upgrading obtained in the target storage are solid Part upgrades the application program stored in application program storage area according to the firmware updating.
2. firmware upgrade method according to claim 1, which is characterized in that described to obtain upgrading admittedly from upgrading end equipment Part, the firmware updating is written in target storage includes:
Multiple data packets that the firmware updating is obtained from the upgrading end equipment, multiple data packets of the firmware updating are write Enter to target storage;
The firmware updating obtained in the target storage, according to the firmware updating to being stored in application program storage area Application program carry out upgrading include:
The multiple data packets for obtaining the firmware updating in the target storage, according to multiple data of the firmware updating It wraps and the application program stored in application program storage area is upgraded.
3. firmware upgrade method according to claim 1, which is characterized in that described to obtain upgrading admittedly from upgrading end equipment Part, the firmware updating is written in target storage includes:
Multiple data packets that the firmware updating is obtained from the upgrading end equipment, by multiple data packet groups of the firmware updating Firmware updating is synthesized, the firmware updating is written to target storage.
4. firmware upgrade method according to claim 2 or 3, which is characterized in that described to be obtained from the upgrading end equipment Firmware updating sequence of data packet includes:
Multiple data packet request instructions are sent to upgrading end equipment;
After every transmission one data packet request instruction, a number of the firmware updating that upgrading end equipment is sent is obtained According to packet.
5. firmware upgrade method according to claim 2 or 3, which is characterized in that each data of the firmware updating Bao Jun includes a sequence number, the method also includes:
When the sequence number of the sequence number and the last data packet got of the data packet for detecting the firmware updating currently got When discontinuous, reissue commands are sent to indicate the upgrading end equipment from sequence number and last data packet to the upgrading end equipment The continuous data packet of sequence number start to retransmit.
6. firmware upgrade method according to claim 1, which is characterized in that the method also includes from upgrading end equipment Obtain the first check information of the firmware updating;It is true according to the firmware updating got after getting the firmware updating Fixed second check information;
The Boot loader stored in the operation Boot loader memory block, obtains the upgrading in the target storage Firmware, carrying out upgrading to the application program stored in application program storage area according to the firmware updating includes:
When first check information and the second check information match, the guidance stored in Boot loader memory block is run Load module obtains the firmware updating in the target storage, according to the firmware updating to application program storage area in deposit The application program of storage is upgraded.
7. firmware upgrade method according to claim 1, which is characterized in that the application program memory block and boot-loader Program storage area and the target storage are the memory blocks on the same storage device.
8. firmware upgrade method according to claim 1, which is characterized in that the application program memory block and boot-loader Program storage area and the target storage are different the memory block on storage device.
9. a kind of electronic equipment characterized by comprising processor,
The processor is used for:
During the application program stored in running application program memory block, firmware updating is obtained from upgrading end equipment, it will The firmware updating is written in target storage;
The Boot loader stored in operation Boot loader memory block, the upgrading obtained in the target storage are solid Part upgrades the application program stored in application program storage area according to the firmware updating.
10. electronic equipment according to claim 9, which is characterized in that it is described to obtain firmware updating from upgrading end equipment, it will The firmware updating, which is written in target storage, includes:
Multiple data packets that the firmware updating is obtained from the upgrading end equipment, multiple data packets of the firmware updating are write Enter to target storage;
The firmware updating obtained in the target storage, according to the firmware updating to being stored in application program storage area Application program carry out upgrading include:
The multiple data packets for obtaining the firmware updating in the target storage, according to multiple data of the firmware updating It wraps and the application program stored in application program storage area is upgraded.
11. electronic equipment according to claim 9, which is characterized in that it is described to obtain firmware updating from upgrading end equipment, it will The firmware updating, which is written in target storage, includes:
Multiple data packets that the firmware updating is obtained from the upgrading end equipment, by multiple data packet groups of the firmware updating Firmware updating is synthesized, the firmware updating is written to target storage.
12. electronic equipment described in 0 or 11 according to claim 1, which is characterized in that described obtain from the upgrading end equipment rises Grade firmware data packet sequence include:
Multiple data packet request instructions are sent to upgrading end equipment;
After every transmission one data packet request instruction, a number of the firmware updating that upgrading end equipment is sent is obtained According to packet.
13. electronic equipment described in 0 or 11 according to claim 1, which is characterized in that each data packet of the firmware updating Include a sequence number, the processor is also used to:
When the sequence number of the sequence number and the last data packet got of the data packet for detecting the firmware updating currently got When discontinuous, reissue commands are sent to indicate the upgrading end equipment from sequence number and last data packet to the upgrading end equipment The continuous data packet of sequence number start to retransmit.
14. electronic equipment according to claim 9, which is characterized in that the processor is also used to:
The first check information of the firmware updating is obtained from upgrading end equipment;After getting the firmware updating, according to obtaining The firmware updating got determines the second check information;
Wherein, the Boot loader stored in the operation Boot loader memory block, obtains in the target storage Firmware updating, carrying out upgrading to the application program that stores in application program storage area according to the firmware updating includes:
When first check information and the second check information match, the guidance stored in Boot loader memory block is run Load module obtains the firmware updating in the target storage, according to the firmware updating to application program storage area in deposit The application program of storage is upgraded.
15. electronic equipment according to claim 9, which is characterized in that the application program memory block and boot-loader journey Sequence memory block and the target storage are the memory blocks on the same storage device.
16. electronic equipment according to claim 9, which is characterized in that the application program memory block and boot-loader journey Sequence memory block and the target storage are different the memory block on storage device.
17. a kind of firmware upgrade method of camera system, the camera system includes upgraded side processor and transfer processor; It is characterized in that, which comprises
During the transfer processor turns the application program stored in the application program memory block of processor in operation, in Turn processor and obtain the firmware updating for the transfer processor that upgraded side processor is sent, and the firmware updating is written to first In target storage, wherein the firmware updating of the transfer processor is the storage of upgraded side processor from storage firmware updating Device reads to obtain;
The Boot loader stored in transfer processor operation Boot loader memory block, obtains the first object Firmware updating in memory block rises the application program stored in the application program memory block according to the firmware updating Grade.
18. firmware upgrade method according to claim 17, which is characterized in that the firmware upgrade method further include:
When the transfer processor determines that the firmware of the upgraded side processor needs to upgrade, the transfer processor is to described Upgraded side processor sends the first upgrade command;
The upgraded side processor is obtained from the storage device of storage firmware updating after receiving first upgrade command The firmware updating of upgraded side processor, and according to the firmware updating to being stored in the application program memory block of upgraded side processor Application program upgraded.
19. firmware upgrade method according to claim 18, which is characterized in that the upgraded side processor is receiving After stating the first upgrade command, the firmware updating of acquisition upgraded side processor from the storage device of storage firmware updating, and according to The firmware updating carries out upgrading to the application program stored in the application program memory block of upgraded side processor
During the application program that upgraded side processor stores in the application program memory block for running upgraded side processor, After operation receives first upgrade command, the upgrading of upgraded side processor is obtained from the storage device of storage firmware updating The firmware updating is written to the second target storage by firmware;
Upgraded side processor runs the Boot loader of the Boot loader memory block storage of upgraded side processor, obtains institute The firmware updating in the second target storage is stated, the application according to the firmware updating to storing in the application program memory block Program is upgraded.
20. firmware upgrade method according to claim 18, which is characterized in that the camera system further include with it is described in Turn the cradle head control processor of processor connection;The firmware upgrade method further include:
When the transfer processor judges that the firmware of the cradle head control processor needs to upgrade, the transfer processor is obtained The firmware updating for the cradle head control processor that upgraded side processor is sent, and the firmware updating is sent to cradle head control processing Device, wherein the firmware updating of the cradle head control processor is upgraded side processor from the storage device of storage firmware updating What reading obtained;
Cradle head control processor answers cradle head control processor after receiving the firmware updating, according to the firmware updating Upgraded with the application program stored in program storage area.
21. firmware upgrade method according to claim 20, which is characterized in that the cradle head control processor is receiving After the firmware updating, according to the firmware updating to the application journey stored in the application program memory block of cradle head control processor Sequence carries out upgrading
The process for the application program that cradle head control processor stores in the application program memory block of operation cradle head control processor In, after receiving the firmware updating, the firmware updating is written to third target storage;
Cradle head control processor runs the Boot loader of the Boot loader memory block storage of cradle head control processor, obtains The firmware updating in the third target storage is taken, according to the firmware updating to storing in the application program memory block Application program is upgraded.
22. firmware upgrade method according to claim 20, which is characterized in that the camera system further includes and the cloud The electricity of platform control processor connection adjusts control processor;The method also includes:
Judge that the electricity adjusts the firmware of control processor to need to rise by the cradle head control processor in the transfer processor When grade, the transfer processor obtains the firmware updating for the cradle head control processor that upgraded side processor is sent, and by the liter Grade firmware is sent to electricity by cradle head control processor and adjusts control processor, wherein the electricity adjusts the upgrading of control processor solid Part, which is upgraded side processor, to be read from the storage device of storage firmware updating and obtains;
Electricity adjusts control processor after receiving the firmware updating, adjusts control processor to answer electricity according to the firmware updating Upgraded with the application program stored in program storage area.
23. firmware upgrade method according to claim 22, which is characterized in that
The electricity adjusts control processor after receiving the firmware updating, adjusts control processor to electricity according to the firmware updating Application program memory block in the application program that stores carry out upgrading and include:
The process for the application program that electricity adjusts control processor to store in the application program memory block that operation electricity adjusts control processor In, after receiving the firmware updating, the firmware updating is written to the 4th target storage;
Electricity adjusts the Boot loader of the Boot loader memory block storage of control processor operation electricity tune control processor, obtains The firmware updating in the 4th target storage is taken, according to the firmware updating to storing in the application program memory block Application program is upgraded.
24. a kind of camera system, which is characterized in that including upgraded side processor and transfer processor,
The transfer processor is used for:
During turning the application program stored in the application program memory block of processor in operation, upgraded side processor is obtained The firmware updating of the transfer processor of transmission, and the firmware updating is written in first object memory block, wherein in described The firmware updating for turning processor is that upgraded side processor reads to obtain from the storage device of storage firmware updating;
The Boot loader stored in operation Boot loader memory block, obtains the upgrading in the first object memory block Firmware upgrades the application program stored in the application program memory block according to the firmware updating.
25. camera system according to claim 24, which is characterized in that
When the transfer processor is for determining that the firmware of the upgraded side processor needs to upgrade in the transfer processor, to The upgraded side processor sends the first upgrade command;
The upgraded side processor is used for after receiving first upgrade command, from the storage device of storage firmware updating The firmware updating of upgraded side processor is obtained, and according to the firmware updating in the application program memory block of upgraded side processor The application program of storage is upgraded.
26. camera system according to claim 25, which is characterized in that after receiving first upgrade command, from The firmware updating that upgraded side processor is obtained in the storage device of firmware updating is stored, and according to the firmware updating to upgraded side The application program stored in the application program memory block of processor carries out upgrading
During the application program stored in the application program memory block for running upgraded side processor, institute is received in operation After stating the first upgrade command, the firmware updating of upgraded side processor is obtained from the storage device of storage firmware updating, it will be described Firmware updating is written to the second target storage;
The Boot loader for running the Boot loader memory block storage of upgraded side processor, obtains second target and deposits Firmware updating in storage area rises the application program stored in the application program memory block according to the firmware updating Grade.
27. camera system according to claim 25, which is characterized in that the camera system further includes and the transfer correspondence Manage the cradle head control processor of device connection;Wherein,
The transfer processor is also used to when judging that the firmware of the cradle head control processor needs to upgrade, and obtains upgraded side The firmware updating for the cradle head control processor that processor is sent, and the firmware updating is sent to cradle head control processor, In, the firmware updating of the cradle head control processor is that upgraded side processor is read from the storage device of storage firmware updating It arrives;
The cradle head control processor, for after receiving the firmware updating, according to the firmware updating to cradle head control The application program stored in the application program memory block of processor is upgraded.
28. camera system according to claim 27, which is characterized in that after receiving the firmware updating, according to institute It states firmware updating and the application program stored in the application program memory block of cradle head control processor upgrade and include:
It is described receiving during the application program stored in the application program memory block for running cradle head control processor After firmware updating, the firmware updating is written to third target storage;
The Boot loader for running the Boot loader memory block storage of cradle head control processor, obtains the third target Firmware updating in memory block rises the application program stored in the application program memory block according to the firmware updating Grade.
29. camera system according to claim 27, which is characterized in that the camera system further includes and the holder control The electricity of processor connection processed adjusts control processor;Wherein,
The transfer processor is also used to judging that the electricity adjusts the firmware of control processor by the cradle head control processor When needing to upgrade, the firmware updating for the cradle head control processor that upgraded side processor is sent is obtained, and the firmware updating is led to It crosses cradle head control processor and is sent to electricity tune control processor, wherein it is upgrading that the electricity, which adjusts the firmware updating of control processor, Processor reading from the storage device of storage firmware updating in end obtains;
The electricity adjusts control processor, for being made according to the firmware updating to electricity regulation after receiving the firmware updating The application program stored in the application program memory block of processor is upgraded.
30. camera system according to claim 29, which is characterized in that after receiving the firmware updating, according to institute It states firmware updating and the application program stored in the application program memory block of electricity tune control processor upgrade and include:
It is described receiving during the application program stored in the application program memory block that operation electricity adjusts control processor After firmware updating, the firmware updating is written to the 4th target storage;
Operation electricity adjusts the Boot loader of the Boot loader memory block storage of control processor, obtains the 4th target Firmware updating in memory block rises the application program stored in the application program memory block according to the firmware updating Grade.
31. a kind of unmanned vehicle, which is characterized in that including according to the described in any item camera systems of claim 24 to 30.
CN201780027021.4A 2017-11-01 2017-11-01 Firmware upgrade method, electronic equipment, camera system and unmanned vehicle Pending CN109416629A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/108926 WO2019084843A1 (en) 2017-11-01 2017-11-01 Firmware upgrading method, electronic device, camera system, and unmanned aerial vehicle

Publications (1)

Publication Number Publication Date
CN109416629A true CN109416629A (en) 2019-03-01

Family

ID=65463393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780027021.4A Pending CN109416629A (en) 2017-11-01 2017-11-01 Firmware upgrade method, electronic equipment, camera system and unmanned vehicle

Country Status (2)

Country Link
CN (1) CN109416629A (en)
WO (1) WO2019084843A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328272A (en) * 2019-08-05 2021-02-05 浙江宇视科技有限公司 Algorithm upgrading method, device, equipment and storage medium
CN112445507A (en) * 2019-09-05 2021-03-05 阿里巴巴集团控股有限公司 Equipment upgrading method and device
CN112783535A (en) * 2021-03-10 2021-05-11 广州优胜汽车科技有限公司 Firmware upgrading method, embedded device and storage medium
CN112905218A (en) * 2021-02-07 2021-06-04 杭州海康威视数字技术股份有限公司 Firmware upgrading method, device and equipment
CN112926063A (en) * 2020-11-25 2021-06-08 杭州视洞科技有限公司 Embedded equipment information acquisition method based on SD card authentication
CN113946360A (en) * 2021-12-21 2022-01-18 万帮数字能源股份有限公司 Method and device for upgrading boot program of power conversion controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030159150A1 (en) * 1998-10-06 2003-08-21 Richard Steven Chernock Method for automatic and semi-automatic event scheduling based on information embedded in multimedia content
CN104007996A (en) * 2014-06-16 2014-08-27 南京融教科技有限公司 Reliable firmware upgrading realizing method for distributed control system
CN104331312A (en) * 2014-11-24 2015-02-04 东软熙康健康科技有限公司 Firmware updating method and embedded device
CN108920162A (en) * 2018-06-29 2018-11-30 深圳市道通智能航空技术有限公司 A kind of module updating method in UAV system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6813777B1 (en) * 1998-05-26 2004-11-02 Rockwell Collins Transaction dispatcher for a passenger entertainment system, method and article of manufacture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030159150A1 (en) * 1998-10-06 2003-08-21 Richard Steven Chernock Method for automatic and semi-automatic event scheduling based on information embedded in multimedia content
CN104007996A (en) * 2014-06-16 2014-08-27 南京融教科技有限公司 Reliable firmware upgrading realizing method for distributed control system
CN104331312A (en) * 2014-11-24 2015-02-04 东软熙康健康科技有限公司 Firmware updating method and embedded device
CN108920162A (en) * 2018-06-29 2018-11-30 深圳市道通智能航空技术有限公司 A kind of module updating method in UAV system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328272A (en) * 2019-08-05 2021-02-05 浙江宇视科技有限公司 Algorithm upgrading method, device, equipment and storage medium
CN112328272B (en) * 2019-08-05 2024-03-22 浙江宇视科技有限公司 Algorithm upgrading method, device, equipment and storage medium
CN112445507A (en) * 2019-09-05 2021-03-05 阿里巴巴集团控股有限公司 Equipment upgrading method and device
CN112445507B (en) * 2019-09-05 2024-06-11 阿里巴巴集团控股有限公司 Equipment upgrading method and device
CN112926063A (en) * 2020-11-25 2021-06-08 杭州视洞科技有限公司 Embedded equipment information acquisition method based on SD card authentication
CN112905218A (en) * 2021-02-07 2021-06-04 杭州海康威视数字技术股份有限公司 Firmware upgrading method, device and equipment
CN112905218B (en) * 2021-02-07 2023-05-26 杭州海康威视数字技术股份有限公司 Firmware upgrading method, device and equipment
CN112783535A (en) * 2021-03-10 2021-05-11 广州优胜汽车科技有限公司 Firmware upgrading method, embedded device and storage medium
CN113946360A (en) * 2021-12-21 2022-01-18 万帮数字能源股份有限公司 Method and device for upgrading boot program of power conversion controller

Also Published As

Publication number Publication date
WO2019084843A1 (en) 2019-05-09

Similar Documents

Publication Publication Date Title
CN109416629A (en) Firmware upgrade method, electronic equipment, camera system and unmanned vehicle
CN107926075B (en) System and method for supporting data communication in heterogeneous environment
CN112988183A (en) Program upgrading method and device, electronic equipment and storage medium
CN109002310A (en) firmware upgrade method
WO2020000700A1 (en) Module upgrading method in unmanned aerial vehicle system, and unmanned aerial vehicle system
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN109697079A (en) The update method and device of bootstrap loader
CN105589699A (en) Serial number information update method, device and terminal
CN109324815A (en) Monitoring method, device, equipment and the computer readable storage medium of system upgrade
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
KR20210060213A (en) Method for preloading application and electronic device supporting the same
CN109002305A (en) A kind of update method and its system of device program
CN110865826A (en) Robot software upgrading method, device, equipment and storage medium
CN106201649B (en) Virtual machine for optical module monitoring
CN111984287A (en) Equipment upgrading method and system
CN115544968B (en) Method, system, equipment and storage medium compatible with multi-project equipment tree
CN113254158B (en) Deployment method and device of deep learning system
CN107453959B (en) Network card management method and device
WO2019242133A1 (en) Software upgrading method in electronic device, apparatus and electronic device
CN113377425B (en) BMC firmware generation method and device, BMC starting method and device and storage medium
CN114327671A (en) Parameter configuration method, device, equipment and storage medium
CN109144554A (en) Firmware upgrade method, relevant device, system and medium
CN113918179A (en) Method and system for automatically installing OS (operating system) by cooperation of host and intelligent network card under Linux
CN114924772A (en) Updating method and equipment of algorithm package

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190301

WD01 Invention patent application deemed withdrawn after publication