USB Permission problem with Garmin Plugin in Iron browser

I run the SRWare Iron browser (chrome) and i want to use the Garmin Plugin (start [Linux Garmin Communicator Plugin]), in order to sync my Forerunner GPS watch.
It is detected under about:plugins, but when i try to use it in a website, i get an error that the plugin is not detected.

Running the browser from terminal show that i get this error:

usb_open failed: permission denied.

What could be the reason ?

I contacted the developer of the plugin but unfortunately he couldn’t help me.

Thank you

Hi
Check the output from dmesg when you plug the device in. It may need a udev rule to enable it as your user.

Have you tried garmintools, or are you trying to upgrade the device?
software.opensuse.org:

This is the output of dmesg:

 3848.924036] usb 2-3: new full-speed USB device number 4 using ohci_hcd
 3849.103313] usb 2-3: New USB device found, idVendor=091e, idProduct=0003
 3849.103318] usb 2-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0

The device if fully upgraded and both Garmintools and libgarmintools are installed.

Hi
I only have 305, but I see (In SRWare Iron) and built the plugin as an rpm in my test repo;

SUSE Paste

And in dmesg output I see;


[179866.981845] usb 2-1.4: new full-speed USB device number 8 using ehci_hcd
[179867.068243] usb 2-1.4: New USB device found, idVendor=091e, idProduct=0003
[179867.068248] usb 2-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[179868.363582] usbcore: registered new interface driver usbserial
[179868.363599] usbcore: registered new interface driver usbserial_generic
[179868.363613] USB Serial support registered for generic
[179868.363629] usbserial: USB Serial Driver core
[179868.364427] usbcore: registered new interface driver garmin_gps
[179868.364446] USB Serial support registered for Garmin GPS usb/tty
[179868.364458] garmin_gps 2-1.4:1.0: Garmin GPS usb/tty converter detected
[179868.364609] usb 2-1.4: Garmin GPS usb/tty converter now attached to ttyUSB0

What website are you going to for the plugin to be used?

I see the same thing in my browser, so the plugin is active and enabled.

That’s what i’m missing. the OS is not detecting the device. All i have is the first 3 lines. do i need to install or enable any package to detect the garmin device ? Mine is the Forerunner 205. It’s practically the 305 without the heart beat monitor option

endomondo.com

On Mon 26 Nov 2012 02:36:01 AM CST, Argoson wrote:

