06.27.06
SMS with gnokii and nokia 6230i
Sending sms via bluetooth with gentoo is “fairly” simple:
# emerge -pv gnokii [ebuild R ] app-mobilephone/gnokii-0.6.10 +X +bluetooth -irda +mysql -nls -postgres +sms 0 kB # emerge gnokii (...)
Now tune your /etc/gnokiirc like this:
[global] port =model = 6510 initlength = default connection = bluetooth use_locking = yes serial_baudrate = 19200 smsc_timeout = 10 [gnokiid] bindir = /usr/sbin/
Then launch xgnokii, the gui is intuïtive enough. If you want to send the messages via cmdline, just use the example from gnokii’s manpage:
echo "This is a test message" | gnokii --sendsms +48501123456 -r
Troubleshooting:
- Q: When I try to run xgnokki or gnokki, it prints “Couldn’t open PHONET device: Connection refused”
- A: Try again, it seems that there’s a bug related with first-time bluetooth connect attempts
- Q: I set my cellphone bluetooth settings to autoconnect, but it keeps asking for my PIN on every SMS I send, why ?
- A: Yep, perhaps a bluetooth security measure ? Bug or feature ?
Simon said,
April 9, 2007 at 1:13 pm
I am using cable to connect Nokia 6310i on Mandrivia 2007 Linux. I successfuly have instaled a gnokii but when i try to use(as a root) gnokii –identify command this happens
Orphaned line: port=/dev/ttyUSB0
Orphaned line: model=AT
Orphaned line: connection=serial
Orphaned line: model=6310i
Config error - no model specified.
my config file in /etc/gnokiirc looks like this
#port=/dev/usb/tts/ttyUSB0
port=/dev/ttyUSB0
model=AT
connection=serial
model=6310i
[logging]
debug = on
can u tell me what might be wrong ??
brainstorm said,
May 16, 2007 at 7:51 pm
Looks like you’ve tried to setup a wrong model:
“Config error - no model specified.”
Please check the list of gnokii supported cellphones and try with the most similar to your own mobile.
BrainBlog » Nokia 6230i simple backup said,
June 16, 2007 at 5:55 pm
[...] Here I’m assuming that you have configured your /etc/gnokiirc properly. Just for the record, I’m using a bluetooth usb adapter. [...]
pravin said,
June 6, 2008 at 12:24 pm
@Simon - Just add [global] at the start of .gnokiirc and that error will go away.