Hi,
I am very new to ANT+ and have being reading the docs but there is quite a lot of information and I am struggling to understand how it all works.
I have Campagnolo EPS gears and wanted to implement the generic controllable device profile.
I started with SimulANT+ and set up the Generic Controllable Device and was able to connect to this and see the menu down (button on right shifter) and lap (button on left shirtier) events come in.
I then wanted to try something simple in this case use the macOS ANT lib example code (as a master).
I am not exactly sure of the correct ANT channel parameters but I tried to match those as set up in SimulANT+.
I also tried to set up the message for the generic control heartbeat something like:
#define GENERIC_CONTROL_HEARTBEAT {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,}
and using
pclMessageObject->SendBroadcastData(USER_ANTCHANNEL, buffer);
I was hoping that I could then use the generic remote control on SimulaANT+ to connect to and send commands to this demo but cannot figure out what I am missing here.
The generic remote control reports it is searching for master device but I am not sure what specifically it is searching for - is it the heartbeat? should this be "seeing" the heartbeat ant messages?
Also how do the commands from the generic remote control get received in the demo app?
Any ideas/suggestions?
Thanks in advance,
Ants