A command line tool continuously send data to a serial port to simulate weighbridge communicating.
Project description
weighbridge-simulator
A command line tool continuously send data to a serial port to simulate weighbridge communicating.
Install
You can install this tool by the following methods:
-
Install
weighbridge-simulator
bypip
:pip install git+ssh://git@github.com/garrett-he/weighbridge-simulator.git
-
Download compiled binary files from Repository Releases.
Quickstart
-
Prepare a file contains weight list in format:
000.000 000.020 000.160 000.420 000.780 005.660 005.800 006.040 006.120 006.100 006.080 ...
-
Run
wb-simulator
to start simulation:wb-simulator --data-file FILE
Then you can receive the weight values from the created port /dev/pts/N
in *
raw* data format.
weighbridge-simulator
will convert the input data into raw weighbridge format before sending it to a serial port, like:
012.345
will be converted to543.210=
Usage
Usage: wb-simulator [OPTIONS]
A command line tool continuously send data to a serial port to simulate
weighbridge communicating.
Options:
-p, --port NAME Name of serial port.
-d, --data-file PATH Path of data file. [required]
-l, --loops N Loops of sending data set, zero means endless.
-i, --interval SECS Interval of each data.
--version Show the version and exit.
--help Show this message and exit.
License
Copyright (C) 2023 Garrett HE garrett.he@hotmail.com
The BSD 3-Clause License, see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for weighbridge_simulator-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 407d2bee40315be2911c665802e00c7e28a2d508c14d1e2531c2d53f7670b0cc |
|
MD5 | 9637abcdb379a187d466084f62103c5d |
|
BLAKE2b-256 | 3d6a58f5dd60ff49fd447d9576175e07fa28c5be8ce8b4f9b615ed6f1844057d |
Hashes for weighbridge_simulator-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c41f16923aae37ba9a912c8ebca8a60be58f96a5ead426a72ade87dd6d6da8f |
|
MD5 | abee91e33a80ab2f5c80023c25ea64ba |
|
BLAKE2b-256 | 2d24cb02c3639486002e6ad62025452987b3d18587e10e843da730d3813c60a1 |