External Commisioning on Thread Nework

284 views
Skip to first unread message

Nikhil Komalan

unread,
Jun 30, 2021, 1:37:28 AM6/30/21
to openthread-users
Hello,
i am currently following the steps given in this doc https://openthread.io/guides/border-router/external-commissioning?comm=android-app#form-the-thread-network for using my mobile device to commission new thread devices in the network.

Currently my border router is connected to WiFi AP as a client. But by reading thread commissioning docs, it seems i have to enable WiFI access point on border router.

So i would like to know whether WiFi Access point setup on Border Router is required or not ?

Both Mobile and Border Router acting as client to WiFi AP:
Can't i connect my mobile on the same WiFi AP, where my border router is connected as client. ? Because currently i have connected mobile and border router on same WiFi AP. In mobile app, under Connected to WiFi section it shows me "unknown SSID" .
 Although i get the list of border routers with IPv4, IPv6 address. I tried to connect to OpenThreadGuide using passphrase but in logs i see the following error: "Secure unicast ipv4 sendtoFailed : Network is unrechable"

Jonathan Hui

unread,
Jun 30, 2021, 1:56:54 AM6/30/21
to Nikhil Komalan, openthread-users
You do not need to configure WI-Fi AP mode on the RPi.

Have you tried using openthread/ot-commissioner? You can also find an apk here.

--
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/cee8df77-1029-4be6-ba05-f664e432a7e8n%40googlegroups.com.

Nikhil Komalan

unread,
Jun 30, 2021, 2:31:46 AM6/30/21
to openthread-users
Currently i have just tried thread app for commissioning. There are few issues here. SSID name is shown as unknown but i am to get Border Router in list.

When i connect to Border Router using passphrase it gives me error of invalid credentials, but the passphrase is exactly same. And when i just close and restart the app, it show me connected to Border Router.

Now in Entering Joiner device details, i generated a QR code online but the app doesn't scan, and i tried setting eui64 code of my joiner device manually along with passphrase as "J01NU5" mentioned in docs. But  thing is I am using nRF Connect SDK examples and i dont have a command like joiner in Joiner device terminal. I tried ot help and it gives me the following response.

uart:~$ ot help
bufferinfo
ccathreshold
channel
child
childip
childmax
childtimeout
contextreusedelay
counters
dataset
delaytimermin
discover
eidcache
eui64
extaddr
extpanid
factoryreset
fem
help
ifconfig
ipaddr
ipmaddr
joinerport
keysequence
leaderdata
leaderweight
log
mac
masterkey
mode
neighbor
netdata
netstat
networkdiagnostic
networkidtimeout
networkname
panid
parent
parentpriority
partitionid
ping
pollperiod
preferrouterid
promiscuous
pskc
rcp
region
releaserouterid
reset
rloc16
router
routerdowngradethreshold
routereligible
routerselectionjitter
routerupgradethreshold
scan
singleton
state
thread
txpower
udp
unsecureport
version

Nikhil Komalan

unread,
Jun 30, 2021, 6:49:15 AM6/30/21
to openthread-users
Okay i have solved the issue with my example, now i am able to use joiner command in Joiner device as well.

But below doubts remained unsolved.


1. In android Thread app, my SSID name is shown as unknown but i am able to see  Border Router in list with IPv4 , IPv6 addr. I have connected RPi to WIFI AP as client. And mobile acting as external commissioning device is also connected to same WIFI AP. So why unknown SSID ?

2. When i connect to Border Router using passphrase it gives me error of invalid credentials but the passphrase is exactly same. Also the whole process seems to be very slow, is it my internet issue or the app issue ?  And when i just close the app and restart the app, it show me connected to Border Router.

Nikhil Komalan

unread,
Jun 30, 2021, 7:09:51 AM6/30/21
to openthread-users

Also my thread device joining process is failed. Error says not found.

Commisoning_Failed.png

Nikhil Komalan

unread,
Jun 30, 2021, 8:53:20 AM6/30/21
to openthread-users
Following is the log file of Thread App:

--------- beginning of main
[ 06-30 17:54:48.219 11500:13417 E/libc     ]
Access denied finding property "vendor.camera.aux.packagelist"

[ 06-30 17:54:48.223 11500:13417 E/libc     ]
Access denied finding property "vendor.camera.aux.packagelist"

[ 06-30 17:54:48.225 11500:13417 E/libc     ]
Access denied finding property "vendor.camera.aux.packagelist"

[ 06-30 17:54:48.271 11500:13417 E/libc     ]
Access denied finding property "vendor.camera.aux.packagelist"

[ 06-30 17:54:48.273 11500:13417 E/libc     ]
Access denied finding property "vendor.camera.aux.packagelist"

[ 06-30 17:54:48.276 11500:13417 E/libc     ]
Access denied finding property "vendor.camera.aux.packagelist"

[ 06-30 17:54:49.739 11500:13066 E/OIC_CA_IP_SERVER ]
secure unicast ipv4 sendTo failed: Operation not permitted

[ 06-30 17:54:50.933 11500:11543 E/OIC_CA_IP_SERVER ]
secure unicast ipv4 sendTo failed: Operation not permitted

[ 06-30 17:54:50.940 11500:11543 E/OIC_CA_NET_DTLS ]
Context is NULL
 

Nikhil Komalan

unread,
Jul 1, 2021, 2:21:19 AM7/1/21
to openthread-users
I followed the Nordics https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_thread_commissioning.html#thread-ot-commissioning-types-external and was able to commission devices between each other. But was not able to commission devices from RCP device.
Reply all
Reply to author
Forward
0 new messages