alejandra - 08 November 2012 08:50 AM
Do you have an ANT enabled phone as well, or do you only have one ANT USB stick and have been doing your work with the emulator.
To be able to test an ANT connection, you need two ANT enabled devices, so that would be
1) ANT+ Simulator connected to ANT USB stick
2) Android Emulator connected to ANT USB stick running ANT+ demo
OR
ANT enabled phone running ANT+ demo
You do not need to do any changes to the simulator to be able to simulate a sensor, all you need is the software and a USB stick.
So if you only have one USB stick, you will need to get a second one for your development.
So exactly what is the second ant sub stick doing for us? Why is it needed? On a real Android device I would plug in a single usb stick and be good to go.
My overall question is how do I setup two usb ant sticks on my pc, using the android emulator, and the ant sensor simulator?
For a more verbose discussion of my situation read below.
I'm working on an Android app that will make use of a Ant USB2 stick. My goal is to use the Android Emulator and plug the one Suunto MoveStick Mini usb stick I have and run the simulator to have my Android app pickup the data. I ran into a issue though as outlined below.
I was able to validate the sensor simulator with just my usb stick will generate data and the usb will pick it up so I'm good as far as basic setup goes. My problems come in when I try to do things with the Android emulator. I have the emulator bridge setup and working. When I run the Ant+ demo on the emulator it opens and waits for data. But when I run the simulator and try to connect to the usb stick I get an error in the simulator that says "ANT Initialization Failure". My high level guess is the bridge to android has basically a lock on the usb stick so the sensor simulator can't get a handle to it. So it appears I need a second ant usb stick.
If I do need another one do I just plug it in and point the sensor simulator to it and it will forward it's data to the usb stick that the android bridge has?
Any help would be great.
Thanks