CN110187899A - A kind of firmware programming method, apparatus and its relevant device - Google Patents

A kind of firmware programming method, apparatus and its relevant device Download PDF

Info

Publication number
CN110187899A
CN110187899A CN201910481486.8A CN201910481486A CN110187899A CN 110187899 A CN110187899 A CN 110187899A CN 201910481486 A CN201910481486 A CN 201910481486A CN 110187899 A CN110187899 A CN 110187899A
Authority
CN
China
Prior art keywords
firmware
target
programming
host computer
parameter information
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
CN201910481486.8A
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.)
Polytron Technologies Inc In Shenzhen
Original Assignee
Polytron Technologies Inc In Shenzhen
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 Polytron Technologies Inc In Shenzhen filed Critical Polytron Technologies Inc In Shenzhen
Priority to CN201910481486.8A priority Critical patent/CN110187899A/en
Publication of CN110187899A publication Critical patent/CN110187899A/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/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

This application discloses a kind of firmware programming methods, receive host computer including bluetooth WiFi gateway and instruct the parameter information issued according to programming;Target partition is determined according to the parameter information;Original firmware in the target partition is wiped, target Free Partition is obtained;Target firmware is downloaded from the host computer according to the parameter information;By the target firmware programming to the target Free Partition;The firmware programming method effectively reduces the complexity of firmware programming, improves firmware programming efficiency, while avoiding the problem of firmware repeats programming.Disclosed herein as well is a kind of firmware programming device, bluetooth WiFi gateway, firmware programming system and computer readable storage mediums, have above-mentioned beneficial effect.

Description

A kind of firmware programming method, apparatus and its relevant device
Technical field
This application involves software technology field, in particular to a kind of firmware programming method further relates to a kind of firmware programming dress It sets, bluetooth WiFi gateway, system and computer readable storage medium.
Background technique
Firmware is the program being written in storage medium, and the device driver specially saved inside equipment is served as One system is most basic, the bottom works.In general, firmware is stored in Flash chip, and by Flash chip It is attached to before mainboard, the firmware in Flash chip has just completed programming by programmable device.
However, the WiFi module of third company is used sometimes in modern market, in bluetooth WiFi gateway Needed for WiFi module etc., default firmware as built in it and non-technical personnel, just produce secondary programming WiFi module Demand.
For technology instantly, Flash chip is taken off from WiFi module usually and carries out secondary programming, programming knot Shu Houzai is welded back, but this kind of implementation is complicated for operation, inefficiency, and is very dependent on the technology of technical staff Level is also easy to damage WiFi module, reduces its service life;In addition, this kind of mode can only will be in Flash chip Whole original firmware erasings, then carry out secondary programming, but for the application scenarios of certain secondary programmings, sometimes not again It needs to wipe the firmware in Flash chip whole subregion, consequently leads to the problem of identical firmware repeats programming.
Therefore, the complexity of firmware programming how is effectively reduced, improves firmware programming efficiency, while firmware being avoided to repeat to burn The problem of writing is those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of firmware programming method, which effectively reduces firmware programming Complexity improves firmware programming efficiency, while avoiding the problem of firmware repeats programming;The another object of the application is to provide A kind of firmware programming device, bluetooth WiFi gateway, firmware programming system and computer readable storage medium, all have above-mentioned beneficial Effect.
In order to solve the above technical problems, this application provides a kind of firmware programming method, the firmware programming method includes:
Bluetooth WiFi gateway receives host computer and instructs the parameter information issued according to programming;
Target partition is determined according to the parameter information;
Original firmware in the target partition is wiped, target Free Partition is obtained;
Target firmware is downloaded from the host computer according to the parameter information;
By the target firmware programming to the target Free Partition.
Preferably, the target firmware is BootLoader firmware and/or Firmware firmware.
It is preferably, described that target firmware is downloaded from the host computer according to the parameter information, comprising:
The target firmware in the host computer is determined according to the parameter information;
The target firmware is downloaded by the cable between the bluetooth WiFi gateway and the host computer.
Preferably, the firmware programming method further include:
When the target firmware programming finishes, feedback programming ending message to the host computer.
Preferably, the firmware programming method further include:
Receive the peripheral hardware detection instruction that the host computer issues;
Target detection peripheral hardware is determined according to the peripheral hardware detection instruction;
Start the corresponding detection program of the target detection peripheral hardware, the target detection peripheral hardware is detected;
When detection passes through, feedback detection passes through information to the host computer.
Preferably, the target detection peripheral hardware includes bluetooth module, USB interface and reset key.
In order to solve the above technical problems, it is applied to bluetooth WiFi gateway present invention also provides a kind of firmware programming device, The firmware programming device includes:
Parameter information receiving module instructs the parameter information issued according to programming for receiving host computer;
Target partition determining module, for determining target partition according to the parameter information;
Original firmware wipes module, and for wiping the original firmware in the target partition, it is idle to obtain target Subregion;
Target firmware download module, for downloading target firmware from the host computer according to the parameter information;
Target firmware programming module is used for the target firmware programming to the target Free Partition.
In order to solve the above technical problems, present invention also provides a kind of bluetooth WiFi gateway, the bluetooth WiFi gateway packet It includes:
Memory, for storing computer program;
Processor, the step of any one of the above firmware programming method is realized when for executing the computer program.
In order to solve the above technical problems, present invention also provides a kind of firmware programming system, the firmware programming system packet It includes:
Host computer issues parameter information to bluetooth WiFi gateway for the instruction of programming based on the received, and prestores target Firmware;
Bluetooth WiFi gateway, for determining target partition according to the parameter information;To original in the target partition Firmware is wiped, and target Free Partition is obtained;The target firmware is downloaded from the host computer according to the parameter information; By the target firmware programming to the target Free Partition.
In order to solve the above technical problems, the computer can present invention also provides a kind of computer readable storage medium It reads to be stored with computer program on storage medium, the computer program realizes any one of the above firmware when being executed by processor The step of programming method.
A kind of firmware programming method provided herein, including bluetooth WiFi gateway receive host computer and are instructed according to programming The parameter information issued;Target partition is determined according to the parameter information;Original firmware in the target partition is wiped It removes, obtains target Free Partition;Target firmware is downloaded from the host computer according to the parameter information;By the target firmware Programming is to the target Free Partition.
As it can be seen that technical solution provided herein, consolidating for WiFi module in bluetooth WiFi gateway is realized by host computer Part programming, will need the firmware of programming in advance, i.e., above-mentioned target firmware stores to host computer and is further based on its parameter information Determine that the target firmware needs the subregion of programming in bluetooth WiFi gateway, after by original firmware therein erasing, by target Firmware programming is entered, and completes the secondary programming of firmware in WiFi module as a result, this kind of implementation is not necessarily to bluetooth WiFi gateway In firmware storage chip remove and carry out firmware programming again, avoid disassembly and recombination to bluetooth WiFi gateway, guarantee it is blue While tooth WiFi gateway service life, programming efficiency is improved;In addition, parameter configuration is carried out based on host computer, with realization pair Bluetooth WiFi gateway needs the setting of the subregion of programming, has achieved the purpose that customized programming subregion according to actual needs, has been not necessarily to Original firmware is all wiped, the problem of identical firmware repeats programming is avoided.
A kind of firmware programming device provided herein, bluetooth WiFi gateway, firmware programming system and computer-readable Storage medium all has above-mentioned beneficial effect, and details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of firmware programming method provided herein;
Fig. 2 is a kind of flow diagram of the peripherals detecting method of bluetooth WiFi gateway provided herein;
Fig. 3 is the annexation figure between provided herein a kind of bluetooth WiFi gateway and host computer;
Fig. 4 is a kind of structural schematic diagram of the total frame of host computer procedure provided herein;
Fig. 5 is a kind of structural schematic diagram of firmware programming device provided herein;
Fig. 6 is a kind of structural schematic diagram of bluetooth WiFi gateway provided herein;
Fig. 7 is a kind of structural schematic diagram of firmware programming system provided herein.
Specific embodiment
The core of the application is to provide a kind of firmware programming method, which effectively reduces firmware programming Complexity improves firmware programming efficiency, while avoiding the problem of firmware repeats programming;Another core of the application is to provide A kind of firmware programming device, bluetooth WiFi gateway, firmware programming system and computer readable storage medium, all have above-mentioned beneficial Effect.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of flow diagram of firmware programming method provided herein, the firmware programming Method may include:
S101: bluetooth WiFi gateway receives host computer and instructs the parameter information issued according to programming;
Firmware programming method provided herein, it is intended to which the burning to firmware in bluetooth WiFi gateway is realized based on host computer It writes, effectively to avoid the problem that bluetooth WiFi gateway is dismantled and recombinated and carry out repeating programming to identical firmware.
Specifically, the firmware of programming can will be needed to store into host computer in advance by technical staff, burnt when needing to be implemented It when write operation, position machine can have a fever write command directly up, wherein may include corresponding each to programming firmware in programming instruction Class parameter information, such as to programming partition information, store path information and type information to programming firmware, host computer and bluetooth The address information etc. of WiFi gateway, wherein above-mentioned to programming subregion is the subregion that programming firmware is needed in bluetooth WiFi gateway; Further, host computer parses programming instruction, after obtaining parameters information, can forward it to bluetooth WiFi net It closes, above-mentioned each parameter information is based on by bluetooth WiFi gateway and executes subsequent firmware programming process.
Wherein, between bluetooth WiFi gateway and host computer various information transmission, can for wireless transmission, or have Line transmission, has no effect on the implementation of the technical program.More specifically, this application provides a kind of wire transmission mode, due to It is provided with UART serial ports in bluetooth WiFi gateway, USB interface is provided in host computer, it as a result, can be by UART serial ports and USB interface Connection is established, realizes the information transmission of communication two party, such as the forwarding of instruction issuing, parameter.
S102: target partition is determined according to parameter information;
This step aims at the determination of target partition, which is above-mentioned to programming subregion, can specifically be based on Being determined to programming partition information in parameter information.
S103: wiping the original firmware in target partition, obtains target Free Partition;
Firmware programming, but default firmware therein have generally been completed by the bluetooth WiFi gateway that third company dispatches from the factory, Namely original firmware is sometimes not actually required, it is therefore desirable to carry out secondary programming to it.Specifically, it is true first can be based on S102 Original firmware erasing in fixed target partition obtains corresponding target Free Partition, i.e. free time point after erasing original firmware Area.
S104: target firmware is downloaded from host computer according to parameter information;
This step aims at the downloading of target firmware, which is the above-mentioned firmware for needing programming, specifically may be used According to the store path information of the target firmware in parameter information and type information, from the corresponding position of host computer, downloading is obtained.
Preferably, above-mentioned target firmware can for BootLoader firmware (Bootloader firmware) and/or Firmware firmware (kernel and file system firmware).
Specifically, the concrete type of above-mentioned target firmware has no effect on the implementation of the technical program, for example, can be BootLoader firmware and/or Firmware firmware etc..
In addition, in addition to firmware programming also MAC Address injection can be carried out to bluetooth WiFi gateway based on host computer.Due to Original MAC address in bluetooth WiFi gateway is there are illegal situation, for the safe handling for guaranteeing bluetooth WiFi gateway, to its into When row firmware programming, the injection of new MAC Address can be also further carried out to bluetooth WiFi gateway by host computer.Specifically, can It first passes through host computer and generates MAC Address list, therefrom select original MAC Address to be injected into bluetooth WiFi further according to demand The injection of MAC Address is completed in the respective partition of gateway.Certainly, after MAC Address injects successfully, it can also be carried out further Label avoids the leakage of MAC Address from using or reuse to show that the MAC Address has been used.
Preferably, above-mentioned that target firmware is downloaded from host computer according to parameter information, it may include true according to parameter information Determine the target firmware in host computer;Target firmware is downloaded by the cable between bluetooth WiFi gateway and host computer.
In the conventional technology, generally by SPI (Serial Peripheral Interface, Serial Peripheral Interface (SPI)) Agreement by firmware programming into chip, but the scarce communication efficiency that leads to SPI low there are basic frequency due to embedded chip It is lower, thereby reduce the programming efficiency of firmware.
Therefore, to solve the above problems, the embodiment of the present application provides a kind of highly efficient target firmware method for down loading, It is realized based on cable, the rate of information throughput of cable is much higher than SPI protocol.Specifically, can in advance in bluetooth WiFi gateway and Cable connection is established between host computer, i.e., by ethernet line by the network interface connection of the network interface of bluetooth WiFi gateway and host computer, To construct local area network, as a result, can by cable by target firmware from being downloaded in host computer in bluetooth WiFi gateway.
S105: by target firmware programming to target Free Partition.
This step aims at the programming of target firmware, specifically, after obtaining each target firmware, it will be under the target firmware It is loaded onto the RAM running memory of itself, completes the programming of target firmware.
As a kind of preferred embodiment, which can also include the feedback when target firmware programming finishes Programming ending message is to host computer.
After completing the programming to target firmware, programming ending message can be automatically generated, and fed back to host computer, To inform that technical staff's bluetooth WiFi gateway programming finishes.
Firmware programming method provided herein realizes the firmware of WiFi module in bluetooth WiFi gateway by host computer Programming will need the firmware of programming in advance, i.e., above-mentioned target firmware is stored to host computer, further, true based on its parameter information The fixed target firmware needs the subregion of programming in bluetooth WiFi gateway, and after by original firmware therein erasing, target is consolidated Part programming is entered, and completes the secondary programming of firmware in WiFi module as a result, this kind of implementation is not necessarily to will be in bluetooth WiFi gateway Firmware storage chip remove and carry out firmware programming again, avoid disassembly and recombination to bluetooth WiFi gateway, guaranteeing bluetooth While WiFi gateway service life, programming efficiency is improved;In addition, parameter configuration is carried out based on host computer, to realize to indigo plant Tooth WiFi gateway needs the setting of the subregion of programming, has achieved the purpose that customized programming subregion according to actual needs, and being not necessarily to will Original firmware is all wiped, and the problem of identical firmware repeats programming is avoided.
On the basis of the various embodiments described above, this application provides another firmware programming method, which is added There is peripheral hardware detection function, it can be achieved that performance detection to each external equipment of bluetooth WiFi gateway.The present embodiment only examines peripheral hardware It surveys part to be specifically described, other steps are referring to above-described embodiment, and details are not described herein for the present embodiment.
Referring to FIG. 2, Fig. 2 is a kind of process signal of the peripherals detecting method of bluetooth WiFi gateway provided herein Figure.
S201: the peripheral hardware detection instruction that host computer issues is received;
S202: target detection peripheral hardware is determined according to peripheral hardware detection instruction;
S203: the corresponding detection program of starting target detection peripheral hardware detects target detection peripheral hardware;
S204: when detection passes through, feedback detection passes through information to host computer.
Specifically, the detection program of each peripheral hardware can be preset, and it is uploaded to the control device of bluetooth WiFi gateway, When needing to carry out performance detection to certain peripheral hardware, technical staff can initiate detection instruction to bluetooth WiFi gateway by host computer, Bluetooth WiFi gateway can determine the peripheral hardware for needing to detect, i.e., above-mentioned target detection peripheral hardware based on the detection instruction as a result,;Into one Step, starts the corresponding detection program of the target detection peripheral hardware and carries out performance detection to it, and will test result information and feed back to Position machine feeds back to host computer by information specifically, can will test when peripheral hardware detects and passes through, with the notification technique personnel target Detection peripheral hardware passes through detection.
Wherein, above-mentioned target detection peripheral hardware can be any external equipment of bluetooth WiFi gateway, not uniquely, by technology Personnel carry out corresponding program setting according to actual needs.
Preferably, above-mentioned target detection peripheral hardware may include bluetooth module, USB interface and reset key.
More specific target detection peripheral hardware is present embodiments provided, i.e., bluetooth module, the USB of bluetooth WiFi gateway are connect Mouth and reset key carry out performance detection, are preset with its corresponding detection program on the outside of each target detection.
Firmware programming method provided by the embodiments of the present application, after completing firmware programming, to each of bluetooth WiFi gateway Peripheral hardware has carried out performance detection, and the normal use of bluetooth WiFi gateway in the follow-up process has been effectively ensured.Meanwhile this kind is realized Firmware programming and peripheral hardware test are integrated in one advantageously by mode without separating firmware programming process and peripheral hardware testing process In the promotion of production efficiency.
On the basis of above-mentioned each embodiment, this application provides more specifically firmware programming methods, below with function Energy module is that firmware programming method provided herein is introduced in unit.
1, the early-stage preparations of firmware programming
Referring to FIG. 3, Fig. 3 is the connection relationship between provided herein a kind of bluetooth WiFi gateway and host computer Figure.
(1) Ethernet interface of WiFi module and the Ethernet interface of host computer in bluetooth WiFi gateway are built by ethernet line Vertical connection;
(2) the UART serial ports of WiFi module in bluetooth WiFi gateway and the USB interface of host computer are attached;
(3) firmware (target firmware) for needing programming is copied to the place catalogue of host computer procedure.
2, the firmware programming process realized based on host computer
Referring to FIG. 4, Fig. 4 is a kind of structural schematic diagram of the total frame of host computer procedure provided herein, wherein clothes Business module be mainly responsible for open TFTP (Trivial File Transfer Protocol, Simple File Transfer Protocol) service, UART serial port service and the MAC Address list for generating the WiFi module to be injected;Programming module is mainly responsible for programming BootLoader firmware, Firmware firmware and the new MAC Address of injection are to WiFi module;Test module is mainly responsible for test The external equipment of WiFi module.
(1) service procedure of service module:
(a1) by user interface, parameter configuration is carried out for target firmware by technical staff:
Configure the IP address of tftp server;
Configure IP address of the WiFi module as TFTP client;
Configure the pathname where BootLoader firmware;
Configure the pathname where Firmware firmware;
(b1) the UART serial ports of WiFi module is connected;
(c1) tftp server is opened, so that WiFi module passes through the quick-downloading target firmware of cable;
(d1) the MAC Address list for the WiFi module to be injected is generated:
Starting MAC Address is inputted by technical staff and terminates MAC Address;
According to starting MAC Address and terminate MAC Address a string of continuous MAC Address lists of generation.
(2) service procedure of programming module:
By user interface, selects to carry out firmware programming by technical staff or MAC Address injects, to enter corresponding behaviour Make process.
(a2) reboot order is sent by physics mode or host computer and restarts WiFi module;
(b2) host computer receives the log information of WiFi module feedback by UART serial ports, to determine the operation of WiFi module State;
(c2) when host computer determines that WiFi module is in Bootloader stage (firmware programming stage);Judgement is to burn Write BootLoader firmware or Firmware firmware:
Programming BootLoader firmware: host computer sends corresponding digital command automatically, so that WiFi module enters programming The mode of BootLoader firmware;
Programming Firmware firmware: host computer sends corresponding digital command automatically, to allow WiFi module to enter programming The mode of Firmware firmware;
(d2) host computer will be sent to WiFi module, WiFi module by preconfigured parameter information in service module automatically Target firmware is downloaded into RAM running memory by cable from the tftp server of unlatching according to the parameter information received;
(e2) BootLoader of WiFi module carries out erasing flash and programming flash automatically;
(f2) after the completion of firmware programming, WiFi module is fed back to host computer to the corresponding character string of serially printing, Host computer can determine whether to complete programming operation by the character string.
(3) service procedure of test module:
(a3) bluetooth module of bluetooth WiFi gateway is tested:
Firstly, sending the instruction of check_ble to gateway control platform by host computer;Further, gateway control platform according to The instruction of check_ble runs check_ble program;Further, check_ble program by test result (including RSSI value with And the number of the Bluetooth broadcast packet of scanning per second) gateway control platform is printed to, and it is uploaded to host computer;Finally, host computer passes through Type information judges whether bluetooth module passes through test, when RSSI value is too small, illustrates that the PA chip of bluetooth module does not work, When the quantity of the Bluetooth broadcast packet of scanning is very little, illustrate bluetooth module operation irregularity.
(b3) USB interface of bluetooth WiFi gateway is tested:
Firstly, being inserted into USB flash disk to bluetooth WiFi gateway, and the file (such as 1GB) of default size is prestored in the USB flash disk, text The md5sum value of the entitled this document of part;Further, by the instruction of host computer transmission check_usb to gateway control platform, into one Step, gateway control platform run check_usb program according to the instruction of check_usb, specifically, the check_usb program is certainly Dynamic search USB flash disk whether there is, if it does not exist, then test does not pass through, if it is present the file in copy USB flash disk is virtual to tmp File system, while calculating its copying speed and to gateway control platform print speed, calculating the md5sum value of file after copy It is whether consistent with the md5sum value of filename;Finally, host computer judges whether USB interface passes through survey by the above type information Examination.
(c3) reset key of bluetooth WiFi gateway is tested:
Firstly, sending the instruction of check_button to gateway control platform by host computer;Further, gateway control platform root Check_button program is run according to the instruction of check_button, whether is pressed with the pin for detecting gpio mouthfuls;Further, Corresponding type information is obtained after being manually pressed by reset key;Finally, whether host computer judges reset key by type information Pass through test.
Firmware programming method provided by the embodiment of the present application realizes WiFi module in bluetooth WiFi gateway by host computer Firmware programming, the firmware of programming will be needed in advance, i.e., above-mentioned target firmware stores to host computer and is further based on its parameter Information determines that the target firmware needs the subregion of programming in bluetooth WiFi gateway, will after by original firmware therein erasing Target firmware programming is entered, and completes the secondary programming of firmware in WiFi module as a result, this kind of implementation is not necessarily to bluetooth WiFi Firmware storage chip in gateway is removed carries out firmware programming again, avoids disassembly and recombination to bluetooth WiFi gateway, is protecting While demonstrate,proving bluetooth WiFi gateway service life, programming efficiency is improved;In addition, parameter configuration is carried out based on host computer, with reality The setting that the subregion of programming is now needed to bluetooth WiFi gateway has achieved the purpose that customized programming subregion according to actual needs, Without all wiping original firmware, the problem of identical firmware repeats programming is avoided.
Firmware programming device provided by the embodiments of the present application is introduced below, firmware programming device described below with Above-described firmware programming method can correspond to each other reference.
Referring to FIG. 5, Fig. 5 is a kind of structural schematic diagram of firmware programming device provided herein, the firmware programming Device is applied to bluetooth WiFi gateway, it may include:
Parameter information receiving module 10 instructs the parameter information issued according to programming for receiving host computer;
Target partition determining module 20, for determining target partition according to parameter information;
Original firmware wipes module 30, for wiping the original firmware in target partition, obtains the target free time point Area;
Target firmware download module 40, for downloading target firmware from host computer according to parameter information;
Target firmware programming module 50 is used for target firmware programming to target Free Partition.
As a kind of preferred embodiment, above-mentioned target firmware download module 40 can be specifically used for being determined according to parameter information Target firmware in the machine of position;Target firmware is downloaded by the cable between bluetooth WiFi gateway and host computer.
As a kind of preferred embodiment, which can also include information feedback module, for consolidating when target When part programming finishes, feedback programming ending message to host computer.
As a kind of preferred embodiment, which can also include peripheral hardware monitoring modular, upper for receiving The peripheral hardware detection instruction that machine issues;Target detection peripheral hardware is determined according to peripheral hardware detection instruction;It is corresponding to start target detection peripheral hardware Program is detected, target detection peripheral hardware is detected;When detection passes through, feedback detection passes through information to host computer.
Above method embodiment is please referred to for the introduction of device provided by the present application, this will not be repeated here by the application.
It further, should referring to FIG. 6, Fig. 6 is a kind of structural schematic diagram of bluetooth WiFi gateway provided herein Bluetooth WiFi gateway may include:
Memory 11, for storing computer program;
Processor 12 can realize following steps when for executing the computer program of the above-mentioned storage of memory 1:
It receives host computer and instructs the parameter information issued according to programming;Target partition is determined according to parameter information;To target Original firmware in subregion is wiped, and target Free Partition is obtained;Target firmware is downloaded from host computer according to parameter information; By target firmware programming to target Free Partition.
Above method embodiment is please referred to for the introduction of bluetooth WiFi gateway provided by the present application, the application is not done herein It repeats.
It further, should referring to FIG. 7, Fig. 7 is a kind of structural schematic diagram of firmware programming system provided herein Firmware burns system
Host computer 1 issues parameter information to bluetooth WiFi gateway 2 for the instruction of programming based on the received, and prestores mesh Mark firmware;
Bluetooth WiFi gateway 2, for determining target partition according to parameter information;Original firmware in target partition is carried out Erasing obtains target Free Partition;Target firmware is downloaded from host computer according to parameter information;By target firmware programming to target Free Partition.
Above method embodiment is please referred to for the introduction of system provided by the present application, this will not be repeated here by the application.
Further, the embodiment of the present application also discloses a kind of computer readable storage medium, for storing computer journey Sequence, wherein can realize following steps when computer program is executed by processor:
It receives host computer and instructs the parameter information issued according to programming;Target partition is determined according to parameter information;To target Original firmware in subregion is wiped, and target Free Partition is obtained;Target firmware is downloaded from host computer according to parameter information; By target firmware programming to target Free Partition.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Above method embodiment is please referred to for the specific introduction of computer readable storage medium provided by the present application, this Shen It please this will not be repeated here.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Above to firmware programming method, apparatus provided herein, bluetooth WiFi gateway, firmware programming system and calculating Machine readable storage medium storing program for executing is described in detail.Specific case used herein carries out the principle and embodiment of the application It illustrates, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for For those skilled in the art, under the premise of not departing from the application principle, if can also be carried out to the application Dry improvement and modification, these improvement and modification also fall into the protection scope element of the claim of this application.

