cannot join thread network setup by otbr: Error 7: InvalidArgs

following this webpage to setut rcp board router(by flashing coprocessor app to nrf52480) and  flash the openthread client sample application into nrf52480 usb dongle. They both are inserted to a linux host.
the rcp otbr runs successfully and act as a leader with active dataset. I use ot-ctl to connect with otbr-agent and runs:
dataset active -x
0e080000000000010000000300001235060004001fffe002081c85db7fd565caf40708fd1976e8a13248030510d89087d386d9650a243b5ba3af4a8659030f4f70656e5468726561642d3763343801027c4804107670d4b1f803c219e7ba0edf4839bbfa0c0402a0f7f8
Done
then I connect to thread client with ttyACM1. and runs
uart:~$ ot dataset set active 0e080000000000010000000300001235060004001fffe002081c85db7fd565caf40708fd1976e8a13248030510d89087d386d9650a243b5ba3af4a8659030f4f70656e5468726561642d3763343801027c4804107670d4b1f803c219e7ba0edf4839bbfa0c0402a0f7f8

Error 7: InvalidArgs
It returns  Error 7: InvalidArgs
however I could set the dataset one by one:
dataset activetimestamp 1
dataset channel 18
dataset channelmask 0x07fff800
dataset extpanid 1c85db7fd565caf4
dataset networkkey d89087d386d9650a243b5ba3af4a8659
dataset networkname OpenThread-7c48
dataset panid 0x7c48
dataset pskc 7670d4b1f803c219e7ba0edf4839bbfa
dataset meshlocalprefix fd19:76e8:a132:4803::
dataset securitypolicy 672 onrc
What is the problem,Could you pls help?
Parents
  • Hi,

    This could be an issue with the application. Can you test if you see the same issue with the Thread CLI sample in the nRF Connect SDK?

    Please note that we recommend using the guide in our documentation to set up the OTBR: nRF Connect SDK - Thread Border Router.

    Best regards,
    Marte

  • Yes, but the application I use is the Thread CLI sample in nRF COnnect SDK v2.9.1.

  • Hi,

    I see the same as you when using the nRF52840 dongle or USB on the nRF52840. I saw that the string was not pasted correctly in the terminal. For example, I pasted the same command as you used:

    ot dataset set active 0e080000000000010000000300001235060004001fffe002081c85db7fd565caf40708fd1976e8a13248030510d89087d386d9650a243b5ba3af4a8659030f4f70656e5468726561642d3763343801027c4804107670d4b1f803c219e7ba0edf4839bbfa0c0402a0f7f8

    But in the terminal, it was pasted as this instead, resulting in the invalid argument error:

    ot dataset set active 0e080000000000010000000300001235060004001ff01df6c0017a205d0766045af69f76566647380c017db029bef3fc407

    The issue seems to be that the USB CDC ACM shell backend has some limitations when dealing with long input strings and high-speed input, which causes characters to be dropped or jumbled when pasting a long string.

    One solution I found was to paste the string in multiple parts to slow down the paste speed. Can you see if that works for you?
    I also tried increasing the USB buffer sizes, but this did not help on my side.

    Best regards,
    Marte

Reply
  • Hi,

    I see the same as you when using the nRF52840 dongle or USB on the nRF52840. I saw that the string was not pasted correctly in the terminal. For example, I pasted the same command as you used:

    ot dataset set active 0e080000000000010000000300001235060004001fffe002081c85db7fd565caf40708fd1976e8a13248030510d89087d386d9650a243b5ba3af4a8659030f4f70656e5468726561642d3763343801027c4804107670d4b1f803c219e7ba0edf4839bbfa0c0402a0f7f8

    But in the terminal, it was pasted as this instead, resulting in the invalid argument error:

    ot dataset set active 0e080000000000010000000300001235060004001ff01df6c0017a205d0766045af69f76566647380c017db029bef3fc407

    The issue seems to be that the USB CDC ACM shell backend has some limitations when dealing with long input strings and high-speed input, which causes characters to be dropped or jumbled when pasting a long string.

    One solution I found was to paste the string in multiple parts to slow down the paste speed. Can you see if that works for you?
    I also tried increasing the USB buffer sizes, but this did not help on my side.

    Best regards,
    Marte

Children
No Data
Related