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-1.0.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

serialfilecopy-1.0.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for serialfilecopy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 713f8f6ac7bd851f55ace8e9790d80c93aeec70205836f4e46dbb76e83e5d0f0
MD5 4f80fea310011bf1a3154a1831d8bc0d
BLAKE2b-256 e79d253bc2574b393cf0867ee7c2a6e1eda4e691923a691ef5a370e611d57c5b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for serialfilecopy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 602b37bc31fe12e4f355bc83828f40a9cc8a2d135c17f3a1beab7935560ea2e0
MD5 932b7a0839d5e43408ef095c1fffcf30
BLAKE2b-256 824a2f9b8b876111a82d013facf4b998e66bebaf12a5386bac2073890c769f8b

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