123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- #ifndef __SETTING__H_
- #define __SETTING__H_
- #define APN_SEGMENT_MAX_LEN (30+1)
- #define IMEI_SIZE 15
- 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;//默认使用哪一个��0 zh 1 sd
- 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;//默认使用哪一个APN
- unsigned char apnShowFlag;//是�显示出APN��
- char APN_Name[APN_SEGMENT_MAX_LEN];
- APN_NAMEDEF apnList[4];
- }APN_LISTTYPE;
- typedef struct{
- unsigned short proID;//�域ID
- unsigned short CityID;//市域ID
- unsigned char Manufacturers[5];//åˆ¶é€ å•†
- unsigned char TerMod[20];//终端型�
- unsigned char TerID[7];//终端ID
- unsigned char PlateColor;//车牌颜色
- char Plate[8];//è½¦è¾†æ ‡è¯†
- }AUTH_REGDEF;
- typedef struct{
- unsigned char authCode[7];
- AUTH_REGDEF registerPara;
- }AUTH_TYPEDEF;
- typedef struct{
- unsigned char ConfigFlag;//0 表示刷新了代ç �å�Žç¬¬ä¸€æ¬¡è¿�è¡?
- unsigned char Mode;//�置文件所属机�
- ///////////////////////////////////////
- unsigned char spkVol;
- unsigned char VolMicLvCu;
- unsigned char VolMicLvXi;
- unsigned char newold_plam;
- unsigned char voiceSel;//ÒôÖÊ Ä¬Èϱê×¼
-
- unsigned char reversed[45];//�留�
- ///////////////////////////////////////
- char ttsMessage[20*4];//开机TTS,空则ä¸�æ’放
- unsigned char ttsCodeType;//TTSç¼–ç �类型
- unsigned char serverMenuPass[6];//æœ�务器è�œå�•å¯†ç ?
- unsigned char messageResetFlag;//'R'表示��文件消�
- unsigned int messageNewAddr;//新消�的地�
- unsigned short lcdParaList[5];//LCD�显时间�数
- unsigned char lcdParaDefaultIndex;//LCD当�使用的�显索�
- unsigned char authType;//鉴�类型 3GPP
- SERVER_LISTTYPE serList;
- APN_LISTTYPE apnList;
- unsigned char netMode;//网络模�
- unsigned char SoundMode;//0室内 1 室外
- unsigned char KeySound;//æ��示音打开状æ€?0å…³é— 1打开
- unsigned char gpsTimeIndex;//GPSä¸Šä¼ æ—¶é—´ç´¢å¼•
- AUTH_TYPEDEF authPara;//éƒ¨æ ‡å�‚æ•°
- unsigned short gpsPort;//GPS�务器端�
- unsigned char pwrMode;//功耗模�
- unsigned char lvl;//公网室内模å¼�å–‡å�音é‡�
- unsigned char boardLayout;//�层�
- unsigned char outDoorLvl;//公网室外模å¼�å–‡å�音é‡�
- unsigned char gpsEnable;//�支�,则默认�开GPS,且GPS��(�显�,如果支�,则自动强制bubiaoEnable支�
- unsigned char bubiaoEnable;//ä¸�支æŒ�ï¼Œåˆ™æ— GPSï¼Œä¸”æ— æ–‡æœ¬æ¶ˆæ�¯è�œå�?ä¸�显ç¤?
- unsigned char ChangeCard;
- }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);
- void cmdSetting(char *msg);
- void saveInfoNow(USER_STOR_INFO *info);
- #endif
|