123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #ifndef __SETTING__H_
- #define __SETTING__H_
- #define APN_SEGMENT_MAX_LEN (30+1)
- #define IMEI_SIZE 15
- void cmdSetting(char *msg);
- typedef enum{
- SERVER_HZ,
- SERVER_SD,
- SERVER_FENFA,
- SERVER_JIQUN,
- SERVER_UR,
- }SERVER_ENUM;
- #pragma pack(push)
- #pragma pack(1)
- typedef struct{
- char pip[40];
- char gip[40];
- }SERVER_DEF;
- typedef struct{
- unsigned char defaultuse;
- SERVER_DEF zh;
- SERVER_DEF sd;
- SERVER_DEF ur;
- char ipFenFa[40];
- char jiqun[40];
- }SERVER_LISTTYPE;
- typedef struct{
- char account[APN_SEGMENT_MAX_LEN];
- char pass[APN_SEGMENT_MAX_LEN];
- }APN_NAMEDEF;
- typedef struct{
- unsigned char defaultuse;
- unsigned char apnShowFlag;
- char APN_Name[APN_SEGMENT_MAX_LEN];
- APN_NAMEDEF apnList[4];
- }APN_LISTTYPE;
- typedef struct{
- unsigned short proID;
- unsigned short CityID;
- unsigned char Manufacturers[5];
- unsigned char TerMod[20];
- unsigned char TerID[7];
- unsigned char PlateColor;
- char Plate[8];
- }AUTH_REGDEF;
- typedef struct{
- unsigned char authCode[7];
- AUTH_REGDEF registerPara;
- }AUTH_TYPEDEF;
- typedef struct{
- unsigned char ConfigFlag;
- unsigned char Mode;
-
- unsigned char spkVol;
- unsigned char reversed[49];
-
- char ttsMessage[20*4];
- unsigned char ttsCodeType;
- unsigned char serverMenuPass[6];
- unsigned char messageResetFlag;
- unsigned int messageNewAddr;
- unsigned short lcdParaList[5];
- unsigned char lcdParaDefaultIndex;
- unsigned char authType;
- SERVER_LISTTYPE serList;
- APN_LISTTYPE apnList;
- unsigned char netMode;
- unsigned char SoundMode;
- unsigned char KeySound;
- unsigned char gpsTimeIndex;
- AUTH_TYPEDEF authPara;
- unsigned short gpsPort;
- unsigned char pwrMode;
- unsigned char lvl;
- unsigned char boardLayout;
- unsigned char outDoorLvl;
- unsigned char gpsEnable;
- unsigned char bubiaoEnable;
- }SYSINI_HS191X_DEF;
- #pragma pack(pop)
- extern SYSINI_HS191X_DEF newPara;
- extern char showPIP[40];
- extern char showGIP[40];
- void sysIniSave(void);
- void sysIniRead(void);
- void readInfoNow(void);
- void setPocPara(char *pocPara,int len);
- char *getPIPAddr(void);
- char *getGIPAddr(void);
- char *getDOMAINAddr(void);
- char *getMenuKey(void);
- #endif
|