ElectricMotorcycleForum.com

  • January 18, 2018, 05:59:30 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Electric Motorcycle Forum is live!

Pages: [1]

Author Topic: Cable to access BMS Diagnostic Port  (Read 305 times)

Keith

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Cable to access BMS Diagnostic Port
« on: November 24, 2017, 11:54:02 PM »

I have successfully connected to the BMS using a modified version of the ODB serial cable described in this thread http://electricmotorcycleforum.com/boards/index.php?topic=4296.0

EDIT: New drawing to clearly show the pinout. PDF version has links.

The BMS connector is tiny. I found this part that mates with it and was able to solder wires to it. http://www.mouser.com/ds/2/276/0791077003_PCB_RECEPTACLES-175725.pdf

I then used a multimeter to find the right pins for a serial connection. I found the ground pin is connected to the B- with 10 ohms. Connecting green TX to the RX pin and white RX to the TX pin got me this:

Code: [Select]
ZERO BMS> help


*************************************************************
*                      BMS Main Menu                        *
*************************************************************

  help            - Display this Help screen
  login           - Show login level, or login with password
  logout          - Log out of BMS
  version         - Display Version Information

  stats           - Display All statistics
  balstats        - Display balance statistics
  capstats        - Display capacity statistics
  set             - Show all settings, or edit a specific setting

  eventlogdump    - Display the contents of the event log
  errorlogdump    - Display the contents of the error log

  status          - Show pack status summary
  balance         - Show pack balance
  config          - Show pack configuration
  inputs          - Show all inputs
  outputs         - Show all outputs
  errors          - List all present warnings and errors

  dumpall         - Dump all data (stats, inputs, settings, and logs



ZERO BMS>

WOW!!! 8) So no more waiting for the app to maybe get bms logs. I will add this to the unofficial manual of course. This is not an easy thing to do, but yes, it can be done. Same serial setup as the OBD, 38400 8 N 1 N, no power connection.
« Last Edit: December 05, 2017, 08:30:17 PM by Keith »
Logged
2016 Zero FX, 2014 KTM 1190

Burton

  • Hero Member
  • *****
  • Posts: 972
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #1 on: November 25, 2017, 12:05:51 AM »

This looks like the same screen you get with the reaper dongle in the ODBII port :)

I am sure i don't have to tell you to be careful when setting things in there and I would suggest doing a dumpall before changing anything so you can refer back to it if something goes wrong ;)
Logged
All content I have created here http://bit.ly/1NX4KP9

Keith

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #2 on: November 25, 2017, 12:32:47 AM »

Yes, this is very similar to the MBB login prompt but direct to the BMS, all of the same login details. I don't think I want to change anything, but it is nice to ask it how it's doing. I may get the right parts to make a real cable. That would be just 50394-8200 pins in a 51014-0008 housing. The other four pins have 8k pullups to 3.3v, no idea what they are for, some kind of inputs I guess. And yes, caution is important, this gets very expensive fast if you do something dumb.
« Last Edit: November 25, 2017, 12:49:09 AM by Keith »
Logged
2016 Zero FX, 2014 KTM 1190

rayivers

  • Sr. Member
  • ****
  • Posts: 427
  • electric feels so right
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #3 on: November 25, 2017, 06:12:26 AM »

It would be great to know what the BMS 'set' submenu consists of.  If/when a 4.0 single FX brick becomes available I plan to get one if possible (it will need a reprogrammed 2014 BMS) and it'd be nice to have some idea in advance exactly what's going on, especially if someone at Zero tells my dealer it can't be done.

Ray
« Last Edit: November 25, 2017, 07:47:54 AM by rayivers »
Logged
'14 Zero FX 5.7 (now 2.8, MX), '14 Zero FX 2.8 (street), '08 YZ250F, '82 RM250Z, '75 MR175, '74 CR125M (175cc)

Keith

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #4 on: November 25, 2017, 08:26:53 AM »

I've learned that the menus change with the login level and that there are commands that work but are not on the menus. So only Zero know exactly what's going on.
Logged
2016 Zero FX, 2014 KTM 1190

Keith

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #5 on: November 25, 2017, 07:59:13 PM »

Here's what the Quiq charger does when changing from constant current to constant voltage at 100% SOC. Nice data from the BMS serial port although it took some work to filter out all of the DEBUG lines complaining about no CAN traffic.
Logged
2016 Zero FX, 2014 KTM 1190

Shadow

  • Tip Overs: 10
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 704
  • Zero 2016 DSR ZF13.0
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #6 on: November 25, 2017, 09:45:56 PM »

Here's what the Quiq charger does when changing from constant current to constant voltage at 100% SOC. Nice data from the BMS serial port although it took some work to filter out all of the DEBUG lines complaining about no CAN traffic.
Nice! Can we infer a charging profile from this?
Logged

Keith

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #7 on: November 25, 2017, 10:31:26 PM »

Looks like we can. Interesting how the current is low resolution and noisy while the voltage data is clean. I'll do the same for the on board charger next, if I can figure out how to hook up the cable while the pack is on the bike.
Logged
2016 Zero FX, 2014 KTM 1190

togo

  • Motorcycles are for everyday transportation. And fun too.
  • Hero Member
  • *****
  • Posts: 865
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #8 on: November 27, 2017, 03:08:43 AM »

K
K> > > Here's what the Quiq charger does when changing from constant current to constant voltage...

This is the Zero Quick Charger version of the Quiq charger, right?  The one sold by Zero? 

S> > Nice! Can we infer a charging profile from this?

I would think this is a good profile, but I'd also compare it to what the onboard does.

K> Looks like we can. Interesting how the current is low resolution and noisy while the voltage data is clean. I'll do the same for the on board charger next, if I can figure out how to hook up the cable while the pack is on the bike.

Yeah.  I'd de-noise the current a bit, maybe a rolling average, if building a charging control circuit. 

Logged
It's like flying, but with more traction.  And none of that Z-axis complexity.

Lost my faith in Zero with my 2011 S, but regained it with my 2014 SR.  Diginow SCv2 changed my SR from a fun ride to primary transport.

2014 Zero SR, accessorized. 2008 Vectrix VX-1 NiMH. 2001 Honda Helix.

Keith

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #9 on: November 27, 2017, 04:08:05 AM »

I've ordered a proper connector and if I'm careful, I think I can make it low profile so it can work on the bike. There is very little clearance to the pack diagnostic cover when the packs are on the bike so a small right angle wire routing to the connector may work. Some time next week...
Logged
2016 Zero FX, 2014 KTM 1190

Keith

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #10 on: December 05, 2017, 04:10:10 AM »

Made a nice BMS cable with the proper connector. It works great but my plan to use it on the bike did not. Onboard charger will not close the contactor when the BMS is connected. The dash gives the 2-3 flashes CAN error. Can't use the OBD while charging either, more CAN trouble. So I will get the charge current versus time data for the onboard charger, but it will have to be done on the AC side, oh well.
Logged
2016 Zero FX, 2014 KTM 1190
Pages: [1]