JN5189 RSSI and LQI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JN5189 RSSI and LQI

Jump to solution
960 Views
Johnny9
Contributor II
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 Solution
937 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @Johnny9,

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

 

View solution in original post

1 Reply
938 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @Johnny9,

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