Skip to main content

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.

Metadata

Release files for serialfilecopy 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serialfilecopy 1.2.1
File Size Uploaded
serialfilecopy-1.2.1.tar.gz 36.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for serialfilecopy 1.2.1
File Interpreter ABI Platform
serialfilecopy-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 65.7 kB

Release files / serialfilecopy-1.2.1.tar.gz

Download URL serialfilecopy-1.2.1.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
33a080b23a358d6d4a6d9b3da993a95266b50691488b446b7120276f38e53d85
BLAKE2b-256 checksum
How to use checksums
70ae3a81eb8e819baa864a370c337cc98c8fde4c7aed2f2b4447e257d548e31c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / serialfilecopy-1.2.1-py3-none-any.whl

Download URL serialfilecopy-1.2.1-py3-none-any.whl
Size 28.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d752e5d44913bd54ef504a48627c4c67c8dccf291dde63f49c2f0358b6a6d6d8
BLAKE2b-256 checksum
How to use checksums
0987b7373b9503ec8dbd51fada8dcadfcc72dbc32f043e3c4b6c86f84ca1531a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.0.0

2 release files

0.9.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page