CN207782809U - A kind of device for upgrading firmware based on bluetooth - Google Patents

A kind of device for upgrading firmware based on bluetooth Download PDF

Info

Publication number
CN207782809U
CN207782809U CN201720981881.9U CN201720981881U CN207782809U CN 207782809 U CN207782809 U CN 207782809U CN 201720981881 U CN201720981881 U CN 201720981881U CN 207782809 U CN207782809 U CN 207782809U
Authority
CN
China
Prior art keywords
firmware
upgrading
bluetooth
memory
bluetooth module
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.)
Expired - Fee Related
Application number
CN201720981881.9U
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201720981881.9U priority Critical patent/CN207782809U/en
Application granted granted Critical
Publication of CN207782809U publication Critical patent/CN207782809U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The utility model provides a kind of device for upgrading firmware based on bluetooth, including controller, memory, and bluetooth module, the bluetooth module is configured as being communicated with firmware, and detects the version of firmware, and update request is sent out to controller;The controller is configured as the reading permission of the open memory of update request sent out according to the bluetooth module;The memory includes guidance unit, upgrade unit, and the guidance unit is configured as the hardware running environment of initialization firmware, boot firmware upgrading.Firmware upgrade pattern of the utility model based on bluetooth, improves the portability of upgrading, reduces the mechanically actuated of traditional upgrading mode, convenient, flexible, stability is strong.

Description

