CN110704080A - Method for upgrading Bluetooth module through Wi-Fi module - Google Patents

Method for upgrading Bluetooth module through Wi-Fi module Download PDF

Info

Publication number
CN110704080A
CN110704080A CN201910875443.8A CN201910875443A CN110704080A CN 110704080 A CN110704080 A CN 110704080A CN 201910875443 A CN201910875443 A CN 201910875443A CN 110704080 A CN110704080 A CN 110704080A
Authority
CN
China
Prior art keywords
module
bluetooth
upgrading
bluetooth module
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.)
Granted
Application number
CN201910875443.8A
Other languages
Chinese (zh)
Other versions
CN110704080B (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.)
Xiamen Sixin Micro Technology Co Ltd
Original Assignee
Xiamen Sixin Micro 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 Xiamen Sixin Micro Technology Co Ltd filed Critical Xiamen Sixin Micro Technology Co Ltd
Priority to CN201910875443.8A priority Critical patent/CN110704080B/en
Publication of CN110704080A publication Critical patent/CN110704080A/en
Application granted granted Critical
Publication of CN110704080B publication Critical patent/CN110704080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

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

Abstract

The invention belongs to the field of connection methods of Bluetooth communication equipment, and particularly relates to a method for upgrading a Bluetooth module through a Wi-Fi module, which comprises the following specific steps: when the intelligent Bluetooth sound box is powered on, the Bluetooth module sends the equipment information to the Wi-Fi module through the UART; after receiving the firmware, the Bluetooth module starts to be upgraded, restarts after the upgrade is finished, and reports the upgraded equipment information to the Wi-Fi module; after confirming that the device information contains updated version information, the Wi-Fi module marks a flag of the Bluetooth module as successful; otherwise, the upgrade is marked as failure and the next upgrade is carried out. Has the advantages that: firstly, the Bluetooth module is upgraded in the air through the Wi-Fi module, so that the dependence of a third-party tool is reduced, and the user experience is improved; secondly, equipment information of the Bluetooth module is acquired through the Wi-Fi module, and Bluetooth equipment can be managed through the cloud server; and thirdly, the Bluetooth module is upgraded through the Wi-Fi module, dependence on APP is avoided, and development and maintenance costs of the Android system and the IOS terminal APP are reduced.

Description

