#include "includes.h" STATUE netPPP=CLOSE; void FotaTickHandler(unsigned char socketID){ //buBiaoLogic(socketID); } /* 做GPS服务器发送业务 主要是用于鉴权和获取系统时间 */ void buBiaoTickHandler(unsigned char socketID){ buBiaoLogic(socketID); } /* 做GPS服务器接收业务 */ void buBiaoRecvHandler(unsigned char *data, unsigned int len){ unsigned short length; if(data[0]==TSGPS_PACK_HEAD && data[len-1]==TSGPS_PACK_END){ length=reduce(data+1, len-1); buBiaoDataProcess(data, length); }else SlwTrace(INF, "Not Bubaio protol",1); } /* 做布标socket被断开业务(可能是服务器关断,也可能是终端自己发指令关) */ void buBiaoSocketShutDown(unsigned char socketID){ SlwTrace(INF, "buBiaoSocket Down",1); sutGpsInfo.isGpsAuthOk=0; }