Can't l2ping to BT device
Marek Salwerowicz
marek_sal at wp.pl
Fri Nov 12 14:28:36 UTC 2010
Hi all,
'hccontrol inquiry' discovers the device I want to connect to, but l2ping
can't ping to it:
vv1% hccontrol inquiry
Inquiry result, num_responses=1
Inquiry result #0
BD_ADDR: FF2
Page Scan Rep. Mode: 0x1
Page Scan Period Mode: 00
Page Scan Mode: 00
Class: 00:1f:00
Clock offset: 0x77cd
Inquiry complete. Status: No error [00]
vv1% l2ping -a FF2
0 bytes from FF2 seq_no=0 time=5127.835 ms result=0x4
0 bytes from FF2 seq_no=1 time=5128.129 ms result=0x4
0 bytes from FF2 seq_no=2 time=5127.133 ms result=0x4
0 bytes from FF2 seq_no=3 time=5128.159 ms result=0x4
^C
vv1%
it's a new pair, so I typed config in hcsecd.conf:
device {
bdaddr 00:06:66:00:e2:84; # 'FF2' results in syntax error, need to
be MAC address
name "so51-FF2";
key nokey;
pin "1234";
}
and then restarted hcsecd
during l2ping'ing hcsecd throws only this message:
hcsecd[2315]: Received unexpected HCI event, event=0xff
# hcidump :
vv1% # hcidump
HCIDump - HCI packet analyzer ver 1.5
device: any snap_len: 65535 filter: 0xffffffffffffffff
> HCI Event: Vendor(0xff) plen 2
> HCI Event: Connect Complete(0x03) plen 11
< HCI Command: Create Connection(0x01|0x0005) plen 13
> HCI Event: Vendor(0xff) plen 2
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Vendor(0xff) plen 2
> HCI Event: Connect Complete(0x03) plen 11
< HCI Command: Create Connection(0x01|0x0005) plen 13
> HCI Event: Vendor(0xff) plen 2
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Vendor(0xff) plen 2
> HCI Event: Connect Complete(0x03) plen 11
^C
vv1%
l2ping from other machine (stays next to vv1) to FF2 works great - the
config is the same
regards,
--
Marek
More information about the freebsd-bluetooth
mailing list