Datasheet
Display Internal Statistics
Mynewt has an internal statistics system that is very useful when debugging issues in the field or during development.
You can defined individual statistics fields, and increment the values at appropriate moments, and access these from
the command-line with the newtmgr stat command set.
List all Statistic Groups
List all Values in a Statistic Group
$ newtmgr -c serial1 stat list
stat groups:
ble_att
ble_gap
ble_gattc
ble_gatts
ble_hs
ble_l2cap
ble_ll
ble_ll_conn
ble_phy
ble_uart
nffs_stats
stat
$ newtmgr -c serial1 stat ble_phy
stat group: ble_phy
8310 phy_isrs
0 radio_state_errs
15 rx_aborts
0 rx_crc_err
0 rx_hw_err
0 rx_late
15 rx_starts
0 rx_valid
265440 tx_bytes
0 tx_fail
8295 tx_good
0 tx_hw_err
0 tx_late
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 43 of 87










