This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Pairing procedure failed by bonding

Hello everybody,

for my project, i will bond the peripherial with the central. I test my device with the MCP and can connect without problems. When i press the Bond Button on the MCP, i get following log-file:

>     7315;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> ----------------------------
>     7316;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> Connected to device
>     7317;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> Role: 0
>     7318;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> PeerAddressType: 1
>     7319;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> PeerAddress (MSB): XXXXXXXX
>     7320;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> Connection Interval: 20.0ms
>     7321;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> Connection Latency: 0
>     7322;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> Supervision Timeout: 5000ms
>     7323;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> Clock Accuracy: (1)
>     7324;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> ----------------------------
>     7325;15:11:23.0091 [XXXXXXXX][ScriptMethodCallThread]
> Connected to XXXXXXXX
>     7326;15:11:25.4991 [XXXXXXXX][MainThread]
> BondToDevice(peerAddress="XXXXXXXX",addressTypePeer=1,scanInterval=400,scanWindow=320,connIntervalMin=16,connIntervalMax=16,connLatency=0,connTimeout=500)
>     7327;15:11:25.5131 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Generating MRandom
>     7328;15:11:25.5131 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: calling rand function
>     7329;15:11:25.5141 [XXXXXXXX][ScriptMethodCallThread] HCI
> command: BTLE_CMD_LE_RAND
>     7330;15:11:25.5181 [XXXXXXXX][ScriptMethodCallThread]
> Serial port write: 01-18-20-00
>     7331;15:11:25.5181 [XXXXXXXX][ReadPacketQueueThread]
> Serial port read:
> 04-0E-0C-01-18-20-00-D9-5A-85-7C-3A-B5-66-BA
>     7332;15:11:25.5181 [XXXXXXXX][ReadPacketQueueThread] HCI
> event: BTLE_EVENT_COMMAND_COMPLETE,
> OpCode: BTLE_CMD_LE_RAND, Status:
> BTLE_STATUS_CODE_SUCCESS,
> RandomNumber: D9-5A-85-7C-3A-B5-66-BA
>     7333;15:11:25.5191 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Received random number:
> 0xBA66B53A7C855AD9
>     7334;15:11:25.5191 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: calling rand function
>     7335;15:11:25.5191 [XXXXXXXX][ScriptMethodCallThread] HCI
> command: BTLE_CMD_LE_RAND
>     7336;15:11:25.5191 [XXXXXXXX][ScriptMethodCallThread]
> Serial port write: 01-18-20-00
>     7337;15:11:25.5201 [XXXXXXXX][ReadPacketQueueThread]
> Serial port read:
> 04-0E-0C-01-18-20-00-D2-77-B9-92-B8-4E-1C-4C
>     7338;15:11:25.5201 [XXXXXXXX][ReadPacketQueueThread] HCI
> event: BTLE_EVENT_COMMAND_COMPLETE,
> OpCode: BTLE_CMD_LE_RAND, Status:
> BTLE_STATUS_CODE_SUCCESS,
> RandomNumber: D2-77-B9-92-B8-4E-1C-4C
>     7339;15:11:25.5221 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Received random number:
> 0x4C1C4EB892B977D2
>     7340;15:11:25.5221 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: MRandom -
> 0XBA66B53A7C855AD94C1C4EB892B977D2
>     7341;15:11:25.5221 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Sending Get Device Address
>     7342;15:11:25.5221 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: calling read public device
> address
>     7343;15:11:25.5221 [XXXXXXXX][ScriptMethodCallThread] HCI
> command: BTLE_CMD_READ_BD_ADDR
>     7344;15:11:25.5221 [XXXXXXXX][ScriptMethodCallThread]
> Serial port write: 01-09-10-00
>     7345;15:11:25.5231 [680298077][ReadPacketQueueThread]
> Serial port read:
> 04-0E-0A-01-09-10-00-F1-1D-ED-F4-E1-DE
>     7346;15:11:25.5231 [XXXXXXXX][ReadPacketQueueThread] HCI
> event: BTLE_EVENT_COMMAND_COMPLETE,
> OpCode: BTLE_CMD_READ_BD_ADDR, Status:
> BTLE_STATUS_CODE_SUCCESS, BdAddress:
> 0xDEE1F4ED1DF1
>     7347;15:11:25.5251 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Received device address:
> 0xDEE1F4ED1DF1
>     7348;15:11:25.5251 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Tester Address -
> 0XDEE1F4ED1DF1
>     7349;15:11:25.5251 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Sending <class
> 'protocol.Smp.SmpPairingRequest'> -
> [0x01, 0x03, 0x00, 0x01, 0x10, 0x00,
> 0x01]
>     7350;15:11:25.5251 [XXXXXXXX][ScriptMethodCallThread]
> WRITE DATA
> PACKET:07-00-06-00-01-03-00-01-10-00-01
>     7351;15:11:25.5251 [XXXXXXXX][ScriptMethodCallThread]
> Sending packet: SmpPairingRequest,
> 01-03-00-01-10-00-01, IoCapability:
> NoInputNoOutput, OobDataPresent:
> OobAuthDataNotPresent,
> AuthRequirements: Bonding,
> MaxEnryptionSize: 16,
> InitiatorKeyDistribution: 0,
> ResponderKeyDistribution: EncKey
>     7352;15:11:25.5251 [XXXXXXXX][ScriptMethodCallThread]
> Serial port write:
> 02-00-00-0B-00-07-00-06-00-01-03-00-01-10-00-01
>     7353;15:11:25.5251 [XXXXXXXX][ScriptMethodCallThread]
> Data buffer queue length (+1): 1 
>     7354;15:11:25.5251 [XXXXXXXX][ScriptMethodCallThread]
> Number of data packets sent: 45
>     7355;15:11:25.5341 [XXXXXXXX][ReadPacketQueueThread]
> Serial port read:
> 04-13-05-01-00-00-01-00
>     7356;15:11:25.5341 [XXXXXXXX][ReadPacketQueueThread] HCI
> event:
> BTLE_EVENT_NUMBER_OF_COMPLETED_PACKETS,
> NumberOfHandles: 1, ConnectionHandle:
> 0x0000, NumberOfPackets: 1
>     7357;15:11:25.5341 [XXXXXXXX][ReadPacketQueueThread] Data
> buffer queue length: 0
>     7358;15:11:25.5411 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Discarded <HciEvent:
> eventCode=0x0D> - <HciEvent:
> eventCode=0x0D>
>     7359;15:11:55.6631 [XXXXXXXX][ScriptMethodCallThread]
> TST-Client: Discarded None - None
>     7360;15:11:55.6631 [XXXXXXXX][ScriptMethodCallThread]
> Pairing procedure failed

I'm using nRF52 with SDK v11.0.0 and SD 2.0.0.

Can everybody help me for solve my Problem by bonding?

Thanks for you help.

Best regards Andi

Related