Huawei E1750 jako SMS brána
nainstalovat program gnokii
sudo apt-get install gnokii
přidat uživatele do skupiny dialout
obsah souboru gnokiirc:
# This is a sample ~/.gnokiirc file. Copy it into your # home directory and name it .gnokiirc. # See http://wiki.gnokii.org/index.php/Config for working examples. # [global] port = /dev/ttyUSB0 model = AT-HW initlength = default connection = serial use_locking = yes serial_baudrate = 9600 handshake = hardware smsc_timeout = 30 [xgnokii] allow_breakage = 0 [gnokiid] bindir = /usr/sbin/ [connect_script] TELEPHONE = 12345678 [disconnect_script] [logging] debug = off rlpdebug = off xdebug = off
stažení souboru:
wget sc.podlipou.eu/gnokiirc -O "/etc/gnokiirc"
otestování:
gnokii --identify
výsledek:
GNOKII Version 0.6.31
IMEI : 353558048802599
Manufacturer : huawei
No flags section in the config file.
Model : E1750
Product name : E1750
Revision : 11.126.08.02.18
IMEI : 353558048802599
Manufacturer : huawei
No flags section in the config file.
Model : E1750
Product name : E1750
Revision : 11.126.08.02.18
odeslání SMS:
echo "Huraaa! Tato SMSka je odeslana z male krabicky v notebooku." | gnokii --sendsms +420xxxxxxxxx