Great to hear it works!! I was worried that your lower board was fried...tough to troubleshoot over the internet! And the lower controller is the same across different models of bike, interesting
Some ideas that I need to investigate further...
1. There are definitely higher "gears". When the console is operational and you change the incline of the bike, the "gear" also INCREASES. So the console does some magic to change the gear in concert with the incline. At first I thought it might be a mechanical linkage or the lower control board doing this, but I noticed the gear doesn't change when using my Arduino to change the incline. In highest gear and max incline the magnets are strong enough to stop my pedalling -- I will snoop the console message to record what gear setting this might be.
2. The lower board measures cadence and sends a response message to the console. The lower board is only silent when it is not connected to the console. The console in normal operation sends a message to the lower board at 2hz, even when we aren't making input to the console. The lower board responds and sends a message containing a value corresponding to cadence. Cadence is all my lower board can measure, so I think that is all it can send. The console then can calculate rpm, speed, distance and power (based on gear and cadence).
It should be possible to decode the messages sent by the lower board. I will record some and post them for analysis. Hopefully it is straight hex relating to rpm, unlike the weird incline and gear codes.
I can't figure out the codes for the gear and incline though -- is it some 6bit with parity and error correction? There is a pattern, going from B0 to B9-C0 to C6 or the inverse, but it makes my brain hurt trying to imagine the meaningful code to generate the patterns (I'm not a programmer by training!).
I'm interested in the ESP8266, I may need to source one to try it out. But then I'd need to learn something new!
Some ideas that I need to investigate further...
1. There are definitely higher "gears". When the console is operational and you change the incline of the bike, the "gear" also INCREASES. So the console does some magic to change the gear in concert with the incline. At first I thought it might be a mechanical linkage or the lower control board doing this, but I noticed the gear doesn't change when using my Arduino to change the incline. In highest gear and max incline the magnets are strong enough to stop my pedalling -- I will snoop the console message to record what gear setting this might be.
2. The lower board measures cadence and sends a response message to the console. The lower board is only silent when it is not connected to the console. The console in normal operation sends a message to the lower board at 2hz, even when we aren't making input to the console. The lower board responds and sends a message containing a value corresponding to cadence. Cadence is all my lower board can measure, so I think that is all it can send. The console then can calculate rpm, speed, distance and power (based on gear and cadence).
It should be possible to decode the messages sent by the lower board. I will record some and post them for analysis. Hopefully it is straight hex relating to rpm, unlike the weird incline and gear codes.
I can't figure out the codes for the gear and incline though -- is it some 6bit with parity and error correction? There is a pattern, going from B0 to B9-C0 to C6 or the inverse, but it makes my brain hurt trying to imagine the meaningful code to generate the patterns (I'm not a programmer by training!).
I'm interested in the ESP8266, I may need to source one to try it out. But then I'd need to learn something new!


