Making Nokia 6300 Works with Gnokii to send sms
Computer July 7th, 2009What is Gnokii?
Gnokii allows you to communicate with the phone over the serial cable connection, usb connection (support depends mostly on the operating system level support), infrared connection and bluetooth connection.
Gnokii provides many functionality of different areas for user to manipulate mobile phone.
As usual my favorites Linux Distribution is Debian:
Next I had to configure the connection. The documentation on the site is a little dusty, and does deal with a lot of different options depending on the phone, so I’m going to concentrate on my model, the 6300. First connect the phone using the usb cable, and select the Nokia mode on the phone when asked. You then need to edit the config file by hand (I tried setting it within the program itself, but it wouldn’t allow me):
(backup the original file)
tesbox:~# sudo cp /etc/gnokiirc /etc/gnokiirc.OLD
(edit the file using vi editor)
tesbox:~# sudo vi /etc/gnokiirc
And you will get a very well commented config file. here we are using Nokia 6300 which is supported for AT command for more information if you are using any other Nokia use dmesg to check the correct device location
[global]
port = /dev/ttyACM0
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
Save the file and ready to test if your box recognize your phone by issuing the following command on your console
tesbox:~# sudo gnokii --identify
if you see result like this:
tesbox:~# gnokii --identify
GNOKII Version 0.6.26
IMEI : 324324326323
Manufacturer : Nokia
Model : Nokia 6300
Product name : Nokia 6300
Revision : V 07.21
it means your Gnokii ready to send sms to the world!
Try send a sms to another phone number using the following command
tesbox:~# echo "This is a test message" | gnokii --sendsms +32486325324
offcourse you must change the number +32486325324 to your destination number, this is usefull if you want to have notification through sms with any other linux software which may allow thirdpart script to send sms through command line.
September 2nd, 2009 at 5:50 pm
How about reading the sms from inbox