BMW S-Box Phev (SafeyBox 9846612)

User avatar
Gregski
Posts: 2273
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 329 times
Been thanked: 450 times
Contact:

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by Gregski »

I recently scored some used contactors on eBay for $38 dollars each which were listed as Panasonic AEV6501A 500VDC 200A Contact Relay (From 2013 Nissan Leaf) however they fit into our BMW Safety Box perfectly and have more better specs

IMG_7965.JPG
IMG_7967.JPG
IMG_7969.JPG

Mandatory Stare and Compare: our BMW 530e contactor on the left and the Leafster on the right
IMG_7980.JPG
IMG_7982.JPG
IMG_7984.JPG
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
User avatar
Gregski
Posts: 2273
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 329 times
Been thanked: 450 times
Contact:

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by Gregski »

and a little comparison of the Three Amigos so far

IMG_7971.JPG
IMG_7973.JPG
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
blik86
Posts: 5
Joined: Fri Oct 13, 2023 8:42 pm

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by blik86 »

Hello everyone
Which CAN library (arduino) to use for ESP 32 (M5 stack)+SN65HVD230 ? I tried several, but I couldn't send single messages correctly .
Maybe there are ready-made projects for using S-BOX with ESP 32?

In BMW_S Box byte 0 can have a value of 85 and 00. It seems to me that the contactor states should be 10 or 01 (bin). That is, all closed ones should correspond to 55.
B0.png
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1025 times
Contact:

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by johu »

I ended up using no Arduino CAN library at all but talking straight to the ESP32 driver: https://github.com/jsphuebner/esp32-web ... oi_can.cpp

It's important to know that you can't create a CAN object on the stack (i.e. lifetime of the function) and send it. Instead it needs to be static in memory.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by Bigpie »

https://github.com/pierremolinaro/acan-esp32 is the ESP32 can lib I use for all my ESP32 projects.

https://github.com/espressif/esp-idf/issues/4276 just to make you aware of this bug with the ESP32, I've fallen foul of corrupted messages and have to make use of the CRC to validate them on a busy bus.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
blik86
Posts: 5
Joined: Fri Oct 13, 2023 8:42 pm

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by blik86 »

Bigpie wrote: Sat Oct 14, 2023 8:40 am https://github.com/pierremolinaro/acan-esp32 is the ESP32 can lib I use for all my ESP32 projects.
Not compiled: "ACAN_ESP32.cpp:6:26: fatal error: core_version.h: No such file or directory".
How to solve it?
blik86
Posts: 5
Joined: Fri Oct 13, 2023 8:42 pm

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by blik86 »

Hello everyone. In what order should contactors be switched on and off?
User avatar
Gregski
Posts: 2273
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 329 times
Been thanked: 450 times
Contact:

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by Gregski »

blik86 wrote: Fri Oct 20, 2023 6:19 pm Hello everyone. In what order should contactors be switched on and off?
I think you are about to be beat up with the we need more information clauyse, but I will assume you mean as related to this Safety Box to drive your car, so...

This is how I turn mine on (Close):

1. Negative Contactor
2. Pre Charge Relay
3. Positive Contactor

This is how I turn mine off:

1. All Contacts Off (Open)
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
blik86
Posts: 5
Joined: Fri Oct 13, 2023 8:42 pm

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by blik86 »

Gregski wrote: Fri Oct 20, 2023 9:53 pm This is how I turn mine on (Close):
Thank you.
I want to connect the cells in parallel to the note e-power battery (80S, 1.5 kW) via sbox. Subsequently, replace the regular battery and use the sbox to connect an external charger.
I think sbox was supposed to check the insulation and sticking of contactors. Perhaps the sequence of switching on contactors is important for this?

sbox responds to bytes 0x96, 0x66. I believe the contactor state is really encrypted with 2 bits.
mugball
Posts: 18
Joined: Mon Aug 08, 2022 10:34 am
Has thanked: 7 times
Been thanked: 6 times

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by mugball »

