Communication protocols between microcontrollers for a BMS
I’m after some recommendations for a communication protocol between two stm32’s. One will be on a BMS board controlling a battery monitor IC and reading a fuel gauge and another will be on a seperate board with a charger and a power supply. The communication will mainly be the BMS stm32 sending battery statistics to the other board but there could be some two way communication. My plan is to make the BMS board standalone so it may not always be communicating with another stm32. I was originally thinking just UART but a quick google shows that CAN or SMBus may also be popular. I’m not sure of the advantages or disadvantages of going with different protocols. I haven’t used CAN or SMBus before but I could definitely look into it if that’s a better way to go. There might also be a possibility in the future for me to stack multiple BMS boards together to get more power output if that sways the decision on the communication protocol.
