softwarecrash / Solar2MQTT

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

Intermittent connection #74

Closed dotumair closed 2 months ago

dotumair commented 4 months ago

A clear and concise description of what the problem is.

Hi, I'm facing intermittent connectivity in NodeMCU ESP8266. I've followed the wiring diagram from Wiki. Sometimes my NodeMCU picks up the values from my inverter and most of the time it fails, like no data.

I'm using this inverter Crown Xavier 3.6KW It's voltronic based as I can connect it to my PC using watchpower software One thing to notice is that my inverter is sending data over 6,7 volts and when connected RS-232 to TTL it comes around 5v

I've attached the logs from watchpower software.

Below is the JSON data that I've recorded once I am able to connect { "EspData":{ "Device_name":"Solar2MQTT", "ESP_VCC":3.017, "Wifi_RSSI":-70, "sw_version":"1.1.6", "Free_Heap":24928, "HEAP_Fragmentation":9, "json_memory_usage":1271 }, "DeviceData":{ "AC_in_rating_voltage":230, "AC_in_rating_current":15.6, "AC_out_rating_voltage":230, "AC_out_rating_frequency":50, "AC_out_rating_current":15.6, "AC_out_rating_apparent_power":3600, "AC_out_rating_active_power":3600, "Battery_rating_voltage":24, "Battery_re-charge_voltage":23, "Battery_under_voltage":21, "Battery_bulk_voltage":28.2, "Battery_float_voltage":27, "Battery_type":"User", "Current_max_AC_charging_current":10, "Current_max_charging_current":20, "Input_voltage_range":"Appliance", "Output_source_priority":"Solar first", "Charger_source_priority":"Only solar charging permitted", "Parallel_max_num":1, "Machine_type":"Off Grid", "Topology":"Transformerless", "Output_mode":0, "Battery_re-discharge_voltage":27, "PV_OK_condition_for_parallel":0, "PV_power_balance":1, "Device_Model":"VMII-3600", "Protocol_ID":"PI30" }, "LiveData":{ "AC_in_Voltage":234.3, "AC_in_Frequenz":49.7, "AC_out_Voltage":234.3, "AC_out_Frequenz":49.7, "AC_out_VA":0, "AC_out_Watt":0, "AC_out_percent":0, "Inverter_Bus_Voltage":334, "Battery_Voltage":24.4, "Battery_Charge_Current":0, "Battery_Percent":35, "Inverter_Bus_Temperature":35, "PV_Input_Current":0, "PV_Input_Voltage":0, "Battery_SCC_Volt":0, "Battery_Discharge_Current":0, "Status_Flag":10100, "Battery_voltage_offset_fans_on":0, "EEPROM_Version":0, "PV_Charging_Power":3, "Device_Status":10, "Solar_feed_to_Grid_status":0, "Country":1, "Solar_feed_to_grid_power":0, "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":27, "Battery_temperature":35, "Transformer_temperature":25, "Fan_speed":30, "Inverter_charge_state":"Bulk stage" } }

Kindly help as I'm stuck in this

Additional context

No response

dotumair commented 4 months ago

watchpower logs.zip

softwarecrash commented 4 months ago

hello, sounds like your rs2323-ttl is wrong or broken or not working correct, its a orginal max chip or some cheap chines fake? what says the serial /webserial log from the esp when it try to reading data?

dotumair commented 4 months ago
Screenshot 2024-03-04 at 10 20 26 PM

I think it's cheap version

also serial try to detect inverter protocol at boot and fails 3 times.

softwarecrash commented 4 months ago

you say sometimes it works, so the autodetect have a try limit. try reboot until it find the right protocol or get a answer from the device, typical it sounds a communication problem between the in verter and esp.

take a look at the chip on your pcb, the text marking tell you what it realy is

dotumair commented 4 months ago

After some reboot tries it detects the inverter and protocol is PI30.

softwarecrash commented 4 months ago

when it found the protocol the esp run normal, then you can check the serial/webserial for error log?

dotumair commented 4 months ago

When it finds the protocol it starts getting data and working fine.. everything works perfectly. The problem is when I restart or power off the nodemcu the communication is lost. After some reboot tries it again gets connected. Like there is no reliability of the connection.

softwarecrash commented 4 months ago

strange, normaly the autodetect works fine.

can you show up your wireing / setup ? the most inverters have a power line on the rj, make sure there is nore shorting that the voltage drops

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.