My task appears simple at first: dial into a terminal over a modem, login, possibly send some other characters, and then receive file(s) via ZMODEM or KERMIT .. or send a file via ZMODEM or KERMIT.
I've been tearing my hair out trying to get this working correctly. Mostly I'm stuck on the ZMODEM protocol. I have a working implementation of XMODEM and YMODEM, which are simple enough. But ZMODEM is obviously a bit more complex.
I'm tired of dealing with all this. Especially with modems in general. Currently I just send an ATDT command and hope for the best.
A terminal program which is easily scriptable may suffice as well. Currently I'm looking into Tera Term. But some necessary logic while connected might make this a less desirable solution, or a temporary one.
I'm curious if anyone knows of a free library for serial communication for Windows, which supports the ZMODEM or KERMIT protocols.
Ideally, something that can look into the modem properties and get initialization and connection strings would be amazing. I tried using TAPI to dial out and get a handle to the port, but it never worked very reliably.
I am not afraid of integrating various approaches into my own code!
My current and preferred platform is C++, but I am open to anything.
Thanks for any help, advice, suggestions, etc.