SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Fri Apr 19, 2024 06:38
SMSTools3 Community » Feature requests Bottom

ttyACMx port detection

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Dec 2010
Location: Poland
Hello,
We are using SMS Server Tools for almost a year now and We are very satisfied ;)
Yesterday however again our phone has been disconnected because of connected USB cable flapping causing linux to randomly address USB device under different port ttyACM1 instead of ttyACM0 which exist in the sms.cfg.. :?
We want to script this somehow but maybe such functionality is available already in SMS Tools ?

BR,
Peter

Member
Registered:
Nov 2012
Location: Germany
i fixed that by using udev. udev creates a symlink /dev/modem to the most recent device. In the smsd.conf i refer only to /dev/modem. The udev rule in my case is in the file /etc/udev/rules.d/53-persistent-usb-modem.rule:
---------X---------------
ACTION!="add|change", GOTO="modem_rules_end"
SUBSYSTEM=="usb_device", GOTO="modem_rules_real"
SUBSYSTEM=="tty", GOTO="modem_rules_real"
SUBSYSTEM!="usb", GOTO="modem_rules_end"

LABEL="modem_rules_real"
# TTP USB Modem for sending SMS
#
ATTRS{idVendor}=="0aeb", ATTRS{idProduct}=="0040", SYMLINK+="modem", MODE="664", GROUP="dialout"

LABEL="modem_rules_end"
---------X---------------
If you use a different hardware you have to adjust idVendor and idProduct. Run lsusb to see what you have. I run smsd not as root, therefore the group of the real device is adjusted to a group that the running user (smsd) is member of (dialout). The system i refer here to is a debian squeeze.

hope that helps

Login and Post Reply

Page:  1

SMSTools3 Community » Feature requests Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.