ZHA and xbee 3 pairing problems

I’m trying to pair a xbee 3 as a router with ZHA using a conbee 2 as the coordinator. However, the interview process starts and never finishes. I see the following logs during the process.

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, ]

Device 0xad53 (00:13:a2:00:41:c8:0c:1e) joined the network

Device 00:13:a2:00:41:c8:0c:1e changed id (0xd3cf => 0xad53)

[0xad53:zdo] ZDO request ZDOCmd.Device_annce: [0xAD53, 00:13:a2:00:41:c8:0c:1e, 142]

[0xad53] Requesting ‘Node Descriptor’

Tries remaining: 2

[0xad53] Node Descriptor: NodeDescriptor(byte1=1, byte2=64, mac_capability_flags=142, manufacturer_code=4126, maximum_buffer_size=82, maximum_incoming_transfer_size=255, server_mask=11264, maximum_outgoing_transfer_size=255, descriptor_capability_field=0, *allocate_address=True, *complex_descriptor_available=False, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False, *is_valid=True, *logical_type=, *user_descriptor_available=False)

[0xaaaf] Discovering endpoints

Tries remaining: 3

[0xaaaf:zdo] ZDO request ZDOCmd.IEEE_addr_req: [0x0000, 0, 0]

Tries remaining: 2

Tries remaining: 1

[0xaaaf] Failed to discover active endpoints

I can see that it’s trying but for some reason it’s failing. Any ideas?

I would suggest having the XBee configured ZDO pass thru with API frames. The proper Key and key options enabled and then look for the Join request on the API frame. You will then need to send back the proper response via the XBee for this to work.