I need to communicate with Python over a USB to RS-232 converter, to a device. The application minicom
connects seamlessly, so if I could run that in non-interactive mode, everything would would be great.
Reading the documentation there are some interesting options, but I'm not fully understanding any one of them:
-t Terminal type. With this flag, you can override the environment
TERM variable.
-S script. Run the named script at startup.
How do I pipe data between my application and minicom
? Should I use something else?
/dev/ttySUSB0
directly from python. You don't need minicom. Is there something specific that it gives you over a direct connection? Also you can usescreen
to connect to/dev/ttySUSB0
too. See here: cyberciti.biz/hardware/…. Let me know if this works for you and I can write it up more formally as an answer.