no /dev/ttyUSB0

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

no /dev/ttyUSB0

Postby johng » Dec 1st, '11, 11:53

I'm trying to use my Garmin GPSMap60CSx with QlandkarteGT. On Mandriva all works smoothly, however my Mageia does not have a /dev/ttyUSB0 (or any /dev/ttyUSBx nodes as does my Mandriva. I tried creating one using: mknod /dev/ttyUSB0 c 188 0 but it was not recognised by QlandkarteGT. What's missing??
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: no /dev/ttyUSB0

Postby doktor5000 » Dec 1st, '11, 13:44

Could you please run the following command as root in a terminal after you have unplugged your Garmin:
Code: Select all
tailf /var/log/messages

Then wait a short time, plugin your Garmin again wait some seconds and post the whole output here, please in a Code-block.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18015
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: no /dev/ttyUSB0

Postby johng » Dec 1st, '11, 23:04

Thank you for the quick reply. I have made some progress(?). Based on my Mandrive setup, I had added 'blacklist garmin_gps' to /etc/modprobe.conf as needed (by that system). After I removed that item from /etc/modprobe.conf I now get a /dev/ttyUSB0.

Running: tailf /var/log/messages
Dec 2 09:33:13 localhost kernel: usb 2-1: usbfs: interface 0 claimed by garmin_gps while 'qlandkartegt' sets config #1
Dec 2 09:33:13 localhost kernel: garmin_gps ttyUSB0: Garmin GPS usb/tty converter now disconnected from ttyUSB0
Dec 2 09:33:13 localhost kernel: garmin_gps 2-1:1.0: device disconnected
Dec 2 09:33:13 localhost gpsd.hotplug: gpsd_control(action=remove, arg=/dev/ttyUSB0)
Dec 2 09:33:13 localhost gpsd.hotplug: reached a running gpsd
Dec 2 09:33:13 localhost kernel: usb 2-1: reset full speed USB device using uhci_hcd and address 3
Dec 2 09:33:13 localhost kernel: garmin_gps 2-1:1.0: Garmin GPS usb/tty converter detected
Dec 2 09:33:13 localhost kernel: usb 2-1: Garmin GPS usb/tty converter now attached to ttyUSB0
Dec 2 09:33:13 localhost gpsd.hotplug: gpsd_control(action=add, arg=/dev/ttyUSB0)
Dec 2 09:33:13 localhost gpsd.hotplug: reached a running gpsd

Running qlandkartegt to download tracks, I get:

Failed to download tracks. Failed to configure USB: Device or resource busy
The kernel driver 'dummy' is blocking. Please use 'rmmod dummy' as root to remove it temporarily. You might consider to add 'blacklist dummy' to your modeprobe.conf, to remove the module permanently.

Trying:
# rmmod dummy
ERROR: Module dummy does not exist in /proc/modules

Looking at /dev/ttyUSB0 permissions: crw-rw---, properties: User: root Group: dialout. Changing Group to root did not help.
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: no /dev/ttyUSB0

Postby doktor5000 » Dec 1st, '11, 23:23

Maybe you need to add your user to the dialout group?

Looking at the output, seems gpsd claims your device. Do you need gpsd?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18015
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: no /dev/ttyUSB0

Postby johng » Dec 2nd, '11, 10:59

So I un-install gpsd and try again.

tailf /var/log/messages
Dec 2 21:01:40 localhost mtp-probe: bus: 2, device: 2 was not an MTP device
Dec 2 21:01:40 localhost kernel: usbcore: registered new interface driver usbserial
Dec 2 21:01:40 localhost kernel: USB Serial support registered for generic
Dec 2 21:01:40 localhost kernel: usbcore: registered new interface driver usbserial_generic
Dec 2 21:01:40 localhost kernel: usbserial: USB Serial Driver core
Dec 2 21:01:40 localhost kernel: USB Serial support registered for Garmin GPS usb/tty
Dec 2 21:01:40 localhost kernel: garmin_gps 2-1:1.0: Garmin GPS usb/tty converter detected
Dec 2 21:01:40 localhost kernel: usb 2-1: Garmin GPS usb/tty converter now attached to ttyUSB0
Dec 2 21:01:40 localhost kernel: usbcore: registered new interface driver garmin_gps
Dec 2 21:01:40 localhost kernel: garmin_gps: v0.36:garmin gps driver

which is different from previous. /dev/ttyUSB0 is created but not specified above.

Run qlandkartegt:
Failed to download tracks. Failed to open USB device: Permission denied

Reboot, run qlandkartegt as root:
Failed to download tracks. Failed to configure USB: Device or resource busy
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: no /dev/ttyUSB0

Postby doktor5000 » Dec 2nd, '11, 13:03

Seems it's now detected as a modem and so usbserial is automatically loaded. Sorry i've no information
currently what a working setup for your use case should contain, need to gather some more information and report back.
If you have a link to a good distribution-agnostic howto about your problem that would help.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18015
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: no /dev/ttyUSB0

Postby johng » Dec 3rd, '11, 00:06

I have resolved the problem:

1 .. Remove the garmin_gps module

2 .. Add /etc/udev/rules.d/51-garmin.rules with the following contents:
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666", GROUP="plugdev"

The latter allows the USB devices to be read and written by a non-privileged user.
Ref: http://www.gpsbabel.org/os/Linux_Hotplug.html

I also note that qlandkartegt does not in fact use /dev/ttyUSB0. There is no need to enter anything in the "Serial" window in the setup. Without the garmin_gps module, /dev/ttyUSB0 is not created, so I don't know what qlandkartegt uses.

Thank you doktor5000 for your help.
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest