blob: d796c826f81211f87353caa1165ac55dee08042e [file] [log] [blame]
/**
* @file cfg_nv_def.h
* @brief ÌṩÁËap²àµÄnvºê¶¨Òå
*
* Copyright (C) 2017 Sanechips Technology Co., Ltd.
* @author
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#ifndef __CFG_NV_DEF_H_
#define __CFG_NV_DEF_H_
//atserver inner
#define NV_CFUN_STATE "cfun_state"
#define NV_SIM_PIN "sim_pin"
#define NV_SIM_PUK "sim_puk"
#define NV_ZCONSTAT_UP_RESULT "zconstat_up_result"
#define NV_CGATT_SET_RESULT "cgatt_set_result"
#define NV_ZGACT_RESULT_DEFAULTCID "zgact_result_defaultcid" //ĬÈÏcid
#define NV_ZGACT_RESULT_PPPDCID "zgact_result_pppdcid" //pppdcid
#define NV_CSQ_DONE "csq_done"
#define NV_M_NETSELECT_MODE "m_netselect_mode"
#define NV_SMS_STORE "sms_store"
#define NV_SMS_LOAD_RESULT "sms_load_result"
#define NV_SMS_STATE "sms_state"
#define NV_SMS_RECV_RESULT "sms_recv_result"
#define NV_SMS_SEND_RESULT "sms_send_result"
#define NV_REG_STATUS "reg_status"
#define NV_TDREG_STATUS "tdreg_status"
#define NV_PB_USEDENTRIES "pb_usedEntries"
#define NV_PB_TOTALENTRIES "pb_totalEntries"
#define NV_SMS_SAVE_RESULT "sms_save_result"
#define NV_SMS_DEL_RESULT "sim_del_result"
#define NV_SR_STATE "sr_state"
#define NV_CHECK_UDL "check_udl"
#define NV_CPMS_SET_CURRENT "cpms_set_current"
#define NV_SMS_LOCATION_SET "sms_location_set"
#define NV_SMS_INIT_STATUS "sms_init_status"
#define NV_SMS_IN_NUM "sms_in_num"
#define NV_ACTIONLTE "actionlte"
#define NV_UARFCNLTE "uarfcnlte"
#define NV_CELLPARAIDLTE "cellParaIdlte"
#define NV_DAIL_STEP "dail_step"
#define NV_CONNECT_LOGIC "connect_logic"
#define NV_NETWORK_CATEGORY_BASED_ON "network_category_based_on"
#define NV_SSID1 "SSID1"
#define NV_WPAPSK1 "WPAPSK1"
/*lock cell*/
#define LOCK_CELL_STATE_FLAG "LOCK_CELL_STATE"
/*sms*/
#define ZTE_WMS_NVCONFIG_SIM_CAPABILITY "sms_sim_capability"
#define ZTE_WMS_NVCONFIG_NV_CAPABILITY "sms_nv_capability"
#define ZTE_WMS_NVCONFIG_RECEVIED "sms_received_flag"
#define ZTE_WMS_NVCONFIG_SMS_REPORT "sts_received_flag"
#define ZTE_WMS_NVCONFIG_RECEVIED_LED "view_message_flag" /*this nv used for led,and the function same as sms_received_flag*/
#define ZTE_WMS_NVCONFIG_RECEVIED_REMIND "sms_remind" /*this nv used for web remind */
#define ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL "sim_card_total"
#define ZTE_WMS_NVCONFIG_SIM_CARD_USED "sim_card_used"
#define ZTE_WMS_NVCONFIG_SIM_CARD_REMAIN "sim_card_remain"
/*pb*/
#define ZPB_NV_USIMINDEXMIN "pbusimindexmin"
#define ZPB_NV_USIMINDEXMAX "pbusimindexmax"
#define ZPB_NV_USIMMEMORYFULL "usimmemoryfull"
//common
#define NV_NETWORK_PROVIDER "network_provider"
#define NV_NETWORK_TYPE "network_type"
#define NV_SUB_NETWORK_TYPE "sub_network_type"
#define NV_SIMCARD_ROAM "simcard_roam"
#define NV_CSQ "csq"
#define NV_RSSI "rssi"
#define NV_WAN_IPADDR "wan_ipaddr"
#define NV_WAN_NETMASK "wan_netmask"
#define NV_WAN_GATEWAY "wan_gateway"
#define NV_PREFER_DNS_AUTO "prefer_dns_auto"
#define NV_STANDBY_DNS_AUTO "standby_dns_auto"
#define NV_PIN_MANAGE_RESULT "pin_manage_result"
#define NV_PINNUMBER "pinnumber"
#define NV_PUKNUMBER "puknumber"
#define NV_PIN_STATUS "pin_status"
#define NV_PIN_PUK_PROCESS "pin_puk_process"
#define NV_PIN_MANAGE_PROCESS "pin_manage_process"
#define NV_MCC "mcc"
#define NV_MNC "mnc"
#define NV_SIMCARD_TYPE "cardType"
#define NV_OPER_NUM "network_num_oper"
#define NV_ZGIPDNS_RESULT_DEFAULTCID "zgipdns_result_defaultcid"//ĬÈÏcid
#define NV_ZGIPDNS_RESULT_PPPDCID "zgipdns_result_pppdcid"//pppdcid
#define NV_RESETMODEM "resetModem"
#define NV_SIGNALBAR "signalbar"
#define NV_AUTO_RECONNECT "auto_reconnect"
#define NV_IPV6_WAN_IPADDR "ipv6_wan_ipaddr"
#define NV_IPV6_WAN_DEFAULT_GW_ADDR "ipv6_wan_default_gw_addr"
#define NV_IPV6_PREFER_DNS_AUTO "ipv6_prefer_dns_auto"
#define NV_IPV6_STANDBY_DNS_AUTO "ipv6_standby_dns_auto"
#define NV_SD_CARD_STATE "sd_card_state"
#define NV_SIM_IMSI "sim_imsi"
#define NV_SIM_ICCID "sim_iccid"
#define NV_MSISDN "msisdn"
#define NV_ZICCID "ziccid"
#define NV_SYS_MODE "sys_mode"
#define NV_SYS_SUBMODE "sys_submode"
#define NV_DATA_CARD "data_card"
#define NV_NEED_SUPPORT_PB "need_support_pb"
#define NV_NEED_SUPPORT_SMS "need_support_sms"
#define NV_SMS_CENTER_NUM "sms_center_num"
#define NV_SMS_DB_CHANGE "sms_db_change"
#define NV_PPP_STATUS "ppp_status" //cid=1 Á´Â·×´Ì¬
#define NV_DIAL_MODE "dial_mode"
#define NV_MODEM_MAIN_STATE "modem_main_state"
#define NV_PINSET_RESULT "pinset_result"
#define NV_IMEI "imei"
#define NV_CR_VERSION "cr_version"
#define NV_WA_VERSION "wa_version"
#define NV_HW_VERSION "hw_version"
#define NV_CR_INNER_VERSION "cr_inner_version"
#define NV_SET_DEVICEMODE_DEBUG_ENABLE "set_devicemode_debug_enable"
#define NV_SET_DEVICEMODE_STATUS "set_devicemode_status"
#define NV_SET_DEVICEMODE_PROCESS "set_devicemode_process"
#define NV_AUTO_SIMPIN "auto_simpin"
#define NV_SYSTIME_MODE "systime_mode"
#define NV_APN_MODE "apn_mode"
#define NV_PDP_TYPE "pdp_type"
#define NV_PDP_STATUS "pdp_status"
#define NV_WAN_APN "wan_apn"
#define NV_IPV6_WAN_APN "ipv6_wan_apn"
#define NV_M_PROFILE_NAME "m_profile_name"
#define NV_APN_AUTO_CONFIG "apn_auto_config"
#define NV_NET_NUM "net_num"
#define NV_M_NETSELECT_STATUS "m_netselect_status"
#define NV_M_NETSELECT_CONTENTS "m_netselect_contents"
#define NV_M_NETSELECT_RESULT "m_netselect_result"
#define NV_STR_NUM_RPLMN_TMP "str_num_rplmn_tmp"
#define NV_STR_NUM_RPLMN "str_num_rplmn"
#define NV_CURRENT_RAT_TMP "current_rat_tmp"
#define NV_CURRENT_RAT "current_rat"
#define NV_ROAM_SETTING_OPTION "roam_setting_option"
#define NV_NET_SELECT_RESULT "net_select_result"
#define NV_NET_SELECT_MODE "net_select_mode"
#define NV_TRAFFIC_RECV_SMS_ID "traffic_recv_sms_id"
#define NV_TRAFFIC_SMS_NUMBER "traffic_sms_number"
#define NV_REPORT_ENABLE "report_enable"
#define NV_SENDFAIL_RETRY "sendfail_retry"
#define NV_OUTDATE_DELETE "outdate_delete"
#define NV_DEFAULT_STORE "default_store"
#define NV_PRA_MEMSTORE "pra_memstore"
#define NV_SMS_VP "sms_vp"
#define NV_CLEAR_SMS_WHEN_RESTORE "clear_sms_when_restore"
#define NV_CLEAR_PB_WHEN_RESTORE "clear_pb_when_restore"
#define NV_NET_SELECT "net_select"
#define NV_PRE_MODE "pre_mode"
#define NV_AUTO_SIMPIN_CODE "auto_simpin_code"
#define NV_NETWORK_NEED_TDS "network_need_tds"
#define NV_NETWORK_NEED_GSM "network_need_gsm"
#define NV_PPP_AUTH_MODE "ppp_auth_mode"
#define NV_PPP_USERNAME "ppp_username"
#define NV_PPP_PASSWD "ppp_passtmp"
#define NV_IPV6_PPP_AUTH_MODE "ipv6_ppp_auth_mode"
#define NV_IPV6_PPP_USERNAME "ipv6_ppp_username"
#define NV_IPV6_PPP_PASSWD "ipv6_ppp_passtmp"
#define NV_IPV6_PDP_TYPE "ipv6_pdp_type"
#define NV_UNLOCK_NCK_TIME "unlock_nck_time"
#define NV_SN_BOARDNUM "sn_boardnum"
#define NV_OPMS_WAN_MODE "opms_wan_mode"
#define NV_LAC_CODE "lac_code"
#define NV_TAC_CODE "tac_code"
#define NV_CELL_ID "cell_id"
//unused
#define NV_ECIO "ecio"
#define NV_UNLOCK_AT_WAIT "unlock_at_wait"
#define NV_SIM_SPN "sim_spn"
#define NV_SEND_PIN_FLAG "send_pin_flag"
#define NV_LOCK_UI "lock_ui"
#define NV_ACTION "action"
#define NV_UARFCN "uarfcn"
#define NV_CELLPARAID "cellParaId"
#define NV_BANDLOCKSET "BandLockSet"
#define NV_BANDLOCKSTATE "BandLockState"
#define NV_PPP_DIAL "ppp_dial"
#define NV_ZCELL_RESULT "Zcell_result"
#define NV_CELLLOCKSET "CellLockSet"
#define NV_CELLLOCKSTATE "CellLockState"
#define NV_PHO_DEL "pho_del"
#define NV_CLCK_SET_MODE "clck_set_mode"
#define NV_NEED_SIM_PIN "need_sim_pin"
#define NV_BLC_WAN_MODE "blc_wan_mode"
#define NV_BLC_WAN_AUTO_MODE "blc_wan_auto_mode"
//mmiʹÓõÄÏà¹ØµÄNV
/*******************************NETÄ£¿é**********************************/
//#define NETTYPE_NV_NAME "network_type"
//#define PPP_STATUS_NV_NAME "ppp_status"
//#define NV_SIGNAL_NUM "signalbar"
#define NV_RJ45_PLUG "rj45_plug"
#define RJ45_WAN_LAN_OFF "wan_lan_off"
#define RJ45_WAN_ON_LAN_OFF "wan_on_lan_off"
#define RJ45_WAN_OFF_LAN_ON "wan_off_lan_on"
#define RJ45_WAN_LAN_ON "wan_lan_on"
/*******************************quotaÄ£¿é**********************************/
//#define NV_QUOTA_FROM_SERVER "quota_from_server"
#define NV_TOTALQUOTA_FROM_SERVER "totalquota_from_server"
/*******************************smsÄ£¿é**********************************/
//#define SMS_IN_BOX_STATUS_NV "sms_init_status"
#define SMS_IN_BOX_STATUS_UNREAD "sms_unread"
#define SMS_IN_BOX_STATUS_FULL "sms_memory_full"
#define SMS_IN_BOX_STATUS_NOR "sms_normal"
#define SMS_UNREAD_COUNT_NV "sms_unread_count"
/*******************************voipÄ£¿é**********************************/
#define NV_VOIP_STATUS "voip_status"
/*******************************timeÄ£¿é**********************************/
#define HOUR_NV "sntp_hour"
#define MINUTE_NV "sntp_minute"
/*******************************tipÄ£¿é**********************************/
//#define NV_SIM_CARD_STATE "modem_main_state"
#define NV_SIM_STATE_PUK_WATIT "modem_waitpuk"
#define NV_SIM_STATE_PIN_WATIT "modem_waitpin"
#define NV_SIM_STATE_DESTROY "modem_sim_destroy"
#define NV_SIM_STATE_READY "modem_ready"
#define NV_SIM_STATE_NCK_WAIT "modem_imsi_waitnck"
#define NV_SIM_STATE_UNDETECTED "modem_sim_undetected"
#define NV_SIM_STATE_BUSY "afdafaf"
#define NV_SIM_STATE_INIT_COMPLETE "modem_init_complete"
#define NV_SIM_STATE_INIT_EXCPTION "modem_undetected"
//#define NV_NET_PROVIDER "network_provider"
#define NV_NET_PROVIDER_CMCC "China Mobile"
#define NV_NET_PROVIDER_CUCC "China Unicom"
#define NV_NET_PROVIDER_CTCC "China Telecom"
#define NV_NET_BOLT_4G_1 "PLMN--51088"
#define NV_NET_BOLT_4G_2 "PLMN--51068"
#define NV_NET_BOLT_4G_3 "51088"
#define NV_NET_BOLT_4G_4 "51068"
#define NV_NET_BOLT_4G_5 "BOLT SUPER 4G"
#define NV_SSID_WRITE_FLAG "ssid_write_flag"
//#define NV_SSID "SSID1"
#define NV_WIFIKEY "WPAPSK1"
#define NV_MULTI_SSID_SWITCH "m_ssid_enable"
#define NV_SSID2 "m_SSID"
#define NV_WIFIKEY2 "m_WPAPSK1"
#define NV_WIFISTA_SSID "EX_SSID1"
//#define NV_MSISDN "msisdn_from_server"
#define NV_SINR "lte_sinr"
#define NV_PCI "lte_pci"
#define NV_ACESS_DURATION "realtime_time"
#define NV_CURRENT_UAAGE_TX "realtime_tx_bytes"
#define NV_CURRENT_UAAGE_RX "realtime_rx_bytes"
//#define NV_NEED_SIM_PIN "need_sim_pin"
/*******************************trafficÄ£¿é**********************************/
#define NV_TRAFFIC_LIMIT_SWITCH "data_volume_limit_switch" //Á÷Á¿¼à¿Ø¿ª¹Ø 1:¿ª£¬0:¹Ø
#define NV_TRAFFIC_LIMIT_UNIT "data_volume_limit_unit" //Á÷Á¿µ¥Î» ÓÐdataºÍtimeÁ½ÖÖ
#define NV_TRAFFIC_LIMIT_SIZE "data_volume_limit_size" //Á÷Á¿×ÜÖµ
#define NV_TRAFFIC_ALERT_PERCENT "data_volume_alert_percent" //Á÷Á¿¸æ¾¯Öµ
#define NV_TRAFFIC_USED_DATA "flux_month_total" //ÒÑʹÓÃÁ÷Á¿Öµ µ¥Î»B
#define NV_TRAFFIC_USED_TIME "monthly_time" //ÒÑʹÓÃʱ¼äÁ÷Á¿Öµ µ¥Î»S
#define NV_TRAFFIC_LIMIT_UNIT_DATA "data"
#define NV_TRAFFIC_LIMIT_UNIT_TIME "time"
/*******************************wifiÄ£¿é**********************************/
//#define WLAN_NV_WIFI_SLEEP_NAME "wifiSleep"
#define WLAN_NV_AP_HIDESSID_NAME "HideSSID"
#define WLAN_NV_AUTHMODE_NAME "AuthMode"
#define WLAN_NV_ENCRYP_TYPE_NAME "EncrypType"
#define WLAN_NV_WSC_MODE_NAME "WscModeOption"
#define WLAM_NV_WPS_MODE_NAME "wps_mode"
#define WLAN_NV_VA0_WIIF_NUM "sta_count"
#define WLAN_NV_VA1_WIIF_NUM "m_sta_count"
#define WLAN_NV_CUR_STATE "wifi_cur_state"
#define WLAN_NV_PROCESS_STATE "wifi_process_state"
/************************** ¿ìËÙ¿ª»úÏà¹Ø¶¨Òå***********************/
#define POWERON_MODE "mgmt_quicken_power_on"
#define FAST_POWERON_MODE "1"
#define NV_FAKE_POWEROFF_STATE "mmi_fake_poweroff_state" //is fake-poweroff state? 1:yes , 0:no
/****************GPS***********************************************/
#define GPS_NV_UPDATE_FLAG "gps_update_flag"
#endif