ElectricMotorcycleForum.com

  • November 24, 2024, 11:50:42 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Electric Motorcycle Forum is live!

Pages: 1 [2] 3

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

Keith

  • Sr. Member
  • ****
  • Posts: 269
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #15 on: May 07, 2018, 07:11:35 PM »

I have four versions

Code: [Select]
*              Firmware Name : FIRMWARE BMS CORTEX M3 15MY IMPL *
*                Firmware PN : 75-07787                         *
*               Firmware Rev : 31                               *
*                      Built : Oct 13 2015 16:53:53             *

*              Firmware Name : FIRMWARE BMS CORTEX M3 15MY IMPL *
*                Firmware PN : 75-07787                         *
*               Firmware Rev : 33                               *
*                      Built : Feb  9 2016 10:25:51             *

*              Firmware Name : FIRMWARE BMS CORTEX M3 15MY IMPL *
*                Firmware PN : 75-07787                         *
*               Firmware Rev : 39                               *
*                      Built : Jun 14 2017 09:45:14             *

*              Firmware Name : FIRMWARE BMS 17MY IMPL           *
*                Firmware PN : 75-08037                         *
*               Firmware Rev : 29                               *
*                      Build : 2018-01-12_150928 470     banka  *
Logged
2016 Zero FX, 2014 KTM 1190

rayivers

  • Hero Member
  • *****
  • Posts: 502
  • electric feels so right
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #16 on: May 07, 2018, 07:27:09 PM »

