Skip to main content
TClar.18
Associate II
October 7, 2019
Question

S2LP - Trouble using both carrier sense and auto-acknowledgment

  • October 7, 2019
  • 2 replies
  • 866 views

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

This topic has been closed for replies.

2 replies

TClar.18
TClar.18Author
Associate II
November 11, 2019

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

Tesla DeLorean
Guru
November 11, 2019

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..