Sending SMS From Linux (Sony Ericsson and Gnokii)

the phone should show up in dmesg like:

usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
cdc_acm 2-1:1.1: ttyACM0: USB ACM device
cdc_acm 2-1:1.3: ttyACM1: USB ACM device

# apt-get install gnokii

edit /etc/gnokiirc and change the following values:

port = /dev/ttyACM0
model = AT

Now you should be able to id your phone:

mybox:~# gnokii –identify
GNOKII Version 0.6.14
IMEI : 359148001224827
Manufacturer : Sony Ericsson
Model : AAB-1022041-BV
Product name : AAB-1022041-BV
Revision : R4CH003 R4CH003

And send SMS’es like:

nagios:/# gnokii –sendsms +4500000000
GNOKII Version 0.6.14
Please enter SMS text. End your input with <cr><control-D>:Foobar

Send succeeded!
nagios:/#

Dette indlæg blev udgivet i Knowledge Base, Linux, Old Base. Bogmærk permalinket.

Skriv et svar