Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Older versions of ANT libs fail with ANT USB mini stick

Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

Just for your information - maybe some of you fall into the same pit:

Obviously older versions (I used 1.7) of your ANT Managed Library ("ANT_NET.dll") fail with the new ANT USB mini stick ( http://www.thisisant.com/developer/components/antusb-m/ ).
After drilling into it, I found out that method ANT_Device.getDeviceCapabilities(bool forceNewCopy, UInt32 responseWaitTime) throws, because ANT USB mini stick returns a LONGER response than previous sticks.
Which in turn causes some padding code to fail, facing an unexpectedly long response.
Solution: switch to latest ANT_NET.dll - which however will mean changing your code, because it's not compatible.
Or build ANT_NET.dll yourself and fix the padding code in ANT_Device.getDeviceCapabilities.

Cheers,
OMB      
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

** removed double post **