Changes

Jump to: navigation, search

Gen3/MBB Console

24,386 bytes added, 20:37, 28 July 2020
m
Settings
=Commands=
This documents MBB commands for [[Gen3]] models.

==Help==
ZERO MBB> help

*************************************************************
* Main Menu *
*************************************************************

help - Display this Help screen
login - Display login level, or login with password

-- MBB Operational Information --
ver - Board and firmware revision
dash ver - Dash and Telit firmware revision
time - Current time
in - State of all inputs
faults - Active faults (-v for verbose)
stats - All statistics
state - Bike operational state
pdu - Power Distribution Unit information
dash - Dash information
msc - Motorcycle Stability Control information
controller - Controller information
heater - Battery Heater information
ccm - Cellular Communication Module information
config - Configuration information
charging - Information for charging system
bms - BMS data and commands
perf - Range filter data and calculated WH
obd - OBDII status and data
compat - Compatibility information

-- MBB Settings Control --
forcestrgmode - Attempt to force all modules into storage mode

-- MBB Event Log Management --
eventlog - Display additional event log commands
eld(e) # - Event Log Dump (e = exhaustive, # = last n entries, optional)
eldd # - Log Dump by Date (# = start date: MM DD YYYY HH MM SS)
elddh # - Log Dump by Date dump hex (# = start date: MM DD YYYY HH MM SS)



==Version==
ZERO MBB> ver

*************************************************************
* *
* Zero Motorcycles MBB *
* *
* Board Name : MBB PDU POTTED GEN 3 STEP D *
* Board PN : 40-08198 *
* Board ID : 4 *
* Firmware Name : FIRMWARE MBB 19MY IMPL *
* Firmware PN : 75-08163 *
* Firmware Rev : 15 *
* Build : ef40aa3 bom 307 *
* 2020-01-07_133100 banka *
*************************************************************
Reset Source: Hib Wake Pin, Power-On, Supply WD, Power Val



==Dash Version==
ZERO MBB> dash ver

**********************************************************
Dash Firmware Version
**********************************************************
Dash Serial Number : *************** (hiden)
Dash Firmware Version : 6V26
Telit Firmware Version : 3.12
Dash PCB Version : 3
Dash PCBA Version : 3

Reset Source: Hib Wake Pin, Power-On, Supply WD, Power Val

==Time==
ZERO MBB> time

Current MBB time is Sun, 05/03/2020 12:37:59 (UTC-8)

==Inputs==
ZERO MBB> in

*************************************************************
* MBB Measurements *
*************************************************************

Measurement Value Valid?

DC-DC 13404 mV OK
12V Battery 13404 mV OK
12V Combined 13355 mV OK
Kickstand Down OK
Key On OK
Kill Switch Kill OK
HVIL Closed OK
Ambient Temp 1258 Cx100 OK
J1772 Pilot 0 A OK
J1772 Proximity Disconnect OK
Throttle 0 ppm OK
Throttle_0 349 dn OK
Throttle_1 3074 dn OK
Throttle Switch 1 OK
Brake Voltage 11536 mV OK
BMS 12V 11747 mV OK
Mode Switch Open OK
Chrg Latch Sw Open OK
3v3 Good Good OK
5V Good Good OK



==Faults==
ZERO MBB> faults

Active faults:


Pending faults:

use -v to display all available faults

ZERO MBB> faults in faults heater ccm help stats


==Settings==
ZERO MBB> set

*************************************************************
* MBB Settings *
*************************************************************
To change settings, type:
"set <setting name> <value1> <value2> ..."