A kind of device for upgrading firmware based on bluetooth
Technical field
The utility model belongs to the communications field, is related to a kind of device for upgrading firmware more particularly to a kind of consolidating based on bluetooth Part update device.
Background technology
With the high speed development of embedded system and ARM mobile processors, electronic equipment small, intelligence, more New to regenerate frequently, especially Intelligent hardware and wearable device continue to bring out in recent years.And the demand in market constantly variation Intelligent hardware and the firmware program of wearable device is promoted to need constantly upgrading update.Upgrade method as common firmware JTAG, ISP, IAP, and JTAG needs special downloader, and it is generally used for software debugging, complicated for firmware upgrade step, Program is cumbersome.
IAP (In Application Programming, application programming) refers to after final products dispatch from the factory, being made by user User program part is programmed in, realizes online upgrading.IAP requires program being divided into two parts:Bootstrap, user Program.Leader is usually constant, and user program is User Defined.
IAP mainly uses serial ports or USB connection PC, then in the application end of electronic equipment to making fixer system restart; After system reboot, program, by being responded to serial ports or USB interruptions, into downloading mode, then starts in start-up course It receives data and carries out updating firmware program.
It needs to dismantle equipment using this method, in the of high cost of certain occasions dismounting or can not dismantle, such as intelligence The ECU (Electronic Control Unit electronic control units) of energy automobile needs to disassemble part from vehicle, this Sample will increase newer workload, and be easy to damage vehicle itself.With popularizing for Bluetooth Communication Technology, increasingly More equipment is used as communication mode using bluetooth, and relative to USB, the physical circuits such as serial ports, bluetooth is due to by wireless connection, no Dependent on hardware circuit, so having higher portability.
Utility model content
The utility model provides a kind of device for upgrading firmware based on bluetooth, needs to pass through machinery to solve firmware upgrade Dismounting the problem of.
To solve the above problems, the specific technical solution of the utility model is:A kind of device for upgrading firmware based on bluetooth, Including controller, memory, bluetooth module, the bluetooth module is configured as being communicated with firmware, and detects the version of firmware This, update request is sent out to controller;
The controller is configured as the permission of the open memory of update request sent out according to the bluetooth module;
The memory includes guidance unit, upgrade unit, and the guidance unit is configured as the hardware of initialization firmware Running environment, boot firmware upgrading.
In one embodiment of the utility model, the bluetooth module further includes detection unit, and the detection unit is used In detection firmware version label, update request is sent out to the controller.
In one embodiment of the utility model, the bluetooth module further includes bluetooth adaptation unit.
Further, the bluetooth adaptation unit includes bluetooth serial ports adaptation module.
In one embodiment of the utility model, the memory further includes backup units, and the backup units are used for Store the original firmware program before the upgrading of firmware.
In one embodiment of the utility model, the bluetooth module further includes HCI interfaces, and the HCI interfaces are used for It is interacted with host computer.
In one embodiment of the utility model, the bluetooth module further includes YModem modules, the YModem moulds Block is for the data transmission with user's firmware.
The utility model has the beneficial effects that:
1. being communicated with firmware using bluetooth module, the firmware upgrade pattern based on bluetooth is realized, upgrading is improved Portability, reduce the mechanically actuated of traditional upgrading mode.
2. memory is equipped with backup units, the stability of device for upgrading firmware is improved, can not be restored after preventing upgrading from failing.
3. man-machine interactive interface improves the flexibility of device for upgrading firmware, the host computer for firmware upgrade no longer limits to In traditional PC machine.
Description of the drawings
Fig. 1 is the structural schematic diagram of the utility model;
Fig. 2 is one of the bluetooth module structure chart of the utility model;
Fig. 3 is the two of the bluetooth module structure chart of the utility model;
Fig. 4 is the memory area partition structure figure of the utility model;
Fig. 5 is that the memory area of STM32 series processors divides figure.
Reference numeral
1. device for upgrading firmware;2. controller;3. bluetooth module;31. 32. bluetooth adaptation unit 33.HCI of detection unit 4. memory of interface;41 guidance units;42. backup units;43. upgrade unit.
Specific implementation mode
In order to be better understood from the technical solution that the utility model is proposed, below in conjunction with the accompanying drawings with specific embodiment pair The utility model is further elaborated.
As shown in Figures 1 to 4, a kind of device for upgrading firmware 1 based on bluetooth, including controller 2, memory 44, bluetooth Module 3, the bluetooth module 3 are configured as being communicated with firmware, and detect the version of firmware, and update is sent out to controller 2 Request;
The update request that the controller 2 is configured as being sent out according to the bluetooth module 3 opens the reading of the memory 4 Weighting limits;
The memory 4 includes guidance unit 41, upgrade unit 43, and the guidance unit 41 is configured as initialization firmware Hardware running environment, boot firmware upgrading.For example, the FLASH in the processor based on ARM frameworks is divided into two parts:Main memory Store up block, block of information.For storing firmware program, upgrade procedure is typically stored at here main memory block.Block of information is divided into two Point:System storage, option byte.System storage stores the startup program for being stored under system storage boot mode (BootLoader), it when using ISP mode loading procedures, is exactly executed by this program.This region is written by chip factory Then BootLoader is locked, user can not change this region.The configuration information of option byte storage chip and to master The protection information of memory block.BootLoader just belongs to guidance unit 41.Upgrade unit 43 mainly stores upgrading needed for firmware Program.
In one embodiment of the utility model, the bluetooth module 3 further includes detection unit 31, the detection unit 31 for detecting firmware version label, and detection label can be by defining or User Defined according to firmware producer.Specifically, it detects Unit is compared according to the data that bluetooth module receives with flag data, is stored in if detecting that the version of firmware is less than The version of firmware upgrade unit 43 then sends out update request to the controller 2.The controller 2 is asked according to bluetooth module 3 It asks, the open memory 4 reads permission, and the data of memory 4 can be transferred to firmware to be upgraded by bluetooth module 3.It is special Different, memory can be the external memory of device for upgrading firmware.
In one embodiment of the utility model, the bluetooth module 3 further includes bluetooth adaptation unit 32.Further , the bluetooth adaptation unit 32 includes bluetooth serial ports adaptation module.Bluetooth serial ports adaptation mould is mainly used for user's firmware soon The adaptation of the interface of different CPU, usually serial ports, USB interface.
It is described in one embodiment of the utility model to prevent upgrading failure from firmware being caused to be unable to operate normally Memory 4 further includes backup units 42, and the backup units 42 are used to store the original firmware program before the upgrading of firmware.
In one embodiment of the utility model, the bluetooth module 3 further includes HCI interfaces 33, the HCI interfaces 33 with host computer for interacting.HCI interfaces 33 can be by way of bluetooth, WIFI, serial ports, USB, CAN or Ethernet Interacted with host computer, host computer is not limited to traditional PC machine, can be mobile phone, tablet computer or other with above-mentioned logical Interrogate the electric terminal equipment of module.
As shown in figure 5, in one embodiment of the utility model, firmware is by taking STM32 series processors as an example, the processing For memory inside device, STM32FLASH is divided into 4 parts by the upgrade unit 43 of the memory 4, first part from 0x08000000 to 0x0800FFFF total 64K store BootLoader programs, and second part arrives for 0x08010000 The total 192K of 0x0803FFFF store old App programs, and Part III comes since 0x08040000 to the total 128K of 0x805FFFF APP programs after storage upgrading, it is remaining to store the flag bit and other that program is run.
The microcontroller of STM32 series based on Cortex-M4 cores, inside mainly responded by interrupt vector table it is various It interrupts, the initial address of internal flash is 0x08000000, and the initial address of interrupt vector table is 0x8000004.It, will when upgrading Reset interrupt vector is taken out from " interrupt vector table " execute the completion startup of reset interrupt program, the STM32 when interrupting first Internal hardware mechanism also can be automatically by PC needle locatings at " interrupt vector table ", and corresponding interruption is taken out according to interrupt source Vector executes corresponding interrupt service routine.
In one embodiment of the utility model, the bluetooth module 3 further includes YModem modules, the YModem moulds Block is for the data transmission with user's firmware.The YModem modules are transmitted using Ymodem, and Ymodem is A kind of agreement for sending and waiting for will wait for the confirmation of recipient that is, after one data packet of sender's transmission.If it is Ack signal can then send new packet.If it is NAK signals, then retransmits or mistake exits.
(1) it initiates to transmit by recipient, transmission is opened with first capital C.Subsequently into waiting (SOH) state, If do not responded, will time-out exit.
(2) when sender starts in waiting process, C is waited for.After receiving C, sends (SOH) data packet and start letter Number, send sequence number (00), complement code (FF), " filename ", and " null character " " file size " " removes outside serial number, fill 128 bytes ", Two bytes of CRC check.Into waiting (ACK) state.
(3) after recipient receives data packet, CRC check meets, then sends ACK.Sender receives ACK, and enter etc. It waits for " file transmission is opened " signal, that is, reenters the state of waiting " C ".
(4) front recipient only has received a filename, limits formal file opening transmission, and Ymodem supports 128 One data packet of byte and 1024 bytes.128 bytes are started with (SOH), and 1024 bytes are started with (STX).
Recipient sends out " C " signal again, begins preparing for receiving file.Into waiting " SOH " or " STX " state.
(5) it transmits and receives to after " C ", transmission data packet, (SOH) (01 serial number) (FE complement codes) (128 data) (CRC Verification), wait for recipient " ACK ".
(6) after file has been sent, sender sends out " EOT " signal, and recipient is also responded with " ACK ".
Then recipient can send out " C " and open another transmission again, if then sender can send out " full 0 a data Packet ", after recipient " ACK ", this communication formally terminates.
The announcement of structure and function in book according to the above description, the utility model those skilled in the art can be with The above embodiment is changed and changed, to be applied to other field.Therefore, although the utility model only gives The firmware upgrade example of STM32 series CPU, but the utility model is not limited to specific embodiment party disclosed and described above Formula should also be as falling into the protection scope of the claims of the present utility model to some modifications and changes of utility model.In addition, Although having used some specific terms in this specification, these terms are merely for convenience of description, not new to this practicality Type constitutes any restrictions.

