JN5189 RSSI and LQI

cancel
Showing results for 
Search instead for 
Did you mean: 

JN5189 RSSI and LQI

59 Views
sean2sean
Contributor I
Hi. I am developing Zigbee application using JN5189 and DK6. I couldn't find a function to read the RSSI and LQI. How can I check the RSSI and LQI? Please let me know if there is a register or API that can check the value.
0 Kudos
1 Reply

38 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @sean2sean,

I hope you are doing great.

Please look at the JN-AN-1255 Example. It implements the read-out LQI and RSSI Values.

  uint32 u32Rssi = u32REG_RFPModemRead(MF_RSSI_DBM_PACKET);
  int32 i32Rssi = ((int32)(u32Rssi << 22)) >> 22;
  i32Rssi = abs(i32Rssi);
  uint8 u8Lqi= u8MMAC_GetRxLqi(NULL);

 

Regards,

Mario

 

0 Kudos