microsoft / vscode-serial-monitor

Serial Monitor that allows for reading and writing to serial ports. Official issue tracking repository for Microsoft's Serial Monitor VS Code extension.
MIT License
55 stars 7 forks source link

log to file, missing data #199

Open gnilsson2 opened 1 week ago

gnilsson2 commented 1 week ago

I'm running remote to a Raspberry5 ,(works fine), when i set serial monitor to log to directory (~/logs), the serial out put is saved there but some bytes are missing. The baud rate is 115200. Problem is repeatable, made 2 runs (attached) , both lack some bytes. devttyACM0_2024_09_05.16.37.50.810.txt devttyACM0_2024_09_05.17.09.30.911.txt If you scroll down in these files you clearly "see" missing characters. The text in the Serial Monitor view is however always correct!

I checked that it works fine with using a shell command instead: stty -F /dev/ttyACM0 115200 cat /dev/ttyACM0 > file2.txt

file2.txt

gcampbell-msft commented 1 week ago

@gnilsson2 Thanks for posting this issue. I'll put it on our backlog to investigate. It may be a difficult problem to diagnose, but I'll see if we can get a reliable reproduction with a board that I have and see if we can find the cause.

Thanks!