2024-04-19 07:09 AM
Hello,
I configured the s2-lp csma as follow:
xCsmaPersistentMode = S_DISABLE
xMultiplierTbit = CSMA_PERIOD_128TBIT
xCcaLength = 1
cMaxNb = 2
nBuCounterSeed = 0xFA21
cBuPrescaler = 2
I set the rssi threshold at -82 dBm, If the channel is free, it listens for 5.2ms (from the datasheet the Tcca time should be 2.56ms as the datarate = 50kbps : (1/50000)*128*xCcaLength ) and send the packet :
If the channel is busy, it listens continuously like in persistent mode until the channel becomes free :
It should go to sleep and to Rx mode again twice as I set the max. number of back-off cycles to 2 and I should get the MAX_BO_CCA_REACH Irq from s2-lp. (I did the RCO calibration in init and I use the SLEEP_B mode).
Why it does not go to sleep for BOtime after the 5.2ms of Rx ?
Thanks,
Andy Rochette,
Electronic engineer,
Inocess [ST Partner]