Skip to contentSkip to conversation

role change not allowed when connecting with PAND

Bluez-users wim delvaux 2 participants 2 messages Dec 13, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

When I run

pand --connect XXXX --persist

and my server runs

pand --listen --role NAP

and hciconfig -a on the client shows (Had to type this over)

link policy : RSWITCH, HOLD PARK SNIFF
link mode : SLAVE ACCEPT
Features : 0xff 0xff 0x05 0x00

and on the server it shows

hci0: Type: USB
BD Address: 00:60:57:02:71:A2 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:4704 acl:33 sco:0 events:445 errors:0
TX bytes:12193 acl:111 sco:0 commands:128 errors:0
Features: 0xff 0xff 0x09 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: ACCEPT MASTER
Name: 'buro-0'
Class: 0x100000
Service Classes: Object Transfer
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0xbc LMP Ver: 1.1 (0x1) LMP Subver: 0xbc
Manufacturer: Cambridge Silicon Radio (10)

I get the following HCIDUMP -x output

HCIDump - HCI packet analyzer ver 1.12
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

96 85 0D C7 02 00 12 01 12 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
96 85 0D C7 02 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

21 96 85 0D C7 02 00 01

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

96 85 0D C7 02 00
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
96 85 0D C7 02 00 72 97 A4 D0 A0 3A D3 4E E8 50 A4 46 46 F0 8A A1

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 0C 96 85 0D C7 02 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 28 00 96 85 0D C7 02 00 01 00

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

96 85 0D C7 02 00 12 01 12 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
96 85 0D C7 02 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

21 96 85 0D C7 02 00 01

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

96 85 0D C7 02 00
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
96 85 0D C7 02 00 72 97 A4 D0 A0 3A D3 4E E8 50 A4 46 46 F0 8A A1

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 0C 96 85 0D C7 02 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 29 00 96 85 0D C7 02 00 01 00

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

96 85 0D C7 02 00 12 01 12 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
96 85 0D C7 02 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

21 96 85 0D C7 02 00 01

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

96 85 0D C7 02 00
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
96 85 0D C7 02 00 72 97 A4 D0 A0 3A D3 4E E8 50 A4 46 46 F0 8A A1

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 0C 96 85 0D C7 02 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 28 00 96 85 0D C7 02 00 01 00

Why don't I get a connection ?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Wim,

Quoted 83 lines

When I run

pand --connect XXXX --persist

and my server runs

pand --listen --role NAP

and hciconfig -a on the client shows (Had to type this over)

link policy : RSWITCH, HOLD PARK SNIFF link mode : SLAVE ACCEPT Features : 0xff 0xff 0x05 0x00

and on the server it shows

hci0: Type: USB
BD Address: 00:60:57:02:71:A2 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:4704 acl:33 sco:0 events:445 errors:0
TX bytes:12193 acl:111 sco:0 commands:128 errors:0
Features: 0xff 0xff 0x09 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: ACCEPT MASTER
Name: 'buro-0'
Class: 0x100000
Service Classes: Object Transfer
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0xbc LMP Ver: 1.1 (0x1) LMP Subver: 0xbc
Manufacturer: Cambridge Silicon Radio (10)

I get the following HCIDUMP -x output

HCIDump - HCI packet analyzer ver 1.12
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

96 85 0D C7 02 00 12 01 12 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
96 85 0D C7 02 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

21 96 85 0D C7 02 00 01

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

96 85 0D C7 02 00
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
96 85 0D C7 02 00 72 97 A4 D0 A0 3A D3 4E E8 50 A4 46 46 F0 8A A1

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 0C 96 85 0D C7 02 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 28 00 96 85 0D C7 02 00 01 00

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

96 85 0D C7 02 00 12 01 12 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
96 85 0D C7 02 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

21 96 85 0D C7 02 00 01

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

96 85 0D C7 02 00
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
96 85 0D C7 02 00 72 97 A4 D0 A0 3A D3 4E E8 50 A4 46 46 F0 8A A1

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 0C 96 85 0D C7 02 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 29 00 96 85 0D C7 02 00 01 00

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

96 85 0D C7 02 00 12 01 12 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
96 85 0D C7 02 00 00

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

21 96 85 0D C7 02 00 01

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

96 85 0D C7 02 00
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
96 85 0D C7 02 00 72 97 A4 D0 A0 3A D3 4E E8 50 A4 46 46 F0 8A A1

Quoted 7 lines
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 0C 96 85 0D C7 02 00

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

21 28 00 96 85 0D C7 02 00 01 00

Why don't I get a connection ?

you still have security mode 3 on one side. Disable the "auth" and/or "encrypt" and try again. Don't set the master link mode on device level, because pand has a --master for this case.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users