klatremis / esphome-for-deye

Esphome component for Deye 3 phase inverters for Home Assistant
113 stars 30 forks source link

Duplicate modbus command found #11

Closed manalishi70 closed 7 months ago

manalishi70 commented 1 year ago

I got this message:

11:27:41 | [W] | [modbus_controller:113] | Duplicate modbus command found: type=0x3 address=676 count=4 and in addition: Modbus CRC Check failed. I get this message for many registers. Do you have a clue what causes this ? Just found out: Duplicate command appears if I use switches too fast so I guess update interval. sensors seem to cause the CRC Check failed msg. Meanwhile I see the values of the registers. It was related to the esphome version I used for compiling. I updated to the latest and it works now. CRC and Duplicate messages still there, but I went down to 1 sec interval. It seems it doesn't make a difference compared to 10 or 15 sek.
manalishi70 commented 1 year ago

It's been a HW issue. I switched RS485 Adapters from https://www.amazon.de/-/en/DollaTek-MAX485-Module-RS-485-Development/dp/B07DK4QG6H/ref=pd_bxgy_img_sccl_2/261-1531827-5478614?pd_rd_w=xM2UP&content-id=amzn1.sym.1fd66f59-86e9-493d-ae93-3b66d16d3ee0&pf_rd_p=1fd66f59-86e9-493d-ae93-3b66d16d3ee0&pf_rd_r=55RE4DJDEPXP1NY7QFVE&pd_rd_wg=kzFXG&pd_rd_r=9dee2802-eb23-416c-a04f-4d146e343b61&pd_rd_i=B07DK4QG6H&psc=1

to (https://www.amazon.de/-/en/dp/B09VGJCJKQ?psc=1&ref=ppx_yo2ov_dt_b_product_details )

I have to use 5V. 3.3V didn't give any sensor results

keldbroe commented 1 year ago

Strange thing. I've tried to replace the PSU to a normal 230V-USB adaptor, and it seems to fix the problem. I've noticed that, when I have the problems the TTL/RS-485 board is VERY hot. So hot so I can burn my finger. When it worked the temperature was not noticeable. Could you try that? Or as a minimum try to touch the TTL/RS-485 board briefly.

bagges commented 11 months ago

This also happend to me, but it was mostly related to bad power supply. CN2 7/8 pins are also just rated about 100mA.

What also sometimes helpes is to add 120 ohm termination on the rs485 module. Most modules have a solder bridge for the termination.

MyHekla commented 11 months ago

This also happend to me, but it was mostly related to bad power supply. CN2 7/8 pins are also just rated about 100mA.

well that explains the voltage drops and noise I have been measuring. Powering via CN2 seems to have been a bad idea.

klatremis commented 7 months ago

As said in https://github.com/klatremis/esphome-for-deye/issues/3

My suggestion is:

Use external usb supply, or a step down adaptor from 12V in the inverter to 5V Usb Try another supplier of rs485/ttl board