浏览代码

【V3.0.0.17】-修改了3.0.0.16的bug-2增加了下线检测响蜂鸣器,

CHENJIE-PC\QiXiang_CHENJIE 3 年之前
父节点
当前提交
e1a01bcc6e
共有 2 个文件被更改,包括 19 次插入16 次删除
  1. 2 2
      inc/AppConfig.h
  2. 17 14
      src/EmbeddedCoder_src/BCUCal.c

+ 2 - 2
inc/AppConfig.h

@@ -2,7 +2,7 @@
  * @Author       : ChenJie
  * @Date         : 2021-10-14 09:27:15
  * @LastEditors  : ChenJie
- * @LastEditTime : 2021-10-18 14:12:44
+ * @LastEditTime : 2021-10-18 16:08:09
  * @Description  : App Config H file 配置文件,可以针对不同参数进行更改
  * @FilePath     : \PLAT\project\ec616_0h00\apps\qx_app\inc\AppConfig.h
  */
@@ -14,7 +14,7 @@
 #define DATA_MODULE_TYPE (1)           //1表示NB模块,2表示4G cat1
 #define EOLSTATE (0)                   //1表示下线检测跳过,使用默认值,0表示使用下线检测
 #define DEFAULT_SN "RLTEST00000000001" //默认上传的SN编码
-#define APPSWVERSION 0x03010011        //数据模块软件版本号
+#define APPSWVERSION 0x03000011        //数据模块软件版本号
 
 #define TCP_ADD "iotp.fast-fun.cn" //数据上传的地址
 #define TCP_PORT 8712              //数据上传的端口

+ 17 - 14
src/EmbeddedCoder_src/BCUCal.c

@@ -6,15 +6,15 @@ const uint16_T blcc_T_close = 125U;                         /* 均衡暂停温
 const uint16_T blcc_T_open = 100U;                          /* 均衡暂停恢复温度; */
 const uint16_T blcc_V_low = 10U;                            /* 均衡开启电压阈值 */
 
-const uint16_T cmnc_Q_ratedCp = 500U;                       /* 电池容量; */
-const uint16_T cmnc_num_cellUNum = 20U;                     /* 电压采样点实际个数; */
+const uint16_T cmnc_Q_ratedCp = 600U;                       /* 电池容量; */
+const uint16_T cmnc_num_cellUNum = 17U;                     /* 电压采样点实际个数; */
 const uint16_T cmnc_num_modTNum = 4U;                       /* 温度采样点实际个数; */
 const uint16_T cmnc_tm_parkTime = 1800U;                    /* 静置时间阈值; */
 const uint16_T cmnm_F_polar[13] = { 3880U, 5062U, 10906U, 10798U, 12885U, 12990U,14331U, 10754U, 9378U, 10340U, 10592U, 11946U, 11515U } ; /* 电池放电参数的C数组; */
-const uint16_T cmnm_R_ohm[13]   = { 2181U, 2043U, 2040U, 1927U , 1850U , 1802U ,1771U , 1743U , 1733U,  1728U,  1748U,  1762U, 1789U } ;  /* 电池放电参数的Ro数组; */
-const uint16_T cmnm_R_polar[13] = { 1837U, 1055U, 1352U, 1453U , 1181U , 1125U ,1205U , 1283U , 1228U,  1187U,  1104U,  1170U, 1049U } ;  /* 电池放电参数的Rp数组; */
-const uint16_T cmnm_V_ocv[13]   = { 3311U, 3411U, 3476U, 3553U , 3610U , 3638U ,3674U , 3758U , 3845U,  3942U,  4051U,  4106U, 4175U } ;  /* 电池放电参数的OCV数组; */
-const uint16_T cmnm_pct_soc[13] = { 0U,     50U,   100U,  200U ,  300U ,  400U , 500U , 600U  ,  700U,   800U,  900U,    950U, 1000U } ;  /* 电池放电参数的SOC数组; */
+const uint16_T cmnm_R_ohm[13] = { 2181U, 2043U, 2040U, 1927U, 1850U, 1802U,1771U, 1743U, 1733U, 1728U, 1748U, 1762U, 1789U } ;       /* 电池放电参数的Ro数组; */
+const uint16_T cmnm_R_polar[13] = { 1837U, 1055U, 1352U, 1453U, 1181U, 1125U,1205U, 1283U, 1228U, 1187U, 1104U, 1170U, 1049U } ;       /* 电池放电参数的Rp数组; */
+const uint16_T cmnm_V_ocv[13] = { 3234U, 3444U, 3476U, 3553U, 3610U, 3638U,3674U, 3758U, 3845U, 3942U, 4051U, 4106U, 4175U } ;       /* 电池放电参数的OCV数组; */
+const uint16_T cmnm_pct_soc[13] = { 0U, 50U, 100U, 200U, 300U, 400U, 500U, 600U,700U, 800U, 900U, 950U, 1000U } ;                         /* 电池放电参数的SOC数组; */
 const uint16_T cmnc_V_chrgFulV = 4200U;                     /* 充满电的截至电压; */
 
 const uint16_T sfmc_I_chrgCurrOverThr = 600;                 /* 充电电流阈值 */
