Simulator and ANT USB stick

Hello,
according to some older posts, CIQ simulator should be able to work with USB ANT stick. Mine does not pick any device. Using Win 8.1 64bit. Might be the reason that I have USB1 stick and it needs USB2?
Not talking about USB versions, but stick versions.
Thanks for advice.
  • The CIQ simulator only works with the ANT stick for the Generic ANT Channel. For data that comes from getActivity info (Heart Rate, Cadence, etc.) it gets the data from the FIT Data simulator inside the CIQ simulator.
  • Yes, I want to use it for generic ant channel. I've started with MO2Display app and changed device type and some other details. I don't know how to check if it is actually using the stick, because it says "searching..." even when the stick is unplugged. And I don't think it is, because I can open another app that uses the stick and it can connect - two apps cannot have it connected at the same time.
  • One possibility is that the MO2Display sample app is coded to use proximity pairing so you need to get your sensor really close to the ANT stick to get it to pair.

    Another possibility is that the other software isn't releasing the ANT stick. If you have ANT agent or some other Garmin software you need to completely shut that off to release the ANT stick. The simulator doesn't throw up an error when it can't find an ANT stick. It will just keep searching like what you're seeing.

    Another possibility is you might need some of the code fixes to the sample app that I listed in this post here.
  • Thank you for your advices. I've tried several ANT apps and they all work (one at a time), so there should be no hidden app blocking the stick. I've tried to put the sensor next to the stick and no luck.
    When I restart the simulator, first app run ends with "Unable to acquire channel." error. Subsequent runs no error occurs, but no connection as well. I've added debuggin output in the app and onMessage is never called.
    Do you have ANT permissions set for the simulator? To be able to build the app I had to clear it - see https://forums.garmin.com/showthread.php?216670-ANT-permission-problem.
  • While following MoxyRoger's great tips I also suggest that you look in the bin/ folder of the Connect IQ SDK. In there you should find an ANT usb device log (named "DeviceX.txt") which stores all ANT messages to/from the ANT usb stick. If the above tips don't resolve the issues you are seeing could you post this log?
  • Unfortunately, there's no such file. The only file that is newer than all the rest is sys.nfm, that contains only binary 0xFF - all 262144 bytes.
  • I have Positioning, Activity Recording, Sensor, and ANT permissions set for my app.

    I vaguely remember having some problem with the ANT permission, but I can't remember what I did to fix it. It think it occurred when using old app code in a newer SDK version. It seems to me that there was some change in how the manifest file named the permissions. You might need to turn all of the permissions off, build, then turn them back on and rebuild. Or you might need to manually delete the permissions from the manifest and then rebuild. Or you might need to manually change the names of the permissions in the manifest file.

    This is what my manifest file has in it right now with the above permissions set in the CIQ properties.

    <!-- This is a generated file. It is highly recommended that you DO NOT edit this file. --><iq:manifest xmlns:iq="www.garmin.com/.../connectiq" version="1">
    <iq:application entry="MCycApp" id="3F11E051FA4B41219001522B173613B6" launcherIcon="LauncherIcon" name="AppName" type="watch-app">

    <iq:products>
    <iq:product id="vivoactive"/>
    <iq:product id="fr920xt"/>
    </iq:products>

    <iq:permissions>
    <iq:uses-permission id="Positioning"/>
    <iq:uses-permission id="Sensor"/>
    <iq:uses-permission id="Fit"/>
    <iq:uses-permission id="Ant"/>
    </iq:permissions>

    <iq:langauges>
    </iq:langauges>

    </iq:application>
    </iq:manifest>


    I'm sorry, I'm not even sure if the problem that I'm remembering is related to the issue you're having....
  • I've tried to create a new CIQ project and added Ant permission -> not being able to compile it. I'll try to create new eclipse workspace and clean old SDK to see if that helps. Thank you so far for the tips.
  • OK, Ant permission problem solved (see the other thread). How come it works for others? Weird.

    My app works on 920XT, but not with the simulator + USB stick, so back to the original question. What sticks do you use?
  • I only have USB2 and USBm sticks. Works with both of those on the simulator. I've never tried a USB1.