Method for upgrading Bluetooth module through Wi-Fi module
Technical Field
The invention belongs to the field of connection methods of Bluetooth communication equipment, and particularly relates to a method for upgrading a Bluetooth module through a Wi-Fi module.
Background
At present, the mode of upgrading the bluetooth module of the intelligent bluetooth device mainly comprises connecting a computer through a USB port, upgrading the bluetooth module, and upgrading the bluetooth module by inserting an SD card or upgrading the bluetooth module through APP of mobile data terminals such as smart phones. However, the disadvantages of the above-mentioned methods are: the intelligent Bluetooth device is connected with a PC through a USB interface, a Bluetooth module is upgraded, a PC end is required to download upgrade software, and the upgrade is applied through the PC end, so that the upgrade method is complicated; the intelligent Bluetooth device upgrades the Bluetooth module through an external SD card, the SD card is required to be used in the mode, and the SD card must store upgrading firmware first, so that the operation is also troublesome; the intelligent Bluetooth device upgrades the Bluetooth module by connecting other mobile data terminals APP, the APP of the IOS and the Android terminal needs to be developed, and the development and maintenance cost is increased.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for upgrading a Bluetooth module through a Wi-Fi module.
The method comprises the following steps of (1) relating to an intelligent Bluetooth device and a cloud server; the intelligent Bluetooth device comprises a Bluetooth module and a Wi-Fi module; the Bluetooth module is connected with the Wi-Fi module through a serial port;
the method comprises the following steps:
when the intelligent Bluetooth device is powered on, the Bluetooth module sends device information to the Wi-Fi module through the serial port; the equipment information comprises version information, an MAC address and an equipment UUID number;
after networking, the Wi-Fi module logs in and accesses the cloud server, reports the equipment information of the Bluetooth module to the cloud server and sends an intelligent Bluetooth equipment upgrading request; if the cloud server does not have the firmware required by the upgrading of the intelligent Bluetooth device, the upgrading is not carried out; otherwise, the Wi-Fi module downloads the firmware into the RAM of the chip; after the firmware is downloaded, the Bluetooth module is verified through a built-in verification program; if the verification fails, upgrading is not carried out; if the verification is passed, the Wi-Fi module initiates a request command of firmware upgrading to the Bluetooth module through a serial port command, wherein the command format is as follows:
Figure 100002_DEST_PATH_IMAGE001
after receiving a request for upgrading, the Bluetooth module performs software reboot operation and replies reboot information to the Wi-Fi module through the serial port; after receiving the information, the Wi-Fi module circularly sends an upgrading command to the Bluetooth module through the serial port at a time interval of 50 ms; if the Bluetooth module receives an upgrading command during starting, replying information to be upgraded to the Wi-Fi module, and entering an upgrading program; after the Wi-Fi module receives the information to be upgraded of the Bluetooth module, a flag for upgrading the Bluetooth module is marked as 'upgrading in process', and upgrading firmware is sent to the Bluetooth module through a serial port; after receiving the firmware, the Bluetooth module starts to be upgraded, restarts after the upgrade is finished, and reports the upgraded equipment information to the Wi-Fi module; after confirming that the device information contains updated version information, the Wi-Fi module marks a flag of the Bluetooth module as successful; otherwise, the upgrade is marked as failure and the next upgrade is carried out.
Preferably, in the method for upgrading the bluetooth module through the Wi-Fi module, the intelligent bluetooth device is an intelligent bluetooth sound box or other intelligent devices with the bluetooth module.
Preferably, in the method for upgrading the Bluetooth module through the Wi-Fi module, the serial port is a UART.
After the technical scheme is adopted, the invention has the beneficial effects that:
compared with the disclosed technical scheme, the technical scheme solves the problem that the Bluetooth module of the intelligent Bluetooth device is complicated to upgrade in the prior art by providing the method for upgrading the Bluetooth module through the Wi-Fi module, and has the advantages that: firstly, the Bluetooth module is upgraded in the air through the Wi-Fi module, so that the dependence of a third-party tool is reduced, and the user experience is improved; secondly, equipment information of the Bluetooth module is acquired through the Wi-Fi module, and Bluetooth equipment can be managed through the cloud server; and thirdly, the Bluetooth module is upgraded through the Wi-Fi module, dependence on the APP is avoided, and development and maintenance costs of the APP at the Android system and the IOS terminal are reduced.
Drawings
Fig. 1 is a schematic diagram of a method for upgrading a bluetooth module through a Wi-Fi module.
Detailed Description
A method for upgrading a bluetooth module via a Wi-Fi module is shown in fig. 1, and relates to an intelligent bluetooth device and a cloud server; the intelligent Bluetooth device comprises a Bluetooth module and a Wi-Fi module; the Bluetooth module is connected with the Wi-Fi module through a serial port;
in this embodiment, the intelligent bluetooth device is an intelligent bluetooth speaker; the serial port is a UART.
The method specifically comprises the following steps:
when the intelligent Bluetooth sound box is powered on, the Bluetooth module sends the equipment information to the Wi-Fi module through the UART; the equipment information comprises version information, an MAC address and an equipment UUID number;
after networking, the Wi-Fi module logs in and accesses the cloud server, reports the equipment information of the Bluetooth module to the cloud server and sends an intelligent Bluetooth sound box upgrading request; if the cloud server does not have the firmware required by the upgrading of the intelligent Bluetooth sound box, the upgrading is not carried out; otherwise, the Wi-Fi module downloads the firmware into the RAM of the chip; after the firmware is downloaded, the Bluetooth module is verified through a built-in verification program; if the verification fails, upgrading is not carried out; if the verification is passed, the Wi-Fi module initiates a request command of firmware upgrading to the Bluetooth module through a UART command, and the command format is as follows:
Figure 76042DEST_PATH_IMAGE001
after receiving a request for upgrading, the Bluetooth module performs software reboot operation and replies reboot information to the Wi-Fi module through the UART; after the Wi-Fi module receives the information, circularly sending an upgrading command to the Bluetooth module through the UART at a time interval of 50 ms; if the Bluetooth module receives an upgrading command during starting, replying information to be upgraded to the Wi-Fi module, and entering an upgrading program; after the Wi-Fi module receives the information to be upgraded of the Bluetooth module, a flag for upgrading the Bluetooth module is marked as 'upgrading in process', and upgrading firmware is sent to the Bluetooth module through a UART; after receiving the firmware, the Bluetooth module starts to be upgraded, restarts after the upgrade is finished, and reports the upgraded equipment information to the Wi-Fi module; after confirming that the device information contains updated version information, the Wi-Fi module marks a flag of the Bluetooth module as successful; otherwise, the upgrade is marked as failure and the next upgrade is carried out.
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 (3)

