OpenSourceEBike / ebike_wireless_remote

ANT+ remote button
10 stars 8 forks source link

control+LEV capability #2

Closed rananna closed 4 years ago

rananna commented 4 years ago

This project builds upon your work with the ebike remote control. The following features have been added:

  1. Dual CONTROLS and LEV ANT slave support
  2. "Long Press" support (depressing a button for 1 sec or more is used to define a long press) this gives us 8 programmable buttons for the ebike.

LEV slave- allows for assist level (and other page 16 info) to be sent to the LEV master (the ebike motor). ie: Long press of ENTER key could be used to turn motor on/off and long press of STANDBY key could be used for lights on/off current LEV slave implementation:

CONTROL slave. Works as you designed to implement page control on garmin bike computers. Long press of PLUS for pageup, long press of minus for PAGEDOWN. Notes:

I used SimulANT for troubleshooting. tried simulating simultaneously both LEV master and Generic controllable device and the remote seems to work well. I also found that the button timers m_antplus_controls_send and m_lev_send work best with no delay. The LEV profile works with both the remote and multiple displays (watch, bike computer, etc) simultaneously.

casainho commented 4 years ago

GREAT work!! Thanks for the contribution!!