gammu-smsd installieren
sudo apt-get install gammu-smsd usb-modeswitch
Angeschlossene Modems mit folgendem auflisten
ls -la /dev/serial/by-id/
Folgendes in /etc/gammu-smsdrc
einfügen und ggf. anpassen
# Configuration file for Gammu SMS Daemon
# Gammu library configuration, see gammurc(5)
[gammu]
# Please configure this!
port = /dev/ttyUSB0
connection = at
# Debugging
logformat = textall
# SMSD configuration, see gammu-smsdrc(5)
[smsd]
pin = 7767
service = files
#logfile = syslog
logfile = /var/log/gammu-smsd
# Increase for debugging information
#debuglevel = 0
debuglevel = 1
ReceiveFrequency = 300
# Paths where messages are stored
inboxpath = /var/spool/gammu/inbox/
outboxpath = /var/spool/gammu/outbox/
sentsmspath = /var/spool/gammu/sent/
errorsmspath = /var/spool/gammu/error/
sudo service gammu-smsd restart
Testen mit folgendem
echo "Test Test 123 xxx" | sudo gammu-smsd-inject TEXT "+4917665935072"
Falls der UMTS-Stick immer als CD-Laufwerk gemountet wird, folgendes in /etc/rc.local
einfügen (ggf. sudo apt-get install eject
)
sudo eject /dev/sr0
sudo service gammu-smsd restart