https://github.com/aryaaftab/serial-file-transfer
File Transfer Using Serial Protocol and Python
https://github.com/aryaaftab/serial-file-transfer
file-transfer python raspberry-pi serial
Last synced: 13 days ago
JSON representation
File Transfer Using Serial Protocol and Python
- Host: GitHub
- URL: https://github.com/aryaaftab/serial-file-transfer
- Owner: AryaAftab
- Created: 2023-04-21T22:01:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-22T18:16:24.000Z (about 3 years ago)
- Last Synced: 2025-09-08T14:47:12.583Z (10 months ago)
- Topics: file-transfer, python, raspberry-pi, serial
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```bash
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.
```bash
python send_file.py -i {path to file}
-p {port that use for transfer data}
-b {transfer boudrate}
```
#### Example:
***receiver:***
```bash
python receive_file.py -i "recevied_files"
-p "/dev/ttyUSB0"
-b 115200
```
***sender:***
```bash
python send_file.py -i "/path/to/file"
-p "/dev/ttyUSB0"
-b 115200
```
***Note:*** boundrate must be same in the both sides