Claims (10)

1. a kind of firmware programming method characterized by comprising
Bluetooth WiFi gateway receives host computer and instructs the parameter information issued according to programming;
Target partition is determined according to the parameter information;
Original firmware in the target partition is wiped, target Free Partition is obtained;
Target firmware is downloaded from the host computer according to the parameter information;
By the target firmware programming to the target Free Partition.
2. firmware programming method as described in claim 1, which is characterized in that the target firmware is BootLoader firmware And/or Firmware firmware.
3. firmware programming method as described in claim 1, which is characterized in that it is described according to the parameter information from described upper Target firmware is downloaded in machine, comprising:
The target firmware in the host computer is determined according to the parameter information;
The target firmware is downloaded by the cable between the bluetooth WiFi gateway and the host computer.
4. firmware programming method as described in claim 1, which is characterized in that further include:
When the target firmware programming finishes, feedback programming ending message to the host computer.
5. the firmware programming method as described in Claims 1-4 any one, which is characterized in that further include:
Receive the peripheral hardware detection instruction that the host computer issues;
Target detection peripheral hardware is determined according to the peripheral hardware detection instruction;
Start the corresponding detection program of the target detection peripheral hardware, the target detection peripheral hardware is detected;
When detection passes through, feedback detection passes through information to the host computer.
6. firmware programming method as claimed in claim 5, which is characterized in that the target detection peripheral hardware include bluetooth module, USB interface and reset key.
7. a kind of firmware programming device, which is characterized in that be applied to bluetooth WiFi gateway, comprising:
Parameter information receiving module instructs the parameter information issued according to programming for receiving host computer;
Target partition determining module, for determining target partition according to the parameter information;
Original firmware wipes module, for wiping the original firmware in the target partition, obtains target Free Partition;
Target firmware download module, for downloading target firmware from the host computer according to the parameter information;
Target firmware programming module is used for the target firmware programming to the target Free Partition.
8. a kind of bluetooth WiFi gateway characterized by comprising
Memory, for storing computer program;
Processor realizes the firmware programming side as described in claim 1 to 6 any one when for executing the computer program The step of method.
9. a kind of firmware programming system characterized by comprising
Host computer issues parameter information to bluetooth WiFi gateway for the instruction of programming based on the received, and prestores target firmware;
Bluetooth WiFi gateway, for determining target partition according to the parameter information;To the original firmware in the target partition It is wiped, obtains target Free Partition;The target firmware is downloaded from the host computer according to the parameter information;By institute Target firmware programming is stated to the target Free Partition.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the firmware programming as described in claim 1 to 6 any one when the computer program is executed by the processor The step of method.
CN201910481486.8A 2019-06-04 2019-06-04 A kind of firmware programming method, apparatus and its relevant device Pending CN110187899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910481486.8A CN110187899A (en) 2019-06-04 2019-06-04 A kind of firmware programming method, apparatus and its relevant device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910481486.8A CN110187899A (en) 2019-06-04 2019-06-04 A kind of firmware programming method, apparatus and its relevant device

