Page 1 of 1

Flying ADC 16 channel BMS pdobase change

Posted: Thu Jul 18, 2024 8:17 pm
by mario
Hello everyone,

I have a 96s battery that I want to monitor and balance using Flying ADC BMS. I'm using 6 boards from OI shop and have them chained together using CAN.
BMS is connected to vehicle CAN in a BMW e39 and because there is BMW DSC message with 0x1F5 id, I would like to change default master pdobase id to 0x1E4 because default BMS address for submodule 1 is 0x1F5.

Problem is that pdobase parameter change on master board is not persisted after changing it with oic write and repowering BMS board.

I'm using RPi5 with SocketCAN and oic tool connected to CAN using Kvaser Leaf Lite HS v2 adapter.
CAN communication is working great.

Here is output of oic scan command:
I'm changing address on nodeId 10 - that should be master board.

Code: Select all

Scanning for devices. Please wait...

Found possible openinverter node: 118
Found possible openinverter node: 121
Found possible openinverter node: 117
Found possible openinverter node: 116
Found possible openinverter node: 119
Found possible openinverter node: 120
Found possible openinverter node: 122
Found possible openinverter node: 10
Found possible openinverter node: 11
Found possible openinverter node: 12
Found possible openinverter node: 13
Found possible openinverter node: 14
Found possible openinverter node: 15
Here is result after setting parameter to 1E4
oic -n 10 write pdobase 448
oic -n 10 pdobase

Code: Select all

pdobase             : 448 []
And after restart we are back:

Code: Select all

pdobase             : 500 []
The BMS units I received from the OI shop were shipped with firmware version 0.16.B pre-installed - thanks @johu.

I would like to do this before connecting BMS to the battery and I appreciate any insights or suggestions you might have.
Thank you in advance for your help!

Re: Flying ADC 16 channel BMS pdobase change

Posted: Sat Jul 20, 2024 9:03 am
by johu
So the write command only writes to RAM! To make it persistent you need to issue

Code: Select all

oic -n 10 cmd save
You only need to set it on the first node and it propagates to the sub modules.

Re: Flying ADC 16 channel BMS pdobase change

Posted: Sun Jul 21, 2024 7:16 pm
by mario
Oh...
Now it looks obvious. :)

Everything works like a charm now.
Thank you very much...

Re: Flying ADC 16 channel BMS pdobase change

Posted: Sun Jul 21, 2024 8:50 pm
by johu
Cool 👍
Would be very happy to see many photos and screenshots :)
Have you connected to cells yet?

Re: Flying ADC 16 channel BMS pdobase change

Posted: Sun Jul 21, 2024 9:14 pm
by mario
I have not connected cells yet, probably in the next few days...

Plan is to log all bms can traffic into influxDB so it can easily be visualised with Grafana or similar. That should look good in pictures. :)
Also, plan is to make it online 24hrs and accessible through RPi connect and SSH - got full box of it. :)

On target pack, although it's only 50Ah, will be lots of balancing and I'm looking forward to see how FAB performs.
Will get back with results for sure...

Thank you again for sharing your work and make things like these possible.