Commissioning The OT-RCP Using *

509 views
Skip to first unread message

Nitish kumar s

unread,
Jan 24, 2022, 8:07:21 AM1/24/22
to openthread-users
Hi,

While connecting ot-cli-mtd to ot-rcp using ot-commissioner, using 
  > commissioner joiner add * J01NME

It gives the error: 
  > Invalid command 

Is there any method without using the mdns and eui64 of the joiner to join the commissioner in ot-rcp? 

Jonathan Hui

unread,
Jan 24, 2022, 11:57:42 AM1/24/22
to Nitish kumar s, openthread-users
Can you provide more detail on your setup?

It's not clear to me whether you're trying to run the CLI on ot-cli-mtd, ot-rcp, or ot-commissioner.

Also, can you provide the build commands you used to build the firmware image?

--
Jonathan Hui



--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/b561d7f2-8c69-4464-9d32-97d5b749ffc4n%40googlegroups.com.

Nitish kumar s

unread,
Jan 25, 2022, 5:06:34 AM1/25/22
to openthread-users
Cloned the OTBR repository to the Raspberry Pi using :

successfully Installed the dependencies.
Attached the flashed RCP device(BRD4166A) to the Border Router platform via USB.  

checked the services and it was active :
  $ sudo systemctl status

Checked the RCP state :
$ sudo ot-ctl state 
  disabled 

OT Commissioner CLI setup
Cloned the OT Commissioner repository:  

installed the dependencies:
$ cd ot-commissioner $ ./script/bootstrap.sh

Built and installed the dependencies.

Then, using the ot-ctl  on the command line of OpenThread POSIX
Initialized a new operational dataset:
sudo ot-ctl dataset init new
Done

$ sudo ot-ctl dataset panid 0xdead
Done 

$ sudo ot-ctl dataset extpanid dead1111dead2222
Done

$ sudo ot-ctl dataset networkname OpenThreadGuide
Done

$ sudo ot-ctl dataset networkkey 11112233445566778899DEAD1111DEAD
Done  

Set the PSKc:
$ sudo ot-ctl dataset pskc 198886f519a8fd7c981fee95d72f4ba7
 Done

$ sudo ot-ctl dataset commit active
 Done

$ sudo ot-ctl ifconfig up 
Done

$ sudo ot-ctl thread start 
Done

$sudo ot-ctl state 
leader 
Done

$ sudo ot-ctl pskc 
198886f519a8fd7c981fee95d72f4ba7 
Done

$ sudo ot-ctl commissioner start
Done

$ sudo ot-ctl commissioner state
Active
Done

$ sudo ot-ctl commissioner joiner add * J01NME
Error : InvalidCommand

But here when I enter the eui64 of the joiner  instead of  { * } it works ,Is there anyway I can avoid the eui64 and mdns setup for the commissioner to allow the joiner to join in the RCP setup like FTD-cli(  https://openthread.io/codelabs/openthread-simulation#3 ).

in Joiner device:
 > ifconfig up
Done

> joiner start J01NME

Jonathan Hui

unread,
Jan 27, 2022, 1:53:39 AM1/27/22
to Nitish kumar s, openthread-users
I believe your shell is expanding the '*'. Can you try putting the command in quotes so that your shell does not interpret the wildcard char?

For example:

sudo ot-ctl "commissioner joiner add * J01NME"

--
Jonathan Hui

Nitish kumar s

unread,
Jan 31, 2022, 10:52:42 AM1/31/22
to openthread-users
Thank you,  Jonathan Hui,
But the command worked after entering :

     sudo ot-ctl commissioner joiner add "*" J01NME

Jonathan Hui

unread,
Jan 31, 2022, 1:30:17 PM1/31/22
to Nitish kumar s, openthread-users
Yes, that works too to prevent expansion of wildcard character.

--
Jonathan Hui



Reply all
Reply to author
Forward
0 new messages