Support network diagnostic feature. (#652)

* support network diagnostic

* add network diagnostic THCI implementation
This commit is contained in:
Buke Po
2016-09-23 21:06:08 -07:00
committed by Jonathan Hui
parent 61dcf6cf58
commit d283c29f23
22 changed files with 2311 additions and 17 deletions
+2
View File
@@ -139,6 +139,8 @@ typedef enum ThreadError
#define OT_MASTER_KEY_SIZE 16 ///< Size of the Thread Master Key (bytes)
#define OT_NUM_NETDIAG_TLV_TYPES 18 ///< Number of Network Diagnostic TLV types
/**
* This structure represents a Thread Master Key.
*
+20
View File
@@ -2155,6 +2155,26 @@ ThreadError otBindUdpSocket(otUdpSocket *aSocket, otSockAddr *aSockName);
*/
ThreadError otSendUdp(otUdpSocket *aSocket, otMessage aMessage, const otMessageInfo *aMessageInfo);
/**
* Send a Network Diagnostic Get request
*
* @param[in] aDestination A pointer to destination address.
* @param[in] aTlvTypes An array of Network Diagnostic TLV types.
* @param[in] aCount Number of types in aTlvTypes
*/
ThreadError otSendDiagnosticGet(otInstance *aInstance, otIp6Address *aDestination, uint8_t aTlvTypes[], uint8_t aCount);
/**
* Send a Network Diagnostic Reset request
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aDestination A pointer to destination address.
* @param[in] aTlvTypes An array of Network Diagnostic TLV types. Currently only Type 9 is allowed.
* @param[in] aCount Number of types in aTlvTypes
*/
ThreadError otSendDiagnosticReset(otInstance *aInstance, otIp6Address *aDestination, uint8_t aTlvTypes[],
uint8_t aCount);
/**
* @}
*
+1
View File
@@ -87,6 +87,7 @@ typedef enum otLogRegion
kLogRegionMem = 8, ///< Memory
kLogRegionNcp = 9, ///< NCP
kLogRegionMeshCoP = 10, ///< Mesh Commissioning Protocol
kLogRegionNetDiag = 11, ///< Network Diagnostic
} otLogRegion;
/**