This package contains a Python 3 library and a command line tool for interacting with a BSM-WS36A-H01-1311-0000. Both allow you to explore the communication and common tasks like:
- Reading data from registers
- Setting parameters
- Creating snapshots
- Verifying a snapshot signature
So this package might come in handy for testing communication and integrating the meter in your environment.
The command line tool gets installed as bsmtool
.
-
Python 3
- We have tested it with 3.7 and 3.9
- See Prerequisites for details
-
- As there is currently no package available at pypi.org, we integrated it
as
bauer_bsm.sunspec
- As there is currently no package available at pypi.org, we integrated it
as
-
You can install the latest release from GitHub:
$ pip3 install https://github.com/chargeITmobility/bsm-python/releases/download/release-0.12.0/bauer_bsm-0.12.0-py3-none-any.whl
-
For hands-on work of the code, clone this repository and perform a editable installation as follows:
$ pip3 install --user --editable .
To display the built-in help for the tool and general arguments use:
$ bsmtool --help
To get help for an individual subcommand, give --help
after the subcommand.
For example for help on creating and fetching snapshots use:
$ bsmtool get-snapshot --help
This repository contains a comprehensive set of examples on using the BSM-WS36A
and the BSM Tool in doc/examples
.
The directory doc/modbus
contains a Modbus model instance and
register overview.
Finally, you could have a look in the product manuals of the BSM-WS36A: