Author Topic: Protokoll of BT4 Speed & Cadence Sensor  (Read 934 times)

Offline kech61

  • Apprentice of Locus
  • **
  • Posts: 166
  • Thanked: 3 times
    • View Profile
Protokoll of BT4 Speed & Cadence Sensor
« 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?



Best regards/ Grüsse
Christian
www.openandromaps.org
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10282
  • Thanked: 92 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Protokoll of BT4 Speed & Cadence Sensor
« Reply #1 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.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline kech61

  • Apprentice of Locus
  • **
  • Posts: 166
  • Thanked: 3 times
    • View Profile
Re: Protokoll of BT4 Speed & Cadence Sensor
« Reply #2 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 :-)







« Last Edit: November 27, 2016, 20:15:03 by kech61 »
Best regards/ Grüsse
Christian
www.openandromaps.org