Skip to contentSkip to conversation

udev does not create ttyUSB devices for Visor

DISCUSSION Grischa Stegemann 3 participants 3 messages Mar 7, 2006 – Mar 8, 2006

lore
Share & tools
lore
#0 lore raw

I have a Handspring Visor device which is supposed to communicate with my computer using the usb-serial driver.

My udev version is 056 (Debian stable, Kernel 2.6.15.1) and it fails to create the appropriate device nodes ttyUSB0 and ttyUSB1. When I hit the hotsync-button on the cradle the kernel recognizes the device correctly:

localhost kernel: usb 1-2: Handspring Visor now attached to ttyUSB0 localhost kernel: usb 1-2: Handspring Visor now attached to ttyUSB1

The simple udev-rule
KERNEL="ttyUSB[0-9]*", NAME="%k"
should now yield the corresponding devices, but it does not. It is perfectly ignored by udev and I cannot figure out why. There's no problem with any other device.

It becomes even weirder (for me) if I create the device-nodes by hand:
mknod /dev/ttyUSB0 c 188 0; mknod /dev/ttyUSB1 c 188 1

Now I can communicate with my Visor. BUT once the hotsync-procedure is finished, the visor disconnects completely from the computer, the usb-driver deregisters the device and -guess what!- NOW udev removes the corresponding ttyUSB-nodes.:(

How comes udev is ignoring the device during registering but removes the device nodes during deregistering the device?
It also removes them if I have absolutely no rule concerning ttyUSB at all.

Any suggestion and/or clarification is greatly appretiated.

Grischa

Signature · 13 lines
"Feel free" mit GMX FreeMail!
Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 6 lines · Grischa Stegemann

I have a Handspring Visor device which is supposed to communicate with my computer using the usb-serial driver.

My udev version is 056 (Debian stable, Kernel 2.6.15.1) and it fails to create the appropriate device nodes ttyUSB0 and ttyUSB1. When I hit the hotsync-button on the cradle the kernel recognizes the device correctly:

You may need a newer udev version for a recent kernel, don't know if that udev release still works correctly.

Quoted 8 lines

localhost kernel: usb 1-2: Handspring Visor now attached to ttyUSB0 localhost kernel: usb 1-2: Handspring Visor now attached to ttyUSB1

The simple udev-rule
KERNEL="ttyUSB[0-9]*", NAME="%k"
should now yield the corresponding devices, but it does not. It is perfectly ignored by udev and I cannot figure out why. There's no problem with any other device.

It may be that some other rules catch away the event?

Quoted 7 lines

It becomes even weirder (for me) if I create the device-nodes by hand:
mknod /dev/ttyUSB0 c 188 0; mknod /dev/ttyUSB1 c 188 1

Now I can communicate with my Visor. BUT once the hotsync-procedure is finished, the visor disconnects completely from the computer, the usb-driver deregisters the device and -guess what!- NOW udev removes the corresponding ttyUSB-nodes.:(

If the device node matches the kernel device that goes away, udev removes the device node. That's the correct behavior.

Quoted 4 lines

How comes udev is ignoring the device during registering but removes the device nodes during deregistering the device?
It also removes them if I have absolutely no rule concerning ttyUSB at all.

There is no need to provide any rule if you only want a default device node, udev will do that anyway.

Kay

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Grischa Stegemann
Quoted 4 lines · Grischa Stegemann

I have a Handspring Visor device which is supposed to communicate with my computer using the usb-serial driver.

My udev version is 056 (Debian stable, Kernel 2.6.15.1)

Please upgrade your udev version, as per the CHANGES file, it will not work with that kernel version.

thanks,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel