I’ve done something similar with my Delta Solivia inverter, where I’m also just sniffing existing packages between my Solivia Gateway and the inverter.
I made an ESPHome modbus custom component for this.
You could take a peek at my solution if you wan’t some input
Thanks for your input!
That’s the exact same way I’ve gone about doing it. I found it by accident in another thread on this forum. And why reinvent the wheel
I’ve got it working so far, just have to map all the values to esphome sensors. The foxess inverter is giving out some not needed datastreams, which I will have to filter out as well. But that should be easy.
You’re welcome
Just no need for you to be banging your head and try to reinvent the wheel - again.
I did that, for quite a few days, until I managed to put together a working solution
Yep. I also search for a specific 6 bytes response in the uart buffer and delete first byte if there’s not a match and loop. When there’s a match, i wait until buffer is filled and parses the package.
@assembly , thanks for your work.
however, I’m trying to setup it and failing. Basically, the difference with your setup is that I power it from USB and don’t connect 12V/GND from inverter, so not using buck converter. The led on rs485 adapter is always on and not getting any data. I’ve tried to comment out custom component and leave debug only, nothing comes in. P.s. inverter is running Any hint would help.
have you tried swapping RX and TX? This can be done in the YAML, no need to change any wires around.
I think (but i’m not sure) it is necesary that your circuit and the inverter have a common ground. So even if you power your circuit by an external USB power supply, you should still connect the pin 5 from the inverter to the ground of your circuit. If you have a buck converter lying around i would just try powering it from the 12V from the inverter. In my oppinion that’s the neatest solution.
Are you using the same rs485 adapter as in my opening post? If so, it’s normal that the led is on all the time. This module doesn’t have any visual confirmation that data is being send.
@assembly Amazing! Works like charm on T series G3 with esp8266 and software serial on pins 4 and 5, dc-dc power from invertor’s 12V. So nice instructions to build hardware, did not even need to dig for install manual. Thank you very much! Finally can live without foxess cloud!
Thanks for hint. Unfortunately, that didn’t help. I’ve tried ESP32, ESP8266 (Wemos D1) and swapping multiple MAX485 adapters and even ESPs, no signal. Tried swapping RX/TX, cables, etc… even added logic level converter and powered adapter with 5V. What I didn’t try yet is to replace usb adapter/cable. Don’t have buck converter laying around to try. Even asked FoxEss to update firmware. I need to try finding adapter maybe from different batch or different model. otherwise I’m out of ideas
Do you still have the Foxess Wifi module plugged in to the inverter?
You could try it once without it.
I didn’t have to change any parameter on the inverter.
I’ve disconnected Wifi adapter and tried again (different combinations). Nothing changed. So it must be max485 or inverter does not set data. I’ve checked with voltmeter and there is some voltage on A & B, and it’s changing, so I’d assume some signal is being sent, but I don’t see any data coming on esp. I’ll see if I can source something different and will try again…
Btw, does anybody knows if Foxess LAN adapter would have modbus server reachable from network?
I tried hooking the convert up to known working rs485 USB adapter and I got nothing.
I order a different converter it should arrive on Tuesday or so. I will see then if it was the problem.