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. :)
ChrysanthemumIndica@discuss.tchncs.de 1 week ago
I’d like to concur about reading the receive buffer faster than it is filled!
Hopefully there is some end of line character that can be parsed for, but if not, a timeout should be fine like you said.
Curious what baud rate is being used.
bitfucker@programming.dev 1 week ago
Since the posts are about SIM7600, and the example shows, it’s probably AT Command. So always newline delimited (either \r or \r\n)
ChrysanthemumIndica@discuss.tchncs.de 1 week ago
That’s fair, and sort of what I assumed, but I don’t quite have the experience to say for a fact, so much appreciated!
Ironically I’ve only done modem stuff when I was very young and also somehow most of last year. But also maybe I get a little paranoid when it comes to talking to devices, and maybe I’m extrapolating my current i2c woes too far 😅
bvoigtlaender@feddit.org 1 week ago
The Serial on the ESP is set to 115200 as is the default of the module but can be overridden using commands. I should probably double check that. :) However I would assume that having a different baud rate would result in more errors than I am currently experiencing.