package BaoWen; import Method.GetNowTime; import Method.StringToHex; import PbuliClass.ShowMessage; import home.Log; /**»ùվ״̬Êý¾Ý * ״ֵ̬0x1 ÖØÆô * ״ֵ̬0x2 Éý¼¶ * ״ֵ̬0x3 Éý¼¶Ê§°Ü * ״ֵ̬0x4 BootÆô¶¯µØÖ·´íÎó * ״ֵ̬0x5 ÅäÖñíÒì³£ * ״ֵ̬0x6 »Ö¸´³ö³§ÉèÖà * ״ֵ̬0x7 */ public class Dell_55AA10 { public static void dell(String message) { //ԭʼÊý¾Ý String[] hex=StringToHex.hex(message); // String type= hex[2] ;//Ö¸ÁîÀàÐÍ // int datalenth=DellMessage.decodeHEX(hex[3]) ;//Êý¾Ý³¤¶È //±êÇ©ID String anchorid=hex[5]+hex[4]; //״ֵ̬ String state=hex[7]+hex[6]; switch(state){ case "0001" : Log.saveinlog("anchorout,"+anchorid+",ÖØÆô,"+GetNowTime.now()+"\n"); ShowMessage.zidingyi(anchorid+"Éè±¸ÖØÆô³É¹¦"); break; case "0002" : Log.saveinlog("anchorout,"+anchorid+",Éý¼¶,"+GetNowTime.now()+"\n"); ShowMessage.zidingyi(anchorid+"Éý¼¶"); break; case "0003" : Log.saveinlog("anchorout,"+anchorid+",Éý¼¶Ê§°Ü,"+GetNowTime.now()+"\n"); ShowMessage.zidingyi(anchorid+"Éý¼¶Ê§°Ü"); break; case "0004" : Log.saveinlog("anchorout,"+anchorid+",BootÆô¶¯µØÖ·´íÎó,"+GetNowTime.now()+"\n"); break; case "0005" : Log.saveinlog("anchorout,"+anchorid+",ÅäÖñíÒì³£,"+GetNowTime.now()+"\n"); ShowMessage.zidingyi(anchorid+"ÅäÖñíÒì³£"); break; case "0006" : Log.saveinlog("anchorout,"+anchorid+",»Ö¸´³ö³§ÉèÖÃ,"+GetNowTime.now()+"\n"); ShowMessage.zidingyi(anchorid+"»Ö¸´³ö³§ÉèÖÃ"); break; } hex=null; } }