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.2.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file deserial-0.1.2.tar.gz
.
File metadata
- Download URL: deserial-0.1.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c941ec0e9c39400edf6d778156607be478cbc47e42269a58df0672f91209314f |
|
MD5 | 7837d49e4c5f102965df95934971102f |
|
BLAKE2b-256 | 75e9adfaf4824ac191534e58131a5e84cfa09b5cd05e71a7efe41e77c1d0c0c5 |
File details
Details for the file deserial-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: deserial-0.1.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6f643b06355ba9dba1a25f106cecac0ae173570e772478bd7dbe69f4a7ee715 |
|
MD5 | fd839c93d966f1709a2c3837c8a78fba |
|
BLAKE2b-256 | 3deaf8117957067a9ea4ef6799ad825d154d8debb106ac0580f507b55d8b4cb4 |