Comment on Missing data when communicating over UART

<- View Parent
bvoigtlaender@feddit.org ⁨1⁩ ⁨week⁩ ago

Thank you so much. That might actually be it. I didn’t had the time to fully implement that yesterday but will be today. I did however put in a sleep() after waiting for the buffer and reading it to validate your thesis, which results in complete data!! ^^

Arduino even has an function for that readBytesUntil. However in my short testings yesterday in seemed to always stop on new lines, even if I set the char for it to stop on to something really silly. Reading it and implementing that stop on my own worked better. I wanna do it the “official” way though, it would then even respect an timeout set by setTimeout

I will probably end up having CTS and RTS anyway cause I couldn’t make sure that the module starts to talk all of the sudden.

I hate that the answer to my problems are always the most stupid ones. I kinda wish it would have been signal integrity, but I would probably regret that real fast too. :)

source
Sort:hotnewtop