CN105893064A - Embedded device Bluetooth wireless upgrade method - Google Patents

Embedded device Bluetooth wireless upgrade method Download PDF

Info

Publication number
CN105893064A
CN105893064A CN201410415014.XA CN201410415014A CN105893064A CN 105893064 A CN105893064 A CN 105893064A CN 201410415014 A CN201410415014 A CN 201410415014A CN 105893064 A CN105893064 A CN 105893064A
Authority
CN
China
Prior art keywords
bluetooth
file
bluetooth equipment
equipment
address
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
CN201410415014.XA
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 Ewell Chip Technology Co Ltd
Original Assignee
Shenzhen Ewell Chip 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 Ewell Chip Technology Co Ltd filed Critical Shenzhen Ewell Chip Technology Co Ltd
Priority to CN201410415014.XA priority Critical patent/CN105893064A/en
Publication of CN105893064A publication Critical patent/CN105893064A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides an embedded device Bluetooth wireless upgrade method, and relates to the wireless data transmission technical field; the method comprises the following steps: building wireless connection between a main device and a Bluetooth device; carrying out data transmission between the main device and the Bluetooth device; defining a storage structure of the Bluetooth device in system hardware; starting technical upgrade by the system through wireless technology. The method can prevent device damages caused by opening and dismounting the device, is fast and convenient, simple in operation, and fast in upgrade speed.

Description

