Troubleshooting Garmin Ant+ USB2 issues - Ubuntu

649 views
Skip to first unread message

AndyB

unread,
Jan 3, 2012, 1:51:12 PM1/3/12
to golden-cheetah-users
Hi All,

I'm trying to get my Garmin Ant Stick working, and I'm not having a
lot of luck. I've had it working a couple of times, but it seems to be
entirely coincidence, and it's no longer working at all.

I've made the ubuntu specific changes here:
http://bugs.goldencheetah.org/projects/goldencheetah/wiki/Realtime_set_up
and here:
http://bugs.goldencheetah.org/projects/goldencheetah/wiki/Allowing_your_Linux_userid_permission_to_use_your_USB_device

I think it's a permissions issue. When I run from a console I get the
following error messages:
---
usb_set_configuration Error: could not set config 1: Operation not
permitted
check permissions on: "/dev/bus/usb/006/002"
did you remember to setup a udev rule for this device?
usb_claim_interface Error: could not claim interface 0: Operation not
permitted
usb_set_altinterface Error: Unknown error 18446744073709551594
usb_interrupt_write Error writing: error submitting URB: Operation
not permitted
... // lots more like above
usb_interrupt_write Error writing: error submitting URB: Operation
not permitted
lost info for channel 0
lost info for channel 1
lost info for channel 2
lost info for channel 3
---
I get the same issues when running as sudo or as root.

Has anyone seen this issue? Any ideas how I could fix it?

Regards,
Andy

Mark Liversedge

unread,
Jan 3, 2012, 1:58:51 PM1/3/12
to golden-che...@googlegroups.com
You need to setup a udev rule.

create a file /etc/udev/rules.d/51-garmin-usb.rules

and it should contain the following line (use your favourite editor):

ATTRS{idVendor}=="0fcf", ATTRS{idProduct}=="1008", MODE="0666"

Cheers,
Mark

AndyB

unread,
Jan 3, 2012, 2:43:50 PM1/3/12
to golden-cheetah-users
Thanks Mark,

I had this:
SUBSYSTEM=="tty" ACTION=="add" ATTRS{idProduct}=="1008" ATTRS{idVendor}
=="0fcf" SYMLINK+="ttyANT"
and I changed it to the one that you suggested (I guess the key is
MODE="0666"), but it still isn't working.

The permissions that I've checked look like this...
andy@ubuntu-lap:/dev$ ls -l | grep -i usb
crw-rw-rw- 1 root dialout 188, 0 2012-01-03 19:35 ttyUSB0

andy@ubuntu-lap:/dev/bus/usb/006$ ls -l | grep 002
crw-rw-rw- 1 root root 189, 641 2012-01-03 19:35 002

Are they all the permissions that I need? Could the problem be
elsewhere?

Cheers,
Andy

Mark Liversedge

unread,
Jan 3, 2012, 2:51:19 PM1/3/12
to golden-che...@googlegroups.com
So are you certain it is a USB2 stick?

Are you building your own binaries ?

The /dev/ttyANT crap is for Quarqd. We use libusb to interact with the device directly via /dev/bus/usb/ ... and so we don't need any of that other stuff, just udev rules to chmod 0666. I'd get rid of all the serial module crap and reboot.

Oh also, what does dmesg say?

Mark


On Tuesday, 3 January 2012 19:43:50 UTC, AndyB wrote:
Thanks Mark,

I had this:
SUBSYSTEM=="tty" ACTION=="add" ATTRS{idProduct}=="1008" ATTRS{idVendor}
=="0fcf" SYMLINK+="ttyANT"
and I changed it to the one that you suggested (I guess the key is
MODE="0666"), but it still isn't working.

The permissions that I've checked look like this...
andy@ubuntu-lap:/dev$ ls -l | grep -i usb
crw-rw-rw-  1 root dialout 188,   0 2012-01-03 19:35 ttyUSB0

andy@ubuntu-lap:/dev/bus/usb/006$ ls -l | grep 002
crw-rw-rw- 1 root root 189, 641 2012-01-03 19:35 002

Are they all the permissions that I need? Could the problem be
elsewhere?

Cheers,
Andy

Mark Liversedge

unread,
Jan 3, 2012, 2:54:32 PM1/3/12
to golden-che...@googlegroups.com
actually, modprobe -r is your friend here, but you will still need to rm /etc/modprobe.d/ant-usb2.conf

AndyB

unread,
Jan 3, 2012, 3:34:36 PM1/3/12
to golden-cheetah-users
It works! The key, like you suggested, was to ignore all the usbserial
stuff. I just got ride of that and it just worked.

Thanks very much for your help. I can test my patch with a real bike
now.

Cheers,
Andy

Mark Liversedge

unread,
Jan 3, 2012, 3:59:49 PM1/3/12
to golden-che...@googlegroups.com
Cool - fancy updating the wiki to reflect your experience?

Cheers,
Mark

AndyB

unread,
Jan 3, 2012, 5:11:19 PM1/3/12
to golden-cheetah-users
I'm happy to do that. Documentation isn't my strong point, but I'll
have a go.
Reply all
Reply to author
Forward
0 new messages