BorisBrock / HeidelBridge

Integrate your Heidelberg wallbox into your home WiFi network with ease
GNU General Public License v3.0
6 stars 1 forks source link

Modbus Connection Issue with Heidelbridge - Wallbox Flashing White and Blue #2

Open darkblum opened 1 month ago

darkblum commented 1 month ago

Unfortunately, I am unable to establish a connection through the Heidelbridge.

I followed your instructions carefully:

However, the Wallbox is still flashing white and blue, indicating a Modbus error.

I also added a 120-ohm resistor between Pin A and B, but there has been no change.

Did I overlook something?


Let me know

BorisBrock commented 1 month ago

Hi darkblum, there are several things to check:

  1. Please double check, that the Heidelberg wallbox is configured correctly. See the official manual here or this guide.
  2. Make sure the connection between the wallbox and your rs485 board is correct (wires not crossed? all wires firmly secured? 120 Ohm resistor? Shielding only connected at one end (wallbox)?).
  3. Check your ESP32+RS485 setup: are the modules properly interconnected? Did you use the correct pins?

Please also check the ESP32 serial port outputs. It should print a lot of messages (especially on startup), that might be helpful.

Also: what kind of setup are you using? Breadboard or custom PCB? Which ESP32 board are you using exactly?

darkblum commented 1 month ago

Hello BorisBrock,

I've managed to establish the correct connection to the wallbox. Initially, I thought that the A/B connection on the left and right sides of the PCB had the same orientation, but that wasn’t the case. On the left side, it’s B/A, while on the right side, it’s A/B. So now, there's no more blinking.

I’ve also integrated the charger into EVCC and set up the load point, but my EV isn’t registering as "connected." The vehicle status always shows as "disconnected," and I’m getting the information through MQTT. My EV is entering a charging failure state due to no current being supplied and I don't hear the relais clicking from the Heidelberg.

I am using ESP32 WROOM-32D with usb-c connector and no breadboard only jumper cables and WAGO connectors.

What should I check next?

BorisBrock commented 1 month ago

Hi darkblum, good to hear that the Modbus connection is now working :+1:

I'm using this project with a VW ID3 and the vehicle connection detection works 100% reliably. This week I also connected a Skoda Enyaq from a neighbor and that also worked very well. Which car are you using?

For solving your issue, I would recommend reading the serial outputs from the ESP32 with a serial monitor. HeidelBridge will read the register containing the connection status cyclically every few seconds, and there should be plenty of messages. This way we can see, if the wallbox is not detecting your vehicle at all, or if reading the register fails.

So:

PS: Do you see other values from the wallbox in evcc? Did you check the MQTT values (e.g. with MQTT Explorer)? Do you see valid values here?

darkblum commented 1 month ago

Hi,the car I’m using is a Tesla Model 3. Ideally, I’d like the wallbox to charge different guest vehicles as well, so it would be best if no specific vehicle was predefined. I’m receiving new inputs via MQTT every few seconds, but all values are showing as 0.

I’m using MQTT Explorer with Home Assistant, and I plan to analyze the logs later using VS Code/serial monitor or do you've a better idea to use serial monitor?

Thanks for the help!

BorisBrock commented 1 month ago

Hi, it should not make any difference which car you are using. Only if you want it to show up in evcc in a defined way, you would need to do some additional configuration there. But regarding HeidelBridge/Home Assistant there is nothing to do here.

The VS Code Serial Monitor should work fine. That's what I'm using as well.

PS: When compiling the code you can choose between two environments: "dummy" and "heidelberg". You could also try using "dummy", which will provide some hard coded values. These should definitely show up in MQTT/Home Assistant. For communicating with the real wallbox, make sure to compile the "heidelberg" environment though.

nobsch commented 2 weeks ago

Hello, first of all thank you for the great project. Unfortunately my Heidelberg EC is also blinking the Modbus Failure. It starts when configuring the Wallbox for Modbus and never ends. I checked the DIP Switches several timesI tried different rs232-Modbus Converter and also the wiring. No change. The crazy thing is, that the HeidelBridge can read the Wallbox (Temperature, Power) and write the charge current. So in fact the communication should be OK. But the Wallbox is continously blinking and the connection to the car is not recognized. No charging. When I change the configuration of the Wallbox (S4,S6) all is fine. Do you have a hint for me?

BorisBrock commented 2 weeks ago

@nobsch First of all you should check what kind of error you are getting EXACTLY. The different blink patterns are described in the Heidelberg EC manual (chapter 1.6).

The installation manual has all the relevant info on setting the dip switches etc. Just in case you want to double/tripple check.

Regarding heidelbridge:

Feel free to attach an example log here (don't forget to press reset on the ESP32, so that the log also contains the initialization part).

nobsch commented 2 weeks ago

Thank you Boris. Error Code is the communication failure (6x White, 3xBlue). I have checked the dip Switches several times. Because there are only 2 changes to do, it is not so complex. The heidelbridge is compiled with heidelberg environment. Because the heidelbridge is communicating i am not convinced that the log files will help. I will try to get information over the serial interface. But it will last a little bit

nobsch commented 6 days ago

Now I have tried it. This is debug: --- Terminal on /dev/ttyUSB0 | 115200 8-N-1 --- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time --- More details at https://bit.ly/pio-monitor-filters --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H [DEBUG] Read Heidelberg failsafe current: 6.000000 [DEBUG] Heidelberg wallbox: Read energy meter value: 0.000000 Wh [DEBUG] Reading currents: 0.000000 0.000000 0.000000 A [DEBUG] Reading voltages: 233.000000 231.000000 229.000000 V [DEBUG] Heidelberg wallbox: Read state: 10 [DEBUG] Heidelberg wallbox: Read max. charging current: 0 [DEBUG] Reading power meter value: 0.000000 W [DEBUG] Read Heidelberg failsafe current: 6.000000 [DEBUG] Heidelberg wallbox: Read energy meter value: 0.000000 Wh [DEBUG] Reading currents: 0.000000 0.000000 0.000000 A [DEBUG] Reading voltages: 234.000000 231.000000 229.000000 V [DEBUG] Heidelberg wallbox: Read state: 10 I can see no Problem. The Heidelberg is still blinking the communication failure. Do you have any idea?