Claims (6)

1. a kind of device for upgrading firmware based on bluetooth, including controller, memory, bluetooth module, which is characterized in that the indigo plant Tooth module is configured as being communicated with firmware, and detects the version of firmware, and update request is sent out to controller;
The controller is configured as the reading permission of the open memory of update request sent out according to the bluetooth module;
The memory includes guidance unit, upgrade unit, and the guidance unit is configured as the hardware operation of initialization firmware Environment, boot firmware upgrading.
2. device for upgrading firmware according to claim 1, which is characterized in that the bluetooth module further includes detection unit, The detection unit sends out update request for detecting firmware version label, to the controller.
3. device for upgrading firmware according to claim 1, which is characterized in that the bluetooth module further includes that bluetooth adaptation is single Member.
4. device for upgrading firmware according to claim 3, which is characterized in that the bluetooth adaptation unit includes bluetooth serial ports Adaptation module.
5. device for upgrading firmware according to claim 1, which is characterized in that the memory further includes backup units, institute State the original firmware program before upgrading of the backup units for storing firmware.
6. device for upgrading firmware according to claim 1, which is characterized in that the bluetooth module further includes HCI interfaces, institute HCI interfaces are stated for being interacted with host computer.
CN201720981881.9U 2017-08-07 2017-08-07 A kind of device for upgrading firmware based on bluetooth Expired - Fee Related CN207782809U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201720981881.9U CN207782809U (en) 2017-08-07 2017-08-07 A kind of device for upgrading firmware based on bluetooth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201720981881.9U CN207782809U (en) 2017-08-07 2017-08-07 A kind of device for upgrading firmware based on bluetooth

