Package for communicate with iec62056-21 Meters
Project description
Python IEC62056 Meter Tools
How to use ?
Install
pip install py-iec62056
Create SerialClient
client = SerialClient(
baudrate=19200,
port="COM3",
transport="serial",
parity="E",
bytesize=7,
stopbits=1
)
Read A meter identification
This return an identification message from the meter. You must set the ack_stop to True if you don't want to meter to give the default table.
result = client.read_tariff_identification("5987893", ack_stop=True)
Read Table dataset
This will return a list of DataSet instance. Raise error if Timeout.
result = client.request(meter_address="5987893", table=7, timeout=30)
assert isinstance(result, TariffResponse)
for dataset in result.data:
logging.info(f"{dataset}")
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iec62056_protocol-1.0.0.tar.gz.
File metadata
- Download URL: iec62056_protocol-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e11ad878bf2ebb2d491e2a823cac2a64ac5d6e81acba90e236164a38764ca009
|
|
| MD5 |
02a35a0665f964ebf911e8731780efd9
|
|
| BLAKE2b-256 |
a6f287b0ea800b3eb04d7573feffc483115b3b4c7c5f9d137e2fc506c4b45317
|
File details
Details for the file iec62056_protocol-1.0.0-py3-none-any.whl.
File metadata
- Download URL: iec62056_protocol-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8f142380d13c67ceb03dd654bdf091f6619a1515f9e8dacbddde343a209c9cc
|
|
| MD5 |
a0a5a2c11ff5a5f9a99dea7b7242fcc0
|
|
| BLAKE2b-256 |
871522950d62c4b479099138a09d961b046a1d21b98e177fbcad998294d2d762
|