ant+ usb stick problems

2,000 views
Skip to first unread message

joschau

unread,
Jan 8, 2016, 2:44:03 AM1/8/16
to golden-cheetah-users
hi,

i wanted to try out real time training with GC, problem is that i cant get my sensors to connect.

windows7 64bit

USB1-Wireless USB Stick
FCC id: 06RUSB-A
IC: 3797A-USBA
USB\VID_0FCF&PID_1004&REV_0300
USB\VID_0FCF&PID_1004

is this stick not supported or where is the fault^^.

Mark Liversedge

unread,
Jan 8, 2016, 3:11:57 AM1/8/16
to golden-cheetah-users
Make sure the stick is not in use by Garmin software. Garmin express software, ANT+ agent and friends tend to hog it.
Sometimes it helps to provide more info too.. like what O/S you are running, how to recreate  etc.

Mark

Jörn R.

unread,
Jan 8, 2016, 3:22:14 AM1/8/16
to golden-cheetah-users
Problem on USB1 is testing when creating a release.
(without having access to an USB1 stick).

Please tryout the 32 bit version - which has a different
version of the USB1 library included. Or if you have
use 32bit GoldenCheetah then 64bit.

@all - if someone has an unused USB1 ANT stick
floating around and would be willing to donate that.

Or if someone has an idea where I still can buy one.
(without signifcant costs) I would be willing to do so 
to be able to test the USB1 library for Windows as well.



Jörn R.

unread,
Jan 8, 2016, 3:50:07 AM1/8/16
to golden-cheetah-users
Thanks Mark - I always forget this one (since it currently does not bother me any more / for whatever reason is works in parallel now) - but was facing this in the past as well.

Joern

Jon Escombe

unread,
Jan 8, 2016, 6:29:27 AM1/8/16
to Jörn R., golden-cheetah-users
I'd second that, is always a worry not being able to test the old USB1
code when doing ANT related development. Would probably consider a swap
if someone wants a USB2 stick in exchange (am UK based).

Cheers,
Jon

Luther Gulseth

unread,
Jan 8, 2016, 3:41:28 PM1/8/16
to Jon Escombe, Jörn R., golden-cheetah-users
I've got a USB1 stick lying around playing in the dust. Who should I send it to?

In Christ crucified,
Luther

--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
--- You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pwkpete

unread,
Jan 19, 2016, 1:51:54 PM1/19/16
to golden-cheetah-users, joer...@gmail.com
I have an original TACX USB stick made by Dunastream. I suspec that is USB1 as well?

I just built the latest GC and when I try to add a device and specify ANT, it seg faults immediately. (/dev/ttyUSB0 on Linux)
If the Ant stick is not in it will allow me to scan or specify the serial port on the next dialog.

Crash information did not seem useful.
Standard out showed:
ANT device reset was not acknowledged !...try again
Segmentation fault (core dumped)

Jon Escombe

unread,
Jan 19, 2016, 3:15:55 PM1/19/16
to pwkpete, golden-cheetah-users, joer...@gmail.com
Could you check the vendor and product id with the lsusb command?

0fcf:1004 should be the USB1 stick, 0fcf:1008 is the USB2

Regards,
Jon

P. Ik.

unread,
Jan 19, 2016, 4:27:00 PM1/19/16
to Jon Escombe, golden-cheetah-users, joer...@gmail.com
Yeah, it's the ancient (6 years old now) 1004 USB 1...

P. Ik.

unread,
Jan 19, 2016, 9:57:45 PM1/19/16
to Jon Escombe, golden-cheetah-users, joer...@gmail.com
I finally got some output:

** OPENING CHANNEL 0 **
0 type= 1 device type= 120 freq= 57
0 assign channel type RX
** CLOSING CHANNEL 1 **
lost info for channel 1
** OPENING CHANNEL 1 **
1 type= 2 device type= 11 freq= 57
1 assign channel type RX
** CLOSING CHANNEL 2 **
lost info for channel 2
** OPENING CHANNEL 2 **
2 type= 3 device type= 123 freq= 57
2 assign channel type RX
** CLOSING CHANNEL 3 **
lost info for channel 3
** OPENING CHANNEL 3 **
3 type= 5 device type= 121 freq= 57
3 assign channel type RX
lost info for channel 0
** CLOSING CHANNEL 0 **
lost info for channel 1
** CLOSING CHANNEL 1 **
lost info for channel 2
** CLOSING CHANNEL 2 **
lost info for channel 3
** CLOSING CHANNEL 3 **
ANT device reset was not acknowledged !...try again
ANT device reset was not acknowledged !...try again
ANT device reset was not acknowledged !...try again
ANT device reset was not acknowledged !...try again
** CLOSING CHANNEL 0 **

Mark Liversedge

unread,
Jan 20, 2016, 2:43:26 AM1/20/16
to golden-cheetah-users, jesc...@googlemail.com, joer...@gmail.com
On Wednesday, 20 January 2016 02:57:45 UTC, pwkpete wrote:
I finally got some output:

Did you need to reboot? change device permissions?

Be useful to know what changed ?

Thanks

Mark  

Jon Escombe