Thanks for all the info!  I see a lot of display / show / reset commands, but nothing regarding pack configuration or parameters... does anyone know how the BMS tells the MBB what capacity / peak current capability / max charge rate etc. the currently-installed battery has?  Or how a new Power Tank identifies itself (with all the PT problems I've seen here, I have a feeling this process is flawed)?  If I ordered a 3.6 brick Zero would have to install a 2014 BMS and configure it to 3.6kWh, I'm just wondering exactly how that's done. It doesn't seem like anything shown would accomplish that, unless 'config' has a submenu w/write commands.

Quote
The settings would not stick, don't know why

Maybe there's a write-protect switch accessible only by a login password not shown?

Ray
Logged
'14 Zero FX 5.7 (now 2.8, MX), '14 Zero FX 2.8 (street), '19 Alta MXR, '18 Alta MXR, various '74 - '08 ICE dirt bikes

Keith

  • Sr. Member
  • ****
  • Posts: 269
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #17 on: May 07, 2018, 08:26:18 PM »

Here's the most detailed settings I've seen, found on the dark web
Code: [Select]
Logged in at level 3

ZERO BMS> set


*************************************************************
*                       BMS Settings                        *
*************************************************************
  To change settings, type:
    "set <setting name> <value1> <value2> ..."
     0x preceding the value may be used to indicate a hex number



 ************
 Psudo Settings
 ************
  Variable        Description              Value
 +---------------+------------------------+--------------------
  time            Current Time (RTC)    02/16/2018 13:51:56
  time utc        Current UTC Time (RTC)          1518807116
  systime         System Clock Time (test only)   1518807116
  dut_mode        DUT mode                                 0
  capacity        Ideal Total Capacity             26000000 uAh
  soc             Present State Of Charge                46 %
  correctsoc      Correct State Of Charge for Voltage    46 %
  addfulldis      Add full discharge to history in uAh
  addestdis       Add estimated discharge to history in uAh
  config none     Reset config to uninitialized
  vref_auto_cal   Auto-calibrate ADC VREF


 **************
 Settings
 **************
 NV writes: 605

 Setting Name         Setting Desc                            Value        Units
+--------------------+---------------------------------------+------------+-----
 serial               BMS Serial Number                     
 pack_serial          Pack Serial Number                         
 build_time           Firmware Build Timestamp       
 packtype             Pack Type                                2016_module
 packtype_index       Pack Type Index                                    7
 numbricks            Number of bricks in pack                           1
 cell_cap             Cell Capacity in mAH                           26000 mAH
 cell_cap_mwh         Cell Capacity in mWH                           95000 mWH
 vref_cal             ADC VREF calibration                          0x3FFA
 cur_sense_offset_0   Current sensor 0 zero-offset                     -27 mV
 cur_sense_offset_1   Current sensor 1 zero-offset                       0 mV
 cur_sense_cal_0      Current sensor 0 slope calibration            0x8000
 cur_sense_cal_1      Current sensor 1 slope calibration            0x8000
 cur_sense_blend      Current sensor blending voltage                    1 mV
 lvc                  Cell Low Voltage Cutoff                         3140 mV
 cev                  Cell Empty Voltage                              2500 mV
 hvc                  Cell High Voltage Cutoff                        4195 mV
 minchg               Cell Minimum Charge Voltage                     2500 mV
 lowvolt              Cell voltage to flag Low Pack                   3450 mV
 lvh                  Cell Low Voltage Holdoff Time                   5000 ms
 hvh                  Cell High Voltage Holdoff Time                  2000 ms
 lowhold              Time pack must be low for flag                  5000 ms
 mintempdiscutback    Minimum Discharge Cutback Temp                    55 C
 maxtempdis           Maximum Discharge Temp                            60 C
 mintempdis           Minimum Discharge Temp                           -25 C
 mintempchg           Minimum Charge Temp                                0 C
 maxtempchg           Maximum Charge Temp                               50 C
 baltol               Balance Tolerance While Charging                   3 mV
 minbal               Min Voltage to balance while charging           3700 mV
 idlebal              Idle Balancing Allowed                             1
 baltolidle           Balance Tolerance While Idle                       3 mV
 minbalidle           Min Voltage to balance while Idle               3900 mV
 maxbalres            Max Balance Resistors On At Once                  10 mV
 balon                Balance Res On Time                             8000 ms
 baloff               Balance Res Off Time                            2000 ms
 logfreqrun           Discharge log frequency when Running           60000 ms
 logfreqchg           Discharge log frequency when Charging         600000 ms
 logfreqidle          Discharge log frequency when Idle          432000000 ms
 lowcap               Approx Capacity When Low                          10 %
 hibwait              Wait time before hibernate                      1800 seconds
 hibtime              Hibernate Time                                 86400 seconds
 timecor              UTC Correction                                    -5 hours
 icres                Cell tap interconnect resistor value           15000 mOhms
 icfuse               Cell tap interconnect fuse res value            1077 mOhms
 icnorm               Cell tap interconnect normal res value           378 mOhms
 icresmask            Cell tap interconnect resistor mask       0x00000000
 icfusemask           Cell tap interconnect fuse mask           0x1FFFFFFF
 icresinst            Cell tap interconnect resistors install            0
 icfuseinst           Cell tap interconnect fuses installed              1
 loadmarg             Balance Load Test Margin                          50 %
 cur_lim_mon_marg     Current Limit Monitor Margin                      25
 cur_lim_mon_cur_coef Current Limit Monitor Current Coefficie       0x0100
 cur_lim_mon_lim_coef Current Limit Monitor Limit Coefficient       0x0020
 test_mode            Test Mode active                                   0
 startup_failed       Startup Failed                                     0
 startup_warning      Startup Warning                                    0
 pl536_ignore         Ignore Invalid Cell Voltages                       1
 pl536_re_init        Re-initialize invalid PL536s                       0
 debug_level          Debug Level                                        1
 rawcellcutstart      Raw cell voltage cutback start                  3400 mV
 rawcellcutend        Raw cell voltage cutback end                    3150 mV
 opencellcutstart     Open circuit cell voltage cutback start         3700 mV
 opencellcutend       Open circuit cell voltage cutback end           3200 mV
 power_soc            Use Power-Based SOC                                0
 abnormhigh           Cell Abnormally High Voltage                    4210 mV
 crithigh             Cell Critically High Voltage                    4250 mV
 cur_sense_off        Dual Current Sensor Allowed Offset Diff            5 %
 cur_sense_slope      Dual Current Sensor Allowed Slope Diff             8 %
 cutback_filt_up_coef Current cutback filter up coefficient         0x0020
 cutback_filt_down_coef Current cutback filter down coefficient       0x00A0
 batt_cur_lim         Battery Current Limit                           1040 A
 board_id             Board ID                                          17
 firmware_rev         Firmware revision                                 29
Logged
2016 Zero FX, 2014 KTM 1190

Burton

  • Hero Member
  • *****
  • Posts: 1059
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #18 on: May 07, 2018, 08:32:23 PM »

I have not installed a power brick yet but on the MY17's the harness has a loop back connection on the power brick connector so the bike knows there is not a power brick in place (last part is conjecture)

I wonder if the number of bricks would simply be updated to 5 ? ... the problem being a dealer would likely flash your firmware when installing a power brick with a version which already has the brick settings configured ... just like they would flash your firmware with 2 or 4 bricks on the older bikes (If i recall they have separate files for these)

Not sure if this applies on the newer bikes though :/ (wish I did)
Logged
All content I have created here http://bit.ly/1NX4KP9

Doctorbass

  • Battery tech
  • Hero Member
  • *****
  • Posts: 971
    • View Profile
    • Endless-sphere.com
Re: Cable to access BMS Diagnostic Port
« Reply #19 on: May 09, 2018, 02:42:02 AM »

I have not installed a power brick yet but on the MY17's the harness has a loop back connection on the power brick connector so the bike knows there is not a power brick in place (last part is conjecture)

I wonder if the number of bricks would simply be updated to 5 ? ... the problem being a dealer would likely flash your firmware when installing a power brick with a version which already has the brick settings configured ... just like they would flash your firmware with 2 or 4 bricks on the older bikes (If i recall they have separate files for these)

Not sure if this applies on the newer bikes though :/ (wish I did)

Burton, I have the powertank on MY17 Sr and the way it manage the 5th brick is that there is BMS0 and BMS1. BMS 0 is the monolith with 4 bricks ( or 2 when you get the long brick) and BMS1 with 1 brick or 0 brick.

So BMS0 can not have 5 brick i think as it only manage the monolith and the powertank has his  own BMS so it is BMS1

Doc
Logged
Zero Drag racing bike: 12.2s 1/4 mile and 7.3s 1/8 mile

T w i t t e r  :     http://twitter.com/DocbassMelancon

Burton

  • Hero Member
  • *****
  • Posts: 1059
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #20 on: May 09, 2018, 02:47:32 AM »

Good info Doc.
So does this mean when I do a BMS command in the terminal for the MBB and it lists 4 bricks on my MY17 I have a frankenbike like yours?  And if so what are the implications of having 4 vs 2 bricks?
Logged
All content I have created here http://bit.ly/1NX4KP9

Arlo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #21 on: January 18, 2021, 01:01:06 PM »

Hi All,  I have been trying to talk to the BMS on my 2018 longbrick.   Its a 7.2kwh brick.

I tried this and for the life of me I can't get it to work.  I tried Putty and Realterm.  I tried all kinds of baud rates.
My setup is not the same as normal I don't have a MBB and I don't have the BMS coms wires hooked to anything at this point.   Has anyone else had success with this lately?  Will the BMS talk over Serial if its only plugged into the battery it self? 

Thanks.

-Arlin
Logged

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #22 on: January 18, 2021, 03:45:17 PM »

On software side you could also try the arduino IDE which is free and has a serial monitor build in. A bit of a workaround but easier since you just need to pick the right device from a list.
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

Arlo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #23 on: January 18, 2021, 11:27:59 PM »

On software side you could also try the arduino IDE which is free and has a serial monitor build in. A bit of a workaround but easier since you just need to pick the right device from a list.

Hmm thanks for the response.  Not sure how I would do that.  You think I can just try the arduino IDE with no arduino hooked up?  Or are you thinking to have an arduino intercept the serial data first?
Logged

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #24 on: January 19, 2021, 06:17:24 PM »

No Arduino needed but you'll still need an USB to TTL converter which is the part used to program smaller Arduino boards hence the Arduino IDE.

That and an OBDII connector is really all you need. In below video I'm gutting a cheap Bluetooth OBD adapter to put such an USB to TTL converter in place instead and than in the end I read out from console. Video is in a different language but just visually it might help to get an idea.

https://youtu.be/JqUwTeAqi3o?t=159

Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

Arlo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #25 on: January 19, 2021, 10:49:41 PM »

No Arduino needed but you'll still need an USB to TTL converter which is the part used to program smaller Arduino boards hence the Arduino IDE.

That and an OBDII connector is really all you need. In below video I'm gutting a cheap Bluetooth OBD adapter to put such an USB to TTL converter in place instead and than in the end I read out from console. Video is in a different language but just visually it might help to get an idea.

https://youtu.be/JqUwTeAqi3o?t=159

Ok thanks.  So a normal USB-serial adapter won't work?
Watching video now.

-Arlin
Logged

Arlo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #26 on: January 20, 2021, 06:38:23 AM »

ok after much messing around I got it working. I will do a how to later.

Arduino IDE was actually the fastest way.
I also got real term working and I bet putty will work
Logged

Arlo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #27 on: February 09, 2021, 02:13:59 AM »

I put a video together of what I figured out.

Cheers.

Logged

TomerBA

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #28 on: August 01, 2021, 02:06:24 AM »

Thanks for all the info.
It's really helping.
Any idea if there are also CAN lines in this connector?
Logged

Arlo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Cable to access BMS Diagnostic Port
« Reply #29 on: August 08, 2021, 09:50:57 PM »

Thanks for all the info.
It's really helping.
Any idea if there are also CAN lines in this connector?

I don't belive there is CAN lines in this connector.  I have the other connector connected for CAN lines.
Logged
Pages: 1 [2] 3