123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- #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 BleEnable; //À¶ÑÀ״̬
- unsigned char BleSpkLv;
- unsigned char BleMicLv;
- unsigned char Xinbiao_station;
- unsigned char Xinbiao_LiveUpdate;
- unsigned char Xinbiao_SendMode;
- unsigned char Xinbiao_Time;
- unsigned char Xinbiao_IpEnable;
- unsigned char menu_tts; //²Ëµ¥TTS
- unsigned char Poc_sound; //
- unsigned char Shake;
- unsigned char sidekey01_func;
- unsigned char sidekey02_func; //01
- unsigned char SpkMode; //场景模�
- unsigned char MicMode; //MIC模å¼� 高ä¸ä½Ž
-
- unsigned char reversed[50-20];//�留段
- ///////////////////////////////////////
- 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(char *reason);
- 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 ModemSetZZDPocPara();
- #endif
|