DIY Electric Car Forums banner

1 - 20 of 40 Posts

·
Registered
Joined
·
365 Posts
Discussion Starter #1
I am working on a Version 2.0 of the Battery Pack Sniffer.

Requested Features:

Work with battery packs other than the Nissan Leaf. ;)
Control the power contactors and pre-charge relay.
User configurable cell voltage limits to enable / disable the battery pack.
User configurable cell temperature limits to enable / disable the battery pack.
Send Serial and/or CAN messages to tell battery chargers to start / stop charging.
Send Serial and/or CAN messages to tell motor controllers / inverters to go into "limp home" / shut down modes.
Dual CAN buses to support two battery packs / or CAN buses at different bit rates (for example BMS at 500k, and battery charger at 250k).
Display backlight dimming, (for in vehicle use).
Run on 12V, (for in vehicle use).

Any other features requests? :D

Demo of the USB mass storage user configuration file system:
http://youtu.be/fnGZpMo9hG0

Power supply, Boost converter, and output modifications, driving the pre-charge relay and power contactors:
http://youtu.be/oRQBQS6S90s
http://youtu.be/Vt1-AWesZYc


Old Thread:
http://www.diyelectriccar.com/forums/showthread.php/nissan-leaf-battery-pack-sniffer-175674.html

Thanks,
Wolf
 

·
Registered
Joined
·
1,317 Posts
Cool evolution of the product Wolf.
I have access to a car with a volt pack (actually most of two) 90S2P in a Porsche 914. I've also done a Solectria Force with a volt pack 48S2P (fits perfect in the truck if you reconfigure slightly).

If you need any beta testing just let me know.




I am working on a Version 2.0 of the Battery Pack Sniffer.

Requested Features:

Work with battery packs other than the Nissan Leaf. ;)
Control the power contactors and pre-charge relay.
User configurable cell voltage limits to enable / disable the battery pack.
User configurable cell temperature limits to enable / disable the battery pack.
Send Serial and/or CAN messages to tell battery chargers to start / stop charging.
Send Serial and/or CAN messages to tell motor controllers / inverters to go into "limp home" / shut down modes.
Dual CAN buses to support two battery packs / or CAN buses at different bit rates (for example BMS at 500k, and battery charger at 250k).
Display backlight dimming, (for in vehicle use).
Run on 12V, (for in vehicle use).

Any other features requests? :D

Demo of the USB mass storage user configuration file system:
http://youtu.be/fnGZpMo9hG0

Power supply, Boost converter, and output modifications, driving the pre-charge relay and power contactors:
http://youtu.be/oRQBQS6S90s
http://youtu.be/Vt1-AWesZYc


Old Thread:
http://www.diyelectriccar.com/forums/showthread.php/nissan-leaf-battery-pack-sniffer-175674.html

Thanks,
Wolf
 

·
Registered
Joined
·
365 Posts
Discussion Starter #5
I am working on the hardware now...
Still debating what connectors to put on it.
Then I can get boards out, and order parts.

But I will be looking for the CAN packets and how they are parsed.
Since I don't plan on acquiring the other battery packs to reverse engineer them... ;)

I also need to get the USB mass storage boot loader finished... (you should be able to drag and drop the .hex file in the firmware directory, and it will flash it into the micro).

Then I can add new battery packs as needed. :)

Cool evolution of the product Wolf.
I have access to a car with a volt pack (actually most of two) 90S2P in a Porsche 914. I've also done a Solectria Force with a volt pack 48S2P (fits perfect in the truck if you reconfigure slightly).

If you need any beta testing just let me know.
 

·
Registered
Joined
·
1,317 Posts
I am working on the hardware now...
Still debating what connectors to put on it.
Then I can get boards out, and order parts.

But I will be looking for the CAN packets and how they are parsed.
Since I don't plan on acquiring the other battery packs to reverse engineer them... ;)

I also need to get the USB mass storage boot loader finished... (you should be able to drag and drop the .hex file in the firmware directory, and it will flash it into the micro).

Then I can add new battery packs as needed. :)
I could send you a factory volt BMS and wiring harness if it's helpful.
The pinouts of all the connectors are available in the Volt repair manual.
 

·
Registered
Joined
·
365 Posts
Discussion Starter #7
Not sure... I would almost need access to a intact pack to read out and decode the cells, current, and temperature sensors. Control the pre-charge, contactors, and balancer (if not already controlled by the BMS).

I have not looked around, but I someone probably has decoded the CAN packets already...

On second thought it might be useful to open up the BMS and see how easy it would be to modify for use with smaller / different pack configurations.

Like swap out the microcontroller like I did on the Nissan Leaf BMS.


I could send you a factory volt BMS and wiring harness if it's helpful.
The pinouts of all the connectors are available in the Volt repair manual.
 

·
Registered
Joined
·
365 Posts
Discussion Starter #8
For connectors I am looking at these iGrid series from Molex:
Rated at 2A per pin.

https://www.digikey.com/products/en?keywords=5018761440

This 14 pin connector would have the following functions which should cover the majority of use cases:
+12V (2)
GND (2)
Source OUT(2)
Sink OUT (4)
ADC IN (2)
CAN (2)

https://www.digikey.com/products/en?keywords=5018761040

This 10 pin connector would have the following functions which should cover the remaining use cases:
+12V (1)
GND (1)
Source OUT(1)
Sink OUT (3)
CAN (2)
RS232 (2)


All +12V pins are connected to each other and the output from the boost converter. The Pack Sniffer can also be powered from the +12V vehicle supply with the boost converter disabled.

