CAN OBD数据检测
    CAN 循环OTA升级
    CAN 写电池SN
    CAN 蓝牙钥匙
    CAN 查询DB彩屏仪表模块
    CAN 设备升级检测小电池状态
    485 备件更换
    485 DTC从机验证

    if (cmd ==”can_cmd_ota_db—-“) {
    bool result =awaitsendStep3ForDb(checkSendUpgradeCmd, sendUpgradeCmd);
    print(‘测试输出:step3 1 result:$result’);
    if (!result)
    result =awaitsendStep3ForDb(checkSendUpgradeCmd, sendUpgradeCmd);
    print(‘测试输出:step3 2 result:$result’);
    if (!result)
    result =awaitsendStep3ForDb(checkSendUpgradeCmd, sendUpgradeCmd);
    print(‘测试输出:step3 3 result:$result’);
    if (!result) {
    print(‘测试输出:end :step3 :1’);
    eventBus.fire(InformationDataEvent(‘progress’,
    {“status”:”error”, “progress”:0, “msgInfo”: msgInfo}));
    return;
    }
    } else {
    getUsbData(checkSendUpgradeCmd, 3);
    sendToDevice(sendUpgradeCmd);
    awaitwating(6);
    if (!errorFunc()) return;
    }

    {Device: “BMS”, Key: “timestamp”, StartBit: 0, DataLen: 6, DataType: “U64”, Desc: “故障日期”},
    {Device: “BMS”, Key: “bms_a_pack_type_capacity”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “额定容量”},
    {Device: “BMS”, Key: “bms_capacity”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “充满容量”},
    {Device: “BMS”, Key: “”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “充电次数”},
    {Device: “BMS”, Key: “bms_flaut_level”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “故障等级”},
    {Device: “BMS”, Key: “bms_flaut_1”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “故障1”},
    {Device: “BMS”, Key: “bms_flaut_2”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “故障2”},
    {Device: “BMS”, Key: “bms_flaut_3”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “故障3”},
    {Device: “BMS”, Key: “bms_flaut_4”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “故障4”},
    {Device: “BMS”, Key: “bms_state”, StartBit: 0, DataLen: 3, DataType: “U16”, Desc: “均衡状态”},
    {Device: “BMS”, Key: “soc”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “SOC”},
    {Device: “BMS”, Key: “soh”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “SOH”},
    {Device: “BMS”, Key: “voltage”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压”},
    {Device: “BMS”, Key: “current”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电流”},
    {Device: “BMS”, Key: “charge_cur”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “需求电流”},
    {Device: “BMS”, Key: “charge_vol”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “需求电压”},
    {Device: “BMS”, Key: “discharge_max_power”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “最大放电功率”},
    {Device: “BMS”, Key: “recovery_max_power”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “最大充电功率”},
    {Device: “BMS”, Key: “dc_fl_t_rt”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “充满电剩余时间”},
    {Device: “BMS”, Key: “vol_1”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压1”},
    {Device: “BMS”, Key: “vol_2”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压2”},
    {Device: “BMS”, Key: “vol_3”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压3”},
    {Device: “BMS”, Key: “vol_4”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压4”},
    {Device: “BMS”, Key: “vol_5”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压5”},
    {Device: “BMS”, Key: “vol_6”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压6”},
    {Device: “BMS”, Key: “vol_7”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压7”},
    {Device: “BMS”, Key: “vol_8”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压8”},
    {Device: “BMS”, Key: “vol_9”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压9”},
    {Device: “BMS”, Key: “vol_10”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压10”},
    {Device: “BMS”, Key: “vol_11”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压11”},
    {Device: “BMS”, Key: “vol_12”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压12”},
    {Device: “BMS”, Key: “vol_13”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压13”},
    {Device: “BMS”, Key: “vol_14”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压14”},
    {Device: “BMS”, Key: “vol_15”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压15”},
    {Device: “BMS”, Key: “vol_16”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压16”},
    {Device: “BMS”, Key: “vol_17”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压17”},
    {Device: “BMS”, Key: “vol_18”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压18”},
    {Device: “BMS”, Key: “vol_19”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压19”},
    {Device: “BMS”, Key: “vol_20”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “电压20”},
    {Device: “BMS”, Key: “mos_t”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “MOS-T”},
    {Device: “BMS”, Key: “blance_t”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “Blance-T”},
    {Device: “BMS”, Key: “t_1”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “T-1”},
    {Device: “BMS”, Key: “t_2”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “T-2”},
    {Device: “BMS”, Key: “t_3”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “T-3”},
    {Device: “BMS”, Key: “t_4”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “T-4”},
    {Device: “BMS”, Key: “pre_discharge”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “预放电”},
    {Device: “BMS”, Key: “positive_pole”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “正极绝缘值”},
    {Device: “BMS”, Key: “negative_pole”, StartBit: 0, DataLen: 2, DataType: “U16”, Desc: “负极绝缘值”},
    {Device: “BMS”, Key: “mos_control”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “MOS控制”},
    {Device: “BMS”, Key: “mos_status”, StartBit: 0, DataLen: 1, DataType: “U8”, Desc: “MOS状态”},

    I/flutter ( 9093): 测试输出:======canDeviceInfo====DB==={db_app_soft_version: MXC01C14, db_hard_version: MXC01C02}

    I/flutter ( 9093): 测试输出:hard->MXC01C02 —- soft->MXC01C14

    I/flutter ( 9093): 测试输出:loopCount = 1

    I/flutter ( 9093): 测试输出:======canDeviceInfo====FOC==={foc_app_soft_version: MXE01N13, foc_hard_version: MXE01P11}

    I/flutter ( 9093): 测试输出:hard->MXE01P11 —- soft->MXE01N13

    I/flutter ( 9093): 测试输出:loopCount = 1

    I/flutter ( 9093): 测试输出:======canDeviceInfo====BMSA==={bms_a_app_soft_version: MYD02V03, bms_a_hard_version: MYD02V06}

    I/flutter ( 9093): 测试输出:hard->MYD02V06 —- soft->MYD02V03