Calculating packet loss rate

Started by micromet, May 23, 2018, 12:49:02 PM

micromet

Hi All,

RSSI is very useful but I would like to also calculate packet loss rate for nodes positioned different distances/locations from a gateway node.
I see graphs  in some papers  that show packet loss rate as a % on the y-axis and distance on the x-axis (see attachment).
Does anyone have some sample code for measuring this parameter ? All suggestions welcome.

Much thanks,