Add separate counters for unicast and broadcast (#994)

* Added tx counts for unicast vs broadcast packets

* Added counters for Rx broadcast vs unicast packets
This commit is contained in:
Adam Eliot
2016-11-22 08:41:27 -08:00
committed by Jonathan Hui
parent 0bc2efe750
commit e40947eb6f
7 changed files with 105 additions and 10 deletions
+4
View File
@@ -517,6 +517,8 @@ void Interpreter::ProcessCounters(int argc, char *argv[])
{
const otMacCounters *counters = otGetMacCounters(mInstance);
sServer->OutputFormat("TxTotal: %d\r\n", counters->mTxTotal);
sServer->OutputFormat(" TxUnicast: %d\r\n", counters->mTxUnicast);
sServer->OutputFormat(" TxBroadcast: %d\r\n", counters->mTxBroadcast);
sServer->OutputFormat(" TxAckRequested: %d\r\n", counters->mTxAckRequested);
sServer->OutputFormat(" TxAcked: %d\r\n", counters->mTxAcked);
sServer->OutputFormat(" TxNoAckRequested: %d\r\n", counters->mTxNoAckRequested);
@@ -528,6 +530,8 @@ void Interpreter::ProcessCounters(int argc, char *argv[])
sServer->OutputFormat(" TxRetry: %d\r\n", counters->mTxRetry);
sServer->OutputFormat(" TxErrCca: %d\r\n", counters->mTxErrCca);
sServer->OutputFormat("RxTotal: %d\r\n", counters->mRxTotal);
sServer->OutputFormat(" RxUnicast: %d\r\n", counters->mRxUnicast);
sServer->OutputFormat(" RxBroadcast: %d\r\n", counters->mRxBroadcast);
sServer->OutputFormat(" RxData: %d\r\n", counters->mRxData);
sServer->OutputFormat(" RxDataPoll: %d\r\n", counters->mRxDataPoll);
sServer->OutputFormat(" RxBeacon: %d\r\n", counters->mRxBeacon);