Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[UDEV] usb <-> serial
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
mysiar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2004
Posts: 102
Location: Kraków

PostPosted: Tue Jun 14, 2005 7:10 am    Post subject: [UDEV] usb <-> serial Reply with quote

Dotyczy wersji udev-045

Przez jakiś czas borykałem się z formułami udev dla mojgo usb2serial oraz Garmin Quest (gps)
Napisalem sobie formułki udev dla tych urządzeń

Code:
# FTDI - usb2serial
BUS="usb", KERNEL="ttyUSB*", SYSFS{manufacturer}="FTDI", SYSFS{product}="USB <-> Serial", NAME="%k", SYMLINK="serial_port"

# Garmin Quest
BUS="usb", KERNEL="ttyUSB*", SYSFS{idProduct}="0003", SYSFS{idVendor}="091e", SYMLINK="garmin_gps"

Problem polagał na tym, że reguły są poprawne, a dowiązania symboliczne nie były tworzone
Winowajcą tego jest poniższy wpis, który jest standardwow w pliku /etc/udev/rules.d/50-udev.rules

Code:
KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n", SYMLINK="%k"

po wstawieniu jednego "magicznego " znaku # do tej linijki

Code:
#KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n", SYMLINK="%k"

wszystko zaczeło działać tak jak powinno :D i po podłączeniu obydwu urządzeń, mam
Code:
/dev/serial_port
/dev/garmin_gps

nie wiem na ile to jest zgodne z ideą UDEV ale mi działa :wink:

zachaszowanie regułki dla ttyUSB spowodowało, że urządzenia ttyUSB? towrzone są bezpośrednio w katalogu /dev zamiast najpierw w /dev/tts jako USB? i dowiązane symbolicznie do /dev/ jako ttyUSB?
_________________
piotr
kilka moich ebuldów / my few ebuilds
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum