Skip to main content

The main purpose is to create classes of devices connected via modbus by describing their properties.

Not intended to transfer bytes to modbus.

The library allows you to organize work with devices connected to a TCP modbus server, and a serial port. It also assumes the possibility of having devices operating at different speeds and different connection parameters on the bus.

Use

  1. Create your class inheriting from ModbusDevice. It is important to specify the static variable file in your class file = file
  2. Create a JSON file with the description of the registers of your device
  3. To access the device, use an instance of your class and the package API.

see example: example / Wirenboard / TestWirenBoardDimmer.py

if someone likes the implementation, I will add documentation

async API

read_param(param_id) - gets device property value

write_param(param_id, value) - writes the value to the property of the device

is_device() - should return true if the device at the current address can be served by this class

find_devices() - returns the list of addresses of these devices. The function calls is_device for each modbus address.

Licensing

aiocoap is published under the Apache License 2.0, see LICENSE_ for details.

Copyright (c) 2019 Mikhail Razgovorov

In my work, the code of another library was used to serialize the protocol, unfortunately during the implementation I forgot which one. I apologize to the author. Ready upon request to specify his name here.

.. _LICENSE: LICENSE

Metadata

Release files for aio-modbus-client 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aio-modbus-client 0.0.2
File Size Uploaded
aio_modbus_client-0.0.2.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aio-modbus-client 0.0.2
File Interpreter ABI Platform
aio_modbus_client-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.6 kB

Release files / aio_modbus_client-0.0.2.tar.gz

Download URL aio_modbus_client-0.0.2.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0213e333434c64d17d293bc494672ea6d7a736a61396c86a4ac2028dae09bd84
BLAKE2b-256 checksum
How to use checksums
4d5e5c6570914f30ef3805df9e4d60b92a7de52f626fb2414207667c98585cfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

Release files / aio_modbus_client-0.0.2-py3-none-any.whl

Download URL aio_modbus_client-0.0.2-py3-none-any.whl
Size 29.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5c02e390327c7a69ecbaa93157884490023debec2cd6a506d8b06eee0dab902
BLAKE2b-256 checksum
How to use checksums
75d2abf399b61fca0c14175ce2510fed9d034a1df7a3ebe72e96e10b26ebe7a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

Release history Release notifications | RSS feed

0.0.4

2 release files

0.0.3

2 release files

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page