Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-28-2009, 07:45 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
udev + usb gprs modems

am experiencing some troubles with udev on embedded linux (running on kernel The embedded system has 2 USB ports width 2 identical USB GPRS modems. But each modem has different SIM and is supposed to comunicate with different peers. What I need is to distinguish these two modems not by name (kernel assign names like ttyACM0 and ttyACM1 in order in witch the modems were plugged in) but by the topology position, for example:

/dev/modem1 for device plugged in usb port 1
/dev/modem2 for device plugged in usb port 2

I tried to run udev on system with these rules:

KERNELS=="1-1:1.0", SUBSYSTEM=="tty", SYMLINK+="modem1"

KERNELS=="1-2:1.0", SUBSYSTEM=="tty", SYMLINK+="modem2"

but the symlinks are not created when pluging the devices. Even udevtest for /class/tty/ttyACM0 doesn't seem to find any suitable rules to add. But if I add a rule for network, like:

KERNEL=="eth0", SYMLINK+="test_net"

the udevtest /class/net/eth0 prints a message that a symlink called test_net would by created, so udev is probably working. I tried to modify rules such as SUBSYSTEM=="usb" (just for test) and still nothing happened. Am I missing something?

Old 04-30-2009, 02:30 AM   #2
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Try this.
KERNEL=="ttyACM*",                     SYMLINK+="modem"


gprs, udev, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Solomon GPRS USB modem tw7ug Linux - Hardware 1 01-23-2008 07:52 AM
USB GPRS modem does not dial-up xptchina Linux - Wireless Networking 2 08-01-2007 01:34 AM
GPRS USB modem and Apache myrmidon Linux - Wireless Networking 3 10-01-2006 10:48 PM
usb-infrared gprs connection D3javu Linux - Hardware 0 08-08-2006 01:39 AM
usb modems harps1h Fedora - Installation 3 07-26-2005 03:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration