You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
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?
Hi
I done the suggested changes in "ap2.py" but again facing the some issues.
cfg = dev.get_active_configuration() giving me Segmentation fault error in "ap2.py".
Please help me out if any one have solution for this issues.
> It has been reported for Ubuntu that running the following command:
> sudo modprobe usbserial vendor=0x0fcf product=0x1008
> will make the Ant+ stick show up as ttyUSB0 and you can run quarqd.
To make the change permanent, you can do
echo "options usbserial vendor=0x0fcf product=0x1008" > /etc/modprobe.d/ant-usb2.conf
(do it as root, sudo -s makes you root)
If, like me, you have a bunch of different USB->serial devices, you might want to give the stick a consistent filename:
echo 'SUBSYSTEM=="tty" ACTION=="add" ATTRS{idProduct}=="1008" ATTRS{idVendor}=="0fcf" SYMLINK+="ttyANT"' > /etc/udev/rules.d/10-antstick.rules
(do it as root, all on a line).
Then use "/dev/ttyANT" for $ANT_TTY instead of "/dev/ttyUSB0" or whatever.
import serial
ant_fd=serial.Serial('/dev/ttyANT0')