BangleApps/apps/blecsc
Gordon Williams 050cd914fa blecsc 0.04: Added support for <1 wheel/crank event/second (using idle counters) (ref #3434) 2024-06-04 10:26:18 +01:00
..
ChangeLog blecsc 0.04: Added support for <1 wheel/crank event/second (using idle counters) (ref #3434) 2024-06-04 10:26:18 +01:00
README.md Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00
blecsc.js blecsc 0.04: Added support for <1 wheel/crank event/second (using idle counters) (ref #3434) 2024-06-04 10:26:18 +01:00
clkinfo.js Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00
icons8-cycling-48.png Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00
metadata.json blecsc 0.04: Added support for <1 wheel/crank event/second (using idle counters) (ref #3434) 2024-06-04 10:26:18 +01:00
recorder.js Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00
settings.js Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00

README.md

BLE Cycling Speed Sencor (CSC)

Displays data from a BLE Cycling Speed and Cadence sensor.

Other than in the original version of the app, total distance is not stored on the Bangle, but instead is calculated from the CWR (cumulative wheel revolutions) reported by the sensor. This metric is, according to the BLE spec, an absolute value that persists throughout the lifetime of the sensor and never rolls over.

Settings

Accessible from Settings -> Apps -> BLE CSC

Here you can set the wheel diameter

Development

var csc = require("blecsc").getInstance();
csc.on("status", txt => {
  print("##", txt);
  E.showMessage(txt);
});
csc.on("data", e => print(e));
csc.start();

The data event contains:

  • cwr/ccr => wheel/crank cumulative revs
  • lwet/lcet => wheel/crank last event time in 1/1024s
  • wrps/crps => calculated wheel/crank revs per second
  • wdt/cdt => time period in seconds between events
  • wr => wheel revs
  • kph => kilometers per hour