Comments (7)
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.
from esphome-pipsolar.
from esphome-pipsolar.
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.
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.
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.
Summary: The Axpert MK IV / Voltronic MK IV is compatible with the pipsolar
component.
from esphome-pipsolar.
Related Issues (20)
- Add measurement
- Conection lost HOT 1
- pipsolar + jk_bms HOT 1
- esphome reports "unknown" when inverter shuts down or on its own sometimes HOT 1
- Pooling command for P18 wrong HOT 1
- Question regarding ttl RS485 adapter HOT 4
- set_level action expects a percentage and clips values above 1.0 HOT 4
- Qoltec 6KW (PI30) - timeout QPIGS other works HOT 3
- Adding external componen not found HOT 4
- MPI 10k integration
- pipsolar ac_output_active_power HOT 1
- Apiconnectionerror HOT 2
- Inverter Log HOT 1
- Component jk_modbus took a long time for an operation.... and cause esp to halt after sometime HOT 2
- Pipsolar inverter pv1 and pv2 HOT 1
- Hybrid Solar inverter 8.2kw/10.2KW HOT 31
- Fronus PV7200 - CRC NOK expected HOT 13
- Axpert_KSMKSV_RS232_Protocol HOT 8
- PIP 8048 zero values HOT 4
- WKS evo cirlce HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-pipsolar.