Publications (1)

Publication Number Publication Date
CN110187899A true CN110187899A (en) 2019-08-30

Family

ID=67720201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910481486.8A Pending CN110187899A (en) 2019-06-04 2019-06-04 A kind of firmware programming method, apparatus and its relevant device

Country Status (1)

Country Link
CN (1) CN110187899A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021119922A1 (en) * 2019-12-16 2021-06-24 深圳市汇顶科技股份有限公司 Bluetooth low energy ble product testing method and ble apparatus
CN113434179A (en) * 2021-07-08 2021-09-24 恒安嘉新(北京)科技股份公司 Online upgrade method, device, equipment and storage medium for programmable power supply
CN114328068A (en) * 2021-12-08 2022-04-12 中国人民解放军第六九O五工厂 Novel burn and write and test integration device
WO2022143295A1 (en) * 2021-01-04 2022-07-07 展讯通信(上海)有限公司 Method for upgrading firmware, and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914324A (en) * 2013-01-08 2014-07-09 海尔集团公司 Method for automatically burning firmware of embedded equipment, and system thereof
US20150154017A1 (en) * 2012-08-21 2015-06-04 Wuhan Telecommunication Devices Co., Ltd. In-application upgrade method for optical module firmware not breaking service
CN104965725A (en) * 2015-01-16 2015-10-07 北京中电兴发科技有限公司 SD-card based full-automatic firmware programming method for embedded equipment
CN106775855A (en) * 2016-12-07 2017-05-31 北京时代民芯科技有限公司 A kind of flash programmings method based on eclipse, plug-in unit and system
CN107566169A (en) * 2017-08-24 2018-01-09 上海斐讯数据通信技术有限公司 A kind of firmware upgrade method and router based on openwrt
CN107634859A (en) * 2017-09-30 2018-01-26 飞天诚信科技股份有限公司 A kind of firmware upgrade method and device
CN109245832A (en) * 2018-09-29 2019-01-18 上海与德科技有限公司 Test method, system and the test equipment of bluetooth mould group
CN109460240A (en) * 2018-10-19 2019-03-12 郑州云海信息技术有限公司 A kind of firmware programming component and firmware programming method, system and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150154017A1 (en) * 2012-08-21 2015-06-04 Wuhan Telecommunication Devices Co., Ltd. In-application upgrade method for optical module firmware not breaking service
CN103914324A (en) * 2013-01-08 2014-07-09 海尔集团公司 Method for automatically burning firmware of embedded equipment, and system thereof
CN104965725A (en) * 2015-01-16 2015-10-07 北京中电兴发科技有限公司 SD-card based full-automatic firmware programming method for embedded equipment
CN106775855A (en) * 2016-12-07 2017-05-31 北京时代民芯科技有限公司 A kind of flash programmings method based on eclipse, plug-in unit and system
CN107566169A (en) * 2017-08-24 2018-01-09 上海斐讯数据通信技术有限公司 A kind of firmware upgrade method and router based on openwrt
CN107634859A (en) * 2017-09-30 2018-01-26 飞天诚信科技股份有限公司 A kind of firmware upgrade method and device
CN109245832A (en) * 2018-09-29 2019-01-18 上海与德科技有限公司 Test method, system and the test equipment of bluetooth mould group
CN109460240A (en) * 2018-10-19 2019-03-12 郑州云海信息技术有限公司 A kind of firmware programming component and firmware programming method, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陆俊伟等: "基于Wi-Fi远程通信的无线烧录器的设计与实现", 《计算机测量与控制》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021119922A1 (en) * 2019-12-16 2021-06-24 深圳市汇顶科技股份有限公司 Bluetooth low energy ble product testing method and ble apparatus
WO2022143295A1 (en) * 2021-01-04 2022-07-07 展讯通信(上海)有限公司 Method for upgrading firmware, and related device
CN113434179A (en) * 2021-07-08 2021-09-24 恒安嘉新(北京)科技股份公司 Online upgrade method, device, equipment and storage medium for programmable power supply
CN113434179B (en) * 2021-07-08 2023-12-19 恒安嘉新(北京)科技股份公司 Online upgrade method, device and equipment of programmable power supply and storage medium
CN114328068A (en) * 2021-12-08 2022-04-12 中国人民解放军第六九O五工厂 Novel burn and write and test integration device
CN114328068B (en) * 2021-12-08 2024-04-19 中国人民解放军第六九O五工厂 Novel burn and write and test integration device

