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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: deserial-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 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.1.tar.gz
Algorithm Hash digest
SHA256 d935a6c837d8c9eb0c00a848116d7da4bb78ca8acb4a49b4027bc07282ac17da
MD5 0a75585a8b97ddb3d5cee6db4283709b
BLAKE2b-256 7df04307c232b5ada14c8450dbe8fe9309ece01a51c8530216a284c857230f56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deserial-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c392413eb04dcadba62881f3af6a330b3f15ee7bea57e02c3202d2c44960a748
MD5 0b8ab10f06358a1656c417d29b7bf81a
BLAKE2b-256 eab3d2f73408576cd4b8aaf4f6e09f5f62a275878187020d7f52c02ad79182f8

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