Hello,
(this is a related question!!!) I have a few questions regarding the calculation of the backoff period, the carrier sense time and the following MAC variables:
/*! MAC Parameter */
/*! Min BE - Minimum Backoff Exponent */
#define CONFIG_MIN_BE 7
/*! Max BE - Maximum Backoff Exponent */
#define CONFIG_MAX_BE 7
/*! MAC MAX CSMA Backoffs */
#define CONFIG_MAC_MAX_CSMA_BACKOFFS 4
/*! macMaxFrameRetries - Maximum Frame Retries */
#define CONFIG_MAX_RETRIES 1
I do use the sensor/collector example from the TI 15.4 Stack, which is based on the IEEE 802.15.4 protocoll. Besides, the ARIB STD-T108 also refers to this IEEE standard. The goal of my question is to get to know if my carrier sense time, also described as " clear channel assessment (CCA) " in the IEEE standard, is set to 5 ms (or more).
The figure on the left demonstrates the basic process of the CMSA/CA algorithm for the unslotted non-beacon mode. I now need some help to figure out:
- What is my "symbol period"? I use PHY ID 130 or PHY ID 129 and according to SmartRF Studio the 5kbps SL-LRM symbolrate is 20kBuad, which would lead to 50µs for the symbol period?!
- What is my "Unit Backoff Period"? According to IEEE it is the rounded value of aTournaroundtime + aCcaTime. For SUN PHY, which I guess I am using, aTournaroundtime is described as 1ms in symbol periods (=20) and aCcaTime should be 8 symbol periods, thus the unit backoff period = 28?! PLEASE CORRECT ME IF I AM WRONG
- With my backoffexponent set to 7 the backoff period = random(2^7 - 1)28 * 50µs = random(177800µs). Does this mean, that the backoff period, which is the delay before performing a CCA, is between 0 - 178ms? I can tell from old sniffer logs, that 178ms is approximately the time between two frame retries if no ACK was received.
- Is the carrier sense time the sum of the backoff period + CCA or is it only the CCA?
- Could someone provide me with an actual value for the CCA duration? Andres was already digging into this matter in the linked thread, but maybe some could help me out here.
I hope you guys can help me out.
Best wishes
Slev1n
EDIT: I checked our test equipment and I think we do not have a good enough time resolution for our sourcemeter. Maybe someone from TI could check the carrier sense time (RX active before transmission) with my settings from above?!