RM0461
(G)FSK Get_PacketStatus() command
Get_PacketStatus(Status, RxStatus, RssiSync, RssiAvg) returns information
on the last received packet. Depending on the selected packet type in Set_PacketType()
sent prior to this function, the parameters for generic packets are interpreted as below.
Opcode
w
byte 0
byte 1
byte 2
byte 3
byte 4
LoRa Get_PacketStatus() command
Get_PacketStatus(Status, RssiPkt, SnrPkt, SignalRssiPkt) returns
information on the last received packet. Depending on the selected packet type in
Set_PacketType() sent prior to this function, the parameters for LoRa packets are
interpreted as below.
Opcode
w
byte 0
byte 1
byte 2
byte 3
byte 4
0
1
Status[7:0]
r
bits 7:0 Opcode: 0x14
bits 7:0 Status[7:0]: see
bit 7 RxStatus_PreambleErr: Set when a preamble error occurred
bit 6 RxStatus_SyncErr: Set when a synchronization error occurred
bit 5 RxStatus_AdrsErr: Set when an address error occurred
bit 4 RxStatus_CrcErr: Set when a crc error occurred
bit 3 RxStatus_LengthErr: Set when a length error occurred
bit 2 RxStatus_AbortErr: Set when an abort error occurred
bit 1 RxStatus_PktReceived: Set when a packet is received
bit 0 RxStatus_PktSent: Set when a packet has been sent
bits 7:0 RssiSync[7:0]: RSSI level when the synchronization address is detected
Signal power = -RssiSync / 2 (in dBm)
bits 7:0 RssiAvg[7:0]: Average RSSI level over the received packet
Signal power = -RssiAvg / 2 (in dBm)
0
1
Status[7;0]
r
bits 7:0 Opcode: 0x14
bits 7:0 Status[7:0]: see
bits 7:0 RssiPkt[7:0]: Average RSSI level over the received packet
Signal power = - RssiPkt / 2 (in dBm)
bits 7:0 SnrPkt[7:0]: Estimation of SNR over the received packet
SNR = SnrPkt / 4 (in dB)
bits 7:0 SignalRssiPkt[7:0]: Estimation of RSSI level of the LoRa signal after
despreading
Signal power = - SignalRssiPkt / 2 (in dBm)
2
RxStatus[7:0]
r
Get_Status() command
2
RssiPkt[7:0]
r
Get_Status() command
RM0461 Rev 5
Sub-GHz radio (SUBGHZ)
3
RssiSync[7:0]
RssiAvg[7:0]
r
3
SnrPkt[7:0]
SignalRssiPkt
r
4
r
4
r
149/1306
181
Need help?
Do you have a question about the STM32WLEx and is the answer not in the manual?