Embedded device bluetooth radio upgrade method
Technical field
The present invention relates to a kind of wireless data transmission technology field, particularly relate to a kind of embedded device bluetooth radio upgrade method.
Background technology
The firmware upgrade mode of current bluetooth equipment (audio amplifier, earphone etc.) system is all by USB or SPI interface, by PC or cd-rom recorder to carry out the upgrading of firmware by the way of wired.The defect that this mode is intrinsic: 1 must pass through wired connection 2 for complete machine without reserved upgrade interface, needs to take complete machine apart.
Summary of the invention
For weak point present in the problems referred to above, the present invention provides a kind of embedded device bluetooth radio upgrade method so that it is avoiding and open and infringement that equipment is caused by dismounting equipment, convenient and swift, simple to operate, renewal speed is fast.
In order to solve the problems referred to above, the present invention provides a kind of embedded device bluetooth radio upgrade method, wherein, comprises the following steps:
S10, main equipment and bluetooth equipment set up wireless connections;
S20, main equipment carry out data transmission with bluetooth equipment;
S30, definition bluetooth equipment are at the storage organization of system firmware;
S40, system start upgrading by wireless technology.
Preferably, in described step S20, the wireless data transmission of described bluetooth equipment is as data transmission channel by the SPP agreement of bluetooth.
Preferably, in described step S30, makeing mistakes occurs when be to ensure that system upgrade in the storage organization of definition system firmware or power down suddenly causes system operation exception.
Preferably, in described step S40, comprise the following steps:
After S401, bluetooth equipment receive EWENTERUPDATE order, bluetooth equipment enters upgrade mode;
After S402, entrance upgrade mode, bluetooth master sends EWUPDATEFILEST, enters file and updates, and incoming filename to be updated;
S403, bluetooth equipment are started to update firmware information by EWUPDATEFILEDATA order, and the address of renewal is the data address of the backup that this document is corresponding;
After S404, EWUPDATEFILEEND order, specified file updates and terminates;
After S405, bluetooth equipment receive EWUPDATEEND order, system update terminates;
S406, file address and the backup address in file information storage region are exchanged, restarting systems simultaneously.
Compared with prior art, the invention have the advantages that
The present invention passes through Bluetooth wireless data transmission technology, main equipment is by the firmware program inside its bluetooth equipment of bluetooth radio upgrade, it is to avoid opening and infringement that equipment is caused by dismounting equipment, convenient and swift, simple to operate, renewal speed is fast.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the present invention.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, with example, the present invention is described in further detail below in conjunction with the accompanying drawings, but example is not as a limitation of the invention.
As it is shown in figure 1, embodiments of the invention comprise the following steps:
S10, main equipment and bluetooth equipment set up wireless connections;
S20, main equipment carry out data transmission with bluetooth equipment;
S30, definition bluetooth equipment are at the storage organization of system firmware;
S40, system start upgrading by wireless technology.
Preferably, in step S20, the wireless data transmission of bluetooth equipment is as data transmission channel by the SPP agreement of bluetooth.
Preferably, in step s 30, makeing mistakes occurs when be to ensure that system upgrade in the storage organization of definition system firmware or power down suddenly causes system operation exception.
Preferably, in step s 40, comprise the following steps:
After S401, bluetooth equipment receive EWENTERUPDATE order, bluetooth equipment enters upgrade mode;
After S402, entrance upgrade mode, bluetooth master sends EWUPDATEFILEST, enters file and updates, and incoming filename to be updated;
S403, bluetooth equipment are started to update firmware information by EWUPDATEFILEDATA order, and the address of renewal is the data address of the backup that this document is corresponding;
After S404, EWUPDATEFILEEND order, specified file updates and terminates;
After S405, bluetooth equipment receive EWUPDATEEND order, system update terminates;
S406, file address and the backup address in file information storage region are exchanged, restarting systems simultaneously.
In the present embodiment, the firmware of system is mainly put on bluetooth master by the upgrading of the system firmware of bluetooth equipment, is connected with bluetooth equipment foundation by main equipment, by the SPP agreement of bluetooth, data is updated wirelessly on bluetooth equipment.
Two main contents it are mainly concerned with in the middle of this:
1, the transfer management of blue-teeth data;
2, the renewal of system firmware.
(1) management of Bluetooth data transfer
The wireless renewal of bluetooth equipment is as data transmission channel by the SPP agreement of bluetooth.
The SPP agreement of bluetooth, full name is Serial Port Profile, and i.e. at bluetooth protocol repertory common serial communication protocol achieved above, this communication tries two-way on principal and subordinate's bluetooth equipment.Mobile phone and the PC of Android is the SPP communication protocol supporting bluetooth at present.
Data below form is used to communicate data communication when:
Command keyword: define a series of order, such as EWENTERUPDATE enters upgrade mode, and EWUPDATEFILEST starts to update file, and EWUPDATEFILEDATA updates file data and waits.
Current data packet timestamp: terminate the sequencing by data from main bluetooth equipment for distinguishing, the value of timestamp is the biggest, the most rearward, from bluetooth equipment is transferred to main equipment when, timestamp is the most in all senses, mainly from master transmissions data to the most meaningful when of from equipment for packet.
The timestamp of last packet: for finding a packet loss of data when.
Data length: the data length of current transmission.
Data check and: for verify current data the most correct.
Data: the data content of transmission, are 2K byte to the maximum.
(2) storage mode of system program
In order to occur the when of ensureing system upgrade makeing mistakes or power down suddenly causes system operation exception, bluetooth equipment has done special handling in terms of the storage of system firmware, and the storage organization of the firmware of system is as follows:
System boot program File information storage Firmware A Firmware A backs up Configuration file B Configuration file B backs up ……
System boot program: the bootstrap of storage system firmware, fixed bit 32K size.Can automatically load this program after system boot start, this program can follow up the different firmware of the content choice in file information storage region and configuration file loads
File information storage: the relevant information of the system file of record storage, specifying information includes:
File number: record has how many files (not very backing up) in being currently up
File size: the length of record current file
File address: the record initial address that store on equipment of current file, can be from the firmware required for the loading of this address or configuration information when that system being run
Backup address: the backup address that record current file stores at equipment
Filename: the name of record current file
Alternative document storage information: if unnecessary one of file number, the storage information of alternative document can be stored below in the same format
Firmware A and firmware A backup: the firmware that system is run, content both system burning for the first time when is identical, and the file address about firmware in file information storage region is the storage position of firmware A, backup address is the address of firmware A backup.The loading of system boot is the address of the file being file information storage region all the time, and the firmware that system start-up i.e. for the first time loads is firmware A.The content of firmware A backup can be updated during having upgraded, update the file address of corresponding adnexa in file information storage region after having updated, so descend subsystem will load the adnexa in adnexa A backup region starting when thus complete the upgrading of adnexa.
Configuration file B and configuration file B backup: system run configuration information, storage and upgrading mode be consistent with firmware
(3) system wireless update flow process
Upgrading main flow is as follows:
After A, bluetooth equipment receive EWENTERUPDATE order, bluetooth equipment enters upgrade mode;
After B, entrance upgrade mode, bluetooth master sends EWUPDATEFILEST, enters file and updates, and incoming filename to be updated;
C, bluetooth equipment are started to update firmware information by EWUPDATEFILEDATA order, the data address that address is the backup that this document is corresponding updated, change of address is the backup address starting filename incoming when updating at the file of file information storage range searching respective file name;
After D, EWUPDATEFILEEND order, specified file updates and terminates;
After E, bluetooth equipment receive EWUPDATEEND order, system update terminates, and needs this time to exchange file address and the backup address in file information storage region, the update action of completion system, simultaneously restarting systems.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.Multiple amendment to these embodiments will be apparent from for those skilled in the art, and generic principles defined herein can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein, and is to fit to the widest scope consistent with principles disclosed herein and features of novelty.

