OpenThread RCP not working NCS 1.7.0 and nRF52840DK

Hello,

I am attempting to configure a Raspberry Pi as an OpenThread router, using the nRF52840DK for the RCP. Everything built fine. When the Raspberry Pi boots the avahi-daemon.service ant otbr-web.service is running. The otbr-agent.service attempts to run but times out.

Any idea how to get this working

  • Hi

    I am sorry, I meant "nrf52840dk_nrf52840.overlay" of course.
    The overlay file will overwrite the settings of the default Device Tree.
    The current-speed is equal to baud rate use.

    So what I suggest is that you change the overlay file to:

    &uart0 {
        current-speed = <115200>;
        status = "okay";
        hw-flow-control;
    };
    
    &uart1 {
        current-speed = <115200>;
        status = "okay";
    };

    It should be enough to change only uart0, but changing both should not do any harm either.

    UART vs USB

    The nRF52840 has an UART and an USB driver. In the nRF52840DK, the USB driver is connected to the nRF USB connector.
    UART0 is connected via the debugger chip to the USB you use to program the nRF52840DK.
    When you use printk or log and read it via a serial monitor on your computer, it is the UART0 that writes.

    For some older samples, the nRF USB was used for the RCP sample. But if you use the coprocessor from nRF Connect SDK, you should connect to the J2 USB connector.

    Regards,
    Sigurd Hellesvik

  • I the uart is already set to the correct speed. If I look at zephyr.dts it is 115200. In hex of course. 

  • Sigurd,

    According to the zephyr.dts file the baud rate is set correctly.

    FYI, I followed the instructions from OpenThread and that worked! I would like to resolve the NRF Connect SDK issue.

  • Regards,

    To explicitly set the baud rate for the OTBR, tou can edit your /etc/default/otbr-agent file to look like this:

    OTBR_AGENT_OPTS="-I wpan0 -B wlan0 spinel+hdlc+uart:///dev/ttyACM0?uart-baudrate=1000000 trel://wlan0

    Just change the number so that the baudrate is similar for both.
    Maybe this will help.

    Can you elaborate on what you mean by "the NRF Connect SDK issue"?

    Regards,
    Sigurd Hellesvik

  • I never got it to work with 1.7 either, but 1.8 worked for me. I set the baud rate to 460800. 1000000 was set by default in the device tree overlay.

    west build -p always -b nrf52840dk_nrf52840  -- -DOVERLAY_CONFIG="overlay-rcp.conf $ZEPHYR_BASE/../nrf/samples/openthread/cli/overlay-thread_1_2.conf"

Related