unread,
Jan 20, 2016, 3:16:45 AM1/20/16
to P. Ik., golden-cheetah-users, joer...@gmail.com
Thanks, I'm keeping an eye on eBay for a reasonably priced one..

Out of interest, is this your own build, or a pre-compiled binary? Might
be good just to rule out a build/configuration issue if you're able to
run a packaged build - not sure what platform you're on?

Regards,
Jon

P. Ik.

unread,
Jan 20, 2016, 8:49:24 AM1/20/16
to Jon Escombe, Jörn R., golden-cheetah-users

Compiled build. I'm on arch Linux

pwkpete

unread,
Jan 21, 2016, 4:00:39 PM1/21/16
to golden-cheetah-users, jesc...@googlemail.com, joer...@gmail.com
I pulled the device and reinserted from all I can tell. In both instances /dev/ttyUSB0 was there so not sure.

Anyway, should ANT 1 devices work on Linux? Looking closer at the comments, perhaps I would not expect it to:
# If you want support for using USB1 sticks in Train View on Windows
# then install the SiLabs USBXpress Software Development Kit (SDK)
...
# If you want support for using USB2 sticks in Train View on Linux or Windows
# then you need to install libusb (Linux) or libusb-win32 (Windows) version 0.1.12

Does the latter also imply USB1 on Linux? This is what I have configured.

This ANT device is junk - poor signal strength / reception, but I thought it would be acceptible to do testing/dev work with it.... Don't want to mess with my trainer setup - TTS is so finicky, I don't want to break it :)

Jon Escombe

unread,
Jan 21, 2016, 4:36:57 PM1/21/16
to pwkpete, golden-cheetah-users, joer...@gmail.com
I believe in linux it uses the cp210x driver (see comments in ANT.h),
and should appear as a new virtual serial device.

It's supposed to work, but I think testing is a problem due to a lack of
devices.

Regards,
Jon

P. Ik.

unread,
Jan 21, 2016, 7:46:20 PM1/21/16
to Jon Escombe, golden-cheetah-users
You are correct the cp210x driver is used for it. I have a couple other devices that use that driver already.

I guess I must be getting sloppy as a result of rushing/limited time; make clean, make and it finds my HRM now.
Not sure why or what is different in the build but whatever. Maybe something was partially built in a previous iteration.
I'm not normally out of sorts on this type of work :)

If there is debugging on USB1 devices that I can help with, I'm glad to assist.






Diego Heredia Sanchez

unread,
Apr 28, 2016, 11:09:08 AM4/28/16
to golden-cheetah-users, jesc...@googlemail.com
I have problems to connect my ANT+ Stick on Golden Cheetah 4 (Ubuntu 14.04)


1) This is my ANT+ STICK  : (hLine ANT USB Adaptador idéntico a Garmin. USB2 ANT2)

2) Attached file  /etc/udev/rules.d/99-antstick.rules

3) dmesg after disconnet USB ANT stick
[  229.424681] usb 2-1.1: USB disconnect, device number 3
[  229.425104] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  229.425184] option 2-1.1:1.0: device disconnected

4) dmesg after reconnect USB ANT stick
[  249.345524] usb 2-1.1: new full-speed USB device number 5 using ehci-pci
[  249.442516] usb 2-1.1: New USB device found, idVendor=0fcf, idProduct=1009
[  249.442525] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  249.442531] usb 2-1.1: Product: ANT USB-m Stick
[  249.442536] usb 2-1.1: Manufacturer: Dynastream Innovations
[  249.442540] usb 2-1.1: SerialNumber: 215
[  249.444297] option 2-1.1:1.0: GSM modem (1-port) converter detected
[  249.444563] usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB0

5) lsusb -v
Bus 002 Device 005: ID 0fcf:1009 Dynastream Innovations, Inc. ANTUSB-m Stick
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        32
  idVendor           0x0fcf Dynastream Innovations, Inc.
  idProduct          0x1009 ANTUSB-m Stick
  bcdDevice            1.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          2 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              2 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1

6)  But as you can see in the attached image , Golden Cheetah 4 can't find the ANT + devices

What do wrong? Some help.
Thank you so much


2016-04-28_ant-stick-no-conecta-en-GC.png
99-antstick.rules

Diego Heredia Sanchez

unread,
May 2, 2016, 10:12:51 PM5/2/16
to golden-cheetah-users, jesc...@googlemail.com
I solved the problem. All you need to do is add in the /etc/udev/rules.d directory , the file 51-garmin-usb.rules which I modified by adding two lines more:

# Garmin ANT+ - USB1
ATTRS{idVendor}=="0fcf", ATTRS{idProduct}=="1004", MODE="0666"
# Garmin ANT+ - USB2
ATTRS{idVendor}=="0fcf", ATTRS{idProduct}=="1008", MODE="0666"
# hLine USB2 ANT2
ATTRS{idVendor}=="0fcf", ATTRS{idProduct}=="1009", MODE="0666"

No need to do anything more. In case anyone else has the same problem

G Coco

unread,
May 7, 2016, 12:44:01 AM5/7/16
to golden-cheetah-users, jesc...@googlemail.com
Thanks. I updated the 51-garmin-usb.rules file.
Reply all
Reply to author
Forward
0 new messages