Thread Joiner cannot find commissioner network

Hi all,

I have one program that starts and sets up a commissioner and another that starts a joiner and tries to join the commissioner's network. However, after starting the commissioner and calling otJoinerStart through Openthread's API, the joiner gives error 23 (not found) indicating that it can't find the network. 

I have set the network key, PAN ID, extPAN ID, and channel so I'm not sure where I went wrong.

Here are some basic logs of this error occurring.

On commissioner: 

<info> app: Device joined the Thread network.
<info> app: Commissioner state: Petitioning
<info> app: Commissioner started successfully.
<info> app: Commissioner state: Active
<info> app: Joiner added successfully, awaiting joiner devices.
<info> app: State changed! Flags: 0x00800201 Current role: 4


On Joiner:

<info> app: State changed! 0
<info> app: Joiner failed to join: 23
<info> app: State changed! Flags: 0x0800000B Current role: 0

Please not that the joiner device is not yet attached to a network and will do so after discovering the existing network started by the commissioner.

Thanks,
Glen

Parents Reply
  • Hi Marte,

    Thanks for the feedback, I'm currently having trouble getting the sniffer for 802.15.4 running as it isn't showinig up on Wireshark after following the steps on the guide.

    Can you share the thread_configuration you use in thread_init() on the joiner and where you define your PSKd (my_pskd)?

    Here's the code for this:

    #define JOINER_PSKD "J01NME" 
    #define JOINER_TIMEOUT 300
    
    ////
    
    
    void thread_instance_init(void)
    {
        thread_configuration_t thread_configuration =
        {
            .radio_mode        = THREAD_RADIO_MODE_RX_ON_WHEN_IDLE, //THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE, //THREAD_RADIO_MODE_RX_ON_WHEN_IDLE,
            .autocommissioning = true, //false, //true,
            .autostart_disable = true, //true, //false,
            .poll_period = 1500,
            .default_child_timeout = 240000,
        };
    
        thread_init(&thread_configuration);
        thread_state_changed_callback_set(thread_state_changed_callback);
    }


    The thread_init() function is used as is from thread_utils.c


    I've changed the commissioner to only start when it is in the leader state, but the same issue persists. The problem is that the commissioner seems to be starting just fine but the joiner cannot find the network. 

    I will try to get back to you with the sniffer logs asap if I can get it working.

    Thanks for the help.

    Best,
    Glen

Children
Related