Setting Name Setting Desc Value Units
+----------------------------------------+----------------------------------------+-------------+-----
;Level 1?
placeholder_4 1
utc_time_correction -4 H
cust_riding_mode_name Custom
active_riding_mode 1
periodic_logging_period_base_ms 20000 ms
periodic_logging_multiplier_base 90
periodic_logging_multiplier_run 3
periodic_logging_multiplier_stop 30
periodic_logging_multiplier_charge 16
periodic_logging_log_size_magnifier 2
monday_schedule 0x2A14220E
tuesday_schedule 0x2A14220E
wednesday_schedule 0x2A14220E
powertrain_can_termination 0
thursday_schedule 0x2A14220E
friday_schedule 0x2A14220E
saturday_schedule 0x2A14220E
sunday_schedule 0x2A14220E
accesory_configuration 0x00000016
;Level 2 or 3?
firmware_rev 15
num_resets 2224
trip1_motor_revolutions_at_last_reset 340922
total_on_time_sec 168498 sec
total_run_time_sec 15416 sec
total_charger_time_sec 7730 sec
longest_runtime_sec 0 sec
nv_write_cycles 2227
max_pack_temp_c 26 C
min_pack_temp_c 0 C
max_motor_temp_c 16 C
max_controller_temp_c 9 C
max_motor_speed_rpm 0
watt_seconds_per_mile 396000
watt_seconds_per_km 234499
trip1_watthours_at_last_reset 10649 Wh
highly_filtered_batt_current_millamps 30709
highly_filtered_speed_kph_x100 4789
trip2_motor_revolutions_at_last_reset 340922
trip2_watthours_at_last_reset 10649 Wh
event_log_read_pointer 0x00001004
event_log_write_pointer 0x0028B0CF
event_log_entry_counter 8869
num_key_cycles 108
charger_attached_before_last_hib 0
total_watt_milliseconds 38339393089
obd_fault_code_0 11
obd_fault_code_1 255
obd_fault_code_2 255
obd_fault_code_3 255
obd_fault_code_4 255
obd_fault_code_5 255
obd_fault_code_6 255
obd_fault_code_7 255
obd_fault_code_8 255
obd_fault_code_9 255
obd_fault_code_freeze_frame 11
obd_key_cycle_num_last_dtc 49
obd_odometer_m_last_clear 144247
obd_odometer_m_first_mil 0
obd_freeze_frame_field_0 0
obd_freeze_frame_field_1 0
obd_freeze_frame_field_2 0
obd_freeze_frame_field_3 144247
obd_freeze_frame_field_4 0
ambient_ave_temp_c 9
logging_fault_counter 1
last_logging_fault_type 3
ccm_ota_update_requested 0
ccm_ota_update_ecu_id 0
ccm_ota_update_fw_bank 0
ccm_ota_update_fw_rev 0
ccm_ota_update_fw_size 0
curr_time_source 2
utc_offset_source 6
ccm_ota_update_failed_attempt_count 0
ccm_ota_update_success 0
bms_fw_rev_low 15
bms_fw_rev_low_bank 1
bms_fw_rev_high 15
bms_fw_rev_high_bank 1
heated_grips_mode 4
offset_from_dash_time_sec 14413 sec
wait_for_next_active_to_charge 0
event_log_last_sec 1588538204
ccm_fw_version_encoded 0

==State==
ZERO MBB> state

Bike State: STOP
Inputs:
- Key ON : ON
- Kickstand Down : ON
- Motor Stopped : ON
- Idle Timeout : OFF
- Eligible Mod Timout : OFF
- EVSE Attached : OFF
- Charge Complete : OFF
- Schedule Charging : OFF
- time till leave charge : -3931 sec
- wait_for_next_active_window : OFF
- 12V Heater : OFF
- DC-DC to 12V : ON
Disables:
- Kill Switch : ON
- Motor Controller : OFF
- Contactor Open : OFF
- Discharg Disable : OFF
- Tipover : OFF
- Immobilizer : OFF
- 12V Battery Heating : OFF


==PDU==
Power Distribution Unit State

ZERO MBB> pdu

*************************************************************
* PDU State *
*************************************************************

