Hi,
I'm trying to solve an issue I'm seeing on my logic analyzer when transferring data.
It seems that every now and then, the SPP interface (or something else in the Bluetooth stack) is hogging 10+ milliseconds worth of time on my system.
I have an interrupt that is firing every 500us from a chip on my board. Every millisecond, I copy some data from the buffer that is filled by the isr that services the 500us interrupt.
Roughly every 5 milliseconds, I send the data that gets buffered every millisecond. In general, I'm sending about 324 bytes every 5ms (until this issue occurs).
During execution of the 1 and 5 millisecond timers (these timers are not interrupt driven, so they aren't exact), I set a pin so I can see when they occur on my logic analyzer.
What I'm noticing is that after a while, there are large sections of delay where the system only handles the 500us timer. If I don't actually transmit the data (i.e. call SPP_Data_Write), then I don't see these delays.
Is there something the stack is doing that might be causing this delay?
Thanks,
Eric