New Presence Detector Firmware Version 12

Wed, Jul 19, 2017

I’ve made a new release of the Happy Bubbles Presence Detector firmware, it’s version 12. To find which version you’re on, connect to the device in config mode, and see the version number in the home page. Upgrading to this newest version 12 will improve your device’s functionality.

You can download the new release here: https://github.com/happy-bubbles/presence-firmware/releases/tag/12

What’s new in this release:

This new version includes a complete rewrite of the parsing of Beacons to determine if they are Eddystone or iBeacon types. The previous approach didn’t work for all cases, but this new one is far more reliable. It also set the stage for other future possible enhancements like including each BLE data-type as a field in the JSON object sent to MQTT.

The new version also doesn’t have the purple startup blinks anymore if the unit reset itself because of a fault (the watchdog usually) but does still light up when it’s reset or powered on.

How to Flash

Config menu (firmware version 11 or newer)

If you’re running detectors with firmware version 11 or newer, you can put the detector into the ‘config’ mode (orange LED) and from the web interface go to the firmware section. Just follow the instructions and upload the right new firmware version and you’ll be set.

Linux or OS X

Connect the Happy Bubbles device over USB to a computer and find which port it’s connected to, like /dev/ttyUSB0

Then while holding the ‘flash’ button on the board, press the ‘reset’ button too; then let go of both buttons.

Get esptool.py and then run:

curl -L https://github.com/happy-bubbles/presence-firmware/releases/download/12/happy-bubbles-ble.tgz | \
    tar xzf -
cd happy-bubbles-ble
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash -fs 32m -ff 80m \
    0x00000 boot_v1.5.bin 0x1000 user1.bin 0x3FE000 blank.bin
Windows

Connect the Happy Bubbles device over USB to a computer and find which port it’s connected to, like COM3

Get nodemcu-flasher and download the Happy Bubbles release, untar it.

In the config section, assign

Then while holding the ‘flash’ button on the board, press the ‘reset’ button too; then let go of both buttons.

Click the ‘Flash’ button on nodemcu-flasher.

Clear skies, no clouds
Unsplashed background img 2