CN107395389A - A kind of light modulator firmware upgrade method based on bluetooth Mesh network - Google Patents

A kind of light modulator firmware upgrade method based on bluetooth Mesh network Download PDF

Info

Publication number
CN107395389A
CN107395389A CN201710190737.8A CN201710190737A CN107395389A CN 107395389 A CN107395389 A CN 107395389A CN 201710190737 A CN201710190737 A CN 201710190737A CN 107395389 A CN107395389 A CN 107395389A
Authority
CN
China
Prior art keywords
firmware
light modulator
bluetooth
upgrading
upgrade
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
CN201710190737.8A
Other languages
Chinese (zh)
Other versions
CN107395389B (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 YADE ELECTRONIC TECHNOLOGY CO LTD
Original Assignee
XIAMEN YADE ELECTRONIC 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 YADE ELECTRONIC TECHNOLOGY CO LTD filed Critical XIAMEN YADE ELECTRONIC TECHNOLOGY CO LTD
Priority to CN201710190737.8A priority Critical patent/CN107395389B/en
Publication of CN107395389A publication Critical patent/CN107395389A/en
Application granted granted Critical
Publication of CN107395389B publication Critical patent/CN107395389B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of light modulator firmware upgrade method based on bluetooth Mesh network,Dimmer function is controlled from Bluetooth function using different mcu,So during upgrading to bluetooth,Light modulator can be with normal use,This can not only improve Consumer's Experience,Also improve the speed of upgrading,Light modulator firmware is encrypted the security for being advantageous to improve equipment when integration to bluetooth and light modulator firmware,Accidental operation causes upgrading to fail when bluetooth upgrades,Or bluetooth firmware damage,Nor affect on the manual control of light modulator,Inside Bluetooth chip one piece of upgrading backup area is opened up for light modulator mcu upgradings,The information of the backup area is read when light modulator is restarted every time,Accordingly even when accident power-off when light modulator upgrades,Permanent fault will not also be caused to light modulator,Using more convenient,Stability and reliability is higher.

Description

A kind of light modulator firmware upgrade method based on bluetooth Mesh network
Technical field
The invention belongs to intelligent lighting controls field, more particularly to a kind of light modulator firmware upgrade side based on Mesh network Method.
Background technology
With the release of Bluetooth Low Energy (BLE) technology and the popularization of bluetooth Mesh technologies, in intelligent lighting controls field In, the bluetooth light modulator species based on bluetooth Mesh technologies is increasingly abundanter, the variation of bluetooth light modulator product and product A large amount of popularizations so that bluetooth light modulator needs to carry out upgrading optimization to product function during use., therefore ensure product The reliability and convenience of upgrading, which turn into, to be necessarily required to, and the bluetooth light modulator for being currently based on bluetooth Mesh technologies mainly passes through bluetooth Module carries out online upgrading to light modulator firmware, and this method can realize the upgrading of light modulator firmware, but there is also larger Defect, firmware upgrade speed is slow, and light modulator must be stopped during light modulator firmware upgrade, can not so expire Sufficient normal use, great inconvenience is brought to our normal lightings;In addition, in escalation process, the maloperation of user may The permanent fault of bluetooth light modulator is caused, it is necessary to what is more renewed can use, use cost is added, pole is brought to us Big inconvenience.
The content of the invention
During to solve slow above-mentioned prior art updating speed, upgrading light modulator be stopped, in-convenience in use, be also easy to produce mistake Operation causes permanent fault, need to often change the problems such as use cost is high, and the present invention adopts the following technical scheme that:
The present invention provides a kind of light modulator firmware upgrade method of the base based on bluetooth Mesh network, including following eight steps Suddenly:
1) bluetooth firmware encapsulation is first packaged to the bluetooth light modulator firmware to be upgraded, and packaged bluetooth is dimmed Device firmware is incorporated into bluetooth firmware;
2) bluetooth firmware upgrading runs corresponding APP in smart machine, is manually entered upgrade status, by bluetooth by step In 1 it is packaged after bluetooth firmware be transferred to Bluetooth chip, so far complete the upgrading to bluetooth firmware;
3) light modulator smart machine is restarted after bluetooth firmware upgrading is completed, and light modulator order is restarted in transmission;
4) after bootloader execution light modulator is restarted, performed into bootloader;
5) light modulator upgrading pre-treatment bootloader obtains retouching on light modulator firmware in Bluetooth chip by serial ports Information is stated, firmware specification message part includes:Whether promoted flag bit, mandatory upgrade flag bit, firmware version number, firmware Length, initial address of firmware operation etc., before light modulator firmware upgrade, upgrading flag bit is no, when light modulator passes through serial ports After upgrading local firmware, the upgrading flag bit is changed to be to represent promoted, when mandatory upgrade flag bit is no, Judge whether that needs are upgraded according to firmware version number, firmware length is used for determining to want the firmware length of burning;
6) confirm that light modulator enters the firmware specification information got and the firmware specification information of local before light modulator upgrading Row contrast determines the need for upgrading;
7) light modulator upgrades:
8) upgrading completes light modulator and exits bootloader, is transferred to application program execution.
As improvement of the present invention, the light modulator upgrading of step 7 specifically includes following six step;
1:Start to upgrade;
2:Obtained by serial ports from Bluetooth chip and specify firmware blocks content;
3:The firmware blocks content got is decrypted.The encryption and decryption mode of firmware:Often take 8 byte firmware datas with The array data of specific 8 bytes carries out one by one or computing, and the array data of this 8 bytes is specified constant;
4:The firmware blocks content burning in the form of block that will be got;
5:Whether successfully obtain and write all firmware blocks, if being then transferred to step 206, be otherwise transferred to step 202;
6:Bootloader is exited, runs new opplication code.
The beneficial effects of the present invention are:
1. dimmer function is controlled from Bluetooth function using different mcu, so during upgrading to bluetooth, light modulation Device can be with normal use, and this can not only improve Consumer's Experience, also improves the speed of upgrading;
Be advantageous to improve equipment 2. light modulator firmware is encrypted when bluetooth and light modulator firmware is integrated Security;
3. accidental operation causes upgrading to fail when even if bluetooth upgrades, or bluetooth firmware is damaged, and nor affects on tune The manual control of light device;
4. one piece of upgrading backup area is opened up for light modulator mcu upgradings inside Bluetooth chip, when light modulator is restarted every time The information of the backup area is read, accordingly even when accident power-off when light modulator upgrades, permanent fault will not be also caused to light modulator, Using more facilitating, stability and reliability is higher.
Brief description of the drawings
Fig. 1 is bluetooth light modulator escalation process schematic diagram in the present invention.
Fig. 2 is light modulator upgrade logic schematic diagram in the present invention.
Embodiment
The preferred embodiment that the invention will now be described in detail with reference to the accompanying drawings.
Refer to Fig. 1, Fig. 2, a kind of light modulator firmware upgrade method of base based on bluetooth Mesh network, including following eight Step:1) bluetooth firmware encapsulation is first packaged to the bluetooth light modulator firmware to be upgraded, and by packaged bluetooth light modulator Firmware is incorporated into bluetooth firmware;
2) bluetooth firmware upgrading runs corresponding APP in smart machine, is manually entered upgrade status, by bluetooth by step In 1 it is packaged after bluetooth firmware be transferred to Bluetooth chip, so far complete the upgrading to bluetooth firmware;
3) light modulator smart machine is restarted after bluetooth firmware upgrading is completed, and light modulator order is restarted in transmission;
4) after bootloader execution light modulator is restarted, performed into bootloader;
5) light modulator upgrading pre-treatment bootloader obtains retouching on light modulator firmware in Bluetooth chip by serial ports Information is stated, firmware specification message part includes:Whether promoted flag bit, mandatory upgrade flag bit, firmware version number, firmware Length, initial address of firmware operation etc., before light modulator firmware upgrade, upgrading flag bit is no, when light modulator passes through serial ports After upgrading local firmware, the upgrading flag bit is changed to be to represent promoted, when mandatory upgrade flag bit is no, Judge whether that needs are upgraded according to firmware version number, firmware length is used for determining to want the firmware length of burning;
6) confirm that light modulator enters the firmware specification information got and the firmware specification information of local before light modulator upgrading Row contrast determines the need for upgrading;
7) light modulator upgrades:
8) upgrading completes light modulator and exits bootloader, is transferred to application program execution.
Wherein, the light modulator upgrading of step 7 specifically includes following six step;
1:Start to upgrade;
2:Obtained by serial ports from Bluetooth chip and specify firmware blocks content;
3:The firmware blocks content got is decrypted.The encryption and decryption mode of firmware:Often take 8 byte firmware datas with The array data of specific 8 bytes carries out one by one or computing, and the array data of this 8 bytes is specified constant;
4:The firmware blocks content burning in the form of block that will be got;
5:Whether successfully obtain and write all firmware blocks, if being then transferred to step 206, be otherwise transferred to step 202;
6:Bootloader is exited, runs new opplication code;
Using this method, the dimming function part of bluetooth light modulator and bluetooth Mesh funtion parts are independently opened, using not Same MCU is controlled, and carries out communication interaction using serial ports between the two, i.e., the light modulator firmware that will upgrade is encrypted, And the firmware associated description information is inserted, the light modulator firmware after processing and bluetooth firmware integrate packaged, intelligently set Standby related APP is manually controlled into upgrading, by Bluetooth wireless communication, will be packaged after firmware upgrade to Bluetooth chip In, light modulator is restarted in APP controls.Light modulator obtains light modulator firmware specification by serial ports after electricity on every time from Bluetooth chip Information, contrast light modulator local firmware specification information, so as to decide whether to update light modulator local firmware, if light modulator determines Local firmware is updated, then light modulator firmware is obtained from Bluetooth chip by serial ports, so as to be written to the corresponding Flash of light modulator Area, and light modulator local description information is updated, so as to realize the upgrading of bluetooth light modulator.Can be with from above upgrade method Find out, bluetooth light modulator every time restart and can all obtain new firmware specification information and local firmware specification information and carry out pair by upper electricity Than so as to decide whether to upgrade.Bluetooth firmware and light modulator firmware are independently driven into capable upgrading, advantage of this is that even if blue Tooth becomes the normal use that brick nor affects on light modulator in escalation process.Other smart machine is being updated firmware by bluetooth When, light modulator is also energy normal operation, does not influence the experience of user.Also, compare and directly light modulator is consolidated by bluetooth Part is upgraded, the method on updating speed more preferably.
Above-described embodiment and schema and non-limiting product form of the invention and style, any art it is common The appropriate change or modification that technical staff is done to it, it all should be regarded as not departing from the patent category of the present invention.

