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.
Conversation
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.
Who can reply?
People @bitshiftmask mentioned can reply
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
But really, I would write a host side interface that converts from text to packets and keep the protocol sane. SLIP is useful because it can re-synchronize.
1
1
Show replies

