loopyengineeringco / Daly2Sofar

ESP32 bridge allowing Daly Smart BMS to be used with a Sofar inverter/charger (and others that use SMA CANBUS protocol).
28 stars 3 forks source link

Not able to start CAN communicaton #6

Open 197Fabian opened 8 months ago

197Fabian commented 8 months ago

Hello,

I am stuck with the following problem. The complication of the software has worked for me without problems, also the retrieval of data from the Daly BMS Works for me. However, when running the software, the ESP always hangs at the following command: sendCanTXFrame(XXXXX); image

The first three commands run through but then the following function no longer works:

ESP32Can.CANWriteFrame(&tx_frame); image

Can someone help me here?

Hardware: -SMA Sunny Island 4.4M -Wemons D1 ESP32 Mini/clone -SN65HVD230 CANBUS Tranceiver -RJ45 breakout -SSD1306 i2c OLED -DALY BMS

loopyengineeringco commented 8 months ago

Hi, Does it freeze there only while connected to canbus or also when not connected? It's good to rule out a physical canbus issue. Is it possible that the canbus baud is mismatched? I only ever tested it with my Sofar inverter which requires 500KBPS.

197Fabian commented 8 months ago

Hi,

the error always happens no matter if the inverter is connected or not. Furthermore, the display never shows a CAN connection.

After two times executing the sendCanTXFrame Function the ESP Stops at the sendCanTXFrame function

Sunny Island 4.4m requires the following: Values to Sunny Island must not be sent out faster than every 200msec (inhibit time). CAN data is transmitted with encoding in little endian - low byte first – unless stated otherwise

other information I don´t find.