Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Simulation Tools → Thread

   

Simulate and Display with 2 USB Devices

Rank

Total Posts: 10

Joined 2020-01-07

PM

Hello,

I am trying to ramp up knowledge on ANT+ leading into development of a new software application. To that goal I am trying to learn to use Simulant tool. I have 2 USB Devices and have tested each by inserting into PC and loading HeartRate Display and connecting to physical HeartRate Sensor. Independantly each device is working.

Now my test is to use 1 USB device as Heart Rate Display and the other as a Heart Rate Sensor. The sensor starts broadcasting and the display connects.however I keep getting the following errors in the ANT+ Verification display:
440432875 : Fail: Default Page (data page 0x00) received with reserved byte 1 set incorrectly.
440432875 : Fail: Default Page (data page 0x00) received with reserved byte 2 set incorrectly.
440432875 : Fail: Default Page (data page 0x00) received with reserved byte 3 set incorrectly.

These keep repeating and the messages look like empty data:
440432875 : Rx: [00][00][00][00][00][00][00][00]

Maybe I need to read more about the message protocol but I thought the sensors in Simulant would work when loaded.

What am I doing wrong here.

Thanks      

File Attachments

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

What do the logs for the sensor show?

Ian      

Signature

Ian Haigh

Rank

Total Posts: 10

Joined 2020-01-07

PM

Sorry, should have provided them the first time. these are the logs from the same test as the dispay      

File Attachments

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Are you seeing any error messages in the events tab that are missing from the text file? The _Messages log has no content, which indicates that the radio is not having messages sent to it. This explains why you are seeing only zeros.

Ian      

Signature

Ian Haigh

Rank

Total Posts: 10

Joined 2020-01-07

PM

When I ran the tests I started logging before clicking the "Turn On" button on each device so everything should have been there, I did not see anything else that was not in the log. I was using the Heart Rate Sensor not the legacy one and the Heart Rate Display

I just ran the test again to confirm, there are no additional events in the sensor display. I did try clicking some of the Send comman buttons on the display and it indicates that messages were sent but I dont see any messages in the sensor.      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

What version of SimulANT+ are you using?

What iteration of USB stick are you using (shows up in SimulANT+ as Dev0:USBm for USBm)?

Are you using a USB dock? If possible try connecting the usb sticks directly to your computer.

Ian      

Signature

Ian Haigh

Rank

Total Posts: 10

Joined 2020-01-07

PM

Both devices are listed as Dev0:USB2 and Dev1:USB2

I have tried the devices connected directly to 2 USB ports on the laptop and with both devices in a USB hub, with the same results. I also have tried starting Simulant with 1 device connected and then running another instance of Simulant after connecting the second device.

     
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

I have not been able to reproduce. Please share the version information found by clicking "About".

Ian      

Signature

Ian Haigh

Rank

Total Posts: 10

Joined 2020-01-07

PM

Version 2.3.0.0
Managed Library Version AMO 2.4.0.0
Unmanaged Wrapper Version AOA 2.901
FIT Profile Version 16.73      
Rank

Total Posts: 10

Joined 2020-01-07

PM

Do you have any additional thoughts on this? I really need to get a simulation environment up and running. Is there any other software that could be used to simulate a sensor? I would suggest that I write something myself using the .NET sdk, but as I am a newbie and in the learning stages myself that would be a risky step.      
Rank

Total Posts: 10

Joined 2020-01-07

PM

Today I tried running some of the demos from the PC SDK DEMO_HR_RECEIVER and DEMO_HR_TRANSMITTER and they also seem to have a problem. When I transmit a HR of 75, the receiver just shows zeros for the data. However when I try the ANT_NETDll_Demom things do seem to work okay (See image). I am using 2 Cycleplus USB dongles.      

Image Attachments

ANT_Demo.jpg

Click thumbnail to see full-size image

RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

I cannot reproduce this issue with official ANT+ USB sticks. I believe your issue is likely the USB devices you are using. Can you post a link to where you purchased them?

Ian      

Signature

Ian Haigh

Rank

Total Posts: 10

Joined 2020-01-07

PM

Ian,

Thank you for checking on this, I was wondering if my USB devices are to blame. I am currently using a devices from CycPlus, purchased on Amazon. The best I can tell for the part number is X0010DL7K5 US U2
This is the link to the product: https://www.amazon.com/gp/product/B079217ZGV/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1

I am very willing to purchase a device which is known to be comopatible with Simulant.

     
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

https://www.thisisant.com/developer/components/antusb-m/ is the latest iteration of the official device. Can be purchased through Garmin https://buy.garmin.com/en-US/US/p/10997/pn/010-01058-00 or th,rough distributors such as Digi-Key https://www.digikey.com/product-detail/en/garmin-canada-inc/ANTUSB-M/1094-1009-ND/3947399

Ian      

Signature

Ian Haigh

Rank

Total Posts: 10

Joined 2020-01-07

PM

Thank you, I just ordered 4 units, will test and get back to you after they arrive      
Rank

Total Posts: 10

Joined 2020-01-07

PM

Ian,

The Garmin USB devices came in today and worked immediatley. Thank you so much for your help and I appologize that I took so much time due to the type of device I purchased. I intentionally did not buy the cheapest USB device to try and avoid such a situation but being totally new to this I did not know.

I can now move forward with the development of our application.

Thanks again,

Thomas