-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIP 8048 support (Aka Axpert max) #8
Comments
Hello, I looked into your official pipsolar integration in ESPhome. I think in order to make compatible with the PIP8048, it requires "just" to add the QPIGS2 command il the list of sent commands defined in pipsolar.h & pipsolar.cpp. The QPIGS2 command is quiet small to decode :
Another small should be nice in your orgilnal QPIGS. Just change the name of the two variables/entities as value_pv2_input_current_ and value_pv2_input_voltage_ would be added by the QPIGS2 command.... Hope you will read this msg. |
Could you provide some response examples of your device? |
I'm a bit confused. The issue title mentions a PIP8084. You mentioned a PIP9048. Could you provide an explanation? |
Sure I can :) ... I would be glad to help you. |
Sorry was a typo ... it's the 8048 (aka, axpert max I & II) |
I also maybe saw a tiny mistake in your code tor the QPIGS -> value_pv1_input_current_ ... it's scanned with a %d and should be a %f according to the manual (13th items in the scanf instructions) |
The scanf is a bit different per model/firmware/response. It's important to have some response example for improvements here. |
Ok I modified all your code to add the QPIGS2 command and everything related.... It's compiling fine :) Need to wait sun to test results on my PIP8048. I am really impressed by your general programming level skills.... A masterpiece. |
I'm not the author. Just a contributor. Like you? ;-) |
Common :) .... you did the JKBMS & the PIPsolar :).... there are masterpieces... |
Hi before to test my modification, I am trying to collect at least some informations from the official pipisolar integration Very strange..... I collected this log :
with the following basic yaml file
Seems I am receiving anything .... If I unplugged the RJ45 from the inverter .... I continue to receive a CRC OK .... so there is a big problem somewhere.... |
Hi @syssi, I solved my problem of bad wiring and also tested my fork to integrate the GPIGS2 command. It works perfectly.... |
Hi @syssi Got a new question concerning the PIPsolar integration. With my PIP8048, I need to define the BATTERY_BULK_VOLTAGE output command. In a first attempt, I added the new command in the output/__init__py file pointing the PCCV command as decribed in the manual. It compiles fine... and I can see in the log that the command is correctly sent .... but no changes in the associaced QPRI command after a while. For the battery_float_voltage it's working... Here is my output/__init__py
|
Could you provide the manual another time? The wetransfer link isn't available anymore. Are you sure the command is called |
Here is : https://drive.google.com/file/d/112Adm0MECE3c6t64uYWZcAL4N0FucdSJ/view?usp=sharing p21 .... |
Mea culpa it's PCVV and not PCCV :) |
I've pushed your customized version to the feature branch
|
Hi @syssi, just reading more deeply the axpert max protocol manual, and I discovered a very interesting output command "PBATCD" which allow to enable/disable charging/discharging for the inverter. I think it can be extremely usefull for example with my PVbrain coupling a BMS and inverter. For example when the float voltage is reached, thanks to this command we can disable charging to let the BMS do his balancing job. In fact to be more general we can do "smarter" the couple inverter,BMS like can allow CAN exchanges with a seplos BMS for example |
To be more précise
I would like to choose between PBATCD 111 and PBATCD 110 |
I think the custom select written by @andreashergert1984 could be modified to add the PBATCD with something like
|
Hallo,
|
Please try a clean build:
And please make sure you are using the latest ESPHome version. It looks like your ESPHome install is a bit outdated and probably doesn't support |
Thank you for your repply. I was use esphome version 2021.10.x which is last in Home Assistant. Today I install last stable version from github (2022.6.2), use Clean build files and Install. Now it has compile without problems. Thank you |
Good evening, QPIGS: Device general status parameters inquiry PPPPP Battery discharge current P is an Integer ranging from 0 to 9. The units is A. Thank you Petr |
Good afternoon, |
Could you provide example requests and responses of the values you are looking for? |
For year, month and day is required date and I suggest querry for this year, this month and today. |
Could you elaborate your bad wiring? I have this exact same problem with my inverter but I've tried three different TTL converters and all possible wiring and config options. I can't believe I've missed something but you never know... |
Hi all, recently I moved fron my old axpert VMII 24V to a MAXII 8KW, than you so much for make my life good doing this. |
I will try to modify the custom select in order to add & test the chargin/discharging options... |
@rem72 I modified the custom select to accept the
Need to be tested |
Hi, I tried to compile but havin' errors: |
This is the only code I've changed:
|
Hummmm strange .... coz it's compiling for me. Are u sure to have the refresh: 0s option in the external component part ? |
Hi, I'm still havin' the same issue. I Tried cleaning build files.
|
I tried also creating a new device from 0, but the same compilation issue. |
I think this line is for the pipsolar.h:
Can you check them and update the fork? |
Well ... was compiling with my current... version. I updated the ESPhome dev now I got the error... effectively I forgot some element in the main pipsolar files. |
Hummm seems a bit more complex as expected :( |
Need also to implement the QBATCD sensor command as well |
Well .... I added the QBATCD command in the loop .... but I think the select is not fully functionnal. @syssi can you help me ? espcially around line 444 in pipsolar.cpp I don't know how to handle this part with the select... |
I will have a look but it will take some time. |
@SeByDocKy Can you share your wiring solution ? I also do not seem to be able to connect to my 8048 MAX. I have latest provided example / firmware flashed to ESP32, using GPIO pins 1 and 3 (as are default in example). ESP32 -> RX goes to TX, TX goes to RX -> TTL Adapter female DB9 -> straight male to male DB9 -> female DB9 RS232 to RJ45 official cable. Is the oficial cable not good ? Saw somewhere that between the male and female DB9 connectors the RX and TX are inversed. The official cable pinout are RJ45 (1-TX,2-RX,4-VCC12v,8-GND) -> DB9 (2,3,VCC12v not connected, 5) tested for continuity. Does RX and TX need to be inversed between the official cable and the TTL DB9 connector ? meaning RJ45 (1,2,8) -> DB9 (3,2,5) ? The single led on the TTL adaptor does not blink at all. |
You have to know some RS232 converter have TX,RX pins inverted.... For me it's the main source of problem. Some are for "straight" RS232 câbles, some for crossed ones. |
@dr3amr you will be able to find my wiring in my github : https://github.com/SeByDocKy/ESPhome |
My 2 cents: If you have the choice please use a RS232 converter board with 3.3V TTL f.e. MAX3232. |
I am, I am using an adapter similar to one bellow, it is powered from ESP32 side via 3.3v as shown in previous update's picture. Problem is, there is no writings on the adapter to let user know which pin is expecting to be TX and which RX ... thus the problem. I need to find a way to reverse TX and RX coming from the Inverter via the RJ45 cable. Also another question, is it normal that one of the RX or TX (pin 2 or 3 do not recall) has 12v when measured with the GND (pin 5) on the DB9 connector (RJ45 - DB9 official cable) ? |
You can check the continuity between MAX3232 and the RS232 jack. The specifications of the MAX3232 will be clear. Yes, the RS232 interface has a logic level of +12V/-12V:
https://www.ti.com/lit/an/slla544/slla544.pdf You should be able to measure/see (TX PIN2 <-> GND PIN5) the outgoing traffic ( |
@syssi @SeByDocKy Checked and seems TX pin 1 (RJ45) is reaching Pin 2 (RS232 female) on cable end, then straight connection to pin 2 of the TTL Adapter (RS232 female), then goes to pin 14 (T1 OUT of MAX3232 (should be to R1 IN?). Also RX pin 2 (RJ45) is reaching Pin 3 (RS232 female) on cable end, then straight connection to pin 3 of the TTL Adapter (RS232 female), then goes to pin 13 (R1 IN of MAX3232 (should be to T1 OUT?) ? Forgive me as I am new to this :( 11 | T1 IN | Transmission pin of first converter module for Microcontroller(Tx) |
@syssi @SeByDocKy I was able in the end to fix communication. Understanding which pins go from the RS232 female connector to the MAX3232 Adapter was key. Also another key point was understanding that the CROSS communication (RX-TX, TX-RX) is needed between inverter and the MAX3232 TTL Adapter, and from the Adapter to the ESP32 card it needs to be STRAIGHT (RX-RX, TX-TX). Question: which sensor tells when inverter is either consuming from GRID or is in Bypass GRID mode ? |
There is not direct information from any command to know if it's in grid-tied or not but you can do a basic binary_sensor testing for exemple with the frequency information
|
@SeByDocKy Hi, I do not mean when GRID is connected or not. I want to know when Inverter consumes / takes energy from GRID (connected is almost all the time) and how much. There are sensors for AC Output, could there also be an AC Input Power for example ? Should be 0w when power is taken from Battery or Solar, but should have >0w when for example "Charger_source_priority" is set to Solar and utility, and not Solar only, and battery level is low (cloudy day, low production from solar). |
Neither sensor as well :( .to know how much from Grid the inverter takes... |
At least we have Device_mode which matches with the LED strip. Values: "B" (Battery - turquoise), "L" (Grid-line/Bypass - magenta), and I think also "S" (Solar - white). Will check the solar part tomorrow when there is some sun (light). Depending on the mode and both battery and pv output w, you can figure from which source the ac_output_active_power W are from. In "L" mode power is 100% from ac / grid (as we are in Bypass mode). |
Hello,
Amazing job you did .... Is-il possible to extend your work to support as well the PIP8048 (axpert max I & II). Protocol changed just a bit...... In general in your amazing work, will be fantastic to have an option to choose a particular PIP model even if I understood it's a huge work to be compatible with all PIP models
Here is the link for the PIP8048 protocol : https://www.transfernow.net/dl/202112112SpO2rcW
I did a custom sensor for it... but you work is even better....
Kind regards,
The text was updated successfully, but these errors were encountered: