1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef GPS_DATA_H
- #define GPS_DATA_H
- /******************************************************************************/
- #include "stdint.h"
- typedef struct SUT_GPS_INF
- {
- unsigned char isGpsWork:1;//GPS模块工作标志
- unsigned char isGpsValid:1;//GPS定位标志 0 GPS未定位 1 GPS已定位
- unsigned char isServerLogin:1; //GPS 服务器连接成功标志
- unsigned char isAutoSend:1;//自动发送标志
- unsigned char isGpsAuthOk:1;//GPS是否鉴权成功
- // unsigned char isFirstLocationSend:1;//is location package send and get ack or not after ath ok
- unsigned char GpsInactiveCt;//串口没反应计数器 ,当串口接收到消息则清零 ,否则持续时间长将复位模块
-
- unsigned char HostCmd;//主机下发的命令
- //unsigned short SendTime;//发送到服务器的时间间隔 秒为单位
- //unsigned short GPSSendTime;
- unsigned int GPS_SecondCnt;
- unsigned short GPS_UploadTime;
- unsigned char GPS_TimeIndexBackup;
-
- unsigned char year;
- unsigned char month;
- unsigned char day;
- unsigned char hour;
- unsigned char minu;
- unsigned char sec;
-
- unsigned char startnum;
- unsigned short hight;
-
- uint32_t longitue;//经度
- uint32_t latitue;//纬度
-
- uint32_t speed;//速度
- uint32_t aspect;//方位
- uint32_t AvgSpeed;//平均速度
- uint32_t speedbuf[5];
- uint32_t StatisticsMile ;//历程统计
- //----------
- unsigned char Status;
- unsigned char Location[16];
- unsigned char Speed[8];
- unsigned char Time[8];
-
- uint32_t testJD;
- uint32_t testWD;
-
- char NSFlag;//N 北纬 S 南纬
- char EWFlag;//E 东经 W 西经
- unsigned int locationTime;
- unsigned char locationflag;
- unsigned char Ts_Event_Chek;//点名事件
- // unsigned char reAthCnt;//resend ath time max 5
- }SUT_GPS_INF;
- typedef enum{
- GPS_NULL,
- GNRMC=1,
- GPVTG,
- GNGGA
- }GPS_DATA_TYPE;
- extern GPS_DATA_TYPE GPS_Data_Type;
- extern SUT_GPS_INF sutGpsInfo;
- extern void process_nema(char *nema);
- /********************************************************************************/
- #endif // GPS_STRUCT_H
|