1. A method for upgrading a Bluetooth module through a Wi-Fi module relates to intelligent Bluetooth equipment and a cloud server; the intelligent Bluetooth device comprises a Bluetooth module and a Wi-Fi module; the Bluetooth module is connected with the Wi-Fi module through a serial port;
the method is characterized by comprising the following steps:
when the intelligent Bluetooth device is powered on, the Bluetooth module sends device information to the Wi-Fi module through the serial port; the equipment information comprises version information, an MAC address and an equipment UUID number;
after networking, the Wi-Fi module logs in and accesses the cloud server, reports the equipment information of the Bluetooth module to the cloud server and sends an intelligent Bluetooth equipment upgrading request; if the cloud server does not have the firmware required by the upgrading of the intelligent Bluetooth device, the upgrading is not carried out; otherwise, the Wi-Fi module downloads the firmware into the RAM of the chip; after the firmware is downloaded, the Bluetooth module is verified through a built-in verification program; if the verification fails, upgrading is not carried out; if the verification is passed, the Wi-Fi module initiates a request command of firmware upgrading to the Bluetooth module through a serial port command, wherein the command format is as follows:
Figure DEST_PATH_IMAGE001
after receiving a request for upgrading, the Bluetooth module performs software restarting operation and replies restarting information to the Wi-Fi module through a serial port; after receiving the information, the Wi-Fi module circularly sends an upgrading command to the Bluetooth module through the serial port at a time interval of 50 ms; if the Bluetooth module receives an upgrading command during starting, replying information to be upgraded to the Wi-Fi module, and entering an upgrading program; after the Wi-Fi module receives the information to be upgraded of the Bluetooth module, a flag for upgrading the Bluetooth module is marked as 'upgrading in process', and upgrading firmware is sent to the Bluetooth module through a serial port; after receiving the firmware, the Bluetooth module starts to be upgraded, restarts after the upgrade is finished, and reports the upgraded equipment information to the Wi-Fi module; after confirming that the device information contains updated version information, the Wi-Fi module marks a flag of the Bluetooth module as successful; otherwise, the upgrade is marked as failure and the next upgrade is carried out.
2. The method of claim 1, wherein the method comprises upgrading a bluetooth module via a Wi-Fi module, wherein the method further comprises: the intelligent Bluetooth device is an intelligent Bluetooth sound box or other intelligent devices with Bluetooth modules.
3. The method of claim 1, wherein the method comprises upgrading a bluetooth module via a Wi-Fi module, wherein the method further comprises: the serial port is a UART.
CN201910875443.8A 2019-09-17 2019-09-17 Method for upgrading Bluetooth module through Wi-Fi module Active CN110704080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910875443.8A CN110704080B (en) 2019-09-17 2019-09-17 Method for upgrading Bluetooth module through Wi-Fi module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910875443.8A CN110704080B (en) 2019-09-17 2019-09-17 Method for upgrading Bluetooth module through Wi-Fi module