@@ -31,8 +31,8 @@ const uint16_T sfmc_T_chrgModTLowThrFlt1 = 42U;             /* 充电模组温
 const uint16_T sfmc_T_chrgModTLowThrFlt2 = 40U;             /* 充电模组温度过低2级故障诊断阈值 */
 const uint16_T sfmc_T_chrgModTLowThrRec1 = 45U;             /* 充电模组温度过低1级故障恢复阈值 */
 const uint16_T sfmc_T_chrgModTLowThrRec2 = 45U;             /* 充电模组温度过低2级故障恢复阈值 */
-const uint16_T sfmc_T_chrgModTOverThrFlt1 = 92U;            /* 充电模组温度过高1级故障诊断阈值 */
-const uint16_T sfmc_T_chrgModTOverThrFlt2 = 95U;           /* 充电模组温度过高2级故障诊断阈值 */
+const uint16_T sfmc_T_chrgModTOverThrFlt1 = 97U;            /* 充电模组温度过高1级故障诊断阈值 */
+const uint16_T sfmc_T_chrgModTOverThrFlt2 = 100U;           /* 充电模组温度过高2级故障诊断阈值 */
 const uint16_T sfmc_T_chrgModTOverThrRec1 = 90U;            /* 充电模组温度过高1级故障恢复阈值 */
 const uint16_T sfmc_T_chrgModTOverThrRec2 = 90U;            /* 充电模组温度过高2级故障恢复阈值 */
 const uint16_T sfmc_T_chrgMosTOverThrFlt1 = 120;             /* 充电Mos温度过高1级故障诊断阈值 */
@@ -44,8 +44,8 @@ const uint16_T sfmc_T_disChrgModTLowThrFlt1 = 25U;          /* 放电模组温
 const uint16_T sfmc_T_disChrgModTLowThrFlt2 = 20U;          /* 放电模组温度过低2级故障诊断阈值 */
 const uint16_T sfmc_T_disChrgModTLowThrRec1 = 30U;          /* 放电模组温度过低1级故障恢复阈值 */
 const uint16_T sfmc_T_disChrgModTLowThrRec2 = 30U;          /* 放电模组温度过低2级故障恢复阈值 */
-const uint16_T sfmc_T_disChrgModTOverThrFlt1 = 92U;         /* 放电模组温度过高1级故障诊断阈值 */
-const uint16_T sfmc_T_disChrgModTOverThrFlt2 = 95U;        /* 放电模组温度过高2级故障诊断阈值 */
+const uint16_T sfmc_T_disChrgModTOverThrFlt1 = 97U;         /* 放电模组温度过高1级故障诊断阈值 */
+const uint16_T sfmc_T_disChrgModTOverThrFlt2 = 100U;        /* 放电模组温度过高2级故障诊断阈值 */
 const uint16_T sfmc_T_disChrgModTOverThrRec1 = 90U;         /* 放电模组温度过高1级故障恢复阈值 */
 const uint16_T sfmc_T_disChrgModTOverThrRec2 = 90U;         /* 放电模组温度过高2级故障恢复阈值 */
 const uint16_T sfmc_T_disChrgMosTOverThrFlt1 = 120U;
