Git Product home page Git Product logo

Comments (7)

nuvolare12 avatar nuvolare12 commented on September 24, 2024 1

Hello VirtualFab, i tried to invert RX with TX, and now it's working. For the Power supply i'm using the usb connector for the mobile phone, but i want to use a Step-down, i'll try the pin 5 from the RJ45, but i've to check were this pin go to the rs232

from esphome-pipsolar.

nuvolare12 avatar nuvolare12 commented on September 24, 2024

I'm so getting timout
esp

from esphome-pipsolar.

nuvolare12 avatar nuvolare12 commented on September 24, 2024

IMG_20221206_104819
And this are the connection

from esphome-pipsolar.

VirtualFab avatar VirtualFab commented on September 24, 2024

Hi I had the timeout issue and solved swapping Tx and Rx, but now it seems to correctly talk to the inverter, only to read zeroes!
In fact now my logs look like these:

INFO Reading configuration /config/esphome/voltronic1.yaml...
INFO Starting log output from pipsolar/debug
INFO Connected to MQTT broker!
[09:57:35][D][sensor:127]: 'pipsolar output_mode': Sending state 0.00000 with 1 decimals of accuracy
[09:57:35][D][uart_debug:158]: >>> "QPIGS\xB7\xA9\r"
[09:57:35][D][pipsolar:838]: Sending polling command : QPIGS with length 5
[09:57:35][D][uart_debug:158]: <<< "QPIGS\xB7\xA9\r"
[09:57:35][D][pipsolar:772]: checking crc on incoming message
[09:57:35][D][pipsolar:775]: CRC OK
[09:57:35][D][pipsolar:448]: Decode QPIGS
[09:57:35][D][sensor:127]: 'pipsolar grid_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar ac_output_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar ac_output_apparent_power': Sending state 0.00000 VA with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar ac_output_active_power': Sending state 0.00000 W with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar output_load_percent': Sending state 0.00000 % with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar battery_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar battery_charging_current': Sending state 0.00000 A with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar battery_capacity_percent': Sending state 0.00000 % with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar inverter_heat_sink_temperature': Sending state 0.00000 °C with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar pv_input_current_for_battery': Sending state 0.00000 A with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar pv_input_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar battery_voltage_scc': Sending state 0.00000 V with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar battery_discharge_current': Sending state 0.00000 A with 1 decimals of accuracy
[09:57:35][D][sensor:127]: 'pipsolar pv_charging_power': Sending state 0.00000 W with 1 decimals of accuracy
[09:57:36][D][uart_debug:158]: >>> "QMODI\xC1\r"
[09:57:36][D][pipsolar:838]: Sending polling command : QMOD with length 4
[09:57:36][D][uart_debug:158]: <<< "QMODI\xC1\r"
[09:57:36][D][pipsolar:772]: checking crc on incoming message
[09:57:36][D][pipsolar:775]: CRC OK
[09:57:36][D][pipsolar:471]: Decode QMOD
[09:57:36][D][text_sensor:067]: 'pipsolar device_mode': Sending state 'M'
[09:57:37][D][uart_debug:158]: >>> "QPIRI\xF8T\r"
[09:57:37][D][pipsolar:838]: Sending polling command : QPIRI with length 5
[09:57:37][D][uart_debug:158]: <<< "QPIRI\xF8T\r"
[09:57:37][D][pipsolar:772]: checking crc on incoming message
[09:57:37][D][pipsolar:775]: CRC OK
[09:57:37][D][pipsolar:429]: Decode QPIRI
[09:57:37][D][sensor:127]: 'pipsolar grid_rating_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[09:57:37][D][sensor:127]: 'pipsolar output_source_priority': Sending state 0.00000 with 1 decimals of accuracy
[09:57:37][D][sensor:127]: 'pipsolar charger_source_priority': Sending state 0.00000 with 1 decimals of accuracy
[09:57:37][D][sensor:127]: 'pipsolar output_mode': Sending state 0.00000 with 1 decimals of accuracy

What's wrong?

from esphome-pipsolar.

VirtualFab avatar VirtualFab commented on September 24, 2024

Ok, my fault, I didn't recognized in my logs that for example
[09:57:35][D][uart_debug:158]: >>> "QPIGS\xB7\xA9\r"
[09:57:35][D][pipsolar:838]: Sending polling command : QPIGS with length 5
[09:57:35][D][uart_debug:158]: <<< "QPIGS\xB7\xA9\r"
I was receiving the same exact data I was sending, so it was clear Tx and Rx were somehow in a loop connection.
I simply reswapped Rx and Tx (that I swapped on the ESP32 side) and then swapped them on the MAX3232 pins on the RS-232 side-
This led to the correct connection:

[11:11:39][D][uart_debug:158]: >>> "QPIGS\xB7\xA9\r"
[11:11:39][D][pipsolar:838]: Sending polling command : QPIGS with length 5
[11:11:40][D][uart_debug:158]: <<< "(233.7 49.9 233.7 49.9 0771 0750 013 376 50.20 011 026 0027 01.9 334.0 00.00 00000 00010111 00 00 00663 010\xD3}\r"
[11:11:40][D][pipsolar:772]: checking crc on incoming message
[11:11:40][D][pipsolar:775]: CRC OK

So now the whole thing is working, thank you!

from esphome-pipsolar.

VirtualFab avatar VirtualFab commented on September 24, 2024

Hi nuvolare12, after having solved my issue I reviewed your pictures and I noticed that there is no power supply.
How do you power up the whole thing?
I power my ESP32 using the 12V that is available on pin 5 of the RJ45 connector from the inverter, fed into a step down DC/DC converter adjusted on 5.00V.
I think that also a 7805 regulator should work, but I didn't tried to feed 12V to the on-board ams1117 LDO regulator of the ESP32 because it expects the standard USB 5V in input and I'm afraid something could go wrong if you feed 12V on that pin.
I have not other ideas, please let us know if it works as expected as in my case (WONDERFUL!)
Ciao

from esphome-pipsolar.

syssi avatar syssi commented on September 24, 2024

Summary: The Axpert MK IV / Voltronic MK IV is compatible with the pipsolar component.

from esphome-pipsolar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.