⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
sam.lines
Offline
Last seen:3 years 7 months ago
加入:2017-07-06 21:41
BLE Metrics

Hello,

我用祝福的统计数据API跟踪packet error rate, and I have a question about the rx_err metric. Does rx_err return the total number of dropped packets? Also would rx_pkt + rx_err equal the total number of transmitted packets from the peer device?

Keywords:
Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi sam.lines,

Hi sam.lines,

The rx_err is the variable that counts the packets that are received with an error (CRC error, MIC error, etc), but besides that it also counts the times that the device opened its receiver and there was no central on the air, so it counts that as an error as well. So by adding the rx_pkt and rx_err wont give you the absolute value of the packets transmited from your central, since in the error it also counts the times that there should be a packet but there isn't one.

Thanks MT_dialog

sam.lines
Offline
Last seen:3 years 7 months ago
加入:2017-07-06 21:41
Thanks for the reply. If that

Thanks for the reply. If that is the case, what is the best way to count transmitted packets on the peer device? It is also a DA14580.

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi sam.lines,

Hi sam.lines,

As far as i can tell what you can do is slightly change the BLE_METRICS functionallity and ommit the sync error (the error that is counted when the device open the radio and doesn't get a reception, just remove from the measure_errors_received() function the BLE_SYNC_ERR_BIT from the if condition), also you should remove from the condition the rssi condition (llc_env[conhdl]->rssi > llm_get_min_rssi()), this way the metrics will allow you to measure the invalid packets and the properly received ones.

Thanks MT_dialog