Skip to main content

File transfer utility over serial port using printf commands

Project description

SerialFileCopy

A command-line utility for transferring files over a serial port to embedded Linux devices using printf commands.

Installation

pip install serialfilecopy

Usage

serialfilecopy <device> <baudrate> <username> <password> <source_file>

Example:

serialfilecopy /dev/ttyUSB0 115200 root mypassword /path/to/firmware.bin

The tool will:

  1. Open the serial port
  2. Log in to the device (or detect an existing session)
  3. Transfer the file in 256-byte chunks using printf commands into /mnt/<filename>
  4. Report progress as a percentage

Requirements

  • Python 3.8+
  • A serial-connected embedded Linux device
  • The device must be reachable via username/password login over the serial console

License

See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

serialfilecopy-0.9.1.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

serialfilecopy-0.9.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file serialfilecopy-0.9.1.tar.gz.

File metadata

  • Download URL: serialfilecopy-0.9.1.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.2

File hashes

Hashes for serialfilecopy-0.9.1.tar.gz
Algorithm Hash digest
SHA256 23a5344f7277766a73486213cd2b90af9991136ad3c2424971c6eed9257b3a70
MD5 6509cd249cb2ff904617e7a0ebeaae2e
BLAKE2b-256 a526fa2b2954fc3ffc162dce9207363ad975c288a71e836a6c91e8e548db0d98

See more details on using hashes here.

File details

Details for the file serialfilecopy-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: serialfilecopy-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.2

File hashes

Hashes for serialfilecopy-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d74f65bf6d3d407b7390240da57a49fa42ddff3f034669487cc51167b16532c
MD5 b0c9907fd781a1f5db318796a9b6eee0
BLAKE2b-256 c053c7134dba539f7f0ed944bb65bf945cc962bedcbd752a971a85e36739b2f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page