CN109951842B - Method for reserving BLE name and MAC address in Bluetooth firmware upgrade - Google Patents

Method for reserving BLE name and MAC address in Bluetooth firmware upgrade Download PDF

Info

Publication number
CN109951842B
CN109951842B CN201910206175.0A CN201910206175A CN109951842B CN 109951842 B CN109951842 B CN 109951842B CN 201910206175 A CN201910206175 A CN 201910206175A CN 109951842 B CN109951842 B CN 109951842B
Authority
CN
China
Prior art keywords
data
ble
intelligent
firmware
data terminal
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.)
Active
Application number
CN201910206175.0A
Other languages
Chinese (zh)
Other versions
CN109951842A (en
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.)
Xiamenshi C Chip Co ltd
Original Assignee
Xiamenshi C Chip 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 Xiamenshi C Chip Co ltd filed Critical Xiamenshi C Chip Co ltd
Priority to CN201910206175.0A priority Critical patent/CN109951842B/en
Publication of CN109951842A publication Critical patent/CN109951842A/en
Application granted granted Critical
Publication of CN109951842B publication Critical patent/CN109951842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the technical field of wireless communication, in particular to a method for reserving BLE names and MAC addresses in Bluetooth firmware upgrading, which comprises the following steps: step one (S101), establishing upgrade service connection between a mobile intelligent data terminal and intelligent BLE equipment; step two (S102), the mobile intelligent data terminal reads the BLE name, the MAC address and the current version information of the connected intelligent BLE equipment; step three (S103), selecting a new firmware to be upgraded by the mobile intelligent data terminal; step four (S104), the mobile intelligent data terminal writes the BLE name and the MAC address into a certain specific position of the firmware and recalculates the firmware data check value; and step five (S105), the mobile intelligent data terminal issues firmware data packets and the like in sequence. Has the advantages that: the technical problem that BLE names and MAC addresses are brushed off due to updating of firmware of intelligent BLE equipment in the prior art is solved, the safety of data writing is improved, data are prevented from being modified and tampered randomly, and the upgrading cost is effectively reduced.

Description

