Update on my end, got BLE working to 2 BMS, but cant get CAN online to inverter:
Code:
[01:19:36][E][component:082]: Component canbus is marked FAILED
Inverter Brand : Midnite
Inverter Model : MN15-12KW-AIO
Inverter battery mode : Pylon 1.2
BMS model : jk-pb2a16s20p
BMS protocol : BLE
RS485 board : not sure, kit model
ESP32 board : ESP32-S3 DevKitC-1 Waveshare
CAN name : Automatic
CAN protocol : PYLON 1.2
CAN transceiver : MCP2515
Multi-BMS : yes
This setup works fine natively just using CAN from BMS to Inverter on Pylon protocol with a straight 568B CAT5 cable.
If I get this working, the hardware will probably be of interest:
Industrial 6-Channel ESP32-S3 WiFi Relay Module, Supports WiFi / Bluetooth / RS485 control, Onboard RS485 / Pico HAT interfaces | ESP32-S3-Relay-6CH
www.waveshare.com
https://www.waveshare.com/Pico-CAN-B.htm (MCP2515 CAN module)
Available on Amazon prime (vs 10+ day to get an Atom)
I used board_esp32-s3-devkitc-1_mcp2515.yaml
My CAN config:
Code:
spi:
# BUS SPI 1
- id: bus_spi1
mosi_pin: 7
miso_pin: 4
clk_pin: 6
canbus:
# CANBUS NODE 1
- platform: mcp2515
spi_id: bus_spi1
id: canbus_node1
cs_pin: 5
can_id: 2
bit_rate: 500kbps
GPIOs on this board are:
I wired solid blue (RJ45 pin 4) to CAN_H, and white/blue (RJ45 pin 5) to CAN_L The docs on the BMS and the inverter both indicate the CAN pinout is on the center pair. I also tried with the 120ohm jumper on and off. Attached are configs. I'm a network tech by trade, so making cables is my thing.