2019-10-07 8:20 AM
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
2019-11-11 10:02 AM
Is anyone from ST aware of a likely incompatibility of these features?
2019-11-11 10:43 AM
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.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.