Hi ,
According to my little knowledge , you could get more info about LQI from IEEE 802.15.4 . And how its been calculated , if you are using MAC code base then look in file "Data.c ". As , i have used LQI in my project for assosciation between devices. I think from this Data.c file you could get very good idea abt LQI. Here is the code to calculate LQI on Freescale MC13213 boards
oid ConvertLinkQuality(void){
uint8_t linkQuality = gpPhyRxData->linkQuality;
// Recalculate the link quality to conform with other link quality measures
// Make dynamics of the energy level vary from 0x00-0xff
if (linkQuality > 190) {
linkQuality = 190; //190 = -95dBm as floor (translates to 0x00)
}
if (linkQuality < 33) {
linkQuality = 33; //33 = -16.5 dBm as top (saturation)
}
linkQuality = 190 - linkQuality;
linkQuality = linkQuality + (linkQuality >> 1) + (linkQuality >> 3);
gpPhyRxData->linkQuality = linkQuality;
}
Regards
Amzig