Jump to content

Featured Replies

Posted

Hi All 

Hope you can help me,

I have the following

5KVa Sunsync inverter, 10X 540W Panels and Hubble 5Kw Battery

Please see atached pictures of comms, and error log in Home assistant Addon that i am getting. Currently the Brown is on B and Brown White is on A, we also tried Orange and Orange White.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-07-07 12:09:56,614 INFO    Loading HASS OS configuration
2022-07-07 12:09:56,631 DEBUG   could not patch umodbus: numpy not found
2022-07-07 12:09:56,636 INFO    Filter *last used for battery_soc, total_battery_charge, total_battery_discharge, total_grid_export, total_grid_import, total_pv_power
2022-07-07 12:09:56,637 INFO    Connecting to serial:///dev/ttyUSB0
2022-07-07 12:09:56,717 INFO    ############################################################
2022-07-07 12:09:56,718 INFO                Inverter serial number 'XXMYSERIALNUMBERXX'
2022-07-07 12:09:56,718 INFO    ############################################################
2022-07-07 12:09:56,719 INFO    MQTT: Connecting to mqtt_user@core-mosquitto:1883
2022-07-07 12:09:56,735 INFO    MQTT: Connection successful
2022-07-07 12:09:57,848 ERROR   Read Error: (1,78,1) CRC validation failed.
2022-07-07 12:09:57,849 INFO    Retrying individual sensors: ['Total PV Power:last', 'Total Battery Charge:last', 'Total Battery Discharge:last', 'Total Grid Export:last', 'Total Grid Import:last', 'Battery SOC:last']
2022-07-07 12:09:57,920 ERROR   Read ErrorTotal PV Power: (1,96,2) CRC validation failed.
2022-07-07 12:09:57,989 ERROR   Read ErrorTotal Battery Charge: (1,72,2) CRC validation failed.
2022-07-07 12:09:58,060 ERROR   Read ErrorTotal Battery Discharge: (1,74,2) CRC validation failed.
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/sunsynk/sunsynk.py", line 52, in read_sensors
    r_r = await self.read_holding_registers(grp[0], glen)
  File "/usr/local/lib/python3.9/site-packages/sunsynk/usunsynk.py", line 43, in read_holding_registers
    return await self.client.read_holding_registers(self.server_id, start, length)
  File "/usr/local/lib/python3.9/site-packages/async_modbus/core.py", line 181, in read_holding_registers
    return await self._send_message(request)
  File "/usr/local/lib/python3.9/site-packages/async_modbus/core.py", line 142, in _send_message
    return await self.protocol._async_send_message(
  File "/usr/local/lib/python3.9/site-packages/async_modbus/core.py", line 78, in send_message_rtu
    return rtu.parse_response_adu(response_error_adu + response_remainder, adu)
  File "/usr/local/lib/python3.9/site-packages/umodbus/client/serial/rtu.py", line 183, in parse_response_adu
    validate_crc(resp_adu)
  File "/usr/local/lib/python3.9/site-packages/umodbus/client/serial/redundancy_check.py", line 76, in validate_crc
    raise CRCError('CRC validation failed.')
umodbus.client.serial.redundancy_check.CRCError: CRC validation failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/app/./run.py", line 180, in read_sensors
    await asyncio.wait_for(SUNSYNK.read_sensors(sensors), OPT.timeout)
  File "/usr/local/lib/python3.9/asyncio/tasks.py", line 478, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.9/site-packages/sunsynk/sunsynk.py", line 54, in read_sensors
    raise Exception(  # pylint: disable=raise-missing-from
Exception: (1,74,2) CRC validation failed.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/app/./run.py", line 274, in <module>
    LOOP.run_until_complete(main(LOOP))
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/usr/src/app/./run.py", line 239, in main
    await read_sensors([f.sensor for f in SENSORS], retry_single=True)
  File "/usr/src/app/./run.py", line 197, in read_sensors
    await read_sensors([sen], msg=sen.name, retry_single=False)
  File "/usr/src/app/./run.py", line 191, in read_sensors
    raise Exception(f"Multiple Modbus read errors: {err}") from err
Exception: Multiple Modbus read errors: (1,74,2) CRC validation failed.
[cmd] ./run.py exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

 

20220707_120434.jpg

c23.jpg

I know very little about HA, but the log says Bad Cyclic Redundancy Checks which suggests (90% chance) the physical layer.

Ensure that you are using a twisted pair for the comms (Tx and Rx), and ensure that the twists aren't undone near the connector. They are essential for cancelling out crosstalk and other EMI.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...