ai-republic / bms-to-inverter

Use, monitor and control any battery brand with any inverter! Application to read and monitor data from BMSes and write data to an inverter using any protocol (e.g. UART, RS485, ModBus or CAN)
https://github.com/ai-republic/bms-to-inverter
Other
32 stars 6 forks source link

SMA CAN Help #34

Open ironcowboysolar opened 6 days ago

ironcowboysolar commented 6 days ago

Hi! I love what you’ve got going here. I recently built a battery pack with three Daly BMS and I am attempting to establish EXTBMS comms with SMA.

I saw your post on a forum and I have some rPi 4b’s laying around. I’m a novice in programming and raspbian. The most I’ve done on a rPi is emulation and tweak config files.

I’m also new to GitHub and I’m not even sure if this is where I post this kind of stuff.

Anyways, I’m looking for some dumbed down guidance on creating this tool. I’ll gladly support this project and I’ll send more to keep this project going and for your time.

Thanks!

ai-republic commented 6 days ago

Hi @ironcowboysolar, first of all, thanks for liking and supporting this project!!!

Before we get you up and running I have a couple of questions on your setup:

  1. Did you get your Daly BMSes specifically CAN enabled by the sales support when you bought them?
  2. What CAN adapter/hat do you have for your RPI 4B?

Best regards, Torsten

ironcowboysolar commented 5 days ago

Thanks for the response! I purchased the BMS from Amazon. They’re Daly Smart BMS with Parallel Module and the Comm interface board. The technical documentation mentioned that they were ready for both CAN and RS485.

Included is a picture of the batteries I build. I’m really hoping to be able to work this out otherwise in future builds I may switch reluctantly to Batrium.

I bought a wave share can hat.

IMG_2202 IMG_2207

ai-republic commented 1 day ago

Those boxes look great :) I have the same setup really, also with 8 Daly's with parallel module and interface board, but nime doesn't look so clean ;)

Did you already receive/install your Waveshare 2CH CAN hat? If you need any help I can assist you with that. Once that is installed you can connect all of the interface boards with RJ45 cables like you have now, but in the left ports (which are the CAN ports). Make sure you set the DIP switches for each connected interface board starting from 0 to 2. From the first BMS put a RJ45 cable in the 2nd CAN port of the interface board and from there to your can0 port of you 2CH CAN hat. You need to cut the cable and only use the wires of PIN 4 (CAN L) and PIN 5 (CAN H) to connect to the 2CH CAN hat (see following image) but I also tested PIN 1 (CAN H) and PIN 2 (CAN L) and they also work:

Daly_RJ45_CAN_pins

You count the pins from the left side when the clip of the RJ45 plug is facing down. Then you are basically ready to run the Configurator app, choose log-level debug in the general settings and then add your BMSes with IDs 1-3 on port can0. Choose inverter as NONE for now. And then start the application. Please read also the Wiki - How to use for guidance.

If you encounter any problems, just contact me :)