You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
denes
f266d2830d
|
6 years ago | |
---|---|---|
wbresources | 6 years ago | |
App.cpp | 6 years ago | |
CMakeLists.txt | 6 years ago | |
LICENSE | 6 years ago | |
MovesenseExerciseService.cpp | 6 years ago | |
MovesenseExerciseService.h | 6 years ago | |
README.md | 6 years ago | |
app_root.yaml | 6 years ago |
README.md
movesense_exercise
Simple Movesense sensor app
The functionalities:
- Calculates 1s average of sum vector from 3d acceleration data
- Offers an API for subscribing to the value
- Blinks the LED every time it publishes the calculations
- Stops data collection, publicking and blinking if there are no subscribers
Requires the Movesense SDK.
Follow the instructions at https://bitbucket.org/suunto/movesense-device-lib/src/master/
- Install the dependencies:
cmake
,ninja
, GNU toolchain for ARM embedded andnrfutil
git clone git@bitbucket.org:suunto/movesense-device-lib.git
git clone http://matetelki.eu:3000/denes/movesense_exercise.git
cd movesense-device-lib
Compile and generate packages with linux inside the SDK:
mkdir excerciseBuild
cd excerciseBuild
cmake -G Ninja -DMOVESENSE_CORE_LIBRARY=../MovesenseCoreLib/ -DCMAKE_TOOLCHAIN_FILE=../MovesenseCoreLib/toolchain/gcc-nrf52.cmake ../../movesense_exercise
- Add
-DCMAKE_BUILD_TYPE=Release
for release builds.
- Issue
ninja
to compile - Create OTA firmware update package with
ninja dfupkg
Run simulations with Windows, inside the SDK:
mkdir simuBuild
cd simuBuild
cmake -G "Visual Studio 15 2017" -DMOVESENSE_CORE_LIBRARY=../MovesenseCoreLib/ ../../movesense_exercise
4 Open the generatedProject.sln
file and build with Visual Studio- Copy
acceleration.cvs
test data toDebug
- Run the simulation build:
Movesense.exe
withDebug
being the current working directory. - Subscribe and observe the behaviour from another shell with:
tools/wbcmd (Win).exe --port TCP127.0.0.1:7044 --path /Exercise/Sumvector/Denes --op subscribe
Files available at http://matetelki.eu:3000/denes/movesense_exercise/releases :
- OTA firmware update packages
acceleration.cvs
output.txt
as a result of one run