Claims (4)

1. an embedded device bluetooth radio upgrade method, it is characterised in that comprise the following steps:
S10, main equipment and bluetooth equipment set up wireless connections;
S20, main equipment carry out data transmission with bluetooth equipment;
S30, definition bluetooth equipment are at the storage organization of system firmware;
S40, system start upgrading by wireless technology.
2. embedded device bluetooth radio upgrade method as claimed in claim 1, it is characterised in that In described step S20, the wireless data transmission of described bluetooth equipment is the SPP agreement by bluetooth As data transmission channel.
3. embedded device bluetooth radio upgrade method as claimed in claim 1, it is characterised in that In described step S30, the when that the storage organization of definition system firmware being to ensure that system upgrade Make mistakes or power down suddenly causes system operation exception.
4. embedded device bluetooth radio upgrade method as claimed in claim 1, it is characterised in that In described step S40, comprise the following steps:
After S401, bluetooth equipment receive EWENTERUPDATE order, bluetooth equipment enters upgrading mould Formula;
After S402, entrance upgrade mode, bluetooth master sends EWUPDATEFILEST, enters file Update, and incoming filename to be updated.
S403, bluetooth equipment are started to update firmware information by EWUPDATEFILEDATA order, more New address is the data address of the backup that this document is corresponding;
Formulate file renewal after S404, EWUPDATEFILEEND order to terminate;
After S405, bluetooth equipment receive EWUPDATEEND order, system update terminates;
S406, file address and the backup address in file information storage region are exchanged, the most again Startup system.
CN201410415014.XA 2014-08-22 2014-08-22 Embedded device Bluetooth wireless upgrade method Pending CN105893064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410415014.XA CN105893064A (en) 2014-08-22 2014-08-22 Embedded device Bluetooth wireless upgrade method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410415014.XA CN105893064A (en) 2014-08-22 2014-08-22 Embedded device Bluetooth wireless upgrade method

Publications (1)

Publication Number Publication Date
CN105893064A true CN105893064A (en) 2016-08-24

Family

ID=57000003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410415014.XA Pending CN105893064A (en) 2014-08-22 2014-08-22 Embedded device Bluetooth wireless upgrade method

Country Status (1)

