Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → Miscellaneous → Thread

   

Implementing Generic Controllable Device

Rank

Total Posts: 1

Joined 2018-10-03

PM

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_ANTCHANNELbuffer); 

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      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

The most common item missed is setting the ANT+ key (https://www.thisisant.com/developer/ant-plus/ant-plus-basics/network-keys).

Section 6.2 table 6-2 "ANT Channel Configuration for Controllable Device" shows the other channel parameters.

So long as these parameters and the network key are configured correctly, the slave will find the master. The content of the pages needs to be correct for the functionality of the profile, but not the initial ANT connection.

Once the SimulANT+ slave connects to the master you will be able to see the received pages in SimulANT+ and can work on correcting them to match the profile document.      

Signature

Ian Haigh