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 ?
4 comments ↓
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 ??
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.
[...] Here I’m assuming that you have configured your /etc/gnokiirc properly. Just for the record, I’m using a bluetooth usb adapter. [...]
@Simon – Just add [global] at the start of .gnokiirc and that error will go away.
Leave a Comment