I have a single Sierra Wireless USB 308 modem we are using for sending SMS message to, and receiving SMS messages from, customers.
When this single device is plugged in, the system creates multiple device files:
/dev/ttyUSB3. I read somewhere that the sending of SMSes must use the third device file (
/dev/ttyUSB2). I'm using SMS tools.
- Why does a single device produce multiple device files in the
- I want to be able to symlink
/dev/sms-sierra. When running
udevadm info -a /dev/ttyUSBXXXon each device file (where "XXX" is "0", "1", "2" or "3"), the information for each "device" is almost identical. Because the device numberings are not always the same, how can I write a
udevrule to detect the appropriate device number to use?
For question 1, I have no idea. For question 2, is there a program required in order to probe the device file as to whether it can send SMS (e.g., by seeing if it responds to the appropriate modem "AT" commands)?