External Thread Commissioner via commissioner-cli on Aeotec Smart Home Hub 2

Hi all,

I’m testing the External Commissioner (EC) flow on Thread 1.4 using the official OpenThread commissioner-cli on Mac.

My setup can discover my Aeotec Smart Home Hub 2 advertising _meshcop._udp on port 49154 with ConnectionMode = 1 (PSKc).

When I try to connect using a valid 9-digit admin code (from SmartThings mobile app), the connection fails with:

SECURITY: SSL - A fatal alert message was received from our peer

Indicating I was able to reach the hub but connection was rejected. Ive tried numerous admin codes generated using the app flow but same result.

Should I be able to do this through the commissioner-cli app? Or is this locked down to certain vendors

FW Version: 000.058.00012

Phil,

The thing you are trying to do is definitely supported. I assume you are using config set admincode xxxxxxxxx before start <ip> <port>? If so, your issue is in the attempt to use a Thread Admin Passcode with the regular _meshcop._udp service. Thread Admin Passcodes can only be used with the ephemeral meshcop service that runs for a limited time after you obtain the Passcode. After you get the Passcode from the app look on your network for a _meshcop-e._udp service (notice the -e), which should be on the hub which you used the app to activate sharing mode on. Then simply note the port and do exactly what you have been doing but use the ephemeral service port when you execute start. Make sure to keep the UI with the Passcode on the app open until you have connected.

Have fun!

2 Likes

Thanks for this, worked straight away :slight_smile: