- Thanks, Tumnus!
- Actually, I did all this. I have 'pin' and 'givepin' setup as described. When I do "Wait for pairing" I enter the PIN I put in each of those files. If I don't, it fails instantly, so that part must be working to some degree. After this post, I did in fact get it to work, sort of.
This post indicates the results.
- Since then, I've experienced very, very inconsistent results from BlueZ, and I started poking around with it. I just put a bunch of echos in the ../init.d/bluetooth startup script, and took out all of the output redirections to /dev/null so I could see exactly what it's doing. I also whipped up a script to run bits of BT init/shutdown individually, based on the contents of the bluetooth initialization script. Here's the result:
# $HOME/bt restart
Shutting down Bluetooth...
- Releasing rfcomm binding...
- Killing hcid...
- Killing sdpd...
- Killing hciattach...
- Unloading modules...
bluez: Device or resource busy
Done.
Starting Bluetooth...
- Loading modules...
- Creating devices...
- Loading hcid...
- Loading sdpd...
- Finding uart settings for: "AmbiCom,Inc", "BT2000E", "Bluetooth PC/CF Card"
- Starting uart with: /dev/ttyS3 bt2000c flow
Can't get port settings: Input/output error
Can't initialize device: Input/output error
- Binding rfcomm...
Done.
#
- It always says bluez is busy, and in fact I don't even know why it's trying to unload that. It unloads when the BT card is ejected, and loads when it's put back in, so the startup script doesn't need to bother with it. (shrug) Minor, at best.
- Using this, I initially discovered that my /etc/bluetooth/uart file didn't have the right entry for an AmbiCom BT2000E (it says "AmbiCom" as shipped instead of "AmbiCom,Inc" in the first entry), so it wasn't finding it. I fixed the line so it does find it now. Despite this, it did work from time to time. Go figure! (grin)
- The "Starting uart with..." line appears just before the hciattach call to dump the parms it's passing to that. So I tried:
# $HOME/bt attach /dev/ttyS2 bt2000c flow
Can't get port settings: Input/output error
Can't initialize device: Input/output error
#
which just runs hciattach with the given parameters, mimicing what the bluetooth initialization script should be doing.
- I also stopped BT and manually entered the commands listed in the startup script. No surprise, I get the *same* result! (snicker)
- Are these input/output messages this normal?
- I found a post that indicates restarting pcmcia on a SL6000 fixed things. Not so here ... doing that ejects the CF ... when I pop and reseat, then restart bluetooth, I get exactly the same results.
- That same post also indicates loading the hci_uart module helped. When I stop bluetooth and manually run through the startup procedure, tossing in a "modprobe hci_uart", it still does the same thing when I get to hciattach.
- I haven't located how it "pairs". I'd like to poke around with doing that manually as well. Is hciattach supposed to do that?
- DESPITE the errors on load, running hcitools gives this:
# hcitool cc --role m
# hcitool name
Diver
# hcitool info
Requesting information ...
BD Address:
Device Name: Diver
LMP Version: 1.2 (0x2) LMP Subversion: 0xdb0
Manufacturer: Texas Instruments Inc. (13)
Features: 0xff 0xff 0x2d 0xf8 0x1b 0x18 0x00 0x80
<3-slot packets> <5-slot packets>
#
- Seems pretty wierd to me, that it apparently errors on restart, and hcitool works, but I don't claim to know what's happening here. I do know it won't pair, and it won't connect unless my phone is in "full discover", and even then it's flakier than psoriasis. (shrug) Just information, mind you. Just information.
- Here's some files, just 'cause I can:
# cat /etc/bluetooth/rfcomm.conf
#
# RFCOMM configuration file.
#
# $Id: rfcomm.conf,v 1.1 2002/10/07 05:58:18 maxk Exp $
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device ;
# RFCOMM channel for the connection
channel 4;
# Description of the connection
comment "Diver modem";
}
# cat /etc/bluetooth/uart
"AmbiCom,Inc", "BT2000E", "Bluetooth PC/CF Card", "", "":/dev/ttyS3 bt2000c flow
"CF Card", "GENERIC", "", "":/dev/ttyS3 bcsp
"Compact Flash", "Bluetooth Card", "", "":/dev/ttyS3 bcsp
# cat /etc/bluetooth/pin
# cat /etc/bluetooth/givepin
##############givepin#########
#!/bin/sh
echo "PIN:"
################
#
- /etc/bluetooth/hcid.conf has not been touched from the default, so far.
- Could you advise? Thanks for your time!