Method for reserving BLE name and MAC address in Bluetooth firmware upgrade
Technical Field
The invention belongs to the technical field of wireless communication, and particularly relates to a method for reserving BLE names and MAC addresses in Bluetooth firmware upgrading.
Background
With the increasing maturity of BLE (bluetooth low energy) technique, BLE has obtained extensive application in smart machine and intelligent control, and present BLE smart machine commonly has intelligent box, intelligent bluetooth speaker or intelligent lamp etc. that support the BLE agreement. Manufacturers can update firmware of BLE intelligent equipment due to the needs of repairing product defects, adding functions and the like, and an online updating method based on BLE is widely applied and has the advantages of saving resources, saving time and saving labor compared with other modes.
However, the current equipment manufacturer generally incorporates the BLE name and the authorized MAC address code into the firmware and writes the BLE name and the authorized MAC address code into the bluetooth chip, which increases the security, but also causes that it is unknown which equipment will be upgraded when upgrading, especially when upgrading the firmware, and it is impossible to manufacture the upgraded firmware according to the BLE name and the MAC address of each equipment, which causes great troubles in upgrading work.
Therefore, a method which can simplify the operation and has strong practicability is needed to solve the problem that the stored BLE name and MAC address of the existing BLE device are flushed in firmware upgrade.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides a method for keeping a BLE name and an MAC address in Bluetooth firmware upgrading, solves the technical problem that the BLE name and the MAC address are brushed off due to updating of intelligent BLE equipment firmware in the prior art, improves the safety of data writing, avoids data from being modified and tampered randomly, and effectively reduces upgrading cost.
The specific technical scheme is as follows: a method of preserving BLE name and MAC address in bluetooth firmware upgrade, the method comprising the steps of:
step one (S101), establishing upgrade service connection between a mobile intelligent data terminal and intelligent BLE equipment;
step two (S102), the mobile intelligent data terminal reads the BLE name, the MAC address and the current version information of the connected intelligent BLE equipment;
step three (S103), selecting a new firmware to be upgraded by the mobile intelligent data terminal;
step four (S104), the mobile intelligent data terminal writes the BLE name and the MAC address into a certain specific position of the firmware and recalculates the firmware data check value;
step five (S105), the mobile intelligent data terminal issues firmware data packets in sequence;
step six (S106), the intelligent BLE equipment checks the received data packet, and if the data is wrong or lost, the intelligent BLE equipment informs the mobile intelligent data terminal to resend the corresponding data packet;
seventhly (S107), the intelligent BLE equipment receives all data and checks the data to determine whether the data are consistent with the check value in the firmware, and then replies to the mobile intelligent data terminal;
and step eight (S108), the intelligent BLE equipment is restarted, an upgrading mode is entered, and the BLE name and the MAC address of the specified position of the file are updated to the current system after the equipment software is upgraded.
Preferably, the specific process of establishing an upgrade service connection between the mobile intelligent data terminal and the intelligent BLE device in the first step (S101) of the method for retaining the BLE name and the MAC address in the bluetooth firmware upgrade includes:
the mobile intelligent data terminal searches for intelligent BLE equipment through a BLE module, and detects whether the intelligent BLE equipment has the upgrade service defined earlier or not after the BLE connection is established; if so, establishing upgrade service connection; if the intelligent BLE device does not have the service, the mobile intelligent data terminal refuses to upgrade the firmware of the intelligent BLE device.
Preferably, in step two (S102) of the method for retaining a BLE name and a MAC address in bluetooth firmware upgrade, the mobile intelligent data terminal reads the BLE name, the MAC address, and the current version information of the connected intelligent BLE device, and the specific process is as follows:
on the basis that upgrading service is established with intelligent BLE equipment, the mobile intelligent data terminal inserts the MAC address of the intelligent BLE equipment into a BLE broadcast packet and acquires the firmware version number of the current intelligent BLE equipment through an appointed interface;
send command (mobile intelligent data terminal- > intelligent BLE device) format:
length (byte) 1 11 1
Content providing method and apparatus Instructions for: 0xAA Data APP _ GET _ VER Check value
Intelligent BLE device command response (intelligent BLE device- > mobile intelligent data terminal) format:
Figure DEST_PATH_IMAGE002
the response data states:
CCHIP 880: name of item
SV 001: software version number, only firmware higher than this can be upgraded
20181228: version date, format year, month and day
HV 004: hardware version number
If the data responded exceeds 20 bytes, the data is recovered in the form of packets.
Preferably, in step three (S103) of the method for retaining a BLE name and an MAC address in bluetooth firmware upgrade, a specific process of selecting a new firmware to be upgraded by the mobile intelligent data terminal is as follows:
the mobile intelligent data terminal matches whether new firmware exists locally or in a cloud according to the acquired information such as the project name, the hardware version number and the software version number, firstly matches the project name, matches the hardware version number under the condition that the project names are consistent, and then detects the version higher than the software version number under the condition that the hardware version number is consistent.
Preferably, in step four (S104) of the method for retaining the BLE name and the MAC address in the bluetooth firmware upgrade, the specific process of writing the BLE name and the MAC address into a certain specific new location of the firmware and recalculating the firmware data check value by the mobile intelligent data terminal is as follows:
writing BLE names and MAC addresses into specific positions of new firmware files according to the convention of the mobile intelligent data terminal and the intelligent BLE equipment board terminal:
// write MAC Address
mFileBuffer[1032213] = macaddress[0]; mFileBuffer[1032212] = macaddress[1]; mFileBuffer[1032211] = macaddress[2]; mFileBuffer[1032210] = macaddress[3]; mFileBuffer[1032209] = macaddress[4]; mFileBuffer[1032208] = macaddress[5]; for (intforCount = 0; forCount < 32; forCount++) { mFileBuffer[1032214 + forCount] = 0x00; }
// write BLE name for (intforCount = 0; forCount< deviceByte.length; forCount++) { mFileBuffer[1032214 + forCount] = deviceByte[forCount]; stringBuilder.append(String.format("%02X ", mFileBuffer[1032214 + forCount])); }
Because the data of the firmware file is modified, the CRC check value needs to be recalculated and written into the firmware:
public OTAcrcCalcul(byte[] file, boolean isH1File, int fileLength) {
modifyLoadFile = file; crcValue = 0xffffffffL;
// recalculate CRC check value mFileLength = fileLength,/make _ CRC32_ table (); make _ CRC32(crcValue, mFileLength-16); checksum. update (modifyLoadFile, 16, mFileLength-16); long checkValue = (checkSum. getValue ();
writing a new CRC check value to the new firmware mod ifyLoadFile [0] = (byte) (checkValue & 0xff); mod ifyLoadFile [1] = (byte) ((checkValue > > 8) & 0xff); mod ifyLoadFile [2] = (byte) ((checkValue > > 16) & 0xff); mod ifyLoadFile [3] = (byte) ((checkValue > > 24) & 0xff); j
When the file data is modified, the CRC value of the file also needs to be synchronized, so that the data consistency and the safety are ensured.
Preferably, the specific process of issuing the firmware data packets by the mobile intelligent data terminal in sequence in the fifth step (S105) of the method for retaining the BLE name and the MAC address in the bluetooth firmware upgrade is as follows:
a new firmware file is sent in multiple packets, and the sending data format is as follows: 2bytes package number +16bytes content +2bytes CRC; and when the data transmission is started, starting transmission abnormal monitoring for processing the resending of the abnormal data.
Preferably, in the method for retaining the BLE name and the MAC address in the bluetooth firmware upgrade, in step six (S106), the intelligent BLE device checks the received data packet, and if there is a data error or loss, notifies the mobile intelligent data terminal to resend the corresponding data packet;
the intelligent BLE equipment checks each received data packet, judges the validity and continuity of data, and if data are abnormal, if the sequence number of the received data packet is discontinuous or the data check is inconsistent with the data transmitted by the mobile intelligent data terminal, the mobile intelligent data terminal is informed of the data abnormality and carries the sequence number of the abnormal data packet; and after receiving the abnormal message notified by the intelligent BLE equipment, the mobile intelligent data terminal extracts the serial number of the abnormal packet, organizes the data according to the serial number again according to the format and issues the data.
Preferably, in the method for reserving the BLE name and the MAC address in the bluetooth firmware upgrade, in step seven (S107), the intelligent BLE device receives all data and checks, determines whether the data is consistent with the check value in the firmware, and then replies to the mobile intelligent data terminal;
the intelligent BLE equipment performs CRC on all received data, the obtained value is compared with a CRC value in firmware, if the obtained value is consistent with the CRC value, the data is complete and can enter upgrading, and if the obtained value is inconsistent with the CRC value, the data is invalid; the intelligent BLE equipment informs the mobile intelligent data terminal of the result, the mobile intelligent data terminal contains abnormal information, and the mobile intelligent data terminal makes the next step of instruction according to the received information: if a message of successful data reception is received, issuing a device restart instruction; and if the message of data abnormity is received, prompting the user on the UI, and the user can automatically judge whether to operate upgrading again.
Preferably, the specific process of step eight (S108) of the method for retaining the BLE name and the MAC address in bluetooth firmware upgrade includes entering an upgrade mode after the intelligent BLE device is restarted, upgrading software of the device according to an original mechanism, reading the BLE name and the MAC address data of an appointed position in a new firmware file after the software is upgraded, updating the BLE name and the MAC address data into a current system, and keeping the BLE name and the MAC address consistent before and after upgrading.
Preferably, the intelligent mobile data terminal in the method for reserving the BLE name and the MAC address in the bluetooth firmware upgrade may be a smart phone, a tablet computer or a notebook computer; the intelligent BLE device can be an intelligent box, an intelligent Bluetooth sound box or an intelligent lamp supporting a BLE protocol.
After the technical scheme is adopted, the invention has the beneficial effects that:
the invention aims to overcome the defects of the prior art, provides a method and a system for reserving a BLE name and an MAC address in Bluetooth firmware upgrading, solves the technical problem that the BLE name and the MAC address are brushed off due to updating of firmware of intelligent BLE equipment in the prior art, improves the safety of data writing, avoids data from being modified and tampered randomly, and effectively reduces upgrading cost.
Drawings
Figure 1 shows a device involved in a method for reserving a BLE name and a MAC address in bluetooth firmware upgrade
Figure 2 shows method steps for reserving BLE name and MAC address in bluetooth firmware upgrade
Detailed Description
The invention will now be described in more detail with reference to the accompanying figures 1 to 2 and the specific examples, without limiting the invention thereto.
As shown in fig. 1, the system includes an intelligent mobile data terminal and an intelligent BLE device, where the intelligent mobile data terminal may be a smart phone, a tablet computer, a notebook computer, etc., and the intelligent BLE device may be an intelligent box, an intelligent bluetooth speaker, an intelligent lamp, etc. that support a BLE protocol, in the following embodiment, the intelligent mobile data terminal is a smart phone, and the intelligent BLE device is an intelligent BLE speaker.
Referring to fig. 2, an implementation process of a method and a system for reserving a BLE name and an MAC address in bluetooth firmware upgrade according to an embodiment of the present invention mainly includes the following steps:
step one (S101), establishing an upgrade service connection between a smart phone APP and smart BLE equipment;
in the embodiment of the invention, the intelligent BLE equipment can be an intelligent box, an intelligent Bluetooth sound box or an intelligent lamp, Bluetooth is turned on through an intelligent mobile phone APP, the intelligent BLE equipment is searched, after BLE connection is established, whether the intelligent BLE equipment has the defined upgrade service or not is detected, and if yes, upgrade service connection is established; if the intelligent BLE device does not have the service, the APP refuses to perform firmware upgrading on the intelligent BLE device.
Step two (S102), the smart phone APP reads a BLE name, an MAC address and current version information of current smart BLE equipment;
in the embodiment of the invention, since the Android system can read the name and the MAC address of the intelligent BLE device, and the iOS system cannot read the physical address, the MAC address of the intelligent BLE device needs to be inserted into the BLE broadcast packet, so that the mobile phone of the iOS system can read the MAC address and the BLE name without adding an interface.
And then, acquiring the firmware version number of the current intelligent BLE device through an agreed interface on the basis that the APP and the intelligent BLE device establish upgrade service.
Send command (smart hand APP- > smart BLE device) format:
length (byte) 1 11 1
Content providing method and apparatus Instructions for: 0xAA Data APP _ GET _ VER Check value
Smart BLE device command response (smart BLE device- > smartphone APP) format:
Figure DEST_PATH_IMAGE004
the response data states:
CCHIP 880: name of item
SV 001: software version number, only firmware higher than this can be upgraded
20181228: version date, format year, month and day
HV 004: hardware version number
If the data responded exceeds 20 bytes, the data is recovered in the form of packets.
Step three (S103) selecting a new firmware to be upgraded by the smart phone APP;
in the embodiment of the invention, the smart phone APP matches whether new firmware exists locally or in a cloud according to the information such as the project name, the hardware version number and the software version number obtained in the last step, firstly matches the project name, matches the hardware version number under the condition that the project names are consistent, and then detects the version higher than the software version number under the condition that the hardware version number is consistent. If the new firmware that gets downloaded in the high in the clouds can be preserved in local, conveniently give another intelligent BLE equipment upgrading.
Step four (S104), the smart phone APP writes the BLE name and the MAC address into a certain special new position of the firmware and recalculates the firmware data check value;
in the embodiment of the present invention, according to the convention between the APP and the board end, the BLE name and the MAC address are written into the specific location of the new firmware file:
// write MAC Address
mFileBuffer[1032213] = macaddress[0]; mFileBuffer[1032212] = macaddress[1]; mFileBuffer[1032211] = macaddress[2]; mFileBuffer[1032210] = macaddress[3]; mFileBuffer[1032209] = macaddress[4]; mFileBuffer[1032208] = macaddress[5]; for (intforCount = 0; forCount < 32; forCount++) { mFileBuffer[1032214 + forCount] = 0x00; }
// write a BLE name for (intforCount = 0; forCount< deviceByte.length; forCount++) { mFileBuffer[1032214 + forCount] = deviceByte[forCount]; stringBuilder.append(String.format("%02X ", mFileBuffer[1032214 + forCount])); }
Because the data of the firmware file is modified, the CRC check value needs to be recalculated and written into the firmware:
public OTAcrcCalcul(byte[] file, booleanisH1File, intfileLength) {
modifyLoadFile= file; crcValue= 0xffffffffL;
// recalculate CRC check value mFileLength = fileLength,/make _ CRC32_ table (); make _ CRC32(crcValue, mFileLength-16); checksum. update (modifyLoadFile, 16, mFileLength-16); long checkValue = (checkSum. getValue ();
writing a new CRC check value to the new firmware mod ifyLoadFile [0] = (byte) (checkValue & 0xff); mod ifyLoadFile [1] = (byte) ((checkValue > > 8) & 0xff); mod ifyLoadFile [2] = (byte) ((checkValue > > 16) & 0xff); mod ifyLoadFile [3] = (byte) ((checkValue > > 24) & 0xff); j
When the file data is modified, the CRC value of the file also needs to be synchronized, so that the data consistency and the safety are ensured.
Step five (S105) the smart phone APP issues firmware data packets in sequence;
in the embodiment of the present invention, because the size of each packet of BLE data transmission is limited (maximum 20 bytes at a time), a new firmware file is sent in multiple packets, and the data format is sent: 2bytes package number +16bytes content +2bytes CRC. And when the data transmission is started, starting transmission abnormal monitoring for processing the resending of the abnormal data.
Step six (S106), the intelligent BLE equipment checks the received data packet, and if the data is wrong or lost, the APP is informed to resend the corresponding data packet;
in the embodiment of the invention, the intelligent BLE equipment checks each received data packet, judges the validity and continuity of data, and if data is abnormal, if the sequence number of the received data packet is discontinuous or the data check is inconsistent with the data issued by the APP, the intelligent BLE equipment informs the APP of the data abnormality and carries the abnormal data packet sequence number.
In the embodiment of the invention, after receiving the abnormal message notified by the intelligent BLE equipment, the APP extracts the serial number of the abnormal packet, organizes the data according to the serial number again according to the format and issues the data.
Seventhly (S107) the intelligent BLE equipment receives all data and checks the data to determine whether the data are consistent with the check value in the firmware, and then replies to the APP;
in the embodiment of the invention, the intelligent BLE equipment performs CRC check on all received data, the obtained value is compared with a CRC check value in firmware, if the obtained value is consistent with the CRC check value in the firmware, the data is complete and can enter upgrading, and if the obtained value is inconsistent with the CRC check value in the firmware, the data is invalid; the intelligent BLE device informs the APP of the result, the APP contains abnormal messages, and the APP performs the next step of instructions according to the received messages, such as: when a message of successful data reception is received, a device restart instruction is issued, and if a message of data exception is received, a user is prompted on the UI, and the user can automatically judge whether to operate upgrading again.
Step eight (S108) restarting the intelligent BLE equipment, entering an upgrading mode, and updating the BLE name and the MAC address of the specified position of the file into the current system after the software of the intelligent BLE equipment is upgraded;
in the embodiment of the invention, after the intelligent BLE equipment is restarted, the intelligent BLE equipment enters an upgrading mode, the software of the equipment is upgraded according to the original mechanism, after the software is upgraded, the BLE name and the MAC address data of the appointed position in the new firmware file are read, the BLE name and the MAC address data are updated to the current system, and the BLE name and the MAC address before and after upgrading are kept consistent.
It will be appreciated by those skilled in the art that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The embodiments disclosed above are therefore to be considered in all respects as illustrative and not restrictive. All changes which come within the scope of or equivalence to the invention are intended to be embraced therein.

Claims (6)

1. A method of preserving BLE name and MAC address in bluetooth firmware upgrade, the method comprising the steps of:
step one (S101), establishing upgrade service connection between a mobile intelligent data terminal and intelligent BLE equipment;
step two (S102), the mobile intelligent data terminal reads the BLE name, the MAC address and the current version information of the connected intelligent BLE equipment; wherein, remove intelligent data terminal through reading BLE name, the MAC address and the current version information of the intelligent BLE equipment that has connected, concrete process is:
on the basis that upgrading service is established with intelligent BLE equipment, the mobile intelligent data terminal inserts the MAC address of the intelligent BLE equipment into a BLE broadcast packet and acquires the firmware version number of the current intelligent BLE equipment through an appointed interface;
sending command format:
Figure FDA0003466176880000011
intelligent BLE device command response format:
Figure FDA0003466176880000012
the response data states:
CCHIP 880: name of item
SV 001: software version number, only firmware higher than this can be upgraded
20181228: version date, format year, month and day
HV 004: hardware version number
If the data responded exceeds 20 bytes, the data is replied in a form of packet;
step three (S103), selecting a new firmware to be upgraded by the mobile intelligent data terminal; the specific process of selecting the new firmware to be upgraded by the mobile intelligent data terminal is as follows:
the mobile intelligent data terminal matches whether new firmware exists locally or in a cloud side according to the acquired information such as the project name, the hardware version number and the software version number, firstly matches the project name, matches the hardware version number under the condition that the project names are consistent, and then detects a version higher than the software version number under the condition that the hardware version number is consistent;
step four (S104), the mobile intelligent data terminal writes the BLE name and the MAC address into a certain specific position of the firmware and recalculates the firmware data check value; the specific process of writing the BLE name and the MAC address into a certain special new position of the firmware and recalculating the firmware data check value by the mobile intelligent data terminal is as follows:
writing a BLE name and an MAC address into a specific position of a new firmware file according to the convention of the mobile intelligent data terminal and the intelligent BLE equipment board terminal;
because the data of the firmware file is modified, the CRC check value needs to be recalculated and written into the firmware;
when the file data is modified, the CRC value of the file also needs to be synchronized, so that the data consistency and the safety are ensured;
step five (S105), the mobile intelligent data terminal issues firmware data packets in sequence;
step six (S106), the intelligent BLE equipment checks the received data packet, and if the data is wrong or lost, the intelligent BLE equipment informs the mobile intelligent data terminal to resend the corresponding data packet;
seventhly (S107), the intelligent BLE equipment receives all data and checks the data to determine whether the data are consistent with the check value in the firmware, and then replies to the mobile intelligent data terminal;
step eight (S108), the intelligent BLE equipment is restarted, an upgrading mode is entered, and the BLE name and the MAC address of the specified position of the file are updated to the current system after the equipment software is upgraded; the specific process is that after the intelligent BLE equipment is restarted, the intelligent BLE equipment enters an upgrading mode, the software of the equipment is upgraded according to an original mechanism, after the software is upgraded, BLE names and MAC address data of appointed positions in new firmware files are read, the BLE names and the MAC address data are updated to a current system, and the BLE names and the MAC addresses before and after upgrading are kept consistent.
2. The method according to claim 1, wherein the specific process of establishing an upgrade service connection between the mobile intelligent data terminal and the intelligent BLE device in the step one (S101) is as follows:
the mobile intelligent data terminal searches for intelligent BLE equipment through a BLE module, and detects whether the intelligent BLE equipment has the upgrade service defined earlier or not after the BLE connection is established; if so, establishing upgrade service connection; if the intelligent BLE device does not have the service, the mobile intelligent data terminal refuses to upgrade the firmware of the intelligent BLE device.
3. The method according to claim 1, wherein the specific process of issuing firmware data packets by the mobile intelligent data terminal in the fifth step (S105) in sequence is as follows:
a new firmware file is sent in multiple packets, and the sending data format is as follows: 2bytes package number +16bytes content +2bytes CRC; and when the data transmission is started, starting transmission abnormal monitoring for processing the resending of the abnormal data.
4. The method according to claim 1, wherein in step six (S106), the intelligent BLE device checks the received data packet, and if there is a data error or data loss, notifies the mobile intelligent data terminal to resend the corresponding data packet;
the intelligent BLE equipment checks each received data packet, judges the validity and continuity of data, and if data are abnormal, if the sequence number of the received data packet is discontinuous or the data check is inconsistent with the data transmitted by the mobile intelligent data terminal, the mobile intelligent data terminal is informed of the data abnormality and carries the sequence number of the abnormal data packet; and after receiving the abnormal message notified by the intelligent BLE equipment, the mobile intelligent data terminal extracts the serial number of the abnormal packet, organizes the data according to the serial number again according to the format and issues the data.
5. The method according to claim 1, wherein in step seven (S107), the smart BLE device receives all data and performs verification to determine whether the data is consistent with the check value in the firmware, and then replies to the mobile smart data terminal;
the intelligent BLE equipment performs CRC on all received data, the obtained value is compared with a CRC value in firmware, if the obtained value is consistent with the CRC value, the data is complete and can enter upgrading, and if the obtained value is inconsistent with the CRC value, the data is invalid; the intelligent BLE equipment informs the mobile intelligent data terminal of the result, the mobile intelligent data terminal contains abnormal information, and the mobile intelligent data terminal makes the next step of instruction according to the received information: if a message of successful data reception is received, issuing a device restart instruction; and if the message of data abnormity is received, prompting the user on the UI, and the user can automatically judge whether to operate upgrading again.
6. The method according to claim 1, wherein the smart mobile data terminal may be a smart phone, a tablet computer or a laptop computer; the intelligent BLE device can be an intelligent box, an intelligent Bluetooth sound box or an intelligent lamp supporting a BLE protocol.
CN201910206175.0A 2019-03-19 2019-03-19 Method for reserving BLE name and MAC address in Bluetooth firmware upgrade Active CN109951842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910206175.0A CN109951842B (en) 2019-03-19 2019-03-19 Method for reserving BLE name and MAC address in Bluetooth firmware upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910206175.0A CN109951842B (en) 2019-03-19 2019-03-19 Method for reserving BLE name and MAC address in Bluetooth firmware upgrade

Publications (2)

Publication Number Publication Date
CN109951842A CN109951842A (en) 2019-06-28
CN109951842B true CN109951842B (en) 2022-03-15

Family

ID=67009055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910206175.0A Active CN109951842B (en) 2019-03-19 2019-03-19 Method for reserving BLE name and MAC address in Bluetooth firmware upgrade

Country Status (1)

Country Link
CN (1) CN109951842B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110621011B (en) * 2019-09-12 2022-11-04 北京方研矩行科技有限公司 OTA firmware upgrading method and system based on Bluetooth device side
CN111030735A (en) * 2019-12-11 2020-04-17 深圳市蓝蜂时代实业有限公司 Method and system for customizing Bluetooth headset name based on BLE protocol, and headset
CN111225285A (en) * 2020-01-07 2020-06-02 海信视像科技股份有限公司 Bluetooth device display name modification and display method, device, equipment and medium
CN115226094A (en) * 2022-07-08 2022-10-21 深圳市中易腾达科技股份有限公司 OTA (over the air) upgrading method and system capable of automatically identifying Bluetooth chip type

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI497415B (en) * 2013-06-21 2015-08-21 Wistron Neweb Corp Methods for upgrading firmware and apparatuses using the same
CN104166565B (en) * 2014-08-11 2017-10-17 成都瑞博慧窗信息技术有限公司 A kind of intelligent display terminal firmware upgrade method
CN104184553B (en) * 2014-09-02 2018-03-23 广东欧珀移动通信有限公司 Low-power consumption bluetooth data transmission method, device and equipment
CN104915237B (en) * 2015-06-24 2019-02-15 深圳市海蕴新能源有限公司 Upgrading, upgrade control method and the equipment of bluetooth equipment firmware program
CN105320553A (en) * 2015-12-07 2016-02-10 浪潮集团有限公司 Method and system for updating network card firmware on basis of domestic processor platform
CN106878486A (en) * 2017-03-06 2017-06-20 郑州云海信息技术有限公司 A kind of method and system for preventing Onboard NIC MAC Address from being changed
CN107085525A (en) * 2017-03-17 2017-08-22 深圳市战音科技有限公司 Method for upgrading software and device based on Bluetooth electronic devices
CN106972961A (en) * 2017-03-21 2017-07-21 上海动联信息技术股份有限公司 A kind of safety means firmware upgrade method based on bluetooth
CN107450945A (en) * 2017-07-13 2017-12-08 北京小鸟看看科技有限公司 A kind of firmware update of virtual reality device
CN107222643A (en) * 2017-07-25 2017-09-29 深圳市芯中芯科技有限公司 A kind of bluetooth equipment firmware upgrade method and system based on software APP technologies
CN109327824A (en) * 2018-08-31 2019-02-12 上海与德通讯技术有限公司 Upgrade-system, method, terminal and the computer readable storage medium of bluetooth equipment
CN108882217B (en) * 2018-09-06 2021-04-27 江苏恒宝智能系统技术有限公司 Method for writing Bluetooth MAC addresses in batches and Bluetooth equipment thereof

Also Published As

Publication number Publication date
CN109951842A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN109951842B (en) Method for reserving BLE name and MAC address in Bluetooth firmware upgrade
WO2021083244A1 (en) Multi-device batch firmware upgrade method for mesh network device
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN111145523B (en) Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
CN107104836A (en) The firmware upgrade method and device of Zigbee equipment
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN102946600B (en) A kind of mobile terminal parameter firmware upgrade method and system
KR20020056733A (en) Method for processing message in cellular base station system
CN109857437A (en) A kind of upgrade method and system of bluetooth equipment
WO2008148278A1 (en) Method for exchanging large-capacity data between mobile terminal and smart card
WO2016173128A1 (en) Method and device for downloading software version, and storage medium
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
CN103685489A (en) File transmitting method in wireless network
CN112291766B (en) Bluetooth equipment and firmware upgrading method and system thereof
US20230224654A1 (en) Earphone debugging method and device, and storage medium
CN113721966A (en) Node upgrading method and device, storage medium and electronic device
CN110769411B (en) Method, device, equipment and system for stably realizing batch OTA (over the air) upgrade of terminal equipment
CN109819562B (en) System for wirelessly upgrading DMX lamp by computer
CN103533534B (en) Firmware wireless upgrading method for DECT (Digital Enhanced Cordless Telecommunications) mobile phone
CN111459524A (en) Software upgrading method, device and system
WO2016179866A1 (en) Method and system for updating smart card of mobile terminal
CN112286565B (en) Embedded system differential upgrading method based on storage container
CN110704080B (en) Method for upgrading Bluetooth module through Wi-Fi module
CN101938765B (en) The method and system of a kind of webmaster and network element automatic adaptation
WO2017000713A1 (en) Method and device for synchronizing clock time transport modes in optical transport network

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
GR01 Patent grant
GR01 Patent grant