Similar Documents

Publication Publication Date Title
CN110187899A (en) A kind of firmware programming method, apparatus and its relevant device
WO2015176454A1 (en) Method and device for upgrading software
CN103077058B (en) Method and device for installing application program
WO2017133691A1 (en) Intelligent device networking method and apparatus
US20140101467A1 (en) Discovering, validating, and configuring hardware-inventory components
CN105162841A (en) Domestic appliance control method and system
CN102646043B (en) Mobile terminal software upgrading method, update device and mobile terminal
WO2012062063A1 (en) Method and apparatus for generating and uninstalling software installation package
TW201102924A (en) Embedded electronic device and method for updating firmware thereof
CN110045968B (en) STM32 cross-singlechip program burning method
WO2011006378A1 (en) Method and system for upgrading wireless data card
EP3198792B1 (en) Automated standalone bootstrapping of hardware inventory
WO2020186551A1 (en) Communication module software upgrading method and system, and communication module
US20110176456A1 (en) Connection setting apparatus, connection setting method, and computer program product
CN108874437A (en) A kind of online cloud update method of android application program
CN102123040A (en) Method and device for configuring data
CN107066287A (en) The method and system of ESXI virtual machine automatic deployment installation systems
CN111651180B (en) Firmware updating method and device, processor and intelligent gateway equipment
CN108536464A (en) A kind of hot restorative procedure and device of application program
CN107770299A (en) A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium
CN102137154A (en) Method and device for upgrading customer premise equipment (CPE)
CN111966372A (en) Firmware upgrading method, device and equipment for portable printer
CN109918096A (en) A kind of installation method of server operating system, system and associated component
CN109413499A (en) Configuration method, system and the equipment of Android TV-set fixer
CN112104477A (en) Online updating method and system for firmware of electric control end and WiFi module

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190830