WHY ANT? | TECHNOLOGY | PRODUCTS | ANT+ | NEWS | COMPANY | SUPPORT
ANT Forum
Welcome, Guest
Please Login    Lost Password?
ANT USB2 stick under Linux (2 viewing) (2) Guests
Go to bottom Favoured: 0
TOPIC: ANT USB2 stick under Linux
#799
markrages (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
ANT USB2 stick under Linux 1 Year, 9 Months ago Karma: 5  
Hi everyone,

We just received some ANT USB2 sticks.

I've posted an example of using the ANT USB2 stick under Linux here:

opensource.quarq.us/ant_usb2_stick

The code should be cross-platform to Windows and OS X, at least when pyUSB's known bug on OS X is fixed.
 
Logged Logged  
  The administrator has disabled public write access.
#927
pb (Visitor)

Re:ANT USB2 stick under Linux 1 Year, 6 Months ago  
Is the Garmin USB ANT Stick simply a USB2 Stick-OEM with a Garmin logo? Is the Garmin stick limited to use with Garmin products?
 
Logged Logged  
  The administrator has disabled public write access.
#1019
Erik (Visitor)

Re:ANT USB2 stick under Linux 1 Year, 5 Months ago  
Hi Mark,

Question about the python scripts you wrote.

Have installed them on OSX, you said that there is a problem. what is that?
Also the quarqd_config file, what should that look like?

If I run the ap2.py script, i get numbers back (sometimes), the ap2s, returns with errors.
See below.

Traceback (most recent call last):
File "ap2s.py", line 40, in <module>
print " ".join(("%02x"%x for x in ep_in.read(64)))
File "/Library/Python/2.6/site-packages/usb/core.py", line 273, in read
return self.device.read(self.bEndpointAddress, size, self.interface, timeout)
File "/Library/Python/2.6/site-packages/usb/core.py", line 624, in read
self.__get_timeout(timeout)
File "/Library/Python/2.6/site-packages/usb/_debug.py", line 53, in do_trace
return f(*args, **named_args)
File "/Library/Python/2.6/site-packages/usb/backend/libusb10.py", line 483, in bulk_read
timeout)
File "/Library/Python/2.6/site-packages/usb/backend/libusb10.py", line 581, in __read
timeout))
File "/Library/Python/2.6/site-packages/usb/backend/libusb10.py", line 353, in _check
raise USBError(_str_error[retval.value])
usb.core.USBError: Operation timed out


Erik
 
Logged Logged  
  The administrator has disabled public write access.
#1395
emil (Visitor)

Re:ANT USB2 stick under Linux 1 Year ago  
Hi,

thanks for your examples!

I'm writing a program in C using libusb1 to access ANT USB2 sticks.
I managed to write the link layer messages to the device and get messages for a successful configuration back.
If i try to receive messages sent from a second device, the thread with libusb_bulk_read does not return any data.

How can i read the transmitted messages from the USB2 stick?

Many thanks in advance!
 
Logged Logged  
  The administrator has disabled public write access.
#1409
shailendra (Visitor)

Re:ANT USB2 stick under Linux 1 Year ago  
Hi Mark,

I am facing some error in "ap2.py" & "ap2s.py". I have updated my system environment as per required like libusb 1.0 ,pyusb 1.0 and python 2.6.6

but getting the below error.

Error:
File "ap2.py", line 21, in <module> dev.get_interface_altsetting(), # first interface
AttributeError: 'Device' object has no attribute 'get_interface_altsetting

In forums, somewhere I read that "get_interface_altsetting()" is deprecated ,if it so then please suggest what are the others methods that I can use in place of it "get_interface_altsetting()".

Please let me know how to fix this issues.
 
Logged Logged  
  The administrator has disabled public write access.
#1416
w.tiedge (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:ANT USB2 stick under Linux 1 Year ago Karma: 0  
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
get the latest posts directly to your desktop