Giter Site home page Giter Site logo

uncannier-thunderboard-react's People

Stargazers

 avatar

Watchers

 avatar

uncannier-thunderboard-react's Issues

(Insecure) Over The Air (OTA) Device Firmware Upgrade (DFU) Using Gecko Bootloader

Support Over The Air (OTA) Device Firmware Upgrade (DFU) using Gecko Bootloader.

Use Gecko Bootloader because:

  1. It's easy
  2. OTA DFU will work using the stock Blue Gecko phone app

Don't bother with security initially. Insecure updates for now.

Using the stock TB React project, it's not possible to generate a Hex or binary image that can be flashed into an erased flash memory. We also need to add the Gecko Bootloader to the project, to generate the first and second stage bootloaders, and then use Simplicity Commander to merge the bootloader and application Hex files. Thus producing a single Hex file that can be flashed into an erased part.

Deep sleep is broken since upgrading to BT SDK 2.11.0

BT SDK 2.11.0 modified the React example app by adding the following FEATURE_LFXO conditional compilation around the sleep flags in main.c:

#if defined(FEATURE_LFXO)
  .sleep.flags = SLEEP_FLAGS_DEEP_SLEEP_ENABLE,
#else
  .sleep.flags = 0,
#endif // LFXO

FEATURE_LXFO is not set by default in the example app. Pretty sure that's a SiLabs' bug.

Anyway, I brought this change in, and thus broke deep sleep. This was the offending PR: #17

Everything works in a functional sense, but the current draw is much too high. Need to fix it.

Raise the compilation warning level and rename the default build configuration

By default, the warning level is low. Turn it up, fix easy warnings, disable a handful that are too hard to fix in SiLabs' code.

I also don't lile the default build configuration name of "GNU ARM v7.2.1 - Default". I understand where it comes from, but I prefer the decades old tried and true Debug and Release.

Create a Debug build configuration, with optimization O0. Also define DEBUG macro constant for that build configuration.

Battery level measurement is erratic

The battery level reported by the Thunderboard is noisy and highly inaccurate. It fails to account for how the battery voltage varies greatly with the load current. This changes the voltage much more than the loss of charge.

It also samples at very high frequency given that, in reality, takes about 20 minutes to dissipate 1% of charge (when maximally loaded at ~4mA, streaming IMU data over BLE).

Automated software versioning

The firmware version is hard-coded in the Firmware Version characteristic of the Device Information service. Instead:

  • add the Software Version characteristic to DIS
  • generate the Software Version from each CI build (build number and GIT commit hash in the version)
  • use Firmware Version field to report the Gecko Bootloader version and the Bluetooth SDK stack version (these are reported to the application in the boot-up event)
  • consider to add support in the CircleCI build plan for major.minor.patch release generation when a tag is created in GitHub.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.