Hi, I am trying to locate part number for the connector/harness to plug in to S-Box for 12 v and can, does anybody know it? thanks

531px-SBOX.jpg
royhen99
Posts: 211
Joined: Sun Feb 20, 2022 4:23 am
Location: N. Wiltshire. UK
Has thanked: 16 times
Been thanked: 101 times

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by royhen99 »

Connector is made by TE Connectivity

Housing 965778-1
BMW 8-364-666

Cover 2-967416-1
BMW 8-364-656

Terminal for 0.5 - 0.75mm2 963715-1
m.art.y
Posts: 558
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 28 times
Been thanked: 16 times

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by m.art.y »

Hi, anybody has been using the S-box in the car? Would you share your experiences how is it holding up? The contactors and the shunt? Anybody tested what Amperage it can measure?
Jacobsmess
Posts: 490
Joined: Thu Mar 02, 2023 1:30 pm
Location: Uk
Has thanked: 253 times
Been thanked: 63 times

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by Jacobsmess »

From memory they're 80A continuous
LRBen
Posts: 474
Joined: Thu Jul 04, 2019 6:35 pm
Location: Somerset, UK
Has thanked: 43 times
Been thanked: 107 times

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by LRBen »

m.art.y wrote: Sat Feb 10, 2024 3:37 pm anybody has been using the S-box in the car? Would you share your experiences how is it holding up? The contactors and the shunt? Anybody tested what Amperage it can measure?
Had it in the MG since November, done over 1000 miles and it's still going fine. Pulls around 200 amps max and it's reported that fine.
User avatar
Gregski
Posts: 2273
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 329 times
Been thanked: 450 times
Contact:

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by Gregski »

m.art.y wrote: Sat Feb 10, 2024 3:37 pm Hi, anybody has been using the S-box in the car? Would you share your experiences how is it holding up? The contactors and the shunt? Anybody tested what Amperage it can measure?
Have just over 1,000 miles on mine, I welded the contactors on it like 3 times, fried one resistor, and don't know how to get Amp Hours on my pre Zombie inverter. Here's a little simple walk around of my build:


"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
Swing
Posts: 63
Joined: Mon Jan 27, 2020 2:03 pm
Has thanked: 13 times
Been thanked: 7 times

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by Swing »

Question about the S-box. It reports all cell values, and you can ask it to close contractors.
But does it balance the cells by itself? In other words, is it a true BMS function? And voltage cutoff when discharging etc?

I'm guessing those features are not there and will need to be implemented externally
User avatar
andybpowell
Posts: 299
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 192 times
Been thanked: 230 times
Contact:

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by andybpowell »

Swing wrote: Sat Mar 30, 2024 7:42 am Question about the S-box. It reports all cell values, and you can ask it to close contractors.
But does it balance the cells by itself? In other words, is it a true BMS function? And voltage cutoff when discharging etc?

I'm guessing those features are not there and will need to be implemented externally
You seem to be confused
The sbox does none of the BMS functions it basically measures current through and pack voltage and has control over the contractors
Swing
Posts: 63
Joined: Mon Jan 27, 2020 2:03 pm
Has thanked: 13 times
Been thanked: 7 times

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by Swing »

andybpowell wrote: Sat Mar 30, 2024 7:57 am You seem to be confused
The sbox does none of the BMS functions it basically measures current through and pack voltage and has control over the contractors
I was not confused, I was basically asking if it is a BMS or not.

So in these BMWs the BMS function is in the car instead of in the pack. Like other cars have.
User avatar
andybpowell
Posts: 299
Joined: Thu Sep 02, 2021 8:04 pm
Location: Southend,essex,uk
Has thanked: 192 times
Been thanked: 230 times
Contact:

Re: BMW S-Box Phev (SafeyBox 9846612)

Post by andybpowell »

No it's in the pack but not in the s-box
Post Reply