Giter Site home page Giter Site logo

uncannier-thunderboard-sense2's People

Contributors

gregbreen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

malcom2073

uncannier-thunderboard-sense2's Issues

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).

Support WSTK VAEM as a valid supply

I have an EFR32 Blue Gecko Bluetooth Start Kit. AKA a WSTK (Wireless Starter Kit).

Model: SLWSTK6020B

https://www.silabs.com/products/development-tools/wireless/bluetooth/blue-gecko-bluetooth-low-energy-soc-starter-kit

This supports AEM (Advanced Energy Monitoring). The VAEM can power the Sense 2, and then the WSTK can be used to measure current draw using the Simplicity Studio Energy Profiler.

At boot, the Sense 2 probes its power supply to categorize it as:

  • UNKNOWN
  • AAA
  • CR2032
  • USB

This is done in the UTIL_supplyProbe() function of hardware/kit/common/bsp/thunderboard/util_supply.c

The UTIL_isLowPower() function of the same file returns true only if the supply type is categorized as CR2032 or UNKNOWN. This return value determines whether deep sleep is enabled in main.c

The WSTK is wrongly categorized as an AAA battery. The consequence being that deep sleep is not enabled, and so I can't profile the energy consumption that would occur when a CR2032 is fitted (main use case). I need WSTK/VAEM to select low power mode.

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.

image docker

hi
thanks for your work
i have a problem with image docker :

docker pull gregbreen/uncannier-thunderboard
Using default tag: latest
Error response from daemon: manifest for gregbreen/uncannier-thunderboard:latest not found

thanks

Automated software versioning

The firmware version is hard-coded in the Sense 2 firmware in the appl_ver.h file. It seems this file is designed to be overwritten by a CI build. The Firmware Version characteristic of the Device Information service reports this firmware version (and do some printf() calls on the serial port). 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). Probably get rid of appl_ver.h
  • 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.