Skip to main content

No project description provided

Project description

deserial

A tool that connects to a serial port and executes scenarios - sends specified commands, and checks the responses.

Scenario example

For every step, only input is required. If output is not specified, the step is considered successful if the response is received within response_timeout_sec seconds.

baudrate: 115200
device: /dev/ttyUSB0
serial_timeout_sec: 5
steps:
- input: AT
  output:
  - OK
- input: ATI
  output:
  - LENA-R8001M10-00C-00
  - ''
  - OK
  post_delay_sec: 1   # before executing the command, wait this long
  pre_delay_sec: 2    # after executing the command, wait this long
  response_timeout_sec: 10  # waiting for the response this long
- input: AT+COPS?
  output:
  - '+COPS: .*'  # every line here is a regex
  - ''
  - OK
  fail_ok: true  # if step fails, it is considered successful

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

deserial-0.1.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

deserial-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file deserial-0.1.3.tar.gz.

File metadata

  • Download URL: deserial-0.1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Windows/10

File hashes

Hashes for deserial-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5a63b8da934251373b59e9cbdfb3cf84ca8e84cdb5b2ed3ce41da5b8c4794ae3
MD5 a0f68dea8a2a958184ba054875daac60
BLAKE2b-256 3ae945c431f406f05a71c246b2d95f1d1318b2e25be919285aae22a638da4c58

See more details on using hashes here.

File details

Details for the file deserial-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: deserial-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Windows/10

File hashes

Hashes for deserial-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea3f5d92c4e4ae12ddc9ad9e399636cc4f3a2095585ddf7899d3261f04d52c8
MD5 c5f2abb018a7da64288d6b2197b16615
BLAKE2b-256 81efbf67c1515ac00ed4eef4427e800e44718ef83b8cbf2e930a72af3cabb9eb

See more details on using hashes here.

Supported by

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