From 04d8396425a8da9e0071ec63c411ad55d4246a74 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt <stefan.schmidt@huawei.com> Date: Wed, 3 Nov 2021 11:08:57 +0100 Subject: [PATCH] otbr-configuration: Enhance configuration to setup Commissioner Credential This was a key part missing to make our own configuration work with an external commissioner, like the Android app. Also removing the space in the network name for now. Not sure if this has been part of the problems I have seen, but none of the example has a space in the name so better avoid it until fully debugged. Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> --- .../openthread/ot-br-posix/otbr-configuration | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/meta-oniro-blueprints/recipes-connectivity/openthread/ot-br-posix/otbr-configuration b/meta-oniro-blueprints/recipes-connectivity/openthread/ot-br-posix/otbr-configuration index 25e2f560..c676acd7 100755 --- a/meta-oniro-blueprints/recipes-connectivity/openthread/ot-br-posix/otbr-configuration +++ b/meta-oniro-blueprints/recipes-connectivity/openthread/ot-br-posix/otbr-configuration @@ -12,12 +12,17 @@ ot-ctl dataset clear ot-ctl dataset init new ot-ctl dataset panid 0x1357 ot-ctl dataset extpanid 11112222deadbeef -ot-ctl dataset networkname "Oniro\ Thread" +ot-ctl dataset networkname OniroThread ot-ctl dataset channel 26 -ot-ctl dataset masterkey 00112233445566778899aabbccddeeff +#ot-ctl dataset masterkey 00112233445566778899aabbccddeeff +#ot-ctl dataset networkkey 00112233445566778899aabbccddeeff +# J01NME is the Commissioner Credential to be used in the Android app +# J01NU5 is the Joiner Credential, set in the node and QR code +ot-ctl dataset pskc $(pskc J01NME 11112222deadbeef OniroThread) ot-ctl dataset commit active +#ot-ctl prefix add fd11:22::/64 pasor ot-ctl ifconfig up ot-ctl thread start +ot-ctl netdata register #ot-ctl prefix add 2001::/64 paros -#ot-ctl prefix add fd11:22::/64 pasor #ot-ctl dataset meshlocalprefix fdde:00be:ef00:aaaa:: -- GitLab