Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otbr-agent fails to connect to nRF52840 dongle due to RadioSpinelNoResponse #172

Closed
fonix232 opened this issue Oct 4, 2021 · 8 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@fonix232
Copy link

fonix232 commented Oct 4, 2021

This is my first foray into Thread/OpenThread, so please forgive possible confusions.

I've had a handful of nRF52840 dongles laying around (v1.2.0) and decided to give OT a quick go. Followed the instructions to set up the host service on a Raspberry Pi 4, which went without issues. Then followed this repo's instructions as well, to create and flash the appropriate firmware for the dongle, which was also successful.

The problem happens when I try to start otbr-agent - even though the proper TTY is selected, pretty soon after starting up, throws the error in the title. I've tried using different USB ports, swapping power supplies, to no avail. Same thing happens if I try to run the OTBR stack in Docker.

Steps to reproduce:

  1. Build nRF52840 dongle RCP:
cd ~/ot-nrf528xx
./script/build nrf52840 USB_trans -DOT_BOOTLOADER=USB
  1. Flash RCP firmware to dongle:
arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd ot-cli-ftd.hex
nrfutil pkg generate --hw-version 52 --sd-req 0x00 --application-version 1 --application ot-cli-ftd.hex app_dfu_package.zip
nrfutil dfu usb-serial -pkg app_dfu_package.zip -p /dev/ttyACM0
  1. Start OTBR in Docker:
docker run --sysctl "net.ipv6.conf.all.disable_ipv6=0 net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1" -p 8080:80 --dns=127.0.0.1 -it --volume /dev/ttyACM0:/dev/ttyACM0 --privileged openthread/otbr --radio-url spinel+hdlc+uart:///dev/ttyACM0

Result:

Oct  4 15:08:41 8d069c6d2888 otbr-agent[217]: [INFO]-UTILS---: Running 0.3.0-2af5cbd
Oct  4 15:08:41 8d069c6d2888 otbr-agent[217]: [INFO]-UTILS---: Thread version: 1.2.0
Oct  4 15:08:41 8d069c6d2888 otbr-agent[217]: [INFO]-UTILS---: Thread interface: wpan0
Oct  4 15:08:41 8d069c6d2888 otbr-agent[217]: [INFO]-UTILS---: Backbone interface: eth0
Oct  4 15:08:41 8d069c6d2888 otbr-agent[217]: [INFO]-UTILS---: Radio URL: spinel+hdlc+uart:///dev/ttyACM0
Oct  4 15:08:41 8d069c6d2888 otbr-agent[217]: [WARN]-PLAT----: Error processing notification: Parse
Oct  4 15:08:41 8d069c6d2888 otbr-web[245]: [INFO]-WEB-----: Running 0.3.0-2af5cbd
Oct  4 15:08:41 8d069c6d2888 otbr-web[245]: [INFO]-WEB-----: Border router web started on wpan0
Oct  4 15:08:41 8d069c6d2888 otbr-web[245]: [ERR ]-WEB-----: OpenThread daemon is not running.
Oct  4 15:08:41 8d069c6d2888 otbr-agent[217]: [WARN]-PLAT----: Error processing notification: Parse
Oct  4 15:08:43 8d069c6d2888 otbr-agent[217]: [CRIT]-PLAT----: HandleRcpTimeout() at ../../third_party/openthread/repo/src/lib/spinel/radio_spinel_impl.hpp:2217: RadioSpinelNoResponse

The response is very similar to #71, however the solution won't work for me - the nRF52840 dongle does not have a J-Link OB debugger, and as such, it does not have MSD.

@jwhui jwhui added the question Further information is requested label Oct 4, 2021
@LuDuda LuDuda assigned edmont and unassigned LuDuda Nov 4, 2021
@edmont
Copy link
Member

edmont commented Nov 5, 2021

Hi @fonix232, thanks for reporting this. Can you please state which commits are you using for openthread and ot-nrf528xx repos?

@markus61
Copy link

markus61 commented Nov 25, 2021

hi,
same thing here. i am on:
Submodule path 'openthread': checked out '02d29cd5e343c3eb17840251b7feaa9345892895'

and:
commit 8853d0e (HEAD -> main, origin/main, origin/HEAD)
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed Nov 24 08:20:05 2021 -0800

that's what i tried:
markus@R2D2:~/src/openthread/ot-nrf528xx$ otbr-agent -I wlp2s0 -B wlp2s0 spinel+hdlc+uart:///dev/ttyACM0 -v
otbr-agent[42295]: [INFO]-UTILS---: Running 0.3.0-7d61390
otbr-agent[42295]: [INFO]-UTILS---: Thread version: 1.2.0
otbr-agent[42295]: [INFO]-UTILS---: Thread interface: wlp2s0
otbr-agent[42295]: [INFO]-UTILS---: Backbone interface: wlp2s0
otbr-agent[42295]: [INFO]-UTILS---: Radio URL: spinel+hdlc+uart:///dev/ttyACM0
otbr-agent[42295]: 49d.20:37:48.184 [WARN]-PLAT----: Error processing notification: Parse
otbr-agent[42295]: 49d.20:37:50.174 [CRIT]-PLAT----: HandleRcpTimeout() at /home/markus/src/openthread/ot-br-posix/third_party/openthread/repo/src/lib/spinel/radio_spinel_impl.hpp:2218: RadioSpinelNoResponse

@markus61
Copy link

recipes found on net are wrong:
don't flash the cli, flash ot-rcp instead!
arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd ot-cli-ftd.hex needs to be
arm-none-eabi-objcopy -O ihex build/bin/ot-rcp ot-rcp.hex instead!

@jwhui
Copy link
Member

jwhui commented Nov 25, 2021

recipes found on net are wrong: don't flash the cli, flash ot-rcp instead! arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd ot-cli-ftd.hex needs to be arm-none-eabi-objcopy -O ihex build/bin/ot-rcp ot-rcp.hex instead!

@markus61 , can you point to the instructions you used so that we can make necessary updates?

@pearson
Copy link

pearson commented Dec 20, 2021

@jwhui , the confusion might come from the instructions at this link. Adding a few lines there to point out which build to use for which case might be useful, especially for those new to OpenThread.

@fgervais
Copy link

fgervais commented Feb 4, 2022

I'm trying to do the same on my side. It seems like there is a lot of conflicting information right now with a mix of legacy and current stuff.

I think the best/current documentation for this right now is this:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/matter/openthread_rcp_nrf_dongle.html

Though I have yet to test it.

@fgervais
Copy link

fgervais commented Feb 5, 2022

I'm here to report, the documentation mentioned in my previous post worked fine on my end.

@jwhui
Copy link
Member

jwhui commented Jun 28, 2023

Closing stale issue.

@jwhui jwhui closed this as completed Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants