12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #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;//默认使用哪一个服务 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 paCnt;
- unsigned char reversed[48];//保留段
- ///////////////////////////////////////
- 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,且无文本消息菜单(不显示)
- }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
|