LR1121
User Manual Rev 1.1
UM.LR1121.W.APP Mar 2023
56 of 130
Semtech
Proprietary & Confidential
www.semtech.com
7.2.9 GetStats
Command GetStats(...) returns the internal statistics of the received RF packets:
• NbPktReceived is the total number of received packets.
• NbPktCrcError is the total number of received packets with a CRC error.
• Data1 is PacketType dependant:
(G)FSK mode: Data1= NbPacketLengthError(15:0): number of packet with a length error.
LoRa mode: Data1=NbPktHeaderErr(15:0): number of packets with a Header error.
• Data2 is PacketType dependant:
(G)FSK mode: Data2=0x00.
LoRa mode: Data2=NbPktFalseSync(15:0): number of false synchronizations.
Statistics are reset on a Power On Reset, power down, or by command ResetStats(...).
7.2.10 ResetStats
Command ResetStats(...) resets the internal statistics of the received RF packets:
Table 7-10: GetStats Command
Byte 0 1
Data from Host 0x02 0x01
Data to Host Stat1 Stat2
Table 7-11: GetStats Response
Byte 0 1 2 3 4 5 6 7 8
Data from Host 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Data to Host Stat1
NbPkt
Received
(15:8)
NbPkt
Received
(7:0)
NbPkt
CrcError
(15:8)
NbPkt
CrcError
(7:0)
Data1
(15:8)
Data1
(7:0)
Data2
(15:8)
Data2
(7:0)
Table 7-12: ResetStats Command
Byte 0 1
Data from Host 0x02 0x00
Data to Host Stat1 Stat2