cancel
Showing results for 
Search instead for 
Did you mean: 

S2LP - Trouble using both carrier sense and auto-acknowledgment

TClar.18
Associate II

Hi all,

My application needs both features. Each one is working fine one at a time. But when I enable CS feature, I cannot receive the auto-acknowledgment anymore. I got the interrupt relative to data discarded, but I can confirm (using a RTL-SDR) both transmission and auto-acknowledgment are done. So the s2lp just cannot hear the auto-acknowledgment anymore. Here is the code:

/* CSMA configuration parameters */
#define PERSISTENT_MODE                 S_DISABLE
#define CCA_PERIOD                      CSMA_PERIOD_64TBIT
#define CCA_LENGTH		                1
#define MAX_BACKOFF_CYCLES              5
#define BU_COUNTER_SEED                 0xFA21
#define BU_PRESCALER                    0
 
#define RSSI_FLT						14
#define RSSI_MODE						RSSI_STATIC_MODE
#define RSSI_THR						-100
 
 
uint8_t Radio_Init() {
 
/* ... */
 
#ifdef CSMA_ENABLE
			/* Init Csma */
			SCsmaInit xCsmaInitValues = {
					.xCsmaPersistentMode = PERSISTENT_MODE,
					.xMultiplierTbit = CCA_PERIOD,
					.xCcaLength = CCA_LENGTH,
                    .cMaxNb = MAX_BACKOFF_CYCLES,
                    .nBuCounterSeed = BU_COUNTER_SEED,
                    .cBuPrescaler = BU_PRESCALER,
			};
			S2LPCsmaInit(&xCsmaInitValues);
			S2LPCsma(S_ENABLE);
			SRssiInit xSRssiInit = {
			    .cRssiFlt = RSSI_FLT,
			    .xRssiMode = RSSI_MODE,
			    .cRssiThreshdBm = RSSI_THR,
			};
			S2LPRadioRssiInit(&xSRssiInit);
#endif
 
/* ... */
 
}

Does the chip supports both features at the same time? Do you have any clue on getting the CS working along with auto-ack?

Thanks,

Tristan

2 REPLIES 2
TClar.18
Associate II

Is anyone from ST aware of a likely incompatibility of these features?

The forum is not heavily monitored by ST, if you have specific issues perhaps take it up with your local Wireless Group FAE, of file an Online Support Request.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..