Publications (2)

Publication Number Publication Date
CN110704080A true CN110704080A (en) 2020-01-17
CN110704080B CN110704080B (en) 2022-05-10

Family

ID=69196197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910875443.8A Active CN110704080B (en) 2019-09-17 2019-09-17 Method for upgrading Bluetooth module through Wi-Fi module

Country Status (1)

Country Link
CN (1) CN110704080B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651180A (en) * 2020-06-11 2020-09-11 上海庆科信息技术有限公司 Firmware updating method and device, processor and intelligent gateway equipment
CN113568639A (en) * 2021-07-28 2021-10-29 宁波三星医疗电气股份有限公司 Software version upgrade management method for Bluetooth module in energy controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915237A (en) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN106210102A (en) * 2016-07-20 2016-12-07 广州小鸡快跑网络科技有限公司 The method and device of radio upgrade handle firmware based on bluetooth BLE
WO2019033266A1 (en) * 2017-08-15 2019-02-21 General Electric Company Smart equipment, method used by smart equipment, and smart lamp

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915237A (en) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN106210102A (en) * 2016-07-20 2016-12-07 广州小鸡快跑网络科技有限公司 The method and device of radio upgrade handle firmware based on bluetooth BLE
WO2019033266A1 (en) * 2017-08-15 2019-02-21 General Electric Company Smart equipment, method used by smart equipment, and smart lamp

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651180A (en) * 2020-06-11 2020-09-11 上海庆科信息技术有限公司 Firmware updating method and device, processor and intelligent gateway equipment
CN111651180B (en) * 2020-06-11 2024-03-26 上海庆科信息技术有限公司 Firmware updating method and device, processor and intelligent gateway equipment
CN113568639A (en) * 2021-07-28 2021-10-29 宁波三星医疗电气股份有限公司 Software version upgrade management method for Bluetooth module in energy controller

Also Published As

Publication number Publication date
CN110704080B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
US11363446B2 (en) Profile generation method, profile acquisition method, and related device and storage medium
EP3200072A1 (en) Method for updating terminal system, terminal and system
KR101007739B1 (en) Method and system for providing fota service
CN106612192A (en) An equipment upgrading method, apparatus and system
EP2456257A1 (en) Method and system for upgrading wireless data card
US8477647B2 (en) Connection setting apparatus, connection setting method, and computer program product
CN103810011A (en) Method for realizing OTA (over the air) upgrading through file server
CN109951842B (en) Method for reserving BLE name and MAC address in Bluetooth firmware upgrade
CN110704080B (en) Method for upgrading Bluetooth module through Wi-Fi module
CN105978937A (en) Bluetooth slave device and upgrade method thereof
EP2664988A1 (en) Method, device and system for installing terminal software
CN108153548A (en) A kind of EMMC firmware upgrade methods and device
CN102316376A (en) Method for set-top box to automatically update data and system
CN109189419B (en) System upgrading method, device and system, server and client
CN101610475A (en) Service menu treating method and portable terminal
CN104516743B (en) The upgrade method and system of embedded device firmware based on ActiveX
CN112771497A (en) Method and device for upgrading equipment and storage medium
CN101854442B (en) Network device and firmware updating method thereof
CN115664958A (en) Method for upgrading terminal firmware in batches through CAN bus
CN111580857B (en) Equipment firmware online configuration method, device and system
CN111158760B (en) Loading method and device for card configuration file and electronic equipment
CN113282321A (en) Firmware updating method and system for intelligent equipment
CN114168210A (en) Embedded equipment deployment method and system
JP5766309B2 (en) Management of information related to secure module applications
CN112748943A (en) Upgrading method and upgrading system for non-intelligent interactive electronic whiteboard

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