var EWCheckerTaskInfo=[
{
TaskID:0,
TaskName:"电源准备",
TaskBrief:"检测前校准检测过程中需要使用的电压，便于检测过程中快速输出电压。电压范围55~270",
ParamInfo:["预设电压1","预设电压2","预设电压3","预设电压4","预设电压5","预设电压6","预设电压7","预设电压8","预设电压9","预设电压10",],
ReturnInfo:[],
CommTestCmd:"PowerPrapare",
},
{
TaskID:1,
TaskName:"延时等待",
TaskBrief:"延时流程，同时可以启动总线电流监测 设置单位0.1S。波动DAC换算 Vad/4096*3.3/100/11",
ParamInfo:["延时时间0.1s","使1/失0电流监控"],
ReturnInfo:["电流波动DAC"],
CommTestCmd:"WaitDelay",
},
{
    TaskID:2,
    TaskName:"桥丝电阻测试",
    TaskBrief:"测量桥丝阻值。可配置测量模式 0 4线制， 1 2线1-4通，2 2线2-3通",
    ParamInfo:["测量模式"],
    ReturnInfo:["电阻0.01Ω"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:3,
    TaskName:"上电充能",
    TaskBrief:"统计模块的上电充能，具有电压设置功能,采集档位 R10_0p1mA_1p6mA_UC",
    ParamInfo:["总线电压0.1V","超时时间 0.1ms","充电结束时的AD值"],
    ReturnInfo:["总线电压0.1V","总线电流低于设置AD值的时间"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:4,
    TaskName:"设置总线电压",
    TaskBrief:"设置总线电压",
    ParamInfo:["总线电压"],
    ReturnInfo:["总线电压"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:5,
    TaskName:"获取总线电流",
    TaskBrief:"测量总线基本电流",
    ParamInfo:[],
    ReturnInfo:["总线正电流 0.1uA","总线反电流 0.1uA"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:6,
    TaskName:"使能MTP",
    TaskBrief:"使能MTP擦写，0失能/1使能",
    ParamInfo:["是否使能"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:7,
    TaskName:"扫描UID",
    TaskBrief:"扫描总线上的电子模块",
    ParamInfo:["UID长度","是否使能UID对比","是否使能反馈监控"],
    ReturnInfo:["最大反馈电流","最大反馈时间","最小反馈电流","最小反馈时间","UID 0~1","UID 2~3","UID 4~5","UID 6~7"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:8,
    TaskName:"写配置参数",
    TaskBrief:"写模块运行时的配置参数",
    ParamInfo:["起爆MOS选择 0内部/1外部","通信信号源 0:rxh 1:rxl 2:rx","通信模式 1:差分 2:单端","起爆日志标记周期 0:不标记 1:5ms 2:10ms 3:20ms 4:50ms 5:10ms 6:150ms 7:200ms","UID长度","密码长度","模块版本"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:9,
    TaskName:"检测配置参数",
    TaskBrief:"检测模块运行时的配置参数",
    ParamInfo:["起爆MOS选择 0内部/1外部","通信信号源 0:rxh 1:rxl 2:rx","通信模式 1:差分 2:单端","起爆日志标记周期 0:不标记 1:5ms 2:10ms 3:20ms 4:50ms 5:10ms 6:150ms 7:200ms","UID长度","密码长度","模块版本"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:10,
    TaskName:"验证配置",
    TaskBrief:"验证配置",
    ParamInfo:["掩码低2byte","掩码高2byte","比较低2byte","比较高2byte"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:11,
    TaskName:"模拟注码",
    TaskBrief:"写入测试用的UID和密码，此任务之前要先写配置参数",
    ParamInfo:[],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:12,
    TaskName:"模拟注码验证",
    TaskBrief:"写入测试用的UID和密码，此任务之前要先写三码数据",
    ParamInfo:[],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:13,
    TaskName:"芯片自检",
    TaskBrief:"芯片自检",
    ParamInfo:["自检模式","自检时间ms"],
    ReturnInfo:["自检模式0x08的回读数据"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:14,
    TaskName:"状态检测",
    TaskBrief:"状态码比较",
    ParamInfo:["掩码参数","比较结果值"],
    ReturnInfo:["状态值低2byte","状态值高2byte"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:15,
    TaskName:"充电",
    TaskBrief:"充电",
    ParamInfo:["充电模式","充电分组"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:16,
    TaskName:"放电",
    TaskBrief:"放电",
    ParamInfo:[],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:17,
    TaskName:"写延时",
    TaskBrief:"写延时",
    ParamInfo:["延时ms"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:18,
    TaskName:"读延时",
    TaskBrief:"读延时",
    ParamInfo:[],
    ReturnInfo:["延时值ms"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:19,
    TaskName:"时钟校准",
    TaskBrief:"时钟校准",
    ParamInfo:["校准周期ms","校准脉冲数"],
    ReturnInfo:["校准值，真实值的4倍"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:20,
    TaskName:"设置通信地址",
    TaskBrief:"设置通信地址",
    ParamInfo:["通信地址","设置模式 0:系统 1:UID配置地址 2:快速配置","延时"],
    ReturnInfo:["延时"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:21,
    TaskName:"状态巡检",
    TaskBrief:"测试系统只能巡检一个地址，起始地址应该大于1，结束地址小于1024,两个地址差值应该小于256",
    ParamInfo:["起始地址","结束地址","状态码"],
    ReturnInfo:["地址结果"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:22,
    TaskName:"起爆使能",
    TaskBrief:"起爆使能",
    ParamInfo:[],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:23,
    TaskName:"起爆检测",
    TaskBrief:"起爆",
    ParamInfo:["采样超时0.01ms","起爆电流AD","延迟采样ms"],
    ReturnInfo:["等待时间 0.01ms"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:24,
    TaskName:"写入缓存数据",
    TaskBrief:"写入缓存数据",
    ParamInfo:["MTP地址","缓存地址","写入字节数"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:25,
    TaskName:"验证缓存数据",
    TaskBrief:"验证缓存数据",
    ParamInfo:["MTP地址","缓存地址","写入字节数"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:26,
    TaskName:"关总线",
    TaskBrief:"关总线",
    ParamInfo:[],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:27,
    TaskName:"升级",
    TaskBrief:"EW模块升级 升级模式 0:无app时升级 1:无条件升级",
    ParamInfo:["充电时间 ms","app启动时间 ms","总线关断时间 ms","升级模式"],
    ReturnInfo:["错误代码"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:28,
    TaskName:"充能统计",
    TaskBrief:"充能统计",
    ParamInfo:["充电挡位","充电超时0.1us","充电电流判线 AD值","充末电流结束值 0.1uA","充电最长时间 0.1s","充电高压保持时间 0.1s"],
    ReturnInfo:["充能值 0.1ms","充末电流 0.1uA","充电最大电流 0.1mA","充电抖动幅值 adv"],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:29,
    TaskName:"异常判定",
    TaskBrief:"对已检项目进行异常判定，如果异常判定结果不在过滤范围内，则此任务失败",
    ParamInfo:["过滤值1","过滤值2","过滤值3","过滤值4","过滤值5","过滤值6","过滤值7","过滤值8","过滤值9","过滤值10",],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
    TaskID:30,
    TaskName:"重新执行任务",
    TaskBrief:"重新执行指定序号的任务，本次执行会覆盖之前的结果",
    ParamInfo:["需要重新执行的任务序号"],
    ReturnInfo:[],
    CommTestCmd:"ResistorSample",
},
{
  TaskID:31,
  TaskName:"写三码数据",
  TaskBrief:"写入缓存的三码数据，此任务之前要先写配置参数",
  ParamInfo:[],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:32,
  TaskName:"校验三码数据",
  TaskBrief:"验证写入的三码数据，此任务之前要先写三码数据",
  ParamInfo:[],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:33,
  TaskName:"配置三码数据到小板",
  TaskBrief:"先把三码数据写入小板缓存，然后才能使用三码绑定任务",
  ParamInfo:["uid,pwd长度","数据0,1","数据2,3","数据4,5","数据6,7","数据8,9","数据10,11","数据12,13","数据14,15","数据16,17",],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:34,
  TaskName:"任务插槽",
  TaskBrief:"程序可以动态添加要执行的任务，此任务将执行所有序号匹配的动态任务",
  ParamInfo:["插槽序号"],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:35,
  TaskName:"读取MTP",
  TaskBrief:"从指定mtp地址读取数据",
  ParamInfo:["mtp地址(4byte寻址)","读取长度(byte)",],
  ReturnInfo:["数据0,1","数据2,3","数据4,5","数据6,7","数据8,9","数据10,11","数据12,13","数据14,15",],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:36,
  TaskName:"写入MTP",
  TaskBrief:"写入数据到指定mtp地址",
  ParamInfo:["mtp地址(4byte寻址)","写入长度(byte)","数据0,1","数据2,3","数据4,5","数据6,7","数据8,9","数据10,11","数据12,13","数据14,15",],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:37,
  TaskName:"设置电阻校准值",
  TaskBrief:"电阻测量的校准值，不建议将此任务添加进方案中",
  ParamInfo:["电阻校准值"],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:38,
  TaskName:"读取流水号",
  TaskBrief:"读取27bit的流水号数据，对比失败则此任务失败",
  ParamInfo:["要校验的流水号低2字节","要校验的流水号高2字节"],
  ReturnInfo:["读取的流水号低2字节","读取的流水号高2字节"],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:39,
  TaskName:"写入流水号",
  TaskBrief:"采用读改写的方式写入27bit的流水号数据",
  ParamInfo:["要写入的流水号低2字节","要写入的流水号高2字节"],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:40,
  TaskName:"写固定延时",
  TaskBrief:"写入延时并掉电保存，需要复位后刷新",
  ParamInfo:["延时值ms"],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},
{
  TaskID:41,
  TaskName:"复位",
  TaskBrief:"0复位至bootloader，1复位至app",
  ParamInfo:["复位类型"],
  ReturnInfo:[],
  CommTestCmd:"ResistorSample",
},




];
EW_ErrorInfo={
//错误描述
//主错误段
MajorErrInfo:[
{
Info:"执行成功",
MajorErrCode:0,
SubErrCode:[],
ErrFac:["参考错误细分项"],
},
{
Info:"检测器异常",
MajorErrCode:1,
SubErrCode:[21,23,254],
ErrFac:["参考错误细分项"],
},
{
Info:"主电容异常",
MajorErrCode:2,
SubErrCode:[30,31,32,33,34,35,42],
ErrFac:["参考错误细分项"],
},
{
Info:"接触异常",
MajorErrCode:3,
SubErrCode:[27],
ErrFac:["参考错误细分项"],
},
{
Info:"桥丝阻值异常",
MajorErrCode:4,
SubErrCode:[30,41,42,51],
ErrFac:["参考错误细分项"],
},
{
Info:"芯片异常",
MajorErrCode:5,
SubErrCode:[22,24,25,26,27,28,29,30,32,33,35,36,37,38,39,40,41,42,43,44,45,52,53,54],
ErrFac:["参考错误细分项"],
},
{
Info:"判定任务缺失",
MajorErrCode:6,
SubErrCode:[212],
ErrFac:["参考错误细分项"],
},
{
Info:"过流",
MajorErrCode:7,
SubErrCode:[],
ErrFac:["参考错误细分项"],
},
{
Info:"短路",
MajorErrCode:8,
SubErrCode:[],
ErrFac:["参考错误细分项"],
},
{
Info:"未执行槽任务",
MajorErrCode:9,
SubErrCode:[],
ErrFac:["参考错误细分项"],
},
{
Info:"槽任务参数错误",
MajorErrCode:10,
SubErrCode:[],
ErrFac:["参考错误细分项"],
},
{
Info:"其他异常",
MajorErrCode:20,
SubErrCode:[255,208,209,210,211,212,213],
ErrFac:["参考错误细分项"],
},
],//需要根据返回参数进行判断]
SubErrInfo:[
//详细错误段
{Info:"无异常",ErrCode:0,
ErrFac:["当检测任务不产生异常时使用此错误码"]},		
{Info:"预设电压异常",ErrCode:21,
ErrFac:["1.检测小板电压调节失效，存在无法设置的电压"]},		
{Info:"上电充能错误",ErrCode:22,
ErrFac:["1.检测器输出电压异常","2.模块上电容性负载大","3.模块基本电路异常"],
},
{Info:"电压设置异常",ErrCode:23,
ErrFac:["1.检测小板输出电压异常","2.外部短路，导致过流保护"]
},
{Info:"UID扫描错误",ErrCode:24,
ErrFac:["1.芯片通信异常","2.OTP中UID非0(启用了UID全0检测)"]},			
{Info:"OTP错误",ErrCode:25,
ErrFac:["1.OTP数据非全0(启用了全0检测)"]
},					
{Info:"通讯电流错误",ErrCode:26,
ErrFac:["1.芯片反码电流异常"]
},
{Info:"基本电流错误",ErrCode:27,
ErrFac:["1.芯片的静态功耗异常","2.检测器输出电压异常"]
},		
{Info:"读取芯片ID错误",ErrCode:28,
ErrFac:["1.通信错误"]
},			
{Info:"密码验证错误",ErrCode:29,
ErrFac:["1.芯片异常，内部密码与严重密码不一致"]
},
{Info:"DAC比较错误",ErrCode:30,
ErrFac:["1.芯片异常，检测DAC不准","2.电容端电压异常，不符合检测要求","3.高压或充电降压通信异常","4.芯片充电漏流偏大"]
},			
{Info:"高压充能错误",ErrCode:31,
ErrFac:["1.电容漏流","2.电容容值偏低或偏大","3.芯片充电漏流,充电回路或起爆回路","4.芯片高压基本电流偏大","5.芯片异常，充电电流偏小"]
},			
{Info:"充电电流错误",ErrCode:32,
ErrFac:["1.芯片异常，充电电流符合指标"]
},
{Info:"高压充末电流错误",ErrCode:33,
ErrFac:["1.电容漏流","2.芯片充电回路漏流或起爆回路漏流","3.芯片高压基本电流偏大"],
},		
{Info:"低压充电能量错误",ErrCode:34,
ErrFac:["1.电容漏流","2.电容容值偏低或偏大","3.芯片充电漏流,充电回路或起爆回路","4.芯片低压基本电流偏大","5.芯片异常，充电电流偏小","6.高压充电后不能放电"],
},			
{Info:"低压充末电流错误",ErrCode:35,
ErrFac:["1.电容漏流","2.芯片充电回路漏流或起爆回路漏流","3.芯片基本功耗偏大"],
},
{Info:"写延时错误",ErrCode:36,
ErrFac:["1.芯片设置延时功能异常","2.通信异常"]
},			
{Info:"读延时错误",ErrCode:37,
ErrFac:["1.芯片读延时功能异常","2.通信异常"]
},				
{Info:"芯片程测错误",ErrCode:38,
ErrFac:["1.芯片成测标记错误，非全FFFF","2.通信异常"]
},
{Info:"时钟校准错误",ErrCode:39,
ErrFac:["1.检测器命令执行异常"],
},		
{Info:"写工厂信息错误",ErrCode:40,
ErrFac:["1.OTP数据写入出错","2.通信异常"]
},			
{Info:"模拟起爆错误",ErrCode:41,
ErrFac:["1.发送起爆指令后无应答"]},
{Info:"芯片状态码异常",ErrCode:42,
ErrFac:["1.状态码与设置的掩码不匹配","2.通讯异常"]
},		
{Info:"通信电流错误",ErrCode:43,
ErrFac:["1.芯片异常","2.检测器异常"],
},			
{Info:"反码时长错误",ErrCode:44,
ErrFac:["1.芯片异常，通讯无反码","2.通讯反码电流低，不能识别"]
},
{Info:"复位放电错误",ErrCode:45,
ErrFac:["1.高压充电后降压通讯异常","2.芯片复位不能正常放电","3.芯片异常，指令不执行"],
},
{Info:"桥丝阻值异常",ErrCode:51,
ErrFac:["1.桥丝电阻不符合标准","2.测试设备校准偏差"],
},
{Info:"三码绑定失败",ErrCode:52,
ErrFac:["1.模块已注过码","2.芯片异常，无法注码"],
},
{Info:"三码验证失败",ErrCode:53,
ErrFac:["1.芯片异常，注码后验证失败"],
},
{Info:"升级失败",ErrCode:54,
ErrFac:["1.芯片异常","2.通信异常","3.模块程序执行异常"],
},

{Info:"通信超时",ErrCode:208,
ErrFac:["1.小板状态异常，不响应通信指令","2.小板与主板之间通信异常"],
},
{Info:"脚本执行失败",ErrCode:209,
ErrFac:["1.脚本功能异常","2.配置文件配置为不使用脚本"],
},
{Info:"数据长度与方案不符",ErrCode:210,
ErrFac:["1.小板和主板使用的方案不同，更新方案即可","2.脚本功能异常"],
},
{Info:"方案ID不符",ErrCode:211,
ErrFac:["1.使用的方案和脚本适配的方案不适配，更换相应的脚本或者方案即可"],
},
{Info:"检测项目不足",ErrCode:212,
ErrFac:["1.方案中未执行异常判定所需的任务，无法判定异常","2.脚本功能异常"],
},
{Info:"数据不合规",ErrCode:213,
ErrFac:["1.用于判定的数据不具有正常的电性能检测规律，模块检测时不应出现此错误","2.脚本功能异常",
"3.方案中相关异常判定参数设置不合理","4.小板和主板使用的方案不同但数据返回长度相同，导致错误解释了返回数据的含义"],
},




{Info:"检测器执行异常",ErrCode:254,
ErrFac:["广播类命令执行错误"],
},		
{Info:"返回参数判断",ErrCode:255,
ErrFac:[],
},//需要通过指标判断
],
};
var EW_Product_Names=["EW"];