how-to:gnokii
gnokii
Установка
sudo apt-get install gnokii
Настройка
Создаем /etc/gnokii.conf:
[global] port = /dev/ttyUSB0 model = AT initlength = default connection = serial use_locking = yes serial_baudrate = 19200 smsc_timeout = 10 [gnokiid] bindir = /usr/sbin/ [connect_script] TELEPHONE = 12345678 [disconnect_script] [logging] debug = off rlpdebug = off xdebug = off
Команды
Чтение смс:
sudo gnokii --config /etc/gnokii.conf --getsms SM 0
Удаление смс с внутренней памяти с 0 по 14:
sudo gnokii --config /etc/gnokii.conf --deletesms SM 0 14
Отправка смс:
echo "test" | sudo /usr/bin/gnokii --config /etc/gnokii.conf --sendsms +79001234567
Huawei
Установка поддержки USB-модемов Huawei:
sudo apt-get install usb-modeswitch
Ссылки
how-to/gnokii.txt · Последнее изменение: — 127.0.0.1
