Hi.
Tell me please, how did you manage to make two CAN modules friends via UART ports? I use the Wemos D1 mini board. If there is only one esp32_can, it works. I add the second esp32_can and both do not work. Maybe the problem is in the ESP32 board? Here is part of my yaml:
esphome:
name: deye-bms
friendly_name: deye-bms
#comment: ESPHome_For_Deye_SE-G5.1Pro
esp32:
board: wemos_d1_mini32
framework:
type: arduino
# Enable logging
logger:
baud_rate: 0 # disable UART logger
level: WARN
# Enable webserver
web_server:
port: 80
version: 3
log: true
ota: false
# Enable Home Assistant API
api:
encryption:
key: "************************"
ota:
- platform: esphome
password: "*****************"
wifi:
ssid: *******
password: *******************
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "deye"
password: "*********"
#spi:
# id: MspSpi
# clk_pin: GPIO18 # Change to your wiring needs
# mosi_pin: GPIO23 # Change to your wiring needs
# miso_pin: GPIO19 # Change to your wiring needs
canbus:
###############################################
# Порт IN (250KBPS), зовнішній модуль MCP2515 #
###############################################
#- platform: mcp2515
# id: mcp2515_can
# spi_id: MspSpi
# cs_pin: GPIO17 # Change to your wiring needs
# mode: LISTENONLY
# clock: 8MHZ
# use_extended_id: True
- platform: esp32_can
id: in_can
# use_extended_id: True
tx_pin: GPIO23 # CAN HIGH YELLOW
rx_pin: GPIO22 # CAN LOW LIGHT-YELLOW
can_id: 100
bit_rate: 250KBPS
on_frame:
# Напруга комірок
- can_id: 0x02098001
...
...
...
###################################################
# Порт PCS (500KBPS), внутрішній CAN на ESP32_CAN #
###################################################
- platform: esp32_can
id: pcs_can
tx_pin: GPIO05 # CAN HIGH BLUE
rx_pin: GPIO04 # CAN LOW LIGHT-BLUE
can_id: 200
bit_rate: 500KBPS
on_frame:
# Параметри заряду/розряду аккумулятора
- can_id: 0x351
...
...
Thank you for your answers.