Gnokii doesn't work with Nokia 6021 and Nokia 6300
I can't establish Bluetooth connection between the computer with Slackware 12.2 and two mobiles phones -- Nokia 6021 and Nokia 6300 -- using SlackBuilds version of gnokii. I described my configuration of Bluetooth and gnokii at the end of that post.
The problem
When I run ``gnokii --identify'' command my first mobile asks ``Connect with? BlueZ (0)''. I reply by pressing ``Accept'' key and phone prompts: ``Enter passcode:''. I enter PIN ``1234'' and phone replies: ``Pairing failed''. Phone asks me these questions for the three times and for the three times pairing fails. At the same time gnokii displays the messages:
Code:
Serial device: opening device /dev/rfcomm0
Gnokii serial_open: open: Connection refused
Couldn't open FBUS device: Connection refused
Error in link initialisation: 1
This is the complete record of the session with gnokii:
$ gnokii --identify
Code:
GNOKII Version 0.6.27
LOG: debug mask is 0x1
Config read from file /root/.gnokiirc.
phone instance config:
model = 6510
port = /dev/rfcomm0
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Connecting
Serial device: opening device /dev/rfcomm0
Gnokii serial_open: open: Connection refused
Couldn't open FBUS device: Connection refused
Error in link initialisation: 1
Serial device: opening device /dev/rfcomm0
Gnokii serial_open: open: Connection refused
Couldn't open FBUS device: Connection refused
Error in link initialisation: 1
Serial device: opening device /dev/rfcomm0
Gnokii serial_open: open: Connection refused
Couldn't open FBUS device: Connection refused
Error in link initialisation: 1
Telephone interface init failed: Command failed.
Quitting.
Command failed.
Fake solutions
I asked Google for the phrase: ``
Couldn't open FBUS device: Connection refused''. There are three replies: one with ``FBUS'' word and two with ``PHONET'' word instead:
1. That link:
http://pastebin.com/pastebin.php?dl=m5700485d is not available.
2. Here
http://ubuntuforums.org/archive/index.php/t-487059.html is solved thread concerning similar problem. The original poster declares that he resolved the problem removing pairing on the device.
I replaced in /etc/bluetooth/hcid.conf entry:
by entry:
and restarted /etc/rc.d/rc.bluetooth but the result was the same.
3. Here
http://www.nabble.com/pin-help-td8844393.html I found the link to
http://wiki.gnokii.org/index.php/Bluetooth. Unfortunately that last page concerns Ubuntu (there isn't pin_helper /usr/bin/bluez-pin in Slackware).
Finally I replaced in /etc/bluetooth/hcid.conf entry:
by entry:
and restarted /etc/rc.d/rc.bluetooth.
In result after running ``gnokii --identify'' mobile phone still asks about passcode, it accepts every passcode, it displays for the long time the message ``Pairing with BlueZ (0)'', and finally displays two messages: ``Pairing failed'' and ``Bluetooth connection failed''. At the same time gnokii displays a lot of messages about errors:
$ gnokii --identify
Code:
GNOKII Version 0.6.27
LOG: debug mask is 0x1
Config read from file /root/.gnokiirc.
phone instance config:
model = 6510
port = /dev/rfcomm0
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Connecting
Serial device: opening device /dev/rfcomm0
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to low
Serial write: write error 5
Serial write: write error 5
Serial write: write error 5
Serial write: write error 5
Serial write: write error 5
.
.
.
Serial write: write error 5
Serial write: write error 5
Serial write: write error 5
Serial write: write error 5
Serial write: write error 5
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Serial write: write error 5
SM_Block: exiting the retry loop
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Serial write: write error 5
SM_Block: exiting the retry loop
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Serial write: write error 5
^C
During my tests I tried differet ports: /dev/rfcomm0, /dev/rfcomm1, DE:AF:AB:BE:BE:AD, and DE:AD:BA:BE:AB:ED; different models: AT, 6510, and any other mentioned in .gnokiirc; and different connection's types: serial and bluetooth. The results were similar: no connection between the machine and the mobile phone.
At the moment I can only send some files to both these mobile phones using kbtobexclient. Three applications -- kbluemon, kinputwizard and kbluelock -- display the same crash handler: ``The application KBlueMon (kbluemon) crashed and caused the signal 6 (SIGABRT)''. Application kioobex_start displays two messages: ``The process for the bluetooth protocol died unexpectedly'' and then ``No working Bluetooth adapter found''.
Question
So my question is: How to establish connection between the computer and the mobile phone using gnokii? Every assistance will be welcomed.
Bluetooth and gnokii configuration
At the beginning I customized Bluetooth configuration:
1. First I checked both mobile phones Bluetooth addresses:
$ hcitool scan
Code:
Scanning ...
DE:AF:AB:BE:BE:AD Nokia 6021
DE:AD:BA:BE:AB:ED Nokia 6300
2. Next I added in /etc/bluetooth/rfcomm.conf two sections for both these mobile phones:
$ cat /etc/bluetooth/rfcomm.conf
Code:
rfcomm0 {
bind yes;
device DE:AF:AB:BE:BE:AD;
channel 1;
comment "Nokia 6021";
}
rfcomm1 {
bind yes;
device DE:AD:BA:BE:AB:ED;
channel 1;
comment "Nokia 6300";
}
3. Then I performed cosmetic changes in /etc/bluetooth/hcid.conf (I set passkey for incoming connections and I modified local device name):
$ diff /etc/bluetooth/hcid.conf.old /etc/bluetooth/hcid.conf
Code:
24c24
< passkey "BlueZ";
---
> passkey "12345678";
32c32
< name "BlueZ (%d)";
---
> name "BlueZ (%h %d)";
4. Afterwards I prepared /etc/bluetooth/passkeys/default with the PIN for outgoing connections:
$ cat /etc/bluetooth/passkeys/default
At that moment I restarted Bluetooth:
$ /etc/rc.d/rc.bluetooth restart
Code:
Stopping Bluetooth subsystem: pand dund rfcomm hidd hcid.
Starting Bluetooth subsystem: hcid sdp rfcomm passkeys.
Finally I compiled and installed gnokii from SlackBuilds and customized ~/.gnokiirc:
1. At the beginning of the section [global] I commented /dev/ttyS0 device and added a few entries for useful devices:
Code:
# port = /dev/ttyS0
port = /dev/rfcomm0
# port = /dev/rfcomm1
# port = DE:AF:AB:BE:BE:AD
# port = DE:AD:BA:BE:AB:ED
2. Just below the entry for model 6510 I added the entry for model AT.
Code:
model = 6510
# model = AT
3. Just below the entry for serial type connection I added the entry for bluetooth type connection:
Code:
connection = serial
# connection = bluetooth
4. At the end of that file I added two sections for both mobile phones:
Code:
[phone_6021]
port = /dev/rfcomm0
# port = DE:AF:AB:BE:BE:AD
model = 6510
connection = serial
[phone_6300]
port = /dev/rfcomm1
# port = DE:AD:BA:BE:AB:ED
model = 6510
connection = serial