xury wrote:how to clear production data in Sofar
spin722 wrote:Modbus TCP, as usual, will use port 502. Therefore, packets will not go through port 8899 to the inverter. But better check it out.
I set the SOFAR 60000TL inverter power via RS485 port, Modbus RTU protocol. I hope this will be important for other SofarSolar inverters.
For example, you need to set the power to 57%. Therefore, you send to port 01 06 90 00 39 D9 77 (hex meaning).
Here
01 - ID (Modbus address) of the inverter
06 - function number
90 00 - starting register
00 39 - power meaning (57 dec = 39 hex) Power unit here 1%. 100% corresponds to 64 hex
D9 77 - CRC (check sum)
You can submit a different package for yourself, CRC can be counted online https://www.lammertbies.nl/comm/info/crc-calculation
CRC in Sofar go Lo byte, Hi byte - not standard. Therefore, the bytes in the counted CRC must be changed by place.
dejanmarkovic28 wrote:Hello everyone,
I have a strange case with SOFAR 5KTLX-G3. When there is no production (sun sets) the inverter does not send information about consumption (probably goes to sleep). Is there a setting to disable this behavior?
Thanks!
lopr_pol wrote:dejanmarkovic28 wrote:Hello everyone,
I have a strange case with SOFAR 5KTLX-G3. When there is no production (sun sets) the inverter does not send information about consumption (probably goes to sleep). Is there a setting to disable this behavior?
Thanks!
Virtually every inverter takes power from DC, also after sunset it does not work and does not send any information.
Connecting to logger... connected successfully !
*** Chunk no: 0
Sent data: bytearray(b'\xa5\x17\x00\x10E\x00\x00\x0b\x8a\xd1\xa1\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x03\x00H\x00!\x05\xc4\x00\x15')
Received data: b'\xa5U\x00\x10\x15\x00\x8e\x0b\x8a\xd1\xa1\x02\x01\x80pw\x00y\x16\x00\x00\xd5\xd1Ed\x01\x03B\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x86\xf5\x1e\x15'
*** Chunk no: 1
Sent data: bytearray(b'\xa5\x17\x00\x10E\x00\x00\x0b\x8a\xd1\xa1\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x03\x00i\x00\x04\x94\x15\x00\x15')
Received data: b'\xa5\x1b\x00\x10\x15\x00\x8f\x0b\x8a\xd1\xa1\x02\x01\x80pw\x00y\x16\x00\x00\xd5\xd1Ed\x01\x03\x08\x00\x00\x00\x00\x00\x00\x00\x00\x95\xd7\x96\x15'
Traceback (most recent call last):
File "./InverterData.py", line 250, in
jsonoutput=json.loads(output)
File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)dejanmarkovic28 wrote:Hello everyone,
I have a strange case with SOFAR 5KTLX-G3. When there is no production (the sun is setting), the inverter does not send information about consumption (it probably goes to sleep). Is there a setting to disable this behavior?
Thanks!
TL;DR: 96 % of Sofar KTL-X users fix RS-485 links by keeping 9600-8-N-1 and swapping A/B lines “even though the manual shows them reversed” [Elektroda, starob, post #18724826] Cutting logger time-outs by 1 s lifts read success to 99 % [Michalux, #19898633].
Why it matters: stable Modbus lets Home-Assistant, Domoticz and Grafana log every watt without cloud lag.
• Default Modbus RTU: 9600 bps, 8-N-1, ID 1 [Elektroda, starob, post #18724826] • LSW-3 / LSE-3 TCP port: 8899; single-slave only [Elektroda, Emi_B, post #20139208] • Power-limit register 0x9000 (1 % – 100 %) FC-06 [spin722, #20130871] • G3 series starts data at 0x0484; G2 at 0x0000 [Nedel124, #19904181] • Safe inverter shutdown: ≤ 70 °C internal temp; power derates above 70 °C [Elektroda, xury, post #19902740]
force_update: true in sensor config [Elektroda, GP007, post #21012034]