Custom Thread Device based on thread CLI

Hi,

I'm trying to setup a very basic network based on the thread CLI example. 

I have an nrf52840-dk as a router/commissioner and a custom device as a nrf52840 joiner.

My question is, how do I automatically setup a thread network PANID,NETWORK NAME,CHANNEL etc.. for the router 

And how do I get the joiner to automatically join that network?

I've been trying to change the overlay-minimal_singleprotocol.conf on the joiner side by adding these options

CONFIG_OPENTHREAD_PANID=123321123
CONFIG_OPENTHREAD_XPANID="123321123321123321"
CONFIG_OPENTHREAD_NETWORK_NAME="XNETWORK"
CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
CONFIG_OPENTHREAD_CHANNEL=13
But they don't have any effect. 
I have serial access to the router
No serial access to the joiner -- I want to make it a SED joiner.
Any guidance with live examples of auto-commissioning and auto joining would be appreciated
Parents
  • Hi

    The following configurations let me automatically connect a joiner.

    CONFIG_OPENTHREAD_JOINER=y
    CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
    CONFIG_OPENTHREAD_JOINER_PSKD="J01NU5"
    CONFIG_OPENTHREAD_MANUAL_START=n
    

    There are no configuration to automatically start the Commisioner. This could either be done manually, or possibly from the application.

    Disclaimer:
    This is the commissioner+joiner method of connecting automatically.
    The other way is to statically configure all Thread network parameters on both devices, and they should connect. This is the method our coap_client and coap_server samples use.

    Regards,
    Sigurd Hellesvik

Reply
  • Hi

    The following configurations let me automatically connect a joiner.

    CONFIG_OPENTHREAD_JOINER=y
    CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
    CONFIG_OPENTHREAD_JOINER_PSKD="J01NU5"
    CONFIG_OPENTHREAD_MANUAL_START=n
    

    There are no configuration to automatically start the Commisioner. This could either be done manually, or possibly from the application.

    Disclaimer:
    This is the commissioner+joiner method of connecting automatically.
    The other way is to statically configure all Thread network parameters on both devices, and they should connect. This is the method our coap_client and coap_server samples use.

    Regards,
    Sigurd Hellesvik

Children
No Data
Related