Channel State Fault Current Validity
12V Switched Power 1 None 134 mA OK
ABS MCU 1 None 82 mA OK
High Beam 0 None 0 mA OK
Horn 0 None 0 mA OK
Heated Accessories 1 None 0 mA OK
Aux Outlet 1 None 30 mA OK
Headlight 1 None 1590 mA OK
Controller Logic 1 None 394 mA OK
Brake Light 1 None 0 mA OK
Right Blinker 0 None 0 mA OK
Left Blinker 0 None 0 mA OK
12V Heater 0 None 0 mA OK
DC-DC to Battery 1 None 0 mA INVALID
12V Heater Temp INVALID
Total Current 2230 mA OK


==Dash==
ZERO MBB> dash

*************************************************************
* Dash Information *
*************************************************************

- State of Charge : 79
- Active Ride Mode : 2
- Active Traction Control : 1
- Active Heated Grips : 4
- Odometer (km) : 144
- Odometer (mi) : 90



==MSC==
Motorcycle Stability Control state

ZERO MBB> msc

*************************************************************
* MSC State *
*************************************************************

Parameter Value Valid?
Front Wheel Pressure 0 ubar No
Rear Wheel Pressure 0 ubar No
Requested Torque 0 uNm Yes
Is Mode Change Allowed? Yes
MTC Mode 0
Pending MTC Mode 0
ABS Mode 0
Front Wheel Speed 0 mm/hr Yes
Rear Wheel Speed 0 mm/hr Yes
ABS lamp state 0
Is Front ABS Event Active? No
Is Rear ABS Event Active? No
Pitch 92 degx10 Yes
Lean -68 degx10 Yes
X acceleration -1548 ugee Yes
Y acceleration 110847 ugee Yes
Z acceleration 964668 ugee Yes
Is MSC Alive? Yes
Is bike tipped over? No
tip angle 65 degx10 Yes
Yes


==Controller==
ZERO MBB> controller

*************************************************************
* Controller State *
*************************************************************

Parameter Value Valid?
Motor RPM 0 rpm Yes
Actual Torque 0 uNm Yes
Req Torque 0 uNm Yes
Motor Temp 16 C Yes
Motor Flags 0
Inverter Temp 9 C Yes
DC Bus Voltage 109500 mV Yes
DC Bus Current 0 mA Yes
System Flags 5248
Fault Code 0
Fault Level 0
Last time Speed PDO 3973 s, 218000 us
Last time Temp PDO 3973 s, 213000 us
Motor revolutions 340922



==Heater==
12V battery heater state
ZERO MBB> heater

****************************************
* Heater Data *
****************************************


Type 'heater mode x' to change mode to x

- Heater installed : Installed
- Heater_on : 0
- Heater enabled (cc) : 1
- Duty Cycle * 100 : 0
- Current Ave : 0
- Mode : 4
- 0=UNDEF, 1=LOW, 2=MED, 3=HIGH, 4=OFF




==CCM==
Cellular Connectivity Module state

ZERO MBB> ccm

****************************************
* CCM Data *
****************************************

info:
last packet - 0.771
unit id - 373531
fw ver - 2019.7.9
fw ver raw - 0x99c9
hw ver - 0
ccm volts x10 - 1329
ignition on - 1
ccm accel - ( 0x, 3y 15z )
UTC time - Sun, 05/03/2020 20:40:32

gps:
longitude radians - 0
latitude radians - 0
satellites in view - 0
is on - 0
is valid - 0

cellular:
mcc - 0
mnc - 0
signal percent - 13
network registration - 1
connected to starcom - 0
production_state - PEND

heartbeat:
soc - 79
chg time - 0 min
ecu_id - 0a, rev: 15
flags
- bike_tipped_over : 0
- bike_is_charging : 0
- charge_completed : 0
- charger_attached : 0
- storage_mode : 0
- cell_disable : 1
- ccm_to_mbb_disable : 0


ota fw update:
- usr_confirm_done : 0
- new_mbb_fw_needed : 0
- new_bms_fw_needed : 0
- new_mbb_fw_download_req_sent: 0
- new_mbb_fw_requested_update_bank: 0
- new_mbb_fw_requested_rev: 0
- new_bms_fw_requested_update_bank: 0
- new_bms_fw_requested_rev: 0
- new_bms_fw_download_req_sent: 0
- new_mbb_fw_downloaded_to_ccm: 0
- new_bms_fw_downloaded_to_ccm: 0
- new_fw_transfer_from_ccm_in_progress: 0
- ota_state : NONE



