gnokii oh gnokii

Salam all,

1. It’s most one and half year l left this blog, exactly i forgot that i have blog 🙂

2. As usual i wrote this blog is for myself for be my referer on the future.

3. Today i’ll put some tutorial or it can be HOW to regarding GNOKII the sms gateway.

4. I have been a while trying others sms gateway such as smstools3, gammu and bla bla.. but i’m fall in with gnokii. (actually it’s because i only succeed with gnokii not the others :p )

5. Ok lets start. The recipes are:

i. OS (i used Ubuntu 10.10 or 11.10 as u wish)
ii. apache+php+mysq+phpmyadmin+and+some+some+tools+to+make+ur+
iii. Oldskool phone – I’m tested with Motorola L7 and Nokia 3120 Classic
iv. Suitable cable for those phones.
v. Machine or Box or Oldskool PC or Laptop

6. How :

a. install OS
b. apt-get update
c. apt-get install -y apache2 mysql-server php5 php5-cli php5-cgi php-pear php-db phpmyadmin libapache2-mod-php5 gcc sendmail
d. apt-get install gnokii gnokii-smsd gnokii-smsd-mysql
e. Plug in your phone – 1st example Motorola L7
f. configure gnokii config file at /etc/xdg/gnokii/config

Just edit this value :
port = /dev/ttyACM0
model = AT
connection = serial

g. copy config to your home example -> /home/ayam/.config/gnokii/config
h. See wheter your phone connected or not : lsusb

i. should show something like this :

root@sms:/etc/xdg/gnokii# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 22b8:4902 Motorola PCS Triplet GSM Phone (AT)

j. Then running gnokii –identify

root@sms:/etc/xdg/gnokii# gnokii –identify
GNOKII Version 0.6.30
IMEI : IMEI358011005412676
Manufacturer : Motorola CE, Copyright 2000
No flags section in the config file.
Model : GSM900″,”GSM1800″,”GSM1900″,”GS
Product name : GSM900″,”GSM1800″,”GSM1900″,”GS
Revision : R4513_G_08.B7.DCR_R

k. Create mysql db for example smsdb and run this sql

mysql -u root smsdb < /usr/share/doc/gnokii-smsd-mysql/sms.tables.mysql.sql

l. Then run the sms daemon

smsd –module mysql -u root -p urpasswd -d smsdb

m. Tadaa.. now all sms will get into table inbox , if u want to send just insert it into outbox table.

Done for Motorola L7 config, for Nokia 3120 Classic it’s quite tricky

a. Install libusb

apt-get install libusb-dev

b. Copy /usr/share/doc/gnokii/sample/45-nokiadku2.rules in /etc/udev/rules.d/ and replugging
the phone.

c. Edit gnokii config files

port = 1
model = series40
connection = dku2libusb

d. try running gnokii –identify

root@tukangsms-HP-Pavilion-g4-Notebook-PC:~# gnokii –identify
GNOKII Version 0.6.29
IMEI : 354193033708210
Manufacturer : Nokia
Model : RM-364
Product name : RM-364
Revision : V 09.41

Walla wehhH.. sudah detect


This article was written by matn0t.