Country Link
CN (1) CN105893064A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133071A (en) * 2017-04-27 2017-09-05 广东艾檬电子科技有限公司 The synchronous method and device of a kind of application version
CN109388421A (en) * 2017-08-02 2019-02-26 宇瞻科技股份有限公司 Quickly update the storage device of firmware
CN110025316A (en) * 2019-04-08 2019-07-19 广东工业大学 A kind of low-power consumption can radio upgrade intelligent shoe embedded system
CN110166922A (en) * 2019-05-30 2019-08-23 深圳市安特信技术有限公司 Testing communication system and method based on bluetooth headset

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010049276A1 (en) * 2000-04-06 2001-12-06 Beck Chang-Kyu Received data processing method in communication device for supporting bluetooth wireless communication
CN101577901A (en) * 2009-06-19 2009-11-11 中兴通讯股份有限公司 Wireless access platform and equipment upgrading management system and method thereof
CN101605202A (en) * 2008-06-12 2009-12-16 深圳市同洲电子股份有限公司 Method for updating set-top box software and device
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010049276A1 (en) * 2000-04-06 2001-12-06 Beck Chang-Kyu Received data processing method in communication device for supporting bluetooth wireless communication
CN101605202A (en) * 2008-06-12 2009-12-16 深圳市同洲电子股份有限公司 Method for updating set-top box software and device
CN101577901A (en) * 2009-06-19 2009-11-11 中兴通讯股份有限公司 Wireless access platform and equipment upgrading management system and method thereof
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133071A (en) * 2017-04-27 2017-09-05 广东艾檬电子科技有限公司 The synchronous method and device of a kind of application version
CN109388421A (en) * 2017-08-02 2019-02-26 宇瞻科技股份有限公司 Quickly update the storage device of firmware
CN109388421B (en) * 2017-08-02 2022-01-04 宇瞻科技股份有限公司 Storage device for quickly updating firmware
CN110025316A (en) * 2019-04-08 2019-07-19 广东工业大学 A kind of low-power consumption can radio upgrade intelligent shoe embedded system
CN110166922A (en) * 2019-05-30 2019-08-23 深圳市安特信技术有限公司 Testing communication system and method based on bluetooth headset

Similar Documents

Publication Publication Date Title
US10223132B2 (en) Synchronization between electronic devices
CN105791387B (en) Vehicle control updating method and system
CN102232304A (en) Method, system and terminal for system update between mobile communication terminals
US20160162271A1 (en) Application Migration Method, Device and System for Mobile Terminal
WO2009069118A3 (en) Method and configuration adapters for wireless and wired networks design
CN105893064A (en) Embedded device Bluetooth wireless upgrade method
EP2400714A1 (en) Method and system for multi-stage device filtering in a bluetooth low energy device
CN102946600B (en) A kind of mobile terminal parameter firmware upgrade method and system
US20090217256A1 (en) Method and apparatus for updating firmware in portable terminal
CN104850301A (en) Method and system for classifying application icons on system desktop
CN103176824A (en) System upgrade method and system upgrade device
CN105743948A (en) Network version upgrading method and apparatus
WO2013178048A1 (en) Method and device for generating firmware over-the-air upgrade package
CN104427579A (en) Method for establishing wireless local area network through mobile terminal and mobile terminal
CN108183827A (en) Configuration method and startup configuration equipment based on low-power consumption bluetooth mesh network
CN104202440A (en) Method for identifying terminal, server and system
CN103377689A (en) Memory device and wireless communication control method of the same
US9031508B2 (en) Method of updating into service category table in device and device for the same
CN106339236A (en) Software upgrading method, client, interphone and soft upgrading system
CN104301438A (en) File uploading method
CN105205100A (en) Data synchronization method based on MTP between terminals and terminals
US9398444B2 (en) Computer-readable recording medium, mobile device, and wireless communication system
EP3043262A1 (en) Method and device for remote base station version installation
CN106470114A (en) A kind of collocation method of OTA AKU and device
CN104135575A (en) Multi-card communication system based on mobile phone management

Legal Events

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

Application publication date: 20160824