Skip to content

SPF-5000TL -SyntaxError: invalid syntax and ModbusIOException: Modbus Error #7

@dawiemaartens

Description

@dawiemaartens

Hi

I have got a growatt SPF-5000TL, I run the script on the Raspberry,

I receive a syntax error
File "solarmon.py", line 23
print('Setup InfluxDB Client... ', end='')
^
SyntaxError: invalid syntax

and when commenting out " print('Setup InfluxDB Client... ', end='')" and print('Setup Serial Connection... ', end='') I I can get past the error, but receive the following error, I have double check that the RS485A and RS485B pins are correct as per Growatt inverter as well that I can see /ttyUSB0 as the device to use.

Loading inverters...
Traceback (most recent call last):
File "solarmon.py", line 47, in
growatt = Growatt(client, name, unit)
File "/home/pi/solarmon/growatt.py", line 58, in init
self.read_info()
File "/home/pi/solarmon/growatt.py", line 63, in read_info
raise row
pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 2 bytes (0 received)

Any assistance will be greatly appreciated.
Thanks Dawie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions