Console Cable - FTDI Friend File transfer

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
zari0n
 
Posts: 14
Joined: Mon Mar 31, 2014 2:56 pm

Console Cable - FTDI Friend File transfer

Post by zari0n »

Hi Forum!!

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
Next,I start minicom an log in over uart on my Pi and execute

Code: Select all

cat > tmp
To start transfer, I press [ctrl + a , s] on minicom, select ascii and navigate to encoded.txt, followed by spacebar and enter.
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
and there should our Pi_file.c ready to be compiled.
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?
Attachments
adafruit_uart_file_transfer.png
adafruit_uart_file_transfer.png (167.84 KiB) Viewed 181 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Console Cable - FTDI Friend File transfer

Post by adafruit_support_rick »

Nice! Thanks for posting!

User avatar
zari0n
 
Posts: 14
Joined: Mon Mar 31, 2014 2:56 pm

Re: Console Cable - FTDI Friend File transfer

Post by zari0n »

Thank you!!
Now I have to figure out how to send data form the raspberry Pi back to my PC over UART.
Maybe some suggestions?

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”