Just playing around with my Console Cable / FTDI Friend with Arduinos and Raspberry Pi get a little bit boring.
So I figured out file-transfer between my Linux machine and my Raspberry. At least in one way.
To transfer some File, say *.c or *.png from my PC to my Pi:
on my PC: encode the file to ascii format:
Code: Select all
uuencode -m some_file.c Pi_file.c > encoded_file.txt
Code: Select all
cat > tmp
Now the file will be transferred, hopefully^^ . When it is finished, I hit ctrl+d so stop the cat-cmd and boom, there should be an new file named tmp.
This one is the encoded ascii file, so to decode
Code: Select all
uudecode tmp
I tested this successfully with some source files ad images (mostly *.png and with endurance^^ ).
But how to invert this or transfer file over UART from the Raspberry to my PC?