Setrxdutycycle; Table 7-6: Setrxdutycycle Command - Semtech LR1121 User Manual

Table of Contents

Advertisement

7.2.6 SetRxDutyCycle

Command SetRxDutyCycle(...) periodically opens RX windows. Between RX windows, the device goes in Sleep mode
(with retention). The clock source for the RTC has to be configured with a command before entering Duty Cycle mode.

Table 7-6: SetRxDutyCycle Command

Byte
0
Data from Host
0x02
Data to Host
Stat1
RxPeriod defines the maximum RX window duration, expressed in periods of the 32.768kHz RTC. The maximum Delay
value corresponds to 512s.
SleepPeriod defines the duration of the Sleep period between the RX windows. It is expressed in periods of the
32.768kHz RTC. The maximum Delay value corresponds to 512s.
Mode selects the device mode during the RX windows:
0: Configures the device in RX mode during RX windows. Available for (G)FSK and LoRa packet types.
1: Configures the device in CAD mode during RX windows. Available only for LoRa packet types. Returns CMD_FAIL
for (G)FSK packet types.
The Mode parameter is optional, and is set to 0 if not sent.
When this command is sent in Standby mode, the context (device configuration) is saved and the device enters in a loop
defined by the following steps, and depicted in
1. The device enters RX and listens for an incoming RF packet for a period of time defined by RxPeriod.
2. Upon preamble detection, the timeout is stopped and restarted with the value 2 * RxPeriod + SleepPeriod, as shown in
Figure 7-3: RX Duty Cycle Upon Preamble
3. If no packet is received during the RX window, the device goes into Sleep mode with context saved for a period of time
defined by SleepPeriod.
4. At the end of the Sleep window, the device automatically restarts the process of restoring context and enters the RX
mode, and so on. At any time, the host can stop the procedure.
The loop is terminated if either:
A packet is detected during the RX window, at which moment the chip interrupts the host via the RX_DONE flag and
returns to the configured Fallback mode (refer to
The host issues a SetStandby(...) command during the RX window.
The device is woken up from Sleep mode with a falling edge of NSS. In this case, the user should send the
SetStandby(...) command to avoid race conditions if the NSS falling edge was issued during the boot phase.
If an RxDutyCycle(...) is started, AutoRxTx or SetRxTxFallback modes are not used.
StopTimeoutOnPreamble(...) has no effect on this mode.
Note: The RxDutyCycle(...) command returns CMD_FAIL in the next command status if the packet type has not been set.
LR1121
User Manual
Rev 1.1
UM.LR1121.W.APP
Mar 2023
1
2
3
RxPeriod
RxPeriod
0x14
(23:16)
(15:8)
IrqStatus
IrqStatus
Stat2
(31:24)
(23:16)
Figure 7-2: LR1121 Current Profile During RX Duty Cycle Operation
Detection.
Section 7.2.5 "SetRxTxFallbackMode " on page 52
www.semtech.com
4
5
Sleep
RxPeriod
Period
Period
(7:0)
(23:16)
IrqStatus
IrqStatus
(15:8)
(7:0)
6
7
Sleep
Sleep
Period
Mode
(15:8)
(7:0)
0x00
0x00
0x00
).
53 of 130
Semtech
Proprietary & Confidential
8
.

Advertisement

Table of Contents
loading

Table of Contents