==Config==
ZERO MBB> config

*************************************************************
* Configuration *
*************************************************************

OE 3KW Charger Installed Detected
ACC 3KW Charger Installed Detected
ACC 6KW Charger Not Installed Not Detected
Heated Grips Installed Not Detected
LED Indicators Not Installed Not Detected
500W DC-DC Not Installed Not Detected
ZERO MBB> DEBUG: 05/03/2020 12:40:20.244 ..\src\Application\zero_mbb_manage_bike.c : line 1859 - Fault set: MSC_NOT_ALIVE
DEBUG: 05/03/2020 12:40:20.354 ..\src\Application\zero_mbb_manage_bike.c : line 1998 - Fault cleared: MSC_NOT_ALIVE




==Charging==
ZERO MBB> charging

*************************************************************
* Charger Data *
*************************************************************

Measurement Value
EVSE Connector State Disconnected
EVSE Command Disabled
Inlet Region NA (J1772)
Latch State Closed
Pilot Current Invalid
Cable Current Limit 0 A

Charging Disabled
Chargers Connected 2
Max Charge Current 72 A
Charge Current Sum 0.0 A
Max Charge Voltage 117.600 V
Target Charge Voltage 109.800 V
Storage Voltage 106.0 V
Target Override NO
SOC Charge Target 80 %
Charge Target Enabled YES
Charge Target Initiated NO
Charge Complete False
Schedule Charging Disabled
Schedule Override NO
Charge Now YES
Plugin Window Not Yet
Charge Window Not Yet
Schedule Charge Delay 0 minutes

DAY START TIME OFFSET PLUGIN START OFFSET
MON 21:00 10:00 17:00 7:00
TUE 21:00 10:00 17:00 7:00
WED 21:00 10:00 17:00 7:00
THU 21:00 10:00 17:00 7:00
FRI 21:00 10:00 17:00 7:00
SAT 21:00 10:00 17:00 7:00
SUN 21:00 10:00 17:00 7:00

CHARGERS| EN | DC V A | AC V A HZ |CMD A| Ver | SN | ID | STATUS
3kW | NO| 0.0 0.0| 0 0.0 0 | 0 | 101 | 1933339| 0x10| 0x4020
3kW | NO| 0.0 0.0| 0 0.0 0 | 0 | 101 | 1933335| 0x11| 0x4020




==BMS==
Battery Management System state
ZERO MBB> bms

****************************************
* BMS Data *
****************************************

Additional options:
- bms interface Shows Interface data
- bms commands Shows commands sent to bms
- bms eligibility/elig Shows eligibility information about the modules
- bms module Shows module data
- bms status Shows bms status data
- bms info Shows bms information

use -v for verbose printout including unregistered modules

- bms login <bms> <level> Log in to <bms> at <level>
BMS snapshot:
- BMS 2
Module 2 info:
- time since last PDO received 20
- is registered 1
- eligible for HV 1
- pack voltage 109473
- precharge command 0
- precharge state 1
- contactor command 1
- contactor state 1
- lock command 1
- pack full 0
- storage mode Inactive
- batt serial 20hm1521



==Performance==
ZERO MBB> perf

filt_batt_ma 30709, filt_kph_x100 4789, Ws/km 0, Ws/km (filt) 0, total_Ws 38339393, total_Whr 10649


==Compatibility==
ZERO MBB> compat

Compatibilty: - field: 0x01 - mask: 0x01

==Event Log==
ZERO MBB> eventlog
eventlogdump (eld #) - Display event log contents
eventlogdumpexhaustive(elde) - Display event log contents using exhaustive search
eventlogdumphex (eldh) - Display event log contents in hex for export to .hex (need log decoder to decode)
eventlogdumpdate (eldd #) - Display event log contents between given dates

[[Category:Diagnostics]]

Navigation menu