Anyone know of any scriptable asynchronous communication tools?
The closest so-far appears to be Kermit. It’s been around since CP/M, but apparently there’s still no centralised language reference and the syntax predates Perl.
Anyone know of any scriptable asynchronous communication tools?
The closest so-far appears to be Kermit. It’s been around since CP/M, but apparently there’s still no centralised language reference and the syntax predates Perl.
Uh email? It’s not exactly exciting but there are loads of tools available for automating emails. Definitely asynchronous. Does it fit your needs?
No, it needs to be serial communication. My use case is talking to a CNC.
Edit: fat fingers: “ea” -> “to a”
lol got it. Definitely not email then
That would be fun tho
I used expect a lifetime ago to reliably talk to a bunch of very strange ISDN modems.
https://www.tcl.tk/man/expect5.31/expect.1.html
I think something like expect also exists for more modern languages, but tcl is still easy enough to learn (just a little unusual, everything is a string)
That’s several recommendations for expect. I’ll start digging. Thank you.
So you’re just pushing ASCII over the wire? That’s such a simple scenario that you probably don’t even need a program for it. Reading and writing /dev/ttyS0 directly would be enough.
If any scriptable terminals aren’t sufficient, you should be able to write a little custom one in your preferred language.
Which scriptable terminal?
Kermit, as you mentioned. You could probably use expect as well. But like I said, if the connection is simple but the conversation complex, you might just write it all yourself and save the time you’ll spend fighting Kermit or whatever to get it to do what you want.