basking-in-the-sun2000 / solar-logger

A datalogger for a solar inverter. Stores data in influxdb and displays it in grafana. Has load diverting capability, to use the inverter's excess power
GNU General Public License v3.0
99 stars 32 forks source link

Download of optimizer data #15

Closed Paco93 closed 3 years ago

Paco93 commented 3 years ago

Hello, thanks for the great Software you provided us. I have a SUN2000-3KTL with smart PV optimizers. I was wandering how the data from the optimizer could be downloaded and made available. Regards

basking-in-the-sun2000 commented 3 years ago

Huawei doesn't give all the details on how to download the optimizer info. They said it is proprietary. Their modbus reference manual, gives some hints, but not enough info

madimadi commented 2 years ago

Hi. I believe there is a section 4.2 in interface definition document 2021-08-13 about real-time data query of optimizers.

Would you consider adding support for it? Regards, madimadi

andysu commented 2 years ago

not so, some basic info you may read from registers (only from m3 inverters)

this additional info - only thru fusion solar and 3rd app

  1. Basic
    • SN
    • address
    • string N
    • pos in string
    • FW ver
  2. Realtime
    • Alarm
    • Input current, voltage
    • Output current, voltage
    • temperature
    • status
    • Power
    • voltage to ground
    • accumulated energy yield
madimadi commented 2 years ago

Sorry I'm not sure still. You say real-time data cannot be read only basic and basic can be read only in M3. Not in smaller inverters ex: M1?

andysu commented 2 years ago

sorry - bad markup in my post fix. M1 inverter - please send model and FW info

basking-in-the-sun2000 commented 2 years ago

Some inverters do not use optimizers. Still, it would be great, but section 4.2(?) doesn't provide enough info to download the optimizer info. It is really a bad move from Huawei not allowing us to access that info :<

Have the impression you need to login to the inverter to access that. The remote monitors don't need it, since the inverter pushes the data out.

andysu commented 2 years ago

imho some data can be downloaded (func 0x44 and 0x41 is the same) without auth process I did not find any information that it is possible to organize the authentication process through modbus I have not yet been able to download data from the inverter. But I'm trying. I was able to decipher some EMAP files. without huawei info In general, the topic is very interesting. So you can download a lot of information about the operation of the inverter. I propose to combine efforts.

andysu commented 2 years ago

I read your correspondence on the forum Hua about download optimizers info from inverter.

basking-in-the-sun2000 commented 2 years ago

sounds interesting. If I can help, let me know

andysu commented 2 years ago

Thanks, friend. After war. I'm in Ukraine

пт, 25 лют. 2022, 11:30 користувач basking-in-the-sun2000 < @.***> пише:

sounds interesting. If I can help, let me know

— Reply to this email directly, view it on GitHub https://github.com/basking-in-the-sun2000/solar-logger/issues/15#issuecomment-1050686400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4MJWFQ6IAUFUPJZUZSK2TU45D4DANCNFSM4XKTA7PA . You are receiving this because you commented.Message ID: @.***>

basking-in-the-sun2000 commented 2 years ago

Stay safe and hope this madness is done soon

andysu commented 2 years ago

thanks again

вт, 1 бер. 2022 р. о 01:52 basking-in-the-sun2000 @.***> пише:

Stay safe and hope this madness is done soon

— Reply to this email directly, view it on GitHub https://github.com/basking-in-the-sun2000/solar-logger/issues/15#issuecomment-1054825282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4MJWCPARXFBRWN7HNILG3U5QDFJANCNFSM4XKTA7PA . You are receiving this because you commented.Message ID: @.***>

--

Кислощаєв А.В.

andysu commented 1 year ago

some updated info Huawei added information about optimizers 4.1 Obtaining the System Information of Optimizers according to this information, I was able to write with an application that reads optimizers (live and history)

basking-in-the-sun2000 commented 1 year ago

some updated info Huawei added information about optimizers 4.1 Obtaining the System Information of Optimizers according to this information, I was able to write with an application that reads optimizers (live and history)

Excellent!. Would you mind sharing the updated documents and if you have sample code.

andysu commented 1 year ago

Updated documents - OK (pls send me your email address for file) sample code - not right now (its my commercial property) maybe later.

basking-in-the-sun2000 commented 1 year ago

Updated documents - OK (pls send me your email address for file) sample code - not right now (its my commercial property) maybe later.

No problem. The docs will do.

andysu commented 1 year ago

the main question there is in using the 0x41 function. It does not work on the standard libmodbus library. I had to rewrite the code. And without using the 0x41 function, you cannot get data from the optimizer.

andysu commented 1 year ago

the libmodbus standard library has support for custom functions, but it does not work on modbus RTU. and I can’t post the corrected code yet (commercial obligations)