This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIDA-00374: Reducing the BLE packet time in TIDA-00374 firmware

Part Number: TIDA-00374

We are trying to increase the frequency at which the BLE packets are being sent. We want to send one BLE packet that contains temperature and humidity settings every second.

In main.c, I can see PACKET_INTERVAL being defined as 

#define PACKET_INTERVAL 4000000*0.01f

We are unable to understand the resolution of this value. What is the resolution of this value.

Also I looked at definition of this RF_getCurrentTime - but not sure how the value of current time is calculated (we have copied the code snippet below). Could you point to Register spec that explains this.

Please let us know how we could send one BLE packet every second with TIDA00374-Firmware.


uint32_t RF_getCurrentTime(void)
if (bRadioActive)
uint64_t nRtc;
nRtc = AONRTCCurrent64BitValueGet();
// Conservatively assume that we are just about to increment the RTC
nRtc += 0x100000000LL/32768;
// Scale with the 4 MHz that the RAT is running
nRtc *= 4000000;
// Add the RAT offset for RTC==0
nRtc += ((uint64_t)opRatSync.start.rat0)<<32;
return (uint32_t)(nRtc>>32);