Publications (1)

Publication Number Publication Date
CN207782809U true CN207782809U (en) 2018-08-28

Family

ID=63219109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201720981881.9U Expired - Fee Related CN207782809U (en) 2017-08-07 2017-08-07 A kind of device for upgrading firmware based on bluetooth

Country Status (1)

Country Link
CN (1) CN207782809U (en)

Similar Documents

Publication Publication Date Title
US9301164B2 (en) Method, system, and terminal for performing system update between mobile communication terminals
US8135945B2 (en) Flexible boot methods for multi-processor devices
US9411601B2 (en) Flexible bootstrap code architecture
CN101330399A (en) Method for upgrading built-in equipment
CN114860279B (en) Rapid empty-chip upgrading method
US20100095044A1 (en) Motherboard system, storage device for booting up thereof and connector
US11327739B2 (en) Method and apparatus for improving runtime performance after application update in electronic device
CN101807152B (en) Basic output and input system for self verification of selection read only memory and verification method thereof
CN112947977A (en) Software online upgrading method and system
CN110780909A (en) Distributed embedded system upgrading method and device
CN107332589B (en) Firmware upgrading device based on bluetooth
KR20050080664A (en) System and its method for providing computer virus vaccine program using wireless communication terminal
WO2018099255A1 (en) Method, device and system for configuring transfer mode and computer storage medium
KR20090004406A (en) Electronic device, electronic device system and control method thereof
CN106919423B (en) Firmware upgrading method and device
CN207782809U (en) A kind of device for upgrading firmware based on bluetooth
CN117519749A (en) STM32 online upgrading function solving method
CN113360161A (en) Resource upgrading method and related product
WO2013004175A1 (en) Software upgrading method and apparatus for electronic devices
CN101727333A (en) Method for updating firmware in microprocessor and firmware updating system
CN103677928A (en) System and method for achieving rapid software serial port upgrading in GNSS receiver
CN112667544A (en) Method, device, system and medium for controlling mainboard slot enabling
WO2016078222A1 (en) Bootstrap transmission method, embedded system and bootstrap transmission system
CN117290164B (en) Information recording method at restarting, electronic device and readable storage medium
CN111124461B (en) Method and device for upgrading OTA (over the air) of singlechip and singlechip

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180828

Termination date: 20200807