quarqd

232 views
Skip to first unread message

cpofwales

unread,
Nov 23, 2010, 3:05:45 PM11/23/10
to golden-cheetah-users
Hi there, I have been trying to setup the live option on GC. I am new
to almost all linux, so not too sure what Im doing. I have installed
linux as a virtual os which appears to be fine, but after following
the instruction on the site and attempting to start quarqd I get this
message:

Error opening /dev/ttyUSB0: are you root?
/dev/ttyUSB0: No such file or directory

I hope someone can help me as I thnk my head mau explode!!

Thanks in advance,

Ceri

Justin Knotzke

unread,
Nov 23, 2010, 3:31:04 PM11/23/10
to cpofwales, golden-cheetah-users
On Tue, Nov 23, 2010 at 15:05, cpofwales <cmphom...@yahoo.co.uk> wrote:

I hope someone can help me as I thnk my head mau explode!!


   That would be messy !

   Try typing sudo before quarqd:

   sudo ./quarqd

   But your problem is a Unix permissions one, not a quarqd one. 

   Good Luck !

   J 

Jim Thompson

unread,
Nov 23, 2010, 5:09:58 PM11/23/10
to Justin Knotzke, cpofwales, golden-cheetah-users

ENOENT is not EPERM

Ceri is getting ENOENT ("No such file or directory")

You could (potentially) fix a permissions problem (EPERM which typically shows up as "Permission denied") via sudo,
but you won't fix ENOENT with sudo.  (Well, if /dev didn't have read/scan permission for 'world/other', you might, but I digress.)

Ceri didn't say which VM solution he is using.  ("I have installed linux as a virtual os which appears to be fine")

Many VM solutions have a way of 'mapping' USB devices through for use by the guest OS. 

(I use VirtualBox, though if memory serves, vmware has the same function.)

In any case, be sure that the USB device is 'mapped through'.

Once you've done that, you may need to mess with .quarqd_config.   Here is mine:
% cat ~/.quarqd_config
#ANT_TTY=/dev/cu.usbserial-A800cAAk
ANT_TTY=/dev/cu.usbserial-A700e5vF
ANT_BAUDRATE=4800 
QUARQD_DEBUG=7

You'll notice that I have two different setups (the first is commented out) depending on which USB key I'm using.  There are other
setup instructions here:  http://opensource.quarq.us/quarqd/

You may also notice that those instructions callout using
ANT_TTY=/dev/cu.usbserial-A7005G7c

instead of what I've used above.  YMMV, its kinda up to you to 'find' the right device (I'd monitor /var/adm/messages while you plug the USB key in, that typically provides a clue as to what the device name is.)

Jim

--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en

Darren Hague

unread,
Nov 24, 2010, 9:26:00 AM11/24/10
to golden-cheetah-users
I have created a "virtual appliance" you can download and run, with
quarqd already configured to work with a Garmin ANT+ stick (USB1). You
can download it from http://dl.dropbox.com/u/291298/Quarqd%20Windows%20Kit.zip

If you need to log into the VM to tweak any settings, the username and
password are both "quarqd"

Hope this helps,
Darren


Here is the README:

Instructions for connecting Golden Cheetah to a Garmin ANT+ stick in
Windows

Part 1 - Installing Quarqd
==========================

1. Download and install VirtualBox for Windows hosts:
http://www.virtualbox.org/wiki/Downloads

2. Download and extract the files from the Quarqd Windows Kit

3. Start VirtualBox. Select "File -> Import Appliance" and choose
"Quarqd appliance.ovf" from the Quarqd Windows Kit. Click "Next" and
then "Finish".


Part 2 - Running Quarqd
=======================

1. Start VirtualBox, if it's not already running

2. Select the "Quarqd appliance" entry and click Start

Wait for about a minute until the Quarqd appliance window shows a
"ubuntu-quarqd login:" prompt. Quarqd is now running.


Part 3 - Setting up Golden Cheetah
==================================

1. Start Golden Cheetah. Select "Tools -> Options..." and then select
the Devices section.

2. Select the Device Type "ANT+ via Quarqd"

3. Set Device Port to localhost:8168

4. Click "Pair" and start pedaling - you should see a message "opening
channel #0" in the Quarqd console, then #1, #2 and #3 at 10-second
intervals.

5. If any ANT+ devices are detected, a list of codes will appear in
the Device Profile section when the scan finishes.
Unfortunately, a bug in the current release may prevent the Garmin
GSC-10 from being detected. This will be fixed in the next release.

6. Enter a Device Name of your choosing, and click Add.


Part 4 - Running Golden Cheetah in Realtime Mode
===================================================

1. Start Golden Cheetah and select Train and Racing View from the
dropdown at the top left of the screen.

2. Select Manual Ergo Mode and make sure that the drop down next to
the TIME display is set to your device name

3. If you want the session to be saved in Golden Cheetah, make sure
the Save checkbox is checked.

4. Click Start and you should see the ANT+ data updated in real time
on the screen.

Jamie Kimberley

unread,
Nov 24, 2010, 9:35:56 AM11/24/10
to Darren Hague, golden-cheetah-users
Darren,

This is pretty cool. If I understand, this circumvents the lack of
quarqd support on windows.

I'm thinking that this might be worthwhile to post to the wiki.
Thoughts?

