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):

port = /dev/ttyACM0
model = 6510
initlength = default
connection = dku2libusb
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10

allow_breakage = 0
bindir = /usr/sbin/
TELEPHONE = 09876543210
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.

By shashi

3 thoughts on “Gnokii with Nokia 5130c-2 (XpressMusic) – USB”
  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *