Hello and thanks for response
I try to play a bit with the /usr/lib/bluetooth thing.
Since the opening post, i tried with another older phone, a Nokia 6600.
I added the relevant things to the passkeys directory and rfcomm.conf file.
Code:
root@host[/etc/bluetooth/passkeys]: for i in $( ls ); do echo -e $i"\t"$(cat $i); done
00:0E:6D:12:04:36 1234
00:12:D2:11:87:29 1234
Code:
root@host[/etc/bluetooth]: cat rfcomm.conf
rfcomm0 {
bind yes;
device 00:12:D2:11:87:29;
channel 1;
comment "Nokia E61 mobile device";
}
rfcomm1 {
bind yes;
device 00:0E:6D:12:04:36;
channel 1;
comment "Nokia 6600 mobile device";
}
I cleaned all relevant log files and did a restart to get better information.
My success was'nt much greater.
On start up and without any interaction of mine, only
/var/log/syslog and
/var/log/messages say interesting things.
/var/log/messages says, that everything is looking pretty well.
Code:
...
Aug 4 11:40:57 localhost kernel: usb 5-1: new full speed USB device using uhci_hcd and address 2
Aug 4 11:40:57 localhost kernel: usb 5-1: New USB device found, idVendor=0b05, idProduct=b700
Aug 4 11:40:57 localhost kernel: usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 4 11:40:57 localhost kernel: usb 5-1: Product: BT-253
Aug 4 11:40:57 localhost kernel: usb 5-1: Manufacturer: Broadcom Corp
Aug 4 11:40:57 localhost kernel: usb 5-1: SerialNumber: 002243AE814F
Aug 4 11:40:57 localhost kernel: usb 5-1: configuration #1 chosen from 1 choice
...
Aug 4 11:40:57 localhost kernel: Bluetooth: Core ver 2.15
Aug 4 11:40:57 localhost kernel: NET: Registered protocol family 31
Aug 4 11:40:57 localhost kernel: Bluetooth: HCI device and connection manager initialized
Aug 4 11:40:57 localhost kernel: Bluetooth: HCI socket layer initialized
Aug 4 11:40:57 localhost kernel: Bluetooth: Generic Bluetooth USB driver ver 0.5
Aug 4 11:40:57 localhost kernel: usbcore: registered new interface driver btusb
...
Aug 4 11:41:24 localhost hcid[3354]: Bluetooth HCI daemon
Aug 4 11:41:24 localhost kernel: Bluetooth: L2CAP ver 2.13
Aug 4 11:41:24 localhost kernel: Bluetooth: L2CAP socket layer initialized
Aug 4 11:41:24 localhost kernel: Bluetooth: RFCOMM socket layer initialized
Aug 4 11:41:24 localhost kernel: Bluetooth: RFCOMM TTY layer initialized
Aug 4 11:41:24 localhost kernel: Bluetooth: RFCOMM ver 1.11
Aug 4 11:41:24 localhost hcid[3354]: Starting SDP server
Aug 4 11:41:26 localhost hcid[3354]: Registered manager path:/org/bluez/serial
Aug 4 11:41:27 localhost kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Aug 4 11:41:27 localhost kernel: Bluetooth: BNEP filters: protocol multicast
Aug 4 11:41:28 localhost hcid[3354]: bridge pan0 created
Aug 4 11:41:28 localhost hcid[3354]: Registered manager path:/org/bluez/network
Aug 4 11:41:28 localhost hcid[3354]: Registered server path:/org/bluez/network/nap
Aug 4 11:41:28 localhost hcid[3354]: Registered server path:/org/bluez/network/gn
Aug 4 11:41:28 localhost hcid[3354]: Registered server path:/org/bluez/network/panu
Aug 4 11:41:29 localhost hcid[3354]: Registered input manager path:/org/bluez/input
Aug 4 11:41:29 localhost hcid[3354]: Unix socket created: 17
Aug 4 11:41:29 localhost hcid[3354]: Registered manager path:/org/bluez/audio
Aug 4 11:41:29 localhost hcid[3354]: HCI dev 0 registered
but
/var/log/syslog says
Code:
Aug 4 11:41:24 localhost hcid[3354]: Parsing /etc/bluetooth/main.conf failed: No such file or directory
Aug 4 11:41:29 localhost hcid[3354]: register_passkey_agent called without any adapter info!
Aug 4 11:42:00 localhost last message repeated 407833 times
Aug 4 11:42:01 localhost last message repeated 8596 times
Aug 4 11:42:01 localhost hcid[3354]: register_passkey_agent called without any adapter info!
Aug 4 11:42:32 localhost last message repeated 411787 times
Aug 4 11:43:33 localhost last message repeated 860372 times
Aug 4 11:44:34 localhost last message repeated 811646 times
Aug 4 11:45:22 localhost last message repeated 491678 times
Aug 4 11:45:22 localhost hcid[3354]: register_passkey_agent called without any adapter info!
Aug 4 11:45:53 localhost last message repeated 341810 times
Aug 4 11:46:54 localhost last message repeated 803968 times
Aug 4 11:47:55 localhost last message repeated 823301 times
Is this
register_passkey_agent called without any adapter info! my fault or not, is this normal, is this a bug?
If i try to connect via rfcomm i get the following. There is no message in any log file. The mobile shows very shortly, that the netbook tries to connect, but after that the connection closes.
Code:
user@host[~]: rfcomm connect 1
Can't connect RFCOMM socket: Connection reset by peer
If i try to connect via obexftp i get the following. The mobiles behaviour is the same as via rfcomm.
Code:
user@host[~]: obexftp -b -p 123.txt
Scanning for (null) ...
Found: 00:0E:6D:12:04:36
Browsing 00:0E:6D:12:04:36 ...
Connecting...failed: connect
Tried to connect for 639ms
error on connect(): Invalid argument
Still trying to connect
Connecting...failed: connect
Tried to connect for 641ms
error on connect(): Invalid argument
Still trying to connect
Connecting...failed: connect
Tried to connect for 642ms
error on connect(): Invalid argument
Still trying to connect
If i try to connect the netbook via the mobile, all what happens, is some output in
/var/log/messages
Code:
Aug 4 12:28:52 localhost kernel: btusb_intr_complete: hci0 urb f6132480 failed to resubmit (19)
Aug 4 12:28:52 localhost kernel: btusb_bulk_complete: hci0 urb f6132f00 failed to resubmit (19)
Aug 4 12:28:52 localhost kernel: btusb_bulk_complete: hci0 urb f6132e00 failed to resubmit (19)
Aug 4 12:28:52 localhost kernel: btusb_send_frame: hci0 urb f3bb1600 submission failed
hcitool and hciconfig do not show any error messages.
I have some questions to the system defaults, in which i am not sure, if they are correct.
The user privileges of /etc/rc.d/rc.bluetooth are 755. Is it correct, that a user is allowed to shutdown the bluetooth subsystem?
Hcid is still running if I shutdown the bluetooth subsystem via
/etc/rc.d/rc.bluetooth stop.
Code:
user@host[/var/log]: ps axjf | egrep "hcid|sdp"
1 3354 3354 3354 ? -1 Rs 0 16:39 /usr/sbin/hcid -s -f /etc/bluetooth/hcid.conf
3354 3387 3354 3354 ? -1 Z 0 0:00 \_ [hcid] <defunct>
I don't think, this is okay. Am i right?
There is no sdp-daemon running. Is this correct? The file /etc/rc.d/rc.bluetooth.conf says
Code:
SDPD_ENABLE=true
HIDD_ENABLE=false
HIDD_OPTIONS="--server"
HID2HCI_ENABLE=false
RFCOMM_ENABLE=true
DUND_ENABLE=false
DUND_OPTIONS="--listen --persist --msdun call dun"
PAND_ENABLE=false
PAND_OPTIONS="--listen --role NAP"
I ask again. What can i try. I'd like to write a bug report, but i don't know, who is responsible for that?
cu