MichaluxPL / Sofar_LSW3

Get MODBUS data from Sofar (K-TLX) inverter through LSW-3 or LSE module
GNU General Public License v3.0
94 stars 45 forks source link

Reading only 1 value #52

Closed sibox1337 closed 9 months ago

sibox1337 commented 1 year ago

Hello, I got some chinese inverter INVT BD6TKL-RL1 and LSW3_15_840B_1.24 ( SN 234xxxxxxxxxxxx) The problem is when i try to use the script it only gives me one single value and its -16143 ( b'\xa5\x13\x00\x10\x15\x00\x02\xe3\xa6~\x8b\x02\x01\x7fmQ7\xf6\n\x00\x00\xd8V\x03-\x01\x83\x02\xc0\xf1\xd8\x15' ) and i think its kind of error that i cannot understand? Can u please help

MichaluxPL commented 1 year ago

Response You get is much too short, so in fact You do not get any valuable data. Unfortunately I don't know that inverter, so won't be able to help. I'd suggest messing around with register addresses (best if You get it from the manufacturer), but there is no guarantee this script uses communication protocol suitable for Your inverter.

sibox1337 commented 1 year ago

Can i test with single register only for example 0x0404 so when i receive some that to know where to look for?

MichaluxPL commented 1 year ago

As far as I remember the code, that won't work. You need some register range.

rimelis commented 1 year ago

Each inverter has it's own table of registers. Even generations of the same model can differ a lot. For example Sofar Solar KTL-X G3 has absolutely different ranges than G2. You have very little chances to guess the right registers without documentation.