Skip to main content

Renogy Bluetooth SDK for Python

Project description

RenogyBT for Python SDK

RenogyBT is a Python SDK designed for Modbus communication with Renogy products. This project provides functionality to communicate with Renogy devices via Bluetooth.

Project Structure

  • modbus_bt_pkg/src/renogy_lib_python/: Contains the core library code.
  • modbus_bt_pkg/tests/: Contains test code.

Installation

Ensure your Python version is 3.6 or above. You can install the required dependencies using the following command:

pip install renogy-modbus-lib-python

Usage

Initialization

First, initialize the EnhancedModbusClient class to scan and connect to devices:

from modbus_bt_pkg.src.renogy_lib_python import EnhancedModbusClient

async def main():
    client = EnhancedModbusClient(slave_address=0xFF)
    devices = await client.scan_devices()
    # Select and connect to a device
    success = await client.connect(selected_device['address'])

Data Retrieval

Once connected, you can use the following methods to retrieve battery raw data and status information:

response = await client.get_hole_original_data()

status = await client.get_status()

Features

  • Device Scanning : Use the scan_devices method to scan nearby Bluetooth devices.
  • Device Connection : Use the connect method to connect to the selected device.
  • Data Retrieval : Use the get_hole_original_data and get_status methods to obtain raw data and status information from the device.

License

This project is licensed under the Renogy License. For more details, please refer to the https://www.renogy.com.

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

renogy_modbus_lib_python-0.1.7.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

renogy_modbus_lib_python-0.1.7-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file renogy_modbus_lib_python-0.1.7.tar.gz.

File metadata

File hashes

Hashes for renogy_modbus_lib_python-0.1.7.tar.gz
Algorithm Hash digest
SHA256 351d284558645f291438e80ed9362b3427b51308a14441a274cf7e9ebd879cb6
MD5 d1bfa0793e7ffe83b43cf805caa44fb3
BLAKE2b-256 a1d1abfc666883da6102586473ed0668367f1af648cf1f69fd513adb6f3f257d

See more details on using hashes here.

File details

Details for the file renogy_modbus_lib_python-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for renogy_modbus_lib_python-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b3b76fc7bebc660a888ba431b4cb2a7ece88a69aab5570ffb8bda67babd734bc
MD5 97b1ac44cda3f0e18d44423841b12a35
BLAKE2b-256 abb19f92112764b2db12a56fc1c5a5e020114445973589a8fe5c0fd675a23d4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page