Is this a fake UART idle line?
Hello!
I'm working with UART+DMA+IdleDetection. I receiving long frames of data(250-300 bytes) 250 times per second at 921600bps without HT & TC interrupt from several sensors and one Arduino, then I send them by USB . Sometimes, I receive overwritten lines, for example, I should receive something like:
-$171518,89,-4,-1004,88,182,-999,-52,58,-42,426,1585
-$INO000,117,41,-1004,117,53,-990,-258,-129,87,-365,975
But I'm receiving this:
-$171518,89,-4,-1004,88,1$INO000,117,41,-1004,117,53,-990,-258,-129,87,-365,975
-82,-999,-52,58,-42,426,1585
I checked with my logical analyzer and found that in the point where the arduino frame starts, the aceletometer sends a "longer" 0 bit.
Is this may considered as idle line? I understood that idle line is triggered when you don't receive a byte, not a bit.
Also, this fake idle line makes sense to me, because if I zoom out, remembering that I not using HT and CT interrupt so my code sends data when it detects idle line, I think it's detecting and idle line in the red arrow, sends data until that point, the arduino frame ends and sends arduino data, then detects the acelerometer data ends again and sends the rest.
So, finally, is this fake idle line? I'm concerned because this can solve a lot of problems in my project and makes sense to me, but I need to check if this is the real reason.
Thank you!