I'm trying to get started programming ANT+ and struggling to do what I thought would be a very straightforward first step - using ANT_NetDll_Demo to get my PC talking to a sensor.
I've read the suggested ANT+ documents and compiled the ANT_Libraries. The latest C++ runtime is installed OK. Although far from an expert, I have done lots of programming.
I have a valid Ant+ USB stick (that works with my Elite Smart Turbo Trainer) and a Garmin combined Speed-and-Cadence sensor (that works with my Garmin Edge computer) which I can trigger by swiping the magnet past it (it lights an LED and registers on the Garmin Edge 1000). The sensor has no identification (apart from FCCID:IPH-00447, IC:1792A-00447, CE 1177 inside), but it looks like the GSC 10 Speed/Cadence Bike Sensor listed in the Ant+ Compatible Product Directory (and bought as a pack with a Garmin Edge 510 which is also listed). I also have an Elite Drivo (with ANT+ and FE-C).
I believe I have the Ant+ USB stick drivers installed and working properly because if I run DEMO_NET without the Ant+ USB stick in the PC the programme aborts (unsurprisingly), whereas if I plug in the Ant+ USB stick it runs. Also using Zwift the Elite and USB communicate properly.
If I run ANT_NetDll_Demo and then "start demo" with "Device 0 Only - Master". It seems to work properly.
If I run ANT_NetDll_Demo and then "start demo" with "Device 0 - Master, Device 1- Slave". I get the error "Error: Can not connect to second device, ANTLibrary Exception: Failed to connect to any ANT devices". It will not detect / connect to the Speed-and-Cadence sensor nor the Elite Drivo as I expected.
I suspect I am making a beginner's basic error. Can someone point me in the right direction please.