gregbreen / uncannier-thunderboard-sense2 Goto Github PK
View Code? Open in Web Editor NEWThunderboard Sense 2 made better
Home Page: https://uncannier.com
License: Other
Thunderboard Sense 2 made better
Home Page: https://uncannier.com
License: Other
Upgrade both the app and the bootloader to latest SDKs.
This will upgrade Gecko Bootloader to 1.8.4.
Ensure to bring forward any updates to the example source code.
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).
I have an EFR32 Blue Gecko Bluetooth Start Kit. AKA a WSTK (Wireless Starter Kit).
Model: SLWSTK6020B
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:
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.
Support Over The Air (OTA) Device Firmware Upgrade (DFU) using Gecko Bootloader.
Use Gecko Bootloader because:
Don't bother with security initially. Insecure updates for now.
Get the Test configuration building on CircleCI. Generate xUnit output, and save the test results on each build. Save the code coverage as an artifact too.
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.
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
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:
Need a starting point. Vanilla TS app, generated from latest Blue Gecko SDK (2.10.0).
Add GCOV profiling to the Test build configuration. Use LCOV to generate an HTML coverage report every time the unit tests are executed.
Add the CppUTest harness to the project. Create a new Test build configuration that makes an x86 build of the Thunderboard application, to allow on-host unit testing of components.
Although I only want to unit test Uncannier components, take the time to get the entire Thunderboard application into the harness. This means making a fairly extensive test seam.
Upgrade both the app and the bootloader to latest SDKs.
This will upgrade Gecko Bootloader to 1.8.0.
Ensure to bring forward any updates to the example source code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.