Closed AkinysSurf closed 7 months ago
Welcome here! :-) As first step please check your wiring. One thing is strange:
[15:30:01][D][uart_debug:158]: >>> "QPIGS\xB7\xA9\r"
[15:30:01][D][uart_debug:158]: <<< "QPIGS\xB7\xA9\r"
[15:30:02][D][uart_debug:158]: <<< "(223.2 50.0 000.0 00.0 0000 0000 000 001 03.30 000 000 0032 00.0 000.0 00.00 00000 00000000 00 00 00000 000\xFB\xB8\r"
If your ESP sends ( >>>
) the request QPIGS
the same word/command is received <<< QPIGS
immediately. This isn't normal and looks like a local echo / short circuit between RX & TX.
If I disconnect any wire (tx or rx) then this uart debug string
[15:30:05][D][uart_debug:158]: <<< "(223.2 50.0 000.0 00.0 0000 0000 000 001 03.40 000 000 0032 00.0 000.0 00.00 00000 00000000 00 00 00000 000\x80L\r"
dissapears, so I assumed that wiring is correct.
Yes, this line is a valid response from your inverter:
[15:30:05][D][uart_debug:158]: <<< "(223.2 50.0 000.0 00.0 0000 0000 000 001 03.40 000 000 0032 00.0 000.0 00.00 00000 00000000 00 00 00000 000\x80L\r"
If you disconnect the inverter this response cannot reach the ESP anymore but this isn't the point.
I'm talking about this traffic:
[15:30:01][D][uart_debug:158]: >>> "QPIGS\xB7\xA9\r"
[15:30:01][D][uart_debug:158]: <<< "QPIGS\xB7\xA9\r"
If you send the command QPIGS
to the inverter it should respond immediately with (223.2 50.0 000.0 00.0...)
.
Therefore my guess is there is a short cut between the RX and TX pin of your ESP. If the ESP sends (TX) QPIGS
it can hear (RX) himself. If you remove all wires from the ESP do you still see the incoming <<< QPIGS
message?
Maybe something wrong with rs232 converter - I am using inverter useless wifi module - desoldered wifi part and connected esp pins to max3232 pins.... I will try with different rs232-ttl converter, aliexpress package will arrive soon.
Finally, after yours tip to disconnect tx/rx from esp, I found that echo occurs in my TTGO Lora without any connection to max3232 :)
It was on tx_pin: GPIO18 rx_pin: GPIO19
Changed to tx_pin: GPIO17 rx_pin: GPIO16 and now it works.
Thanks for help
Perfect! Let's close this issue.
Hi,
Inverter https://daxtromn-power.com/products/special-offer-6.2kw-hybrid-solar-inverter-pure-sine-wave-220vac-output-48vdc-input-120a-mppt-solar-charger-controller-6200w-european-union-stock-fast-ship
With esp32 setup example uart debug shows real and changing values, but only zeroes a sent to HA Here some log fragment