I'm hoping that when ANT+ opens up we'll be able to fold all of this
into the main codebase, but winter is arriving (in the northern
hem.) and I suspect a lot of folks will find this on immediate use.

Jamie

> --
> _______________________________________________
> Golden-Cheetah-Users mailing list
> golden-che...@googlegroups.com
> http://groups.google.com/group/golden-cheetah-users?hl=en
>

"You don't use science to show that you're right, you use science to
become right."--xkcd
__________________
Jamie Kimberley
Postdoctoral Fellow
Department of Mechanical Engineering
The Johns Hopkins University
Office: 410.516.5162
Mobile: 217.621.8272
Fax: 410.516.4316
E-Mail:jamie.k...@jhu.edu

Darren Hague

unread,
Nov 24, 2010, 10:40:52 AM11/24/10
to golden-cheetah-users
Great idea - done.

http://bugs.goldencheetah.org/projects/goldencheetah/wiki/How_to_setup_Realtime_Mode_with_a_quarqd_appliance

Cheers,
Darren

On Nov 24, 2:35 pm, Jamie Kimberley <jamie.kimber...@jhu.edu> wrote:
> Darren,
>
> This is pretty cool. If I understand, this circumvents the lack of
> quarqd support on windows.
>
> I'm thinking that this might be worthwhile to post to the wiki.
> Thoughts?
>
> I'm hoping that when ANT+ opens up we'll be able to fold all of this
> into the main codebase, but winter is arriving (in the northern
> hem.) and I suspect a lot of folks will find this on immediate use.
>
> Jamie
>
>
>
> On Wed, 24 Nov 2010, Darren Hague wrote:
> > I have created a "virtual appliance" you can download and run, with
> > quarqd already configured to work with a Garmin ANT+ stick (USB1). You
> > can download it fromhttp://dl.dropbox.com/u/291298/Quarqd%20Windows%20Kit.zip
> Office:410.516.5162begin_of_the_skype_highlighting              410.516.5162      end_of_the_skype_highlighting
> Mobile:217.621.8272begin_of_the_skype_highlighting              217.621.8272      end_of_the_skype_highlighting
> Fax: 410.516.4316
> E-Mail:jamie.kimber...@jhu.edu

Erik

unread,
Dec 8, 2010, 11:47:44 PM12/8/10
to golden-cheetah-users
Hi Darren,

I recently bought a USB2 Garmin Ant+ Stick and got it working in
Ubuntu.
searching on the web I found the following statement;

sudo modprobe usbserial vendor=0x0fcf product=0x1008

This makes the Ant+ stick show up as ttyUSB0 and you can run quarqd
without problems after that.

Also installed openusb and/or libopenusb, not sure if they are really
needed (not that good with Linux).
Might be nice to incorporate in the image you created, for the USB2
owners.

Regards,

Erik


On Nov 24, 7:40 am, Darren Hague <dhagu...@googlemail.com> wrote:
> Great idea - done.
>
> http://bugs.goldencheetah.org/projects/goldencheetah/wiki/How_to_setu...

Darren Hague

unread,
Dec 9, 2010, 11:44:20 AM12/9/10
to golden-cheetah-users
Awesome - thanks, Erik. I've added that to the VM image, but it may
take me a couple of days to upload the image - I'm working away from
home right now.

Cheers,
Darren

Gareth

unread,
Dec 9, 2010, 12:47:04 PM12/9/10
to golden-cheetah-users
> I recently bought a USB2 Garmin Ant+ Stick and got it working in Ubuntu.
>
> sudo modprobe usbserial vendor=0x0fcf product=0x1008
>
> This makes the Ant+ stick show up as ttyUSB0 and you can run quarqd
> without problems after that.

I've updated the wiki entry with this information.

http://bugs.goldencheetah.org/projects/goldencheetah/wiki/How_to_setup_Realtime_Mode_with_quarqd

Darren Hague

unread,
Dec 13, 2010, 2:21:56 PM12/13/10
to golden-che...@googlegroups.com
VM image is now updated with Gareth's mod. Download link is the same one in the Wiki.

Cheers,
Darren

Matias

unread,
Dec 14, 2010, 10:48:25 PM12/14/10
to golden-cheetah-users
Darren - Thanks for posting the virtual appliance. I have a Garmin ANT
+ stick (USB1) and was able to run GC in realtime mode. Awesome stuff.
I have a Quarq Saturn.

A few hurdles along the way:

1) Within the Oracle VM Virtual Box, check the settings for the Quarqd
appliance, under USB -> Silicon Lab Dynastream ANT2USB [0300]. I added
"a new USB filter with all fields set to the values of the selected
USB device attached to the host PC". Everything matched except the
serial number. Not sure if the serial number has to match, but had
success after this change.
2) Check the USB stick shows up in the /dev directory (ls ttyU*).
Shows up as ttyUSB0 for me
3) Within the Quarqd Appliance, select "Devices" from the menu, then
"USB Devices", then select "Silicon Labs Dynastream ANT2USB [0300]".
When things are working and paired correctly, the USB icon on the
bottom right corner of Quarq appliance window will flicker and show
"Silicon Labs Dynastream" when the mouse is scrolled over the icon. If
the USB icon is not flickering, it's not paired w/ GC.

Here's a video of success

http://www.youtube.com/watch?v=fpgbbSHWmLo

The big test will be if I can replicate tomorrow :)

Matias
Reply all
Reply to author
Forward
0 new messages