Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simenkid/ot-ctl
https://github.com/simenkid/ot-ctl
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simenkid/ot-ctl
- Owner: simenkid
- License: mit
- Created: 2020-10-28T06:18:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-13T07:37:01.000Z (about 4 years ago)
- Last Synced: 2024-10-13T23:27:25.348Z (3 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ot-ctl
IPv6:MeshLocalAddress
fd11:1111:1122:0:78a9:f386:e566:d992IPv6:MeshLocalPrefix
fd11:1111:1122:0/64NCP:Channel
> 15 Done >NCP:HardwareAddress
> 00124b001ca16143 Done >NCP:State
> leader Done >NCP:Version
> OPENTHREAD/0.01.00; POSIX; Aug 5 2020 03:15:18 Done >Network:Name
> OpenThreadDemo Done >Network:NodeType
> leader Done >Network:PANID
> 0x1234 Done >Network:XPANID
> 1111111122222222 Done >WPAN service
associatedHandleJoinNetworkRequest
// input
index = root["index"].asUInt();
masterKey = root["masterKey"].asString();
prefix = root["prefix"].asString();
defaultRoute = root["defaultRoute"].asBool();// steps
FactoryReset()
commitActiveDataset()
ifconfig up
thread start
("prefix add %s paso%s", prefix.c_str(), (defaultRoute ? "r" : ""))HandleFormNetworkRequest
FactoryReset()
commitActiveDataset()
"pskc %s", pskcStr
"ifconfig up"
"thread start"
"prefix add %s paso%s", prefix.c_str(), (defaultRoute ? "r" : "")HandleAddPrefixRequest
"prefix add %s paso%s", prefix.c_str(), (defaultRoute ? "r" : "")HandleDeletePrefixRequest
"prefix remove %s", prefix.c_str()HandleStatusRequest
Execute("state")
"version"
"eui64"
"channel"
"state"
"networkname"
"extpanid"
"panid""dataset active"
"ipaddr"[TBD]HandleAvailableNetworkRequest
client.Scan()GetWpanServiceStatus
"state"
"networkname"
"extpanid"HandleCommission
"commissioner start"
"commissioner joiner add * %s", pskd.c_str()commitActiveDataset
"dataset init new"
"dataset masterkey %s", aMasterKey.c_str()
"dataset networkname %s"
"dataset channel %u", aChannel
"dataset extpanid %016" PRIx64, aExtPanId
"dataset panid %u", aPanId
"dataset commit active"