Flying ADC 16 channel BMS pdobase change

Post Reply
mario
Posts: 69
Joined: Fri Dec 14, 2018 10:20 pm
Has thanked: 97 times
Been thanked: 22 times

Flying ADC 16 channel BMS pdobase change

Post 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!
Attachments
test setup
test setup
User avatar
johu
Site Admin
Posts: 6733
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 378 times
Been thanked: 1559 times
Contact:

Re: Flying ADC 16 channel BMS pdobase change

Post 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.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
mario
Posts: 69
Joined: Fri Dec 14, 2018 10:20 pm
Has thanked: 97 times
Been thanked: 22 times

Re: Flying ADC 16 channel BMS pdobase change

Post by mario »

Oh...
Now it looks obvious. :)

Everything works like a charm now.
Thank you very much...
User avatar
johu
Site Admin
Posts: 6733
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 378 times
Been thanked: 1559 times
Contact:

Re: Flying ADC 16 channel BMS pdobase change

Post by johu »

Cool 👍
Would be very happy to see many photos and screenshots :)
Have you connected to cells yet?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
mario
Posts: 69
Joined: Fri Dec 14, 2018 10:20 pm
Has thanked: 97 times
Been thanked: 22 times

Re: Flying ADC 16 channel BMS pdobase change

Post 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.
Attachments
Rpi5_RUT956.jpg
Post Reply