AuroraPy is a python implementation of Aurora communication protocol for Power-One Aurora inverters.
It implements a serial Client and a TCP Client for who wants to convert RS485 to Ethernet.
pip install aurorapy
git clone git@code.energievalsabbia.it:ccatterina/aurorapy.git
cd aurorapy
python setup.py install
from aurorapy.client import AuroraError, AuroraTCPClient
client = AuroraTCPClient(ip='192.168.1.34', port=502, address=10)
client.connect()
try:
print("Inverter serial number: %s" % client.serial_number())
except AuroraError as e:
print(str(e))
client.close()from aurorapy.client import AuroraError, AuroraSerialClient
# AuroraSerialClient(address, port, baudrate=19200, parity='N',
# stop_bits=1, data_bits=8, timeout=5)
client = AuroraSerialClient(port='/dev/ttyUSB0', address=10)
client.connect()
try:
print("Inverter serial number: %s" % client.serial_number())
except AuroraError as e:
print(str(e))
client.close()Documentation is here
The available commands are:
- 50: State request
- 52: P/N Reading
- 53: Reset auto-exclusion
- 58: Version Reading
- 59: Measure request to the DSP
- 63: Serial Number Reading
- 65: Manufacturing Week and Year
- 67: Flags or switch reading (Only for Aurora Central)
- 68: Cumulated Float Energy Readings (Only for Aurora Central)
- 70: Time/Date reading
- 72: Firmware release reading
- 76: Latest 10 seconds produced Joules
- 78: Cumulated Energy readings (Only for Aurora grid-ties inverters)
- 86: Last Four Alarms
- 101: System Info reading (Only for Aurora Central)
- 200: Junction Box - State Request
- 201: Junction Box - Val Request
Missing commands:
- 85: Baud rate setting on serial lines
- 103: Junction Box monitoring status (Only for Aurora Central)
- 105: System P/N Reading (Only for Aurora Central)
- 107: System Serial Number Reading (Only for Aurora Central)