Claims (2)

  1. A kind of 1. light modulator firmware upgrade method based on bluetooth Mesh network, it is characterised in that:Including following eight steps:1) Bluetooth firmware encapsulation is first packaged to the bluetooth light modulator firmware to be upgraded, and packaged bluetooth light modulator firmware is whole Close in bluetooth firmware;
    2) bluetooth firmware upgrading runs corresponding APP in smart machine, upgrade status is manually entered, by bluetooth by step 1 Bluetooth firmware after packaged is transferred to Bluetooth chip, so far completes the upgrading to bluetooth firmware;
    3) light modulator smart machine is restarted after bluetooth firmware upgrading is completed, and light modulator order is restarted in transmission;
    4) after bootloader execution light modulator is restarted, performed into bootloader;
    5) light modulator upgrading pre-treatment bootloader is believed by the description as described in light modulator firmware in serial ports acquisition Bluetooth chip Breath, firmware specification message part include:Whether promoted flag bit, mandatory upgrade flag bit, firmware version number, firmware length Initial address that degree, firmware are run etc., before light modulator firmware upgrade, upgrading flag bit is no, when light modulator passes through serial ports liter After the local firmware of level, the upgrading flag bit is changed to be to represent promoted, when mandatory upgrade flag bit is no, root Judge whether that needs are upgraded according to firmware version number, firmware length is used for determining to want the firmware length of burning;
    6) confirm that light modulator carries out the firmware specification information got and local firmware specification information pair before light modulator upgrading Than determining the need for upgrading;
    7) light modulator upgrades:
    8) upgrading completes light modulator and exits bootloader, is transferred to application program execution.
  2. A kind of 2. light modulator firmware upgrade method based on bluetooth Mesh network according to claim 1, it is characterised in that: The light modulator upgrading of step 7 specifically includes following six step;
    1:Start to upgrade;
    2:Obtained by serial ports from Bluetooth chip and specify firmware blocks content;
    3:The firmware blocks content got is decrypted.The encryption and decryption mode of firmware:Often take 8 byte firmware datas with it is specific The array datas of 8 bytes carry out one by one or computing, the array data of this 8 bytes be specify it is constant;
    4:The firmware blocks content burning in the form of block that will be got;
    5:Whether successfully obtain and write all firmware blocks, if being then transferred to step 206, be otherwise transferred to step 202;
    6:Bootloader is exited, runs new opplication code.
CN201710190737.8A 2017-03-28 2017-03-28 Dimmer firmware upgrading method based on Bluetooth Mesh network Active CN107395389B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710190737.8A CN107395389B (en) 2017-03-28 2017-03-28 Dimmer firmware upgrading method based on Bluetooth Mesh network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710190737.8A CN107395389B (en) 2017-03-28 2017-03-28 Dimmer firmware upgrading method based on Bluetooth Mesh network

Publications (2)

Publication Number Publication Date
CN107395389A true CN107395389A (en) 2017-11-24
CN107395389B CN107395389B (en) 2022-04-05

Family

ID=60338921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710190737.8A Active CN107395389B (en) 2017-03-28 2017-03-28 Dimmer firmware upgrading method based on Bluetooth Mesh network

Country Status (1)

Country Link
CN (1) CN107395389B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737448A (en) * 2018-09-05 2020-01-31 杭州瑞彼加医疗科技有限公司 firmware encryption system containing microcontroller and firmware protection and upgrade method thereof
CN111459536A (en) * 2020-03-31 2020-07-28 Tcl移动通信科技(宁波)有限公司 Mobile terminal Bluetooth firmware updating method and device, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0021353D0 (en) * 1999-11-26 2000-10-18 Samsung Electronics Co Ltd Method for operating personal ad-hoc network (pan) among bluetooth devices
CN104331312A (en) * 2014-11-24 2015-02-04 东软熙康健康科技有限公司 Firmware updating method and embedded device
CN104915237A (en) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN106406935A (en) * 2016-08-29 2017-02-15 青岛海信电器股份有限公司 OTA upgrading method for Bluetooth chip and Bluetooth chip
CN106507339A (en) * 2016-09-18 2017-03-15 深圳市青柠互动科技开发有限公司 A kind of aerial upgrade system and method for smart machine firmware

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0021353D0 (en) * 1999-11-26 2000-10-18 Samsung Electronics Co Ltd Method for operating personal ad-hoc network (pan) among bluetooth devices
CN104331312A (en) * 2014-11-24 2015-02-04 东软熙康健康科技有限公司 Firmware updating method and embedded device
CN104915237A (en) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN106406935A (en) * 2016-08-29 2017-02-15 青岛海信电器股份有限公司 OTA upgrading method for Bluetooth chip and Bluetooth chip
CN106507339A (en) * 2016-09-18 2017-03-15 深圳市青柠互动科技开发有限公司 A kind of aerial upgrade system and method for smart machine firmware

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737448A (en) * 2018-09-05 2020-01-31 杭州瑞彼加医疗科技有限公司 firmware encryption system containing microcontroller and firmware protection and upgrade method thereof
CN110737448B (en) * 2018-09-05 2023-08-11 杭州瑞彼加医疗科技有限公司 Firmware encryption system comprising microcontroller and firmware protection and upgrading method thereof
CN111459536A (en) * 2020-03-31 2020-07-28 Tcl移动通信科技(宁波)有限公司 Mobile terminal Bluetooth firmware updating method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN107395389B (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN104579719A (en) A method and system for updating firmware, upper computer and optical module
CN105354070B (en) A method of passing through I2C updating apparatus firmware
EP3147782A1 (en) Method and device for upgrading software
CN106789334A (en) A kind of method and apparatus of firmware upgrade
CN102609274B (en) A kind of quick startup optimization method of system and television set
CN104199706A (en) Firmware upgrade method and device for eMMC
CN106707848A (en) Control program organization structure of control system and download method
CN103019755B (en) The wireless program method for down loading of multi-CPU in embedded system
US20220200798A1 (en) Key code data burning method, device, terminal equipment and readable storage medium
CN103997683B (en) System for using set-top-box platform to realize customizable Flash CD-ROM recorder and method thereof
CN107995284B (en) OTA (over the air) upgrading method suitable for POS (point of sale) machine
CN104102501B (en) A kind of mobile terminal and its upgrade method
CN107395389A (en) A kind of light modulator firmware upgrade method based on bluetooth Mesh network
CN106648759A (en) Common programming device firmware updating method
CN105208752B (en) A kind of LED lamp wireless control system and control method
CN104090768A (en) Automatic intelligent smart phone form generating system and method
CN105760194A (en) DSP control system software update method and device
CN204155612U (en) The burned device of flash memory and burned system
CN209928235U (en) External equipment and system for refrigerator
CN110572920A (en) Automatic code writing system and method for connecting multiple lamps
CN102750163B (en) The method of line card internal memory is saved during a kind of network management upgrading
CN103634398A (en) MOST network-based software upgrading method
CN109788059B (en) System for wireless upgrading of DMX control box
CN104331313B (en) The reminding method and system of software upgrading state in a kind of set top box
WO2019196315A1 (en) Sd card having boot function and manufacturing method therefor

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