malcolmlewis;2506556 Wrote:
> Hi
> I only have 305, but I see (In SRWare Iron) and built the plugin as an
> rpm in my test repo;
>
> ‘SUSE Paste’ (http://paste.opensuse.org/31584361)
>
I see the same thing in my browser, so the plugin is active and
enabled.

malcolmlewis;2506556 Wrote:
>
> And in dmesg output I see;
> >
Code:

> >
> [179866.981845] usb 2-1.4: new full-speed USB device number 8 using
ehci_hcd > [179867.068243] usb 2-1.4: New USB device found,
idVendor=091e, idProduct=0003 > [179867.068248] usb 2-1.4: New USB
device strings: Mfr=0, Product=0, SerialNumber=0 > [179868.363582]
usbcore: registered new interface driver usbserial > [179868.363599]
usbcore: registered new interface driver usbserial_generic >
[179868.363613] USB Serial support registered for generic >
[179868.363629] usbserial: USB Serial Driver core > [179868.364427]
usbcore: registered new interface driver garmin_gps > [179868.364446]
USB Serial support registered for Garmin GPS usb/tty > [179868.364458]
garmin_gps 2-1.4:1.0: Garmin GPS usb/tty converter detected >
[179868.364609] usb 2-1.4: Garmin GPS usb/tty converter now attached to
ttyUSB0 > --------------------
> >
>
That’s what i’m missing. the OS is not detecting the device. All i have
is the first 3 lines. do i need to install or enable any package to
detect the garmin device ? Mine is the Forerunner 205. It’s practically
the 305 without the heart beat monitor option

malcolmlewis;2506556 Wrote:
>
> What website are you going to for the plugin to be used?
endomondo.com’ (http://endomondo.com/)

Hi
Ok, you manually compiled the plugin? permissions set to 0755.

I can’t connect either on garmin connect. I tried the website
indicated, but it wants to update the plugin…

Need to find some log files, also will try from a windows vm…

This will be tomorrow sometime.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 2 days 3:11, 4 users, load average: 0.23, 0.32, 0.32
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

On Mon 26 Nov 2012 03:09:27 AM CST, malcolmlewis wrote:

[QUOTE]
On Mon 26 Nov 2012 02:36:01 AM CST, Argoson wrote:

malcolmlewis;2506556 Wrote:
> Hi
> I only have 305, but I see (In SRWare Iron) and built the plugin as an
> rpm in my test repo;
>
> ‘SUSE Paste’ (http://paste.opensuse.org/31584361)
>
I see the same thing in my browser, so the plugin is active and
enabled.

malcolmlewis;2506556 Wrote:
>
> And in dmesg output I see;
> >
Code:

> >
> [179866.981845] usb 2-1.4: new full-speed USB device number 8 using
ehci_hcd > [179867.068243] usb 2-1.4: New USB device found,
idVendor=091e, idProduct=0003 > [179867.068248] usb 2-1.4: New USB
device strings: Mfr=0, Product=0, SerialNumber=0 > [179868.363582]
usbcore: registered new interface driver usbserial > [179868.363599]
usbcore: registered new interface driver usbserial_generic >
[179868.363613] USB Serial support registered for generic >
[179868.363629] usbserial: USB Serial Driver core > [179868.364427]
usbcore: registered new interface driver garmin_gps > [179868.364446]
USB Serial support registered for Garmin GPS usb/tty > [179868.364458]
garmin_gps 2-1.4:1.0: Garmin GPS usb/tty converter detected >
[179868.364609] usb 2-1.4: Garmin GPS usb/tty converter now attached to
ttyUSB0 > --------------------
> >
>
That’s what i’m missing. the OS is not detecting the device. All i have
is the first 3 lines. do i need to install or enable any package to
detect the garmin device ? Mine is the Forerunner 205. It’s practically
the 305 without the heart beat monitor option

malcolmlewis;2506556 Wrote:
>
> What website are you going to for the plugin to be used?
endomondo.com’ (http://endomondo.com/)

Hi
Ok, you manually compiled the plugin? permissions set to 0755.

I can’t connect either on garmin connect. I tried the website
indicated, but it wants to update the plugin…

Need to find some log files, also will try from a windows vm…

This will be tomorrow sometime.

[/QUOTE]
Hi
OK, did you configure the xml file as per
http://www.andreas-diesner.de/garminplugin/doku.php?id=configuration


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 2 days 3:29, 4 users, load average: 0.09, 0.12, 0.22
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Yes. Didn’t help

I installed it from the Garminplugin repo. I have the latest version. How do I set permission to the plugin ? I do that on the .so file itself ?

Running

lsmod | grep garmin_gps

returned nothing which made me realise that the garmin_usb module wasn’t loaded. It was in fact blacklisted. I loaded it and un-blacklisted but still getting the same permission problem.
Do I need the module loaded ?

I also made sure my user is part of the ‘lp’ group.

On Mon 26 Nov 2012 04:16:01 AM CST, Argoson wrote:

Running

Code:

lsmod | grep garmin_gps

returned nothing which made me realise that the garmin_usb module
wasn’t loaded. It was in fact blacklisted. I loaded and un-blacklisted
but still getting the same permission problem.
Do I need the module loaded ?

Hi
garmin_usb? It should be garmin_gps, can you try modprobing;


modprobe garmin_gps

Then plug the device back in.

In the output from;


lsusb

Do you see;


Bus 002 Device 016: ID 091e:0003 Garmin International GPS (various
models) 

I updated my plugin (my own build) and I see;

http://paste.opensuse.org/60945621
and
http://paste.opensuse.org/99400644

Unfortunately I have no data on the device, so that’s why I think it
fails…

I also set a debug log and upload string to;


cat .config/garminplugin/garminplugin.xml

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<GarminPlugin logfile="/tmp/garminplugin.log" level="DEBUG">
<Devices>
<Device enabled="true">
<Name>Forerunner 305</Name>
<StoragePath>/home/malcolml</StoragePath>
<StorageCommand>gpsbabel -i gpx -f %1 -o garmin -F /dev/ttyUSB0</StorageCommand>
<FitnessDataPath></FitnessDataPath>
<GpxDataPath></GpxDataPath>
</Device>
</Devices>
<Settings>
<ForerunnerTools enabled="true" />
</Settings>
</GarminPlugin>

Maybe setting the tools to false as well may help.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 2 days 5:08, 4 users, load average: 0.00, 0.02, 0.08
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Not wishing to confuse the situation further, but I noticed

[179868.364458] garmin_gps 2-1.4:1.0: Garmin GPS usb/tty converter detected
[179868.364609] usb 2-1.4: Garmin GPS usb/tty converter now attached to ttyUSB0

So, check device ownership with

ls -l /dev/ttyUSB0/CODE

I think you’ll find it is assigned to the ‘dialout’ group.

of course - garmin_gps , usb was a typo

You were correct. it is the dialup group

So far, with the change to the group, my watch is being detected, but i’m getting an error that it is not supported. So it must be a configuration issue, or that the device is really not supported. I will contact the developer for further investigation.

On Mon 26 Nov 2012 06:36:01 AM CST, Argoson wrote:

So far, with the change to the group, my watch is being detected, but
i’m getting an error that it is not supported. So it must be a
configuration issue, or that the device is really not supported. I will
contact the developer for further investigation.

Hi
Yes, I see the same, I’m guess you can grab data off the device via;


gpsbabel -i garmin -f /dev/ttyUSB0 -o gpx -F test.gpx

Should give you data that can be manually upload?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 2 days 13:11, 4 users, load average: 0.00, 0.03, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU