var XTCheckerTaskInfo=[
{
TaskID:0,
TaskName:"电源准备",
TaskBrief:"检测前校准检测过程中需要使用的电压，便于检测过程中快速输出电压。电压范围55~270",
ParamInfo:["预设电压1","预设电压2","预设电压3","预设电压4","预设电压5","预设电压6","预设电压7","预设电压8","预设电压9","预设电压10",],
ReturnInfo:[],
CommTestCmd:"PowerPrapare",
},{
TaskID:1,
TaskName:"上电充能",
TaskBrief:"统计模块的上电充能，具有电压设置功能,电流= AD/4096/10/34",
ParamInfo:["总线电压","采样超时0.1ms","计时启停ADC"],
ReturnInfo:["总线电压","大于启停的时间"],
CommTestCmd:"PowerOn",
},{
TaskID:2,
TaskName:"设置总线电压",
TaskBrief:"设置总线电压为预设电压中的值",
ParamInfo:["总线电压"],
ReturnInfo:["总线电压"],
CommTestCmd:"SetBusV",
},{
TaskID:3,
TaskName:"获取总线电流",
TaskBrief:"获取总线正反两个极性电流",
ParamInfo:[],
ReturnInfo:["总线正电流","总线反电流"],
CommTestCmd:"BaseCur",
},{
TaskID:4,
TaskName:"扫描UID",
TaskBrief:"扫描总线上的电子模块 1发",
ParamInfo:["UID长度","使1/失0UID对比"],
ReturnInfo:[],
CommTestCmd:"ScanUID",
},{
TaskID:5,
TaskName:"写配置参数",
TaskBrief:"写入配置参数 UID 密码长度，反码电流挡位 版本号。 0:100uF大电解30um桥丝,1:68uF坦电容22um桥丝,2:68uF坦电容8Ω电阻,\
 3:68uF坦电容6Ω电阻,4:33uF钽电容22um桥丝",
ParamInfo:["UID长度","密码长度","电流挡位","版本号"],
ReturnInfo:[],
CommTestCmd:"WriteChipCfg",
},{
TaskID:6,
TaskName:"验证配置",
TaskBrief:"写入配置参数 UID 密码长度，反码电流挡位 版本号。 0:100uF大电解30um桥丝,1:68uF坦电容22um桥丝,2:68uF坦电容8Ω电阻,\
 3:68uF坦电容6Ω电阻,4:33uF钽电容22um桥丝",
ParamInfo:["UID长度","密码长度","电流挡位","版本号"],
ReturnInfo:[],
CommTestCmd:"CheckChipCfg",
},{
TaskID:7,
TaskName:"模拟注码",
TaskBrief:"写入测试UID和密码,优先配置写入配置项",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"BindTestCode",
},{
TaskID:8,
TaskName:"充能统计",
TaskBrief:"充能统会发送充电命令，计电流判线设定值，从上升到下降的时间。\
同时记录充过程中最大电流。以及结束高压充电的总线电流和充电电流监控时间。\
充电电流判线计数公式 电流=AD/4093*3.3/100  R100_2mA_33mA_MC。\
充电挡位：17-1V 34-4V 51-10V 68-12V 85-14V 102-16V 119-18V 136-22V 153-20V",
ParamInfo:["充电挡位","统计超时","电流判线AD","充电结束值0.1uA","充电超时0.1S","电流监控0.1S"],
ReturnInfo:["充能值0.1ms","充末电流0.1uA","最大充电电流0.1mA","充电抖动ADV"],
CommTestCmd:"ChgEnergy",
},
{
TaskID:9,
TaskName:"设置现场值",
TaskBrief:"写现场值,如果UID已经写入，会将现场值读取进行比对",
ParamInfo:["编号","延时","孔号"],
ReturnInfo:[],
CommTestCmd:"WriteRunField",
},{
TaskID:10,
TaskName:"比对现场值",
TaskBrief:"对内部编号、延时、孔号进行比对,要求优先获取芯片UID",
ParamInfo:["编号","延时","孔号","1使/0失反馈采集"],
ReturnInfo:["最大反馈电流","最大反馈时间","最小反馈电流","最小反馈时间"],
CommTestCmd:"CheckRunField",
},
{
TaskID:11,
TaskName:"桥丝检测",
TaskBrief:"桥丝通断检测,如果测试器有uid，将采用uid方式通信",
ParamInfo:[],
ReturnInfo:["桥丝ADC"],
CommTestCmd:"Resister",
},{
TaskID:12,
TaskName:"电容测量",
TaskBrief:"电容容量检测,如果测试器有uid，将采用uid方式通信, 电压等级： 17-1V 34-4V 51-10V",
ParamInfo:["测试电压","超时时间0.1ms"],
ReturnInfo:["电容容量0.1uF"],
CommTestCmd:"Cap",
},{
TaskID:13,
TaskName:"延时等待",
TaskBrief:"延时等待，并监控总线电流波动",
ParamInfo:["延时时间0.1s","1使能监控"],
ReturnInfo:["电流波动AD"],
CommTestCmd:"WaitDelay",
},{
TaskID:14,
TaskName:"写管壳码",
TaskBrief:"写管壳码(工厂信息) 如果测试器有uid，将采用uid方式通信",
ParamInfo:["数据缓存起始","写入长度"],
ReturnInfo:[],
CommTestCmd:"WriteShell",
},{
TaskID:15,
TaskName:"写UID",
TaskBrief:"将缓存信息写入到芯片UID区域",
ParamInfo:["数据缓存起始","写入长度"],
ReturnInfo:[],
CommTestCmd:"WriteUID",
},{
TaskID:16,
TaskName:"写密码",
TaskBrief:"将缓存信息写入到芯片密码区域",
ParamInfo:["数据缓存起始","写入长度"],
ReturnInfo:[],
CommTestCmd:"WritePWD",
},{
TaskID:17,
TaskName:"备份区标记",
TaskBrief:"备份区标记检测,备份区用于存储检测标记",
ParamInfo:["0标记1比对","数据掩码","数据"],
ReturnInfo:[],
CommTestCmd:"CheckBackFlag",
},{
TaskID:18,
TaskName:"读取备份区",
TaskBrief:"读取备份区数据,备份区用于被标记检测，外部测量电阻值，内部测量ADC",
ParamInfo:["2Bytes数据","2Bytes数据"],
ReturnInfo:[],
CommTestCmd:"ReadBackFlag",
},{
TaskID:19,
TaskName:"时钟校准",
TaskBrief:"发送校准脉冲",
ParamInfo:[" 1快速0全","校准周期","校准时长"],
ReturnInfo:[],
CommTestCmd:"Trim",
},{
TaskID:20,
TaskName:"使能通信电流采集",
TaskBrief:"使能通信末电流采集，对下行命令发送完成后电流进行采集",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"EnCommEndCur",
},{
TaskID:21,
TaskName:"获取通信末电流",
TaskBrief:"需要先执行使能通信电流采集，然后该命令获取使能后通信末的电流",
ParamInfo:[],
ReturnInfo:["通信末电流"],
CommTestCmd:"GetCommEndCur",
},{
TaskID:22,
TaskName:"放电",
TaskBrief:"执行快速放电命令",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"Discharge",
},{
TaskID:23,
TaskName:"在线检测",
TaskBrief:"在线巡检，根据网络号点名，比对是否正确 ",
ParamInfo:["网络号","脉冲个数"],
ReturnInfo:[],
CommTestCmd:"OneLineCheck",
},{
TaskID:24,
TaskName:"状态码检测",
TaskBrief:"状态检测,如果UID已经存在，使用UID读取。否则通过扫描的方式",
ParamInfo:["比较掩码","比较位"],
ReturnInfo:["状态值"],
CommTestCmd:"CheckState",
},{
TaskID:25,
TaskName:"起爆",
TaskBrief:"检测是否满足起爆调节，执行起爆，接收起爆后反馈",
ParamInfo:["起爆超时0.1ms","巡检脉冲"],
ReturnInfo:["起爆用时","网络号"],
CommTestCmd:"Boom",
},{
TaskID:26,
TaskName:"复位",
TaskBrief:"执行软件复位命令",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"Reset",
},{
TaskID:27,
TaskName:"关总线",
TaskBrief:"发送放电后关闭总线",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"PowerOFF",
},{
TaskID:28,
TaskName:"芯片锁存",
TaskBrief:"锁存芯片C类指令",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"LockCmdC",
},{
TaskID:29,
TaskName:"赋码设备使能",
TaskBrief:"设置赋码标志位，在接收到赋码命令后，可跳过总线开启和在线检测",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"CodeBindEn",
},{
TaskID:30,
TaskName:"接入检测",
TaskBrief:"通过电流和通信，检测模块是否接入",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"InputCheck",
},{
TaskID:31,
TaskName:"密码验证",
TaskBrief:"验证内部存储的密码，首先需要执行写入密码或模拟注码",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"CheckPWD",
},{
TaskID:32,
TaskName:"加载配置",
TaskBrief:"获取芯片内部UID长度，密码长度、版本号信息、反码电流信息",
ParamInfo:[],
ReturnInfo:["UID长度","密码长度","版本号","反码挡位"],
CommTestCmd:"",
},{
TaskID:33,
TaskName:"电容压差",
TaskBrief:"充电后，总线断电测试电容给芯片供电，评估芯片延时功耗",
ParamInfo:["断电时间0.1S"],
ReturnInfo:["压差mV"],
CommTestCmd:"CapVoltage",
},{
TaskID:34,
TaskName:"桥丝电阻测试",
TaskBrief:"测量桥丝阻值。可配置测量模式 0 4线制， 1 2线1-4通，2 2线2-3通",
ParamInfo:["测量模式"],
ReturnInfo:["电容0.01Ω"],
CommTestCmd:"ResistorSample",
},{
TaskID:35,
TaskName:"三码绑定",
TaskBrief:"注码检测指令使用，直接使用命令中的三码数据",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"BindUIDPWD",
},{
TaskID:36,
TaskName:"验证三码",
TaskBrief:"验证芯片三码数据，直接使用命令中的三码数据",
ParamInfo:[],
ReturnInfo:[],
CommTestCmd:"VerifyUIDPWD",
},{
TaskID:37,
TaskName:"在线检测",
TaskBrief:"在线检测 并扫描通信",
ParamInfo:["总线电压","超时1ms","UID长度"],
ReturnInfo:["总线电压"],
CommTestCmd:"OnLineSCAN",
},{
TaskID:38,
TaskName:"验证管壳/工厂信息",
TaskBrief:"验证存储再芯片管壳码区域的数据与缓存区是否一致",
ParamInfo:["缓存起始","缓存长度"],
ReturnInfo:["总线电压"],
CommTestCmd:"VerfyShell",
},


{
TaskID:201,
TaskName:"充电电流",
TaskBrief:"在线检测 并扫描通信",
ParamInfo:["充电使能","采样周期","采样次数"],
ReturnInfo:[],
CommTestCmd:"CurMonitor",
},{
TaskID:202,
TaskName:"写入缓存",
TaskBrief:"将16进制数据写入缓存空间",
ParamInfo:["缓存空间数据（不超过32字节，空格隔开）"],
ReturnInfo:[],
CommTestCmd:"SetWriteBufHex",
},


];

