Hi Marcel, i compiled correctly hcidump.
So, when from my client i call i get:
./l2test -n 00:10:60:29:3B:9A
l2test[1349]: Can't connect: Function not implemented (38)
and the dump is:
HCI sniffer - Bluetooth packet analyzer ver 1.23
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:10:60:29:3B:9A ptype 0xcc18 rswitch 0x00 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
status 0x21 handle 41 bdaddr 00:10:60:29:3B:9A type ACL encrypt 0x00
Error: Role Change Not Allowed
On my server-side, i call:
>./l2test
>l2test[3280]: Waiting for connection on psm 10 ...
and nothing happens.
The dump of the server is:
> HCI Event: Connect Request (0x04) plen 10
bdaddr 00:10:60:A5:81:68 class 0x820100 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr 00:10:60:A5:81:68 role 0x00
Role: Master
> HCI Event: Command Status (0x0f) plen 4
Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
status 0x21 handle 40 bdaddr 00:10:60:A5:81:68 type ACL encrypt 0x00
Error: Role Change Not Allowed
some ideas ?