123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #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; //不接耳机时SPK音量
- unsigned char micGain;//接耳机时MIC耳机增益
- unsigned char itemShowType;//0 开机显示 公网集群对讲 注册后显示三大运营商 1 一直显示公网集群对讲
- unsigned char spkGain;//接耳机时SPK耳机增益
- unsigned char lockType;//键盘锁类型 1 全锁 0 只锁正面三键
- unsigned char reversed[50-5];//保留段
- ///////////////////////////////////////
- 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 int defaultPsn;
- }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 *getMenuKey(void);
- void cmdSetting(char *msg);
- #endif
|