@@ -63,19 +63,19 @@ const uint16_T sfmc_T_modTDiffThrRec1 = 15;                  /* 模组温差过
 const uint16_T sfmc_T_modTDiffThrRec2 = 15;                  /* 模组温差过大2级故障恢复阈值 */
 
 const uint16_T sfmc_V_battULowThrFlt1 = 590U;               /* 总压欠压1级故障诊断阈值 */
-const uint16_T sfmc_V_battULowThrFlt2 = 560U;               /* 总压欠压2级故障诊断阈值 */
+const uint16_T sfmc_V_battULowThrFlt2 = 580U;               /* 总压欠压2级故障诊断阈值 */
 const uint16_T sfmc_V_battULowThrRec1 = 600U;               /* 总压欠压1级故障恢复阈值 */
 const uint16_T sfmc_V_battULowThrRec2 = 600U;               /* 总压欠压2级故障恢复阈值 */
 const uint16_T sfmc_V_battUOverThrFlt1 = 850U;              /* 总压过压1级故障诊断阈值 */
-const uint16_T sfmc_V_battUOverThrFlt2 = 870U;              /* 总压过压2级故障诊断阈值 */
+const uint16_T sfmc_V_battUOverThrFlt2 = 860U;              /* 总压过压2级故障诊断阈值 */
 const uint16_T sfmc_V_battUOverThrRec1 = 840U;              /* 总压过压1级故障恢复阈值 */
 const uint16_T sfmc_V_battUOverThrRec2 = 840U;              /* 总压过压2级故障恢复阈值 */
 const uint16_T sfmc_V_cellULowThrFlt1 = 2950U;              /* 单体电压欠压1级故障诊断阈值 */
-const uint16_T sfmc_V_cellULowThrFlt2 = 2800U;              /* 单体电压欠压2级故障诊断阈值 */
+const uint16_T sfmc_V_cellULowThrFlt2 = 2900U;              /* 单体电压欠压2级故障诊断阈值 */
 const uint16_T sfmc_V_cellULowThrRec1 = 3000U;              /* 单体电压欠压1级故障恢复阈值 */
 const uint16_T sfmc_V_cellULowThrRec2 = 3000U;              /* 单体电压欠压2级故障恢复阈值 */
 const uint16_T sfmc_V_cellUOverThrFlt1 = 4250U;             /* 单体电压过压1级故障诊断阈值 */
-const uint16_T sfmc_V_cellUOverThrFlt2 = 4350U;             /* 单体电压过压2级故障诊断阈值 */
+const uint16_T sfmc_V_cellUOverThrFlt2 = 4300U;             /* 单体电压过压2级故障诊断阈值 */
 const uint16_T sfmc_V_cellUOverThrRec1 = 4200U;             /* 单体电压过压1级故障恢复阈值 */
 const uint16_T sfmc_V_cellUOverThrRec2 = 4200U;             /* 单体电压过压2级故障恢复阈值 */
 const uint16_T sfmc_flg_cellUDiffThrFlt1 = 250U;            /* 压差过大1级故障诊断阈值 */
@@ -95,6 +95,9 @@ const uint16_T socm_V_disChrgCor[3] = { 3303U, 3359U, 3368U } ; /* 放电CCV对
 const uint16_T socc_pct_chrgCor = 980;
 const uint16_T socc_pct_disChrgCor = 50;
 
+
+
+
 const uint16_T tmsc_T_openThr = 45U;                         /* 热管理开启温度; */
 const uint16_T tmsc_T_closeMinThr = 50U;                     /* 热管理关闭温度(最低模组); */
 const uint16_T tmsc_T_closeMaxThr = 70U;                     /* 热管理开启温度(最高模组); */