Hi There,
I have an application that constantly reads/writes to serial. It is written in QT, using QExtSerialPort POSIX library.
I send a command and the response ends around 250ms later. But since all commands are different, I don't want to sleep
for the worst case (bout 300ms) and then read. Instead I want to keep reading until I hit a '>' character that is always the end of a response.
This works fine, I get my responses in about 230ms.
However the problem is, when I am using the app on my TS7390, I randomly miss the '>' character.
This could happen in 1 minute after starting my app, or it could keep going for say 10 minutes.
This results in a loop to infinity waiting for the > character that was supposed to come but never did.
My theory is that since I am running of SD, I may be getting those random SD writes that hang the system.
Would this cause a character to be dropped and not even get into the serial buffer?
I am currently in development stages, so can't move onto NAND just yet.
Alternatively I can implement a timeout feature, but my main question here is, with a SD write operation, is it possible for
the serial in buffer to reject or drop a character.
It's a bit of an annoying problem!
Oh yeah, memory, CPU usage of this application isn't a problem. A healty 8% CPU use, with about 14% mem usage.
Thanks,
Regards,
Donal