saidlm / Domoticz-Solax-plugin

Plugin to monitor and control Solax inverter from Domoticz via ModBUS over TCP/IP
MIT License
1 stars 0 forks source link

Cannot connect to inverter via modbus #6

Closed averter closed 3 months ago

averter commented 3 months ago

I've decided to try the plugin in a different inverter of a friend of mine: model X3-Hybrid 10-E-D but there are connectivity issues. The debug log is

2024-07-18 18:44:38.008 Solax: Pushing 'onHeartbeatCallback' on to queue
2024-07-18 18:44:38.058 Solax: Processing 'onHeartbeatCallback' message
2024-07-18 18:44:38.058 Solax: Acquiring GIL for 'onHeartbeatCallback'
2024-07-18 18:44:38.059 Solax: Calling message handler 'onHeartbeat' on 'module' type object.
2024-07-18 18:44:38.059 Solax: onHeartbeat
2024-07-18 18:44:38.059 Solax: Connecting to: 192.168.88.21:502
2024-07-18 18:44:38.076 Solax: Connection timeout.
2024-07-18 18:44:38.077 Solax: Connecting to: 192.168.88.21:502
2024-07-18 18:44:38.092 Solax: Connection timeout.
2024-07-18 18:44:38.092 Solax: Connecting to: 192.168.88.21:502
2024-07-18 18:44:38.115 Solax: Connection timeout.
2024-07-18 18:44:38.115 Solax: Connection has not been established.
2024-07-18 18:44:38.115 Solax: Acquiring GIL for 'onHeartbeatCallback'
2024-07-18 18:44:48.031 Solax: Pushing 'onHeartbeatCallback' on to queue
2024-07-18 18:44:48.082 Solax: Processing 'onHeartbeatCallback' message
2024-07-18 18:44:48.082 Solax: Acquiring GIL for 'onHeartbeatCallback'
2024-07-18 18:44:48.082 Solax: Calling message handler 'onHeartbeat' on 'module' type object.
2024-07-18 18:44:48.082 Solax: onHeartbeat
2024-07-18 18:44:48.082 Solax: Connecting to: 192.168.88.21:502
2024-07-18 18:44:48.097 Solax: Connection timeout.
2024-07-18 18:44:48.097 Solax: Connecting to: 192.168.88.21:502
2024-07-18 18:44:48.111 Solax: Connection timeout.
2024-07-18 18:44:48.111 Solax: Connecting to: 192.168.88.21:502
2024-07-18 18:44:48.144 Solax: Connection timeout.
2024-07-18 18:44:48.144 Solax: Connection has not been established.
2024-07-18 18:44:48.145 Solax: Acquiring GIL for 'onHeartbeatCallback' 

I've then tried to ping the inverter (all fine) and check if port 502 was open using nmap

$ nmap -p 502 192.168.88.21
Starting Nmap 7.80 ( https://nmap.org ) at 2024-07-18 18:43 BST
Nmap scan report for 192.168.88.21
Host is up (0.0057s latency).

PORT    STATE  SERVICE
502/tcp closed mbap

Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds

So it seems that it is closed for some reason :-(. I've roamed the internet but found no reason why this would be. Does anyone have any suggestions/things to try? Thanks.