Gnokii with Nokia 5130c-2 (XpressMusic) – USB
May 9th, 2009 by shashi
Gnokii works awesomely with the Nokia 5130c-2 (XpressMusic) model using the USB for communication.
/etc/gnokiirc configuration for getting it to work (took me some time to figure):
[global]
port = /dev/ttyACM0
model = 6510
initlength = default
connection = dku2libusb
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[xgnokii]
allow_breakage = 0
[gnokiid]
bindir = /usr/sbin/
[connect_script]
TELEPHONE = 09876543210
[disconnect_script]
[logging]
debug = off
rlpdebug = off
xdebug = off
A sample run
anacoluthon:~# gnokii --identify
GNOKII Version 0.6.26
IMEI : 012345678901234
Manufacturer : Nokia
Model : RM-495
Product name : RM-495
Revision : V 05.80
Send sms
anacoluthon:~# /usr/games/fortune | gnokii --sendsms +919936748748
GNOKII Version 0.6.26
Send succeeded!
Some gotchas:
Works as root only at the moment. Can’t get or set ringtones . SMS reader doesn’t work with xgnokii. The connecting USB cable is too short
Next on the agenda, testing opensync with gnokii.
- 3 Comments »
- Posted in annoyances, linux, mobile
June 23rd, 2009 at 10:36 pm
Thanks for this configuration file. It worked like a charm on my Nokia 5130 Xpress Music Phone. It saved me a lot of time!
~seemanta
October 14th, 2009 at 2:27 am
thanks for sharing! i got the same phone model..
December 4th, 2009 at 1:36 pm
Nice work. If you want to run from “normal” user try:
- login to root and add your user to /etc/sudoers
youruser ALL=/usr/bin/gnokii,/usr/bin/xgnokii
And then run from this user
$ sudo gnokii
or without sudo
(for example)
with root privileges
- create group (or use existing different group) nokia:
# groupadd nokia
- add user to this group (perry):
# gpasswd -a perry nokia
- change permission to gnokii binary
# chgrp nokia /usr/bin/gnokii
# chmod 4750 /usr/bin/gnokii
next step from user privileges
(logout and login user perry or use in terminal from this user privileges: newgrp nokia)
and just run gnokii as usual.