From: Helmut Hullen on
Hallo, root,

Du meintest am 16.12.08:

>>> I am running Slack 12.1 and am trying to get garmintools 0.9
>>> to run. It makes OK, but when I run garmin_get_info it
>>> doesn't see the device. I can't access ttyUSB0 either.

> There is an entry in /dev for ttyUSB0, but if I try to cat
> from it I always get No Such Device.

What tells

ls -l /dev/ttyUSB0

Maybe the rights don't fit.

Viele Gruesse
Helmut

"Ubuntu" - an African word, meaning "Slackware is too hard for me".

From: Helmut Hullen on
Hallo, root,

Du meintest am 16.12.08:

>> Try to preset "/dev/ttyUSB0" (and perhaps some other devices) in
>>
>> /lib/udev/devices

> I'm not familiar with the entries in the directory /lib/udev/devices.
> Here is what an ls -l shows me:

[...]

no USB device preset.

> Should there be some entries
> defining usb devices?

"udev" shouldn't need it, but sometimes it's necessary to preset such an
entry.

> If so, what would they be

Sorry - I don't now.
"devices.txt" in the kernel source documentation says "major 188",
"char".

Viele Gruesse
Helmut

"Ubuntu" - an African word, meaning "Slackware is too hard for me".

From: Beej Jorgensen on
root <NoEMail(a)home.org> wrote:
>I am running Slack 12.1 and am trying to get garmintools 0.9
>to run. It makes OK, but when I run garmin_get_info it
>doesn't see the device. I can't access ttyUSB0 either.

A few things to try:

1. Try gpsbabel. Even if it doesn't do what you need, it might help
troubleshoot.

2. Make sure the perms are right, or be gutsy and run as root. :)

3. Do you have multiple USB serial devices? Might it be ttyUSB1?

4. Does anything show up in /var/log/messages when you plug in the GPS?
("new full speed USB device", etc?)

-Beej

From: root on
Helmut Hullen <helmut(a)hullen.de> wrote:
>
> What tells
>
> ls -l /dev/ttyUSB0
>
> Maybe the rights don't fit.
>
> Viele Gruesse
> Helmut
>
> "Ubuntu" - an African word, meaning "Slackware is too hard for me".
>

For ls -l /dev/ttyUSB0:

crw-rw-rw- 1 root uucp 188, 0 Mar 25 2001 /dev/ttyUSB0
From: root on
Beej Jorgensen <beej(a)beej.us> wrote:
> root <NoEMail(a)home.org> wrote:
>>I am running Slack 12.1 and am trying to get garmintools 0.9
>>to run. It makes OK, but when I run garmin_get_info it
>>doesn't see the device. I can't access ttyUSB0 either.
>
> A few things to try:
>
> 1. Try gpsbabel. Even if it doesn't do what you need, it might help
> troubleshoot.
>
> 2. Make sure the perms are right, or be gutsy and run as root. :)
>
> 3. Do you have multiple USB serial devices? Might it be ttyUSB1?
>
> 4. Does anything show up in /var/log/messages when you plug in the GPS?
> ("new full speed USB device", etc?)
>
> -Beej
>

1. I had installeld gpsbabel, but it seems to only convert from one
gps format to another.

2. I always run as root anyhow. I think the perms are 666.

3. I tried catting from ttyUSB1 with the same No Device result
as USB0.

4. I get lots of dmesg entries when I connect the device:
hub 1-0:1.0: state 7 ports 10 chg 0000 evt 0002
ehci_hcd 0000:00:0b.1: GetStatus port 1 status 001002 POWER sig=se0 CSC
hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
hub 1-0:1.0: state 7 ports 10 chg 0000 evt 0002
ehci_hcd 0000:00:0b.1: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
ehci_hcd 0000:00:0b.1: port 1 full speed --> companion
ehci_hcd 0000:00:0b.1: GetStatus port 1 status 003001 POWER OWNER sig=se0 CONNECT
ohci_hcd 0000:00:0b.0: auto-wakeup root hub
hub 1-0:1.0: port 1 not reset yet, waiting 50ms
ehci_hcd 0000:00:0b.1: GetStatus port 1 status 003802 POWER OWNER sig=j CSC
hub 2-0:1.0: state 7 ports 10 chg 0000 evt 0002
ohci_hcd 0000:00:0b.0: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
ohci_hcd 0000:00:0b.0: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
usb 2-1: new full speed USB device using ohci_hcd and address 4
ohci_hcd 0000:00:0b.0: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
usb 2-1: ep0 maxpacket = 8
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
usbserial_generic 2-1:1.0: usb_probe_interface
usbserial_generic 2-1:1.0: usb_probe_interface - got id
drivers/usb/core/inode.c: creating file '004'
usb 2-1: new device strings: Mfr=0, Product=0, SerialNumber=0
hub 1-0:1.0: state 7 ports 10 chg 0000 evt 0002
hub 2-0:1.0: state 7 ports 10 chg 0000 evt 0002
hub 1-0:1.0: state 7 ports 10 chg 0000 evt 0002
ehci_hcd 0000:00:0b.1: GetStatus port 1 status 001002 POWER sig=se0 CSC
hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
hub 1-0:1.0: state 7 ports 10 chg 0000 evt 0002
ehci_hcd 0000:00:0b.1: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
ehci_hcd 0000:00:0b.1: port 1 full speed --> companion
ehci_hcd 0000:00:0b.1: GetStatus port 1 status 003001 POWER OWNER sig=se0 CONNECT
ohci_hcd 0000:00:0b.0: auto-wakeup root hub
hub 1-0:1.0: port 1 not reset yet, waiting 50ms
ehci_hcd 0000:00:0b.1: GetStatus port 1 status 003802 POWER OWNER sig=j CSC
hub 2-0:1.0: state 7 ports 10 chg 0000 evt 0002
ohci_hcd 0000:00:0b.0: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
ohci_hcd 0000:00:0b.0: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
usb 2-1: new full speed USB device using ohci_hcd and address 4
ohci_hcd 0000:00:0b.0: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
usb 2-1: ep0 maxpacket = 8
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
usbserial_generic 2-1:1.0: usb_probe_interface
usbserial_generic 2-1:1.0: usb_probe_interface - got id
drivers/usb/core/inode.c: creating file '004'
usb 2-1: new device strings: Mfr=0, Product=0, SerialNumber=0
hub 1-0:1.0: state 7 ports 10 chg 0000 evt 0002
hub 2-0:1.0: state 7 ports 10 chg 0000 evt 0002



The kernel sees that something is going on with the usb device, but
I can't get it to register to user space.