Skip to content

AryaAftab/Serial-File-Transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Serial-File-Transfer

File Transfer Using Serial Protocol and Python (I used these codes for file transfer between my pc and RaspberryPi 4B)

In this repository, two pieces of code are provided for sending and receiving files. Can be used for two-way sending.

Run

First, run the receive_file.py code on receiver side.

python receive_file.py -i {path to saved file}
                       -p {port that use for transfer data}
                       -b {transfer boudrate}               

On Sender side, you must run send_file.py code.

python send_file.py -i {path to file}
                       -p {port that use for transfer data}
                       -b {transfer boudrate}               

Example:

receiver:

python receive_file.py -i "recevied_files"
                       -p "/dev/ttyUSB0"
                       -b 115200

sender:

python send_file.py -i "/path/to/file"
                       -p "/dev/ttyUSB0"
                       -b 115200

Note: boundrate must be same in the both sides

About

File Transfer Using Serial Protocol and Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages