mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
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:
+9
-5
@@ -353,9 +353,11 @@ Get the counter value.
|
||||
```bash
|
||||
>counter mac
|
||||
TxTotal: 10
|
||||
TxAckRequested: 4
|
||||
TxAcked: 4
|
||||
TxNoAckRequested: 6
|
||||
TxUnicast: 3
|
||||
TxBroadcast: 7
|
||||
TxAckRequested: 3
|
||||
TxAcked: 3
|
||||
TxNoAckRequested: 7
|
||||
TxData: 10
|
||||
TxDataPoll: 0
|
||||
TxBeacon: 0
|
||||
@@ -363,8 +365,10 @@ TxTotal: 10
|
||||
TxOther: 0
|
||||
TxRetry: 0
|
||||
TxErrCca: 0
|
||||
RxTotal: 11
|
||||
RxData: 11
|
||||
RxTotal: 2
|
||||
RxUnicast: 1
|
||||
RxBroadcast: 1
|
||||
RxData: 2
|
||||
RxDataPoll: 0
|
||||
RxBeacon: 0
|
||||
RxBeaconRequest: 0
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user