Locus Map - forum

Development => Developers => Topic started by: kech61 on April 12, 2016, 13:51:59

Title: Protokoll of BT4 Speed & Cadence Sensor
Post by: kech61 on April 12, 2016, 13:51:59
Hi,

I want to use the Dashboard to display Battery Voltage and aktual Current of an EBike.
In the Bluetooth manager there is a Speed & Cadence Sensor defined.

So my Question is how to fake a Speed & Cadence Sensor using an  Atmel ATTiny + a Bluetooth4 Serial Module.
Does anyone know the protokoll such a sensor is using (probably serial??) and the sequences that have to be provided?



Title: Re: Protokoll of BT4 Speed & Cadence Sensor
Post by: menion on April 14, 2016, 08:07:18
Hello Christian,

I'm quite worried that this question is too complicated for most of human being here, at least for me :).

Bluetooth 4 communication is based on system of "Services" that offer some "Characterictics" ( https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicsHome.aspx ). As a developer, I'm able to iterate over all services and it's characteristics and read a data from there. So question here is, if your combination of eBike and some Atmel + Module tools is able to broadcast some data with standard some characteristics, I may then  (in Locus) read and display?

Just please keep in mind, I'm not a BT expert, it's just tiny knowledge I've learned during developing.
Title: Re: Protokoll of BT4 Speed & Cadence Sensor
Post by: kech61 on November 27, 2016, 20:11:07
Hi Menion,

I managed to emulate a Zephyr HRM-Belt by an ATTiny45/HC-06 and display the Cell-Voltage, instead of HR.
Not "That" big deal, the Zephyr uses plain serial as protocol.

So a heartrate of 39 is a cellvoltage of 3,9V :-)

(http://www.pedelecforum.de/forum/index.php?attachments/screenshot_2016-11-27-18-52-43-png.118286/)

(http://www.pedelecforum.de/forum/index.php?attachments/20161127_182640-jpg.118287/)

(http://www.pedelecforum.de/forum/index.php?attachments/20161127_182629-jpg.118288/)