XT_ErrorInfo={
//错误描述
//主错误段
MajorErrInfo:[
{
Info:"执行成功",
MajorErrCode:0,
SubErrCode:[],
ErrFac:["参考错误细分项"],
},
// 添加异常代码254
{
Info:"检测器异常",
MajorErrCode:1,
SubErrCode:[21,23,254],
ErrFac:["参考错误细分项"],
},
{
Info:"主电容异常",
MajorErrCode:2,
SubErrCode:[31,32,33,34,35],
ErrFac:["参考错误细分项"],
},
{
Info:"接触异常",
MajorErrCode:3,
SubErrCode:[27,37],
ErrFac:["参考错误细分项"],
},
{
Info:"桥丝阻值异常",
MajorErrCode:4,
SubErrCode:[30,51],
ErrFac:["参考错误细分项"],
},
{
Info:"芯片异常",
MajorErrCode:5,
SubErrCode:[22,24,25,26,27,28,29,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,54,55],
ErrFac:["参考错误细分项"],
},
{
Info:"判定任务缺失",
MajorErrCode:6,
SubErrCode:[212],
ErrFac:["参考错误细分项"],
},
{
Info:"过流",
MajorErrCode:7,
SubErrCode:[],
ErrFac:["参考错误细分项"],
},
{
Info:"短路",
MajorErrCode:8,
SubErrCode:[],
ErrFac:["参考错误细分项"],
},
{
Info:"其他异常",
MajorErrCode:20,
SubErrCode:[255,208,209,210,211,212,213],
ErrFac:["参考错误细分项"],
},
],//需要根据返回参数进行判断]
SubErrInfo:[
//详细错误段
{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.芯片内部存储的UID与参考UID不一致"]},			
{Info:"标记区验证错误",ErrCode:25,
ErrFac:["1.验证标志位没有置位（检测流程出错","2.芯片数据被擦写","3.通信异常"]
},					
{Info:"通讯后电流错误",ErrCode:26,
ErrFac:["1.芯片执行指令异常","2.芯片通信接收功耗异常"]
},
{Info:"基本电流错误",ErrCode:27,
ErrFac:["1.芯片的静态功耗异常","2.检测器输出电压异常"]
},		
{Info:"配置错误",ErrCode:28,
ErrFac:["1.芯片错误","2.通信异常"]
},			
{Info:"验证配置",ErrCode:29,
ErrFac:["1.芯片内部数据与检测数据不一致，数据丢失","2.芯片通信异常","3.芯片数据被改写"]
},
{Info:"桥丝错误",ErrCode:30,
ErrFac:["1.桥丝开路，或阻值异常","2.芯片异常，检测不准"]
},			
{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:46,
ErrFac:["1.置位标志命令未执行","2.置位命令参数错误","3.电容电压检测失败","4,芯片异常，状态标志不能置位"],
},
{Info:"三码验证错误",ErrCode:47,
ErrFac:["1.扫描获取的UID和写入的UID不一致","2.密码不一致，验证标志位未置位","3.芯片状态标志异常，不能置位"],
},
{Info:"写管壳码",ErrCode:48,
ErrFac:["1.缓存空间数据验证错误","2.指令执行错误，未收到应答","3.芯片功能异常，指令执行失败"],
},
{Info:"写密码",ErrCode:49,
ErrFac:["1.缓存空间数据验证错误","2.指令执行错误，未收到应答","3.芯片功能异常，指令执行失败"],
},
{Info:"写现场值错误",ErrCode:50,
ErrFac:["1.UID不匹配","2.芯片内部的配置未设置正确","3.芯片功能异常，通信无反馈"],
},
{Info:"桥丝阻值异常",ErrCode:51,
ErrFac:["1.桥丝电阻不符合标准","2.测试设备校准偏差"],
},
{Info:"缓存信息写入失败",ErrCode:54,
ErrFac:["1.系统内部缓存数据异常","2.芯片数据写入异常"],
},
{Info:"模拟注码错误",ErrCode:55,
ErrFac:["1.系统内部缓存数据异常","2.芯片数据写入异常"],
},
{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 XT_Product_Names=["EX"];


