Skip to main content

config tool for serial devices

Project description

whl-com

Installation

pip install whl-com

Usage

options

Usage: whl_com.py [OPTIONS] [COMMANDS]...

  whl-com

Options:
  -D, --device TEXT       serial device  [required]
  -b, --baudrate INTEGER  baudrate
  -t, --timeout FLOAT     timeout in seconds
  -f, --input_file TEXT   commands file
  --dry_run               do not send commands, just print them
  --no_output_filter      do not filter output, print everything
  --filter TEXT           filter output by regex pattern
  --quiet                 do not print output, only send commands
  -i, --interactive       enter interactive mode after sending commands
  --help                  Show this message and exit.

send single command

send log com1 gpgga ontime 1 to device

python3 whl_com.py --device /dev/ttyUSB0 --baudrate 460800 log com1 gpgga ontime 1

send multiple commands

create a file commands.txt with the following content:

log com1 gpgga ontime 1
log com1 gpchcx ontime 0.01
saveconfig

specify the file with --input_file option:

python3 whl_com.py --device /dev/ttyUSB0 --baudrate 460800 --input_file commands.txt

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

whl_com-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

whl_com-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file whl_com-0.0.3.tar.gz.

File metadata

  • Download URL: whl_com-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for whl_com-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0e19055b142ead743fa3867630b067bf1faf0c26f595c674c0fd7430ec9193a1
MD5 dd466343cfdc8c1084aa73483d78da75
BLAKE2b-256 2eb846f26cbadf482ab92bc891106252e46792a9fdb4563aafbcfc6462bd9f4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for whl_com-0.0.3.tar.gz:

Publisher: python-publish.yml on wheelos-tools/whl-com

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file whl_com-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: whl_com-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for whl_com-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4b8356123d71737e7bf92a4cf6fed111d1291c179b12f3d270b0253cf3ef1a2
MD5 f1acb514750fb4fcc5309d68a670c8bb
BLAKE2b-256 796986fc3c2d7826b97e667f83e7ea6289c8a8626b7d9a96b93989c9d6de41b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for whl_com-0.0.3-py3-none-any.whl:

Publisher: python-publish.yml on wheelos-tools/whl-com

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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