Testing ANT apps with emulator?

Former Member
Former Member
How do I test ANT based Apps with the emulator? Can the emulator send out ANT messages? If yes, how do I receive them?
  • Former Member
    Former Member over 8 years ago
    Yes. You can transmit from the simulator. Look at Ant.Message
  • Former Member
    Former Member over 8 years ago
    ...To receive them you would require a second ant stick. You could use ANTWARE from thisisant to capture the output.
  • Yes. You can transmit from the simulator. Look at Ant.Message


    I'm not sure if this is exactly what you are talking about, but when you create an ANT channel in CIQ as a Master with code like the following:

    chanAssign = new Ant.ChannelAssignment(
    Ant.CHANNEL_TYPE_TX_NOT_RX,
    Ant.NETWORK_PLUS);
    GenericChannel.initialize(method(:onMessage), chanAssign);



    you get this error

    Master channels on the ANT+ network are not allowed.

    This came up a while back and Garmin said they would look into adding this capability. Depending on what you are trying to accomplish, you can use the Acknowledge function to send data from a watch to a device. I think this thread covers that.

    https://forums.garmin.com/showthread.php?163853-Accelerometer-Data&p=744722&highlight=Master+channels#post744722
  • Former Member
    Former Member over 8 years ago
    Pretty sure I've had them transmitting, but maybe wasn't using PUBLIC at the time. Maybe you could try using PRIVATE but setting the network key the same as PUBLIC? I might have a look later and see if I kept the code.
  • Former Member
    Former Member over 8 years ago
    Yes. You can transmit from the simulator. Look at Ant.Message


    Thanks for the reply, however I'm kind of confused, do I launch the app in the emulator, then plug in an ANT stick and run ANTWare. And when I open a channel in the emulator and send something the ANT stick would be able to pick it up? But my computer does not have ANT related hardware, how does that work?
  • Former Member
    Former Member over 8 years ago
    You will have to acquire at least 1 ANT+ USB stick. The cheap ones from china work fine if you're not in a hurry, otherwise find one locally. Whilst the stick itself can open many channels it will be bound to the app that hooks it, so you can only use the stick with the simulator or ANTware individually. You would require 2 sticks to run both apps. I believe the simulator wont hook the USB stick if it is not already plugged in when the simulator is opened. You could just use 1 stick and a Garmin device. Create a simple receiving channel on the device and then test your transmitting app in the simulator with the USB stick.