-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] enable DIAG_GET request command into commissioner
This PR adds a DIAG_GET request command to the commissioner module, allowing users to request one or more diagnostic TLVs from a peer Thread device by setting the device's mesh local address and TLV mask bits flag. Supported Diagnostic TLVs ExtMacAddress Rloc16 Mode Route64 LeaderData Eui64 Ipv6Address ChildTable Test: config set pskc 445f2b5ca6f2a93a55ce570a70efeecb [done] start 192.168.9.2 49154 [done] diag get leaderdata { "DataVersion": 70, "PartitionId": 1612549395, "RouterId": 51, "StableDataVersion": 249, "Weighting": 64 } [done] diag get ipaddr { "Ipv6 Addresses": [ "fdce:bb1d:37f6:6978:0000:00ff:fe00:fc31", "fdce:bb1d:37f6:6978:0000:00ff:fe00:fc11", "fdce:bb1d:37f6:6978:0000:00ff:fe00:fc10", "fdce:bb1d:37f6:6978:0000:00ff:fe00:fc38", "fd11:0022:0000:0000:0eff:b88e:150d:6192", "fdce:bb1d:37f6:6978:0000:00ff:fe00:fc00", "fdce:bb1d:37f6:6978:0000:00ff:fe00:cc00", "fdce:bb1d:37f6:6978:6346:d247:62e8:7ba8", "fe80:0000:0000:0000:bcda:4117:61f5:6516" ] } [done] diag get rloc16 { "Rloc16": "0xcc00" } [done] diag get rloc16 fdce:bb1d:37f6:6978:0000:00ff:fe00:fc00 { "Rloc16": "0xcc00" } diag get route64 fdce:bb1d:37f6:6978:0000:00ff:fe00:cc00 { "IdSequence": 20, "Mask": "0000000000001000", "RouteData": [ "{\n \"IncommingLinkQuality\": 0,\n \"OutgoingLinkQuality\": 0,\n \"RouteCost\": 1,\n \"RouterId\": 51\n}" ] } [done]
- Loading branch information
1 parent
d1f713d
commit 3804aff
Showing
10 changed files
with
21 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters