Gnokii (part 2)

Process to connect nokia 3110 to a linux server to setup a smsd and receive sms to a mysql database.
------------------------------------------------------------
1) get new version of gnokii (latest source, not available through yum or apt)
2) install libusb from yum or apt to be able to compile with usb cable support (dku2 and dke2 for nokia)
3) you need to install libmysqlclient and libmysql-devel from yum or apt if you want to use smsd with mysql
4) ./configure --enable-libusb
if an error appear (in centos-5.2) asking you about XML::parser library missing, install it through "yum install perl-XML-Parser"
5) make
6) try "make install" as root. If library problem, add a link as follows and retry
ln -s /usr/local/lib/libgnokii.so.4 /usr/lib
7) copy the udev rule inside source directory to /etc/udev/rules.d and check that it is working by connecting your phone to the usb cable
lsusb, to get the id, then
lsusb -d id:
the ls to the following path:

$ ls -l /dev/bus/usb/yourBUSnumber/yourDeviceNumber
crw-rw-r-- 1 root plugdev 189, 260 2008-06-08 17:42 /dev/bus/usb/003/005

if that gives you a file owned by user plugdev, that should be ok.
8) create a db and tables witht the sql file available inside the source directory.
try the server with the following command:
smsd -m mysql -u yourdbusername -p yourdbpass -c yourdbhost -b theinboxmemorytype (IN or ME or SM according to mobile type)
checks a few seconds that the server start and check if the tables get filled by the sms retrieved from the mobile.
9) list files inside the mobile ( begining of the process to retrieve mms)
gnokii --getfilelist 'A:\*' for internal memory
gnokii --getfilelist 'B:\*' for external sdcard memory

---------------------
useful sources:
mms support : http://archives.free.net.ph/message/20090310.113029.cb3525ce.pl.html
gnokii wiki: http://wiki.gnokii.org/index.php/DKU2

Commentaires