Serial write to file & watch the outcome

Serial write to file plus looking at the results?
Easy.

:~$ tail -f /dev/ttyUSB0 | tee testfile.txt

Close the Arduino monitor first to avoid error "cannot open '/dev/ttyUSB0' for reading: Device or resource busy"

Can you add a screen grab so we can see what it looks like?

Hi @octothorpe ,

that's nice but how about adding "for Linux users" to the topic line ... :wink:

And Mac, not sure about Win, don't they have a UNIX sub-system or something?

Hi @sonofcy ,

there is an option to install Linux

https://learn.microsoft.com/en-us/windows/wsl/install

But it's not there by default and if you want to use the hint you have to use Linux (im the subsystem) ...

Regards
ec2021

the Arduino is default, OS as provided by manufacturer.

There is no Windows.

If you use UART via USB just start command as above on PC.

Terminal apps like Tera Term and CoolTerm offer logging to a file while also providing 2-way comms with a serial port (not just viewing / logging as the above tail command). They're also more full-featured than the Arduino Serial monitor.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.