Conversation

Okay, before I write one: Are there any old school Linux serial programs that: * Allow me to use a serial port like a try * Do some kind of command (inline) to send a file in binary format over the line * Return to tty mode after the upload.
2
3
Like, I have a serial port "shell" on an embedded device, and I want to do file upload over the tty. This problem has to have been solved 40 years ago.
5
3
Replying to
I've been using SLIP for a while. Once you have packets, you can tag packets with headers and use everything that's not recognized as binary as a line of text. Could e.g. use newline as end-of packet separator, and some unused char code for escape codes.
1
Replying to and
I don't do it like that. My consoles come up as GDB RSP, and switch to text console (or other application protocol) when there is a protocol error. Typically it is enough to key in ENTER to switch to console mode.
1
Replying to
I think this is exactly what I'm going to do, thanks! I have all the building blocks to do packeting and framing, so I might as well separate my binary and text oriented channels. I'll probably open a local socket so I can use telnet as a muxed tty. Thanks for the suggestion!
1