Simple Movesense sensor app, that calculates 1s average of sum vector from 3d acceleration data, then publishes it and blinks the LED.
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
Added instructions on how to use accelerometer.cvs
5 years ago
wbresources Merged in the Blinky app's functionality 5 years ago
App.cpp Renaming class and resources AccelerometerSample -> MovesenseExercise 5 years ago
CMakeLists.txt Copying over accelerometer_app as a starting point 5 years ago
LICENSE Initial commit 5 years ago
MovesenseExerciseService.cpp Start the timer when on first sbubscription, stop when there is no one left 5 years ago
MovesenseExerciseService.h Renaming leftover mMaxAccelerationData -> mAccelerationData 5 years ago
README.md Added instructions on how to use accelerometer.cvs 5 years ago
app_root.yaml Renaming class and resources AccelerometerSample -> MovesenseExercise 5 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/

  1. Install the dependencies: cmake, ninja, GNU toolchain for ARM embedded and nrfutil
  2. git clone git@bitbucket.org:suunto/movesense-device-lib.git
  3. git clone http://matetelki.eu:3000/denes/movesense_exercise.git
  4. cd movesense-device-lib

Compile and generate packages with linux inside the SDK:

  1. mkdir excerciseBuild
  2. cd excerciseBuild
  3. 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.
  1. Issue ninja to compile
  2. Create OTA firmware update package with ninja dfupkg

Run simulations with Windows, inside the SDK:

  1. mkdir simuBuild
  2. cd simuBuild
  3. cmake -G "Visual Studio 15 2017" -DMOVESENSE_CORE_LIBRARY=../MovesenseCoreLib/ ../../movesense_exercise 4 Open the generated Project.sln file and build with Visual Studio
  4. Copy acceleration.cvs test data to Debug
  5. Run the simulation build: Movesense.exe with Debug being the current working directory.
  6. 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