How do I receive files in minicom from my Pico?

Dec 03, 2026 Last reply: 2 hours ago 2 Replies

First reply

Dave_Harbor

It's ctrl-A-R to bring up the receive menu in minicom, same idea as the send one you allready found. Like the send side, there's an extensible set of receiver programs behind it, so once you've picked the protocol you're basially away. There's also the capture menu, wich just…

Read the full reply

Sending works fine, receiving not so much. I've used ctrl-A-S in minicom to push files over to my Pico through the serial USB connection and that part goes okay. But when I try to pull files back the other way I'm stuck. I poked around the menus and couldn't figure out how to recive anything. Has anyone actually done this in minicom?


It's ctrl-A-R to bring up the receive menu in minicom, same idea as the send one you allready found. Like the send side, there's an extensible set of receiver programs behind it, so once you've picked the protocol you're basially away. There's also the capture menu, wich just records the whole incoming session to a file, which is handy for text or logs where you don't care about a proper transfer protocol. Minicom supports XModem, YModem and Kermit for the receive side, and those protocols add a signalling layer on top of the raw bytes, which is what you want for binary files. For serial transfer of binary data the file is typically wrapped in BASE64 encoding first, then unwrapped at the other end. If your transfer looks like garbage in the terminal that's ussually why, it's encoded rather than plain.

On your second question, no, it's not overkill at all, it's genuinely simple on Linux. You open the serial device by its path just like any other file and use the normal read and write calls in whatever language you like. The one thing you have to handle is setting the communication parameters first, which stty-style commands take care of. Bash scripts, Perl, whatever you fancy. Some languages even have libraries that go beyond basic read and write if you need it. Python is a really comfortable place to do this, and pyserial is the library people reach for. C works too but it's more low-level, so you'd be doing more of the fiddly bits yourself. For pulling files back off a Pico on any kind of regular basis I'd rather script it than sit in minicom each time, but that's just me.

One thing I'd add a bit of pedantry to is the capture menu option, because the distinction matters: it just dumps every incoming byte to a file as it arrives, so there's no error checking and no protocol overhead, which is fine for text or logs but means one glitched byte lands in your file permanently. For anything where integrity matters you'd want one of the proper protocols instead. Question for you though, does the Pico side need a matching program running for whatever protocol you pick, or does the Pico already handle that once you initiate from the minicom end?

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required