Client
Wifi configuration
To choose a wifi network and send the password, run
$ PASSWORD="my wifi passphrase" python client/ble.py my_network_name
The device will reboot once the wifi details have been saved
Data logging
Once the wifi is operational, you can run
$ python client/eculocate.py Bike 120
to collect data for 120 seconds.
Android
If you want to log data while actually, y'know, riding the bike, you might wish to do that without balancing a laptop on the pillion. There isn't an actual proper Android app (yet, anyway) but we do have a Python script that runs in Termux.
Setup
-
You will need to (manually, because this is Android) install Termux and Termux:Gui from the F-Droid repository,
-
You also need to copy
privkey.binfrom wherever you built the Rust app onto the phone -
in a Termux shell, run
$ termux-setup-storage
$ pkg install binutils make libsodium
$ SODIUM_INSTALL=system pip install pynacl zeroconf