softwarecrash / Solar2MQTT

ESP8266 based WiFi and MQTT interface for MPPT Inverters that use watchpower
Other
172 stars 38 forks source link

[Bug]: it shows the PV power incorrectly #175

Open skavzik opened 3 days ago

skavzik commented 3 days ago

Is there an existing issue for this?

Used Hardware?

Wemos D1 Mini

What happened?

I have a solar inverter (Victor MAX 10.2) with two MPPTs. so all the values are correct except for the generation of energy from solar panels. as I understand it, the data comes from only one mppt tracker. I tried using the native wifi module, it gives two sets of values for each mppt

Screenshots / Fotos

Screenshot_2024-11-19-21-45-09-233-edit_com avito android

Steps To Reproduce

No response

Version

1.x.x and above

Relevant livejson output

{"EspData":{"Device_name":"Solar2MQTT","ESP_VCC":2.997,"Wifi_RSSI":-62,"sw_version":"1.2.0-Pre4","Free_Heap":18056,"HEAP_Fragmentation":17,"json_memory_usage":1429,"json_capacity":2048,"runtime":29879,"ws_clients":1,"detect_protocol":2},"DeviceData":{"AC_in_rating_voltage":230,"AC_in_rating_current":44.3,"AC_out_rating_voltage":230,"AC_out_rating_frequency":50,"AC_out_rating_current":44.3,"AC_out_rating_apparent_power":200,"AC_out_rating_active_power":200,"Battery_rating_voltage":48,"Battery_re-charge_voltage":49,"Battery_under_voltage":48,"Battery_bulk_voltage":55.5,"Battery_float_voltage":55.5,"Battery_type":"User","Current_max_AC_charging_current":20,"Current_max_charging_current":50,"Input_voltage_range":"Appliance","Output_source_priority":"Solar first","Charger_source_priority":"Solar + Utility","Parallel_max_num":1,"Machine_type":"Off Grid","Topology":"Transformerless","Output_mode":0,"Battery_re-discharge_voltage":54,"PV_OK_condition_for_parallel":0,"PV_power_balance":1,"Max_charging_time_at_CV_stage":49,"Operation_Logic":10,"Max_discharging_current":44,"Device_Model":"VMII-NXPW5KW","Protocol_ID":"PI30"},"LiveData":{"AC_in_Voltage":231,"AC_in_Frequenz":50,"AC_out_Voltage":231,"AC_out_Frequenz":50,"AC_out_VA":716,"AC_out_Watt":685,"AC_out_percent":7,"Inverter_Bus_Voltage":423,"Battery_Voltage":53.2,"Battery_Charge_Current":0,"Battery_Percent":50,"Inverter_Bus_Temperature":38,"PV_Input_Current":0,"PV_Input_Voltage":0,"Battery_SCC_Volt":0,"Battery_Discharge_Current":0,"Status_Flag":10000,"Battery_voltage_offset_fans_on":0,"EEPROM_Version":0,"PV_Charging_Power":0,"Device_Status":10,"Battery_Load":0,"PV_Input_Power":0,"Inverter_Operation_Mode":"Line","Time_until_absorb_charge":0,"Time_until_float_charge":0,"Tracker_temperature":0,"Inverter_temperature":36,"Battery_temperature":38,"Transformer_temperature":33,"Fan_speed":30,"Inverter_charge_state":"No charging","Fault_code":"Ok"}}

What browsers are you seeing the problem on?

no Issue with the Browser or WebUI

softwarecrash commented 2 days ago

What says the RAW section of the mqtt Data?

Please try to use PC Software watchpower and Connect the Inverter with the serial cable tonthe PC, then right click on the taskbar Icon of watchpower and enable debug, this will create a Bunch of Files, that i need.

skavzik commented 2 days ago

Thanks, here's all the data. But there is no data for the second mppt in them. изображение

debug.zip

softwarecrash commented 2 days ago

in the log data is nothing about the second mppt, so there is no data for it. the second dmppt data normal comes with the QPIGS2 comand.

skavzik commented 2 days ago

I agree. But if you look at the output of the wifi device, then it is there. изображение изображение

softwarecrash commented 2 days ago

without knowing the query comand send by the wifi dongle there is no way to get this data

skavzik commented 2 days ago

Do you have any ideas how to extract them from there?

softwarecrash commented 2 days ago

it need a "middleman" grab of the serial comunication, on amazon/ebay they exsist some cheap logic analyzers that will work with saleae software

skavzik commented 2 days ago

I ordered an analyzer, and I'll be back as soon as I collect the data. thanks

softwarecrash commented 2 days ago

you can try to send over the custom comand QPIGS0 and QPIGS1 some datasheets have wiered descriptions. eventualy your device will answer on this

skavzik commented 2 days ago

I've tried these commands, but they don't work for me. thanks

skavzik commented 4 hours ago

Session 3.zip I recorded the communication of the wifi module with the inverter using Saleae Logic. But I don't know how to interpret it correctly.