Source OUT pins are switched +12V PWM outputs.
Sink OUT pins are switched GND PWM outputs.
ADC IN pins are GND - 12V ranged inputs.

Example in vehicle mapping using the 14 pin connector:
Source OUT_1 [BMS Enable]
Source OUT_2 [Charger Enable]
Sink OUT_1 [Ground Side Contactor]
Sink OUT_2 [Pre-Charge Relay]
Sink OUT_3 [High Side Contactor]
Sink OUT_4 [Motor Controller Disable]
ADC IN_1 [Ignition Switch]
ADC IN_2 [Display Dimming]
CAN [BMS]

I tried to cover everything I can think of. ;)
 

·
Registered
Joined
·
365 Posts
Discussion Starter #9
It has been a while, but I finally got the hardware built up:
I forgot the flyback diodes on the outputs. :(
But it looks like there is plenty of room to bodge them in. ;)

PackSniffer2.PNG
 

·
Registered
Joined
·
365 Posts
Discussion Starter #11
Boost converter works (tuned the PID).
Transition from discontinuous to continuous conduction mode is nice and smooth.

+5V in and +12V out.

PS2_Boost.PNG

Note the voltage drop on +5V over the USB cable and connector.

This voltage sag was causing the LCD display to drop out when using crappy USB power banks and USB cables on the Pack Sniffer 1.

This was the main reason I decided to take +5V USB in then boost convert to +12V to run the I/O, (contactors, power the BMS, etc...).

Then linear regulate that back down to a stable +5V to run the LCD display, (it won't dim or blank, when the contactors turn on).

Then regulate the +5V down to 3.3V for the microcontroller.

The 10W boost converter will pull a max of 2A from a power bank.

For applications needing more than 10W, you can wire in an external +12V supply on either the 10-pin or 14-pin connector.

If you power the Pack Sniffer 2, with and external +12V supply, make sure you use an inline diode and fuse.

This will prevent the boost converter from back powering your +12V system when +5V USB is connected.

Now working on the SD card based boot loader...
 

·
Registered
Joined
·
365 Posts
Discussion Starter #14
Superb!!

Tesla batteries next on the list?
I don't have any Tesla BMS units to play with...

If I can get the CAN messages and definitions, it should be able to read out Tesla Packs and display the info.

Same with Volt Packs, and any other CAN based BMS.

(Technically The RS232 port could also read serial based BMS units, and the expansion port could read I2C based BMS units).
 

·
Registered
Joined
·
565 Posts
I don't have any Tesla BMS units to play with...

If I can get the CAN messages and definitions, it should be able to read out Tesla Packs and display the info.

Same with Volt Packs, and any other CAN based BMS.

(Technically The RS232 port could also read serial based BMS units, and the expansion port could read I2C based BMS units).
Tomdb and Ckidder have done a lot of work on this.
I can send you a BMS master board and a slave board...
 

·
Registered
Joined
·
60 Posts
I am working on a Version 2.0 of the Battery Pack Sniffer.

Requested Features:

Work with battery packs other than the Nissan Leaf. ;)
Control the power contactors and pre-charge relay.
User configurable cell voltage limits to enable / disable the battery pack.
User configurable cell temperature limits to enable / disable the battery pack.
Send Serial and/or CAN messages to tell battery chargers to start / stop charging.
Send Serial and/or CAN messages to tell motor controllers / inverters to go into "limp home" / shut down modes.
Dual CAN buses to support two battery packs / or CAN buses at different bit rates (for example BMS at 500k, and battery charger at 250k).
Display backlight dimming, (for in vehicle use).
Run on 12V, (for in vehicle use).

Any other features requests? :D

Demo of the USB mass storage user configuration file system:
http://youtu.be/fnGZpMo9hG0

Power supply, Boost converter, and output modifications, driving the pre-charge relay and power contactors:
http://youtu.be/oRQBQS6S90s
http://youtu.be/Vt1-AWesZYc


Old Thread:
http://www.diyelectriccar.com/forums/showthread.php/nissan-leaf-battery-pack-sniffer-175674.html

Thanks,
Wolf
This unit you are working on sniffer 2 can be used to monitor and record the traffic of the Hybrid power pack to the main ECU of a good working scooter scooter?
Obviously I will need advise and how to proceed as im new to can bus and if possible can send you the data as required for you to view if all is possible.
looking forward for feedback and I thank you again for your support and work to help .
 

·
Registered
Joined
·
365 Posts
Discussion Starter #19
Tomdb and Ckidder have done a lot of work on this.
I can send you a BMS master board and a slave board...
I don't think I would need the physical hardware, if they have already collected CAN data and decoded the packets. The question would be if they want to share what info they have. ;)
 

·
Registered
Joined
·
365 Posts
Discussion Starter #20
This unit you are working on sniffer 2 can be used to monitor and record the traffic of the Hybrid power pack to the main ECU of a good working scooter scooter?
Obviously I will need advise and how to proceed as im new to can bus and if possible can send you the data as required for you to view if all is possible.
looking forward for feedback and I thank you again for your support and work to help .
The Pack Sniffer 2 currently does not log CAN traffic to the microSD card.
That is a feature that will be developed in the future...

It would need the packet protocol in order to decode, monitor and display the battery pack info.

To get the packet protocol you would need to apply known voltages to the individual cells and then see what data changes in the CAN packets.

This is how I reverse engineered the CAN and LIN bus on the Nissan Leaf BMS:
http://www.wolftronix.com/E10_LithiumUpgrade/index.html

It is not really meant as a guide, but it gives you the concepts, hardware and tools needed to reverse engineer the protocol.
 
1 - 20 of 40 Posts
Top