I am doing power consume estimation, need to know detail of RF activities, is there any way to get the total send/recevie bytes of RF? or just simple tx/rx counts? My project uses nRF52832 and 12.2 SDK. thanks.
I am doing power consume estimation, need to know detail of RF activities, is there any way to get the total send/recevie bytes of RF? or just simple tx/rx counts? My project uses nRF52832 and 12.2 SDK. thanks.
Hi,
You will get an event called BLE_EVT_TX_COMPLETE
every time a packet you have queued for transmission using one of the GATTC/GATTS/L2CAP APIs has been successfully transmitted to the peer, with a count field telling you the number of packets sent. However, that "count" field only counts user packets, and not system packets, meaning that it won't correspond to the actual number of packets that have been sent over the RF link.
So if you want to see all the RF activity you will have to do a sniffer trace as endnode suggested.
Does BLE_EVT_TX_COMPLETE include host initialized reading either? I am doing a power statistics feature, just like android phone does, not just for power estimation in lab. So I need a way to count all tx/rx bytes through BLE, then I can get how much current consumed by RF.
Does BLE_EVT_TX_COMPLETE include host initialized reading either? I am doing a power statistics feature, just like android phone does, not just for power estimation in lab. So I need a way to count all tx/rx bytes through BLE, then I can get how much current consumed by RF.