123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- /********************************************************************************
- * File Name: ProductPara.h
- * Function Describe: Header file for ProductPara.c
- * Explain:
- * Writer: ShiLiangWen
- * Date: 2015-7-6
- *******************************************************************************/
- #ifndef __PRODUCT_PARA_H
- #define __PRODUCT_PARA_H
- /*=============================================================================*/
- #include "PocTask.h"
- //IAP相关
- #define STM32_FLASH_SIZE 128 //所选STM32的FLASH容量大小(单位为K)
- #define STM32_RAM_SIZE 64
- #define STM32_FLASH_BASE 0x08000000 //STM32 FLASH的起始地址
- #define MCU_FLAG 192 // //MCU标志 128+64
- #define MAIN_CONFIG_ADDR (STM32_FLASH_BASE+126*1024) //第126,127k
- #define BACKUP_CONFIG_ADDR (STM32_FLASH_BASE+124*1024) //第124,125k
- //#define MODEM_TYPE MODEM_TYPE_M9507C
- #define PRODUCT_VERSION 175
- #define INTER_VER 0
- //产品相关
- #define PRODUCT_NAME "T640" //产品型号名,字符串长度不能大于13个字符 CDMA 修改会清除参数
- //调试信息打印
- #define SLW_DEBUG
- //服务器相关 默认
- #define POC_SERVER_IP "0.0.0.0"//"183.131.13.10"
- #define POC_SERVER_PORT 1390
- #define GPS_SERVER_IP "0.0.0.0" //"183.131.13.6" //Higos Gps server 100.64.106.86
- #define TSGPS_SERVER_PORT 1395 //部标服务端口GPS_SERVER_PORT
- //VPN
- #define APN_APN "ctnet"
- #define APN_NAME "card"
- #define APN_PASSWORD "card"
- /***************M20**********************/
- #define LANGUAGE "cn"
- #define LOCAL "lcn"
- #define NET_MODE "4G"
- #define KEY_SOUND "open"
- #define MODECHANNEL "3225"
- #define DEFAULT_GPS_SEND_TIME_INDEX 4 //default GPS send time
- #define APN_LEN 30
- #define RECORD_INFO_ADDRESS 0x380000
- //----------------------------------------------------------
- typedef struct
- {
- unsigned char McuFlag; //MCU标识 101 --STM32F101CB
- unsigned char IapFlag; //IAP标志 0x55--需要空中升级; 0x88--正常运行应用程序 ; 其他---无应用程序
- unsigned char takeNoteFlag;//0 不记录保存参数信息 1 记录
- char ProductName[14];//项目名
- unsigned short ProductVersion; //版本号
- unsigned short PocPort; //POC Port
- unsigned short GpsPort; //GPS Port
- unsigned long PSN; //产品序列号
- char PIP[40]; //POC IP
- char GIP[40]; //GPS IP
- char APNApn[APN_LEN+1];
- char APNName[APN_LEN+1]; //APN
- char APNPass[APN_LEN+1]; //APN Password
- unsigned short m_GPS_TimeIndex;
- unsigned char APNIndex;
- unsigned char g_net;
- char HARDID[16];
- char ApnAuthType; //认证类型
- /******************M20新参数*******************/
- unsigned char Net_Mode[3];//3G-4G
- unsigned char Language[3];//CN EN
- unsigned char Channel[32];
- unsigned char Local[10]; //CN EN
- unsigned char SendToneEnadble;//s是否激活PTT提示音 0 1 //发送提示音
- unsigned char PromptToneEnable; //是否激活信息语音提示
- char IMEI[16]; //目前用来存账号
- unsigned char Keysound[6];
- unsigned char FastInterface;
- unsigned char Aw8735;
- unsigned char Netmode;
- unsigned char LowConsumption;
- unsigned char RecvToneEnadble;//接收提示音
- unsigned char LCDSetIndex;
- signed char VbatCalibration;
- //unsigned char dummy;//用来确定是偶数用的
- }__attribute__ ((packed)) SUT_PRODUCT_PARA;
- extern SUT_PRODUCT_PARA sutProductPara;
- extern unsigned char HardRevision[25];
- void ReadProductParaFromFlash(void);
- void SaveProductParaToFlash(char *recoreInfo);
- void GpsTimeUpdate(void);
- /*=============================================================================*/
- #endif
- /************************************file begin*******************************/
|