📄 debug.c
字号:
chM[16] = (g_chDoorStatTemp % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 248;
}
break;
case 248://g_chOpenDoorID[3]
{
unsigned char chM[] = "OpenDoorID: xxx\n\r";
chM[12] = g_chOpenDoorID[0];
chM[13] = g_chOpenDoorID[0];
chM[14] = g_chOpenDoorID[0];
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 249;
}
break;
case 249://g_chDC g_chTheTwoAD
{
unsigned char chM[] = "DC: xxx xxx\n\r";
chM[4] = (g_chDC / 100) + 48;
chM[5] = ((g_chDC/ 10) % 10)+ 48;
chM[6] = (g_chDC % 10) + 48;
chM[8] = (g_chTheTwoAD / 100) + 48;
chM[9] = ((g_chTheTwoAD/ 10) % 10)+ 48;
chM[10] = (g_chTheTwoAD % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 250;
}
break;
case 250://g_chBadGas
{
unsigned char chM[] = "BadGas: xxx\n\r\n\r";
chM[8] = (g_chBadGas / 100) + 48;
chM[9] = ((g_chBadGas / 10) % 10)+ 48;
chM[10] = (g_chBadGas % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 251;
}
break;
case 251://g_chLcdDriveHead
{
unsigned char chM[] = "LcdDriveHead: xx\n\r";
chM[14] = (g_chLcdDriveHead / 10) + 48;
chM[15] = (g_chLcdDriveHead % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 252;
}
break;
case 252://g_chLcdDriveTail
{
unsigned char chM[] = "LcdDriveTail: xx\n\r";
chM[14] = (g_chLcdDriveTail / 10) + 48;
chM[15] = (g_chLcdDriveTail % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 253;
}
break;
case 253://g_chLcdDrive_Stat
{
unsigned char chM[] = "LcdDrive_Stat: xx\n\r\n\r";
chM[15] = (g_chLcdDrive_Stat / 10) + 48;
chM[16] = (g_chLcdDrive_Stat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 254;
}
break;
case 254://g_chMainLcdProcess_Stat
{
unsigned char chM[] = "MainLcdProcess_Stat: xxx\n\r\n\r";
chM[21] = (g_chMainLcdProcess_Stat / 100) + 48;
chM[22] = ((g_chMainLcdProcess_Stat / 10) % 10)+ 48;
chM[23] = (g_chMainLcdProcess_Stat % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 255;
}
break;
//g_chEnv_Free
case 255://g_chMainLcdProcess_Stat
{
unsigned char chM[] = "Env_Free: xxx\n\r\n\r";
chM[10] = (g_chEnv_Free / 100) + 48;
chM[11] = ((g_chEnv_Free / 10) % 10)+ 48;
chM[12] = (g_chEnv_Free % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 256;
}
break;
//unsigned char g_chFS_Mark;//----按位表明1-8列的FS的要等待发送的告警或恢复状态
case 256://
{
unsigned char chM[] = "FS_Mark: xxx\n\r";
chM[9] = (g_chFS_Mark / 100) + 48;
chM[10] = ((g_chFS_Mark / 10) % 10)+ 48;
chM[11] = (g_chFS_Mark % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 257;
}
break;
//unsigned char g_chFS_SelfCheck_Mark;//----按位表明1-8列的FS的要等待发送的自检告警或恢复状态
case 257://
{
unsigned char chM[] = "FS_SelfCheck_Mark: xxx\n\r";
chM[19] = (g_chFS_SelfCheck_Mark / 100) + 48;
chM[20] = ((g_chFS_SelfCheck_Mark / 10) % 10)+ 48;
chM[21] = (g_chFS_SelfCheck_Mark % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 258;
}
break;
//unsigned char g_chGP_Mark;//----按位表明1-8列的工频传感器的要等待发送的告警或恢复状态
case 258://
{
unsigned char chM[] = "GP_Mark: xxx\n\r";
chM[9] = (g_chGP_Mark / 100) + 48;
chM[10] = ((g_chGP_Mark / 10) % 10)+ 48;
chM[11] = (g_chGP_Mark % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 259;
}
break;
//unsigned char g_chGP_SelfCheck_Mark;//----按位表明1-8列的工频传感器的要等待发送的自检告警或恢复状态
case 259://
{
unsigned char chM[] = "GP_SelfCheck_Mark: xxx\n\r";
chM[19] = (g_chGP_SelfCheck_Mark / 100) + 48;
chM[20] = ((g_chGP_SelfCheck_Mark / 10) % 10)+ 48;
chM[21] = (g_chGP_SelfCheck_Mark % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 260;
}
break;
//unsigned char g_chCable_Mark;//----按位表明1-8列的主干电缆的要等待发送的告警或恢复状态
case 260://
{
unsigned char chM[] = "Cable_Mark: xxx\n\r";
chM[12] = (g_chCable_Mark / 100) + 48;
chM[13] = ((g_chCable_Mark / 10) % 10)+ 48;
chM[14] = (g_chCable_Mark % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 261;
}
break;
//unsigned char g_chFS_Alert;//----按位表明1-8列的FS的要等待发送的告警状态
case 261://
{
unsigned char chM[] = "FS_Alert: xxx\n\r";
chM[10] = (g_chFS_Alert / 100) + 48;
chM[11] = ((g_chFS_Alert / 10) % 10)+ 48;
chM[12] = (g_chFS_Alert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 262;
}
break;
//unsigned char g_chFS_SelfCheck_Alert;//----按位表明1-8列的FS的要等待发送的自检告警状态
case 262://
{
unsigned char chM[] = "FS_SelfCheck_Alert: xxx\n\r";
chM[20] = (g_chFS_SelfCheck_Alert / 100) + 48;
chM[21] = ((g_chFS_SelfCheck_Alert / 10) % 10)+ 48;
chM[22] = (g_chFS_SelfCheck_Alert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 263;
}
break;
//unsigned char g_chGP_Alert;//----按位表明1-8列的工频传感器的要等待发送的告警状态
case 263://
{
unsigned char chM[] = "GP_Alert: xxx\n\r";
chM[10] = (g_chGP_Alert / 100) + 48;
chM[11] = ((g_chGP_Alert / 10) % 10)+ 48;
chM[12] = (g_chGP_Alert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 264;
}
break;
//unsigned char g_chGP_SelfCheck_Alert;//----按位表明1-8列的工频传感器的要等待发送的自检告警状态
case 264://
{
unsigned char chM[] = "GP_SelfCheck_Alert: xxx\n\r";
chM[20] = g_chGP_SelfCheck_Alert + 48;
chM[21] = ((g_chGP_SelfCheck_Alert / 10) % 10)+ 48;
chM[22] = (g_chGP_SelfCheck_Alert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 265;
}
break;
//unsigned char g_chCable_Alert;//----按位表明1-8列的主干电缆的要等待发送的告警状态
case 265://
{
unsigned char chM[] = "Cable_Alert: xxx\n\r";
chM[13] = (g_chCable_Alert / 100) + 48;
chM[14] = ((g_chCable_Alert / 10) % 10)+ 48;
chM[15] = (g_chCable_Alert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 266;
}
break;
//unsigned char g_chFS_Restore;//----按位表明1-8列的FS的要等待发送的恢复状态
case 266://
{
unsigned char chM[] = "FS_Restore: xxx\n\r";
chM[12] = (g_chFS_Restore / 100) + 48;
chM[13] = ((g_chFS_Restore / 10) % 10)+ 48;
chM[14] = (g_chFS_Restore % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 267;
}
break;
//unsigned char g_chFS_SelfCheck_Restore;//----按位表明1-8列的FS的要等待发送的自检恢复状态
case 267://
{
unsigned char chM[] = "FS_SelfCheck_Restore: xxx\n\r";
chM[22] = (g_chFS_SelfCheck_Restore / 100) + 48;
chM[23] = ((g_chFS_SelfCheck_Restore / 10) % 10)+ 48;
chM[24] = (g_chFS_SelfCheck_Restore % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 268;
}
break;
//unsigned char g_chGP_Restore;//----按位表明1-8列的工频传感器的要等待发送的恢复状态
case 268://
{
unsigned char chM[] = "GP_Restore: xxx\n\r";
chM[12] = (g_chGP_Restore / 100) + 48;
chM[13] = ((g_chGP_Restore / 10) % 10)+ 48;
chM[14] = (g_chGP_Restore % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 269;
}
break;
//unsigned char g_chGP_SelfCheck_Restore;//----按位表明1-8列的工频传感器的要等待发送的自检恢复状态
case 269://
{
unsigned char chM[] = "GP_SelfCheck_Restore: xxx\n\r";
chM[22] = (g_chGP_SelfCheck_Restore / 100) + 48;
chM[23] = ((g_chGP_SelfCheck_Restore / 10) % 10)+ 48;
chM[24] = (g_chGP_SelfCheck_Restore % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 270;
}
break;
//unsigned char g_chCable_Restore;//----按位表明1-8列的主干电缆的要等待发送的恢复状态
case 270://
{
unsigned char chM[] = "Cable_Restore: xxx\n\r\n\r";
chM[15] = (g_chCable_Restore / 100) + 48;
chM[16] = ((g_chCable_Restore / 10) % 10)+ 48;
chM[17] = (g_chCable_Restore % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 271;
}
break;
//extern unsigned char g_chEnv_Mark;// -------按位表明1-2通道的环境的要等待发送告警或恢复状态
// //3--5位为三路环境模拟量:温度1,有害气体,48V,第6位为门系统
case 271://
{
unsigned char chM[] = "Env_Mark: xxx\n\r\n\r";
chM[10] = (g_chEnv_Mark / 100) + 48;
chM[11] = ((g_chEnv_Mark / 10) % 10)+ 48;
chM[12] = (g_chEnv_Mark % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 272;
}
break;
//extern unsigned char g_chEnv_Alert;// -------按位表明1-2通道的环境的要等待发送告警状态
// //3--5位为三路环境模拟量:温度1,有害气体,48V,第6位为门系统
case 272://
{
unsigned char chM[] = "Env_Alert: xxx\n\r\n\r";
chM[11] = (g_chEnv_Alert / 100) + 48;
chM[12] = ((g_chEnv_Alert / 10) % 10)+ 48;
chM[13] = (g_chEnv_Alert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 273;
}
break;
//extern unsigned char g_chEnv_Restore;// -------按位表明1-2通道的环境的要等待发送恢复状态
// //3--5位为三路环境模拟量:温度1,有害气体,48V,第6位为门系统
case 273://
{
unsigned char chM[] = "Env_Restore: xxx\n\r\n\r";
chM[13] = (g_chEnv_Restore / 100) + 48;
chM[14] = ((g_chEnv_Restore / 10) % 10)+ 48;
chM[15] = (g_chEnv_Restore % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 274;
}
break;
//extern unsigned char g_chEnv_LowHign;//对于 象 温度1 48V 要分高还是低告警!
case 274://
{
unsigned char chM[] = "Env_LowHign: xxx\n\r\n\r";
chM[13] = (g_chEnv_LowHign / 100) + 48;
chM[14] = ((g_chEnv_LowHign / 10) % 10)+ 48;
chM[15] = (g_chEnv_LowHign % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 275;
}
break;
////温度
//extern unsigned char g_chTemperatureAlert,
case 275://
{
unsigned char chM[] = "TemperatureAlert: xxx\n\r\n\r";
chM[18] = (g_chTemperatureAlert / 100) + 48;
chM[19] = ((g_chTemperatureAlert / 10) % 10)+ 48;
chM[20] = (g_chTemperatureAlert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 276;
}
break;
//g_chTemperatureRestore;
case 276://
{
unsigned char chM[] = "TemperatureRestore: xxx\n\r\n\r";
chM[20] = (g_chTemperatureRestore / 100) + 48;
chM[21] = ((g_chTemperatureRestore / 10) % 10)+ 48;
chM[22] = (g_chTemperatureRestore % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 277;
}
break;
////3 个 A/D 处理
//extern unsigned char g_chDCAlert,
case 277://
{
unsigned char chM[] = "DCAlert: xxx\n\r\n\r";
chM[9] = (g_chDCAlert / 100) + 48;
chM[10] = ((g_chDCAlert / 10) % 10)+ 48;
chM[11] = (g_chDCAlert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 278;
}
break;
//g_chDCRestore;//P6。2
case 278://
{
unsigned char chM[] = "DCRestore: xxx\n\r\n\r";
chM[11] = (g_chDCRestore / 100) + 48;
chM[12] = ((g_chDCRestore / 10) % 10)+ 48;
chM[13] = (g_chDCRestore % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 279;
}
break;
//extern unsigned char g_chBadGasAlert,
case 279://
{
unsigned char chM[] = "BadGasAlert: xxx\n\r\n\r";
chM[13] = (g_chBadGasAlert / 100) + 48;
chM[14] = ((g_chBadGasAlert / 10) % 10)+ 48;
chM[15] = (g_chBadGasAlert % 10) + 48;
InsertDebugSendBuf((unsigned char *)chM,sizeof(chM) - 1);
g_intMainDebugProcess_Stat = 280;
}
break;
//g_chBadGasRestore;//P6。0
case 280://
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -