-
|
Hi there, I want my Ikea Dirigera Hub to join my Thread network. For this the Dirigera hub needs a 9-digit key for the Thread network to join. How can I generate such code for my OpenThread based network? Is this even supported? I am using the official openthread/border-router docker image btw. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
OpenThread core provides APIs to generate or validate a cryptographically secure random Thread Administration One-Time Passcode (TAP) string. See these APIs: openthread/include/openthread/border_agent_ephemeral_key.h Lines 228 to 259 in bcc41e9 In addition, it provides helper APIs for the Verhoeff checksum (which is used by TAP). openthread/include/openthread/verhoeff_checksum.h Lines 55 to 87 in bcc41e9 Whether a project or product (which integrated OpenThread) uses these APIs or implements its own TAP generation, and whether/how it exposes this to the user, is up to the project- or product-specific application layer implementation. |
Beta Was this translation helpful? Give feedback.
By the way, there is currently no
CLIcommand corresponding to theotBorderAgentEphemeralKeyValidateTaporotBorderAgentEphemeralKeyGenerateTapAPIs.This is currently being worked on, e.g, see:
Edit:
Submitted the following PR for CLI support: