lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @file cfg_nv_def.h |
| 3 | * @brief ÌṩÁËap²àµÄnvºê¶¨Òå |
| 4 | * |
| 5 | * Copyright (C) 2017 Sanechips Technology Co., Ltd. |
| 6 | * @author |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef __CFG_NV_DEF_H_ |
| 15 | #define __CFG_NV_DEF_H_ |
| 16 | |
| 17 | //atserver inner |
| 18 | #define NV_CFUN_STATE "cfun_state" |
| 19 | #define NV_SIM_PIN "sim_pin" |
| 20 | #define NV_SIM_PUK "sim_puk" |
| 21 | #define NV_ZCONSTAT_UP_RESULT "zconstat_up_result" |
| 22 | #define NV_CGATT_SET_RESULT "cgatt_set_result" |
| 23 | #define NV_ZGACT_RESULT_DEFAULTCID "zgact_result_defaultcid" //ĬÈÏcid |
| 24 | #define NV_ZGACT_RESULT_PPPDCID "zgact_result_pppdcid" //pppdcid |
| 25 | #define NV_CSQ_DONE "csq_done" |
| 26 | #define NV_M_NETSELECT_MODE "m_netselect_mode" |
| 27 | #define NV_SMS_STORE "sms_store" |
| 28 | #define NV_SMS_LOAD_RESULT "sms_load_result" |
| 29 | #define NV_SMS_STATE "sms_state" |
| 30 | #define NV_SMS_RECV_RESULT "sms_recv_result" |
| 31 | #define NV_SMS_SEND_RESULT "sms_send_result" |
| 32 | #define NV_REG_STATUS "reg_status" |
| 33 | #define NV_TDREG_STATUS "tdreg_status" |
| 34 | #define NV_PB_USEDENTRIES "pb_usedEntries" |
| 35 | #define NV_PB_TOTALENTRIES "pb_totalEntries" |
| 36 | #define NV_SMS_SAVE_RESULT "sms_save_result" |
| 37 | #define NV_SMS_DEL_RESULT "sim_del_result" |
| 38 | #define NV_SR_STATE "sr_state" |
| 39 | #define NV_CHECK_UDL "check_udl" |
| 40 | #define NV_CPMS_SET_CURRENT "cpms_set_current" |
| 41 | #define NV_SMS_LOCATION_SET "sms_location_set" |
| 42 | #define NV_SMS_INIT_STATUS "sms_init_status" |
| 43 | #define NV_SMS_IN_NUM "sms_in_num" |
| 44 | #define NV_ACTIONLTE "actionlte" |
| 45 | #define NV_UARFCNLTE "uarfcnlte" |
| 46 | #define NV_CELLPARAIDLTE "cellParaIdlte" |
| 47 | #define NV_DAIL_STEP "dail_step" |
| 48 | #define NV_CONNECT_LOGIC "connect_logic" |
| 49 | #define NV_NETWORK_CATEGORY_BASED_ON "network_category_based_on" |
| 50 | #define NV_SSID1 "SSID1" |
| 51 | #define NV_WPAPSK1 "WPAPSK1" |
| 52 | /*lock cell*/ |
| 53 | #define LOCK_CELL_STATE_FLAG "LOCK_CELL_STATE" |
| 54 | /*sms*/ |
| 55 | #define ZTE_WMS_NVCONFIG_SIM_CAPABILITY "sms_sim_capability" |
| 56 | #define ZTE_WMS_NVCONFIG_NV_CAPABILITY "sms_nv_capability" |
| 57 | #define ZTE_WMS_NVCONFIG_RECEVIED "sms_received_flag" |
| 58 | #define ZTE_WMS_NVCONFIG_SMS_REPORT "sts_received_flag" |
| 59 | #define ZTE_WMS_NVCONFIG_RECEVIED_LED "view_message_flag" /*this nv used for led,and the function same as sms_received_flag*/ |
| 60 | #define ZTE_WMS_NVCONFIG_RECEVIED_REMIND "sms_remind" /*this nv used for web remind */ |
| 61 | #define ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL "sim_card_total" |
| 62 | #define ZTE_WMS_NVCONFIG_SIM_CARD_USED "sim_card_used" |
| 63 | #define ZTE_WMS_NVCONFIG_SIM_CARD_REMAIN "sim_card_remain" |
| 64 | /*pb*/ |
| 65 | #define ZPB_NV_USIMINDEXMIN "pbusimindexmin" |
| 66 | #define ZPB_NV_USIMINDEXMAX "pbusimindexmax" |
| 67 | #define ZPB_NV_USIMMEMORYFULL "usimmemoryfull" |
| 68 | //common |
| 69 | #define NV_NETWORK_PROVIDER "network_provider" |
| 70 | #define NV_NETWORK_TYPE "network_type" |
| 71 | #define NV_SUB_NETWORK_TYPE "sub_network_type" |
| 72 | #define NV_SIMCARD_ROAM "simcard_roam" |
| 73 | #define NV_CSQ "csq" |
| 74 | #define NV_RSSI "rssi" |
| 75 | #define NV_WAN_IPADDR "wan_ipaddr" |
| 76 | #define NV_WAN_NETMASK "wan_netmask" |
| 77 | #define NV_WAN_GATEWAY "wan_gateway" |
| 78 | #define NV_PREFER_DNS_AUTO "prefer_dns_auto" |
| 79 | #define NV_STANDBY_DNS_AUTO "standby_dns_auto" |
| 80 | #define NV_PIN_MANAGE_RESULT "pin_manage_result" |
| 81 | #define NV_PINNUMBER "pinnumber" |
| 82 | #define NV_PUKNUMBER "puknumber" |
| 83 | #define NV_PIN_STATUS "pin_status" |
| 84 | #define NV_PIN_PUK_PROCESS "pin_puk_process" |
| 85 | #define NV_PIN_MANAGE_PROCESS "pin_manage_process" |
| 86 | #define NV_MCC "mcc" |
| 87 | #define NV_MNC "mnc" |
| 88 | #define NV_SIMCARD_TYPE "cardType" |
| 89 | #define NV_OPER_NUM "network_num_oper" |
| 90 | #define NV_ZGIPDNS_RESULT_DEFAULTCID "zgipdns_result_defaultcid"//ĬÈÏcid |
| 91 | #define NV_ZGIPDNS_RESULT_PPPDCID "zgipdns_result_pppdcid"//pppdcid |
| 92 | #define NV_RESETMODEM "resetModem" |
| 93 | #define NV_SIGNALBAR "signalbar" |
| 94 | #define NV_AUTO_RECONNECT "auto_reconnect" |
| 95 | #define NV_IPV6_WAN_IPADDR "ipv6_wan_ipaddr" |
| 96 | #define NV_IPV6_WAN_DEFAULT_GW_ADDR "ipv6_wan_default_gw_addr" |
| 97 | #define NV_IPV6_PREFER_DNS_AUTO "ipv6_prefer_dns_auto" |
| 98 | #define NV_IPV6_STANDBY_DNS_AUTO "ipv6_standby_dns_auto" |
| 99 | #define NV_SD_CARD_STATE "sd_card_state" |
| 100 | #define NV_SIM_IMSI "sim_imsi" |
| 101 | #define NV_SIM_ICCID "sim_iccid" |
| 102 | #define NV_MSISDN "msisdn" |
| 103 | #define NV_ZICCID "ziccid" |
| 104 | #define NV_SYS_MODE "sys_mode" |
| 105 | #define NV_SYS_SUBMODE "sys_submode" |
| 106 | #define NV_DATA_CARD "data_card" |
| 107 | #define NV_NEED_SUPPORT_PB "need_support_pb" |
| 108 | #define NV_NEED_SUPPORT_SMS "need_support_sms" |
| 109 | #define NV_SMS_CENTER_NUM "sms_center_num" |
| 110 | #define NV_SMS_DB_CHANGE "sms_db_change" |
| 111 | #define NV_PPP_STATUS "ppp_status" //cid=1 Á´Â·×´Ì¬ |
| 112 | #define NV_DIAL_MODE "dial_mode" |
| 113 | #define NV_MODEM_MAIN_STATE "modem_main_state" |
| 114 | #define NV_PINSET_RESULT "pinset_result" |
| 115 | #define NV_IMEI "imei" |
| 116 | #define NV_CR_VERSION "cr_version" |
| 117 | #define NV_WA_VERSION "wa_version" |
| 118 | #define NV_HW_VERSION "hw_version" |
| 119 | #define NV_CR_INNER_VERSION "cr_inner_version" |
| 120 | #define NV_SET_DEVICEMODE_DEBUG_ENABLE "set_devicemode_debug_enable" |
| 121 | #define NV_SET_DEVICEMODE_STATUS "set_devicemode_status" |
| 122 | #define NV_SET_DEVICEMODE_PROCESS "set_devicemode_process" |
| 123 | #define NV_AUTO_SIMPIN "auto_simpin" |
| 124 | #define NV_SYSTIME_MODE "systime_mode" |
| 125 | #define NV_APN_MODE "apn_mode" |
| 126 | #define NV_PDP_TYPE "pdp_type" |
| 127 | #define NV_PDP_STATUS "pdp_status" |
| 128 | #define NV_WAN_APN "wan_apn" |
| 129 | #define NV_IPV6_WAN_APN "ipv6_wan_apn" |
| 130 | #define NV_M_PROFILE_NAME "m_profile_name" |
| 131 | #define NV_APN_AUTO_CONFIG "apn_auto_config" |
| 132 | #define NV_NET_NUM "net_num" |
| 133 | #define NV_M_NETSELECT_STATUS "m_netselect_status" |
| 134 | #define NV_M_NETSELECT_CONTENTS "m_netselect_contents" |
| 135 | #define NV_M_NETSELECT_RESULT "m_netselect_result" |
| 136 | #define NV_STR_NUM_RPLMN_TMP "str_num_rplmn_tmp" |
| 137 | #define NV_STR_NUM_RPLMN "str_num_rplmn" |
| 138 | #define NV_CURRENT_RAT_TMP "current_rat_tmp" |
| 139 | #define NV_CURRENT_RAT "current_rat" |
| 140 | #define NV_ROAM_SETTING_OPTION "roam_setting_option" |
| 141 | #define NV_NET_SELECT_RESULT "net_select_result" |
| 142 | #define NV_NET_SELECT_MODE "net_select_mode" |
| 143 | #define NV_TRAFFIC_RECV_SMS_ID "traffic_recv_sms_id" |
| 144 | #define NV_TRAFFIC_SMS_NUMBER "traffic_sms_number" |
| 145 | #define NV_REPORT_ENABLE "report_enable" |
| 146 | #define NV_SENDFAIL_RETRY "sendfail_retry" |
| 147 | #define NV_OUTDATE_DELETE "outdate_delete" |
| 148 | #define NV_DEFAULT_STORE "default_store" |
| 149 | #define NV_PRA_MEMSTORE "pra_memstore" |
| 150 | #define NV_SMS_VP "sms_vp" |
| 151 | #define NV_CLEAR_SMS_WHEN_RESTORE "clear_sms_when_restore" |
| 152 | #define NV_CLEAR_PB_WHEN_RESTORE "clear_pb_when_restore" |
| 153 | #define NV_NET_SELECT "net_select" |
| 154 | #define NV_PRE_MODE "pre_mode" |
| 155 | #define NV_AUTO_SIMPIN_CODE "auto_simpin_code" |
| 156 | #define NV_NETWORK_NEED_TDS "network_need_tds" |
| 157 | #define NV_NETWORK_NEED_GSM "network_need_gsm" |
| 158 | #define NV_PPP_AUTH_MODE "ppp_auth_mode" |
| 159 | #define NV_PPP_USERNAME "ppp_username" |
| 160 | #define NV_PPP_PASSWD "ppp_passtmp" |
| 161 | #define NV_IPV6_PPP_AUTH_MODE "ipv6_ppp_auth_mode" |
| 162 | #define NV_IPV6_PPP_USERNAME "ipv6_ppp_username" |
| 163 | #define NV_IPV6_PPP_PASSWD "ipv6_ppp_passtmp" |
| 164 | #define NV_IPV6_PDP_TYPE "ipv6_pdp_type" |
| 165 | #define NV_UNLOCK_NCK_TIME "unlock_nck_time" |
| 166 | #define NV_SN_BOARDNUM "sn_boardnum" |
| 167 | #define NV_OPMS_WAN_MODE "opms_wan_mode" |
| 168 | #define NV_LAC_CODE "lac_code" |
| 169 | #define NV_TAC_CODE "tac_code" |
| 170 | #define NV_CELL_ID "cell_id" |
| 171 | //unused |
| 172 | #define NV_ECIO "ecio" |
| 173 | #define NV_UNLOCK_AT_WAIT "unlock_at_wait" |
| 174 | #define NV_SIM_SPN "sim_spn" |
| 175 | #define NV_SEND_PIN_FLAG "send_pin_flag" |
| 176 | #define NV_LOCK_UI "lock_ui" |
| 177 | #define NV_ACTION "action" |
| 178 | #define NV_UARFCN "uarfcn" |
| 179 | #define NV_CELLPARAID "cellParaId" |
| 180 | #define NV_BANDLOCKSET "BandLockSet" |
| 181 | #define NV_BANDLOCKSTATE "BandLockState" |
| 182 | #define NV_PPP_DIAL "ppp_dial" |
| 183 | #define NV_ZCELL_RESULT "Zcell_result" |
| 184 | #define NV_CELLLOCKSET "CellLockSet" |
| 185 | #define NV_CELLLOCKSTATE "CellLockState" |
| 186 | #define NV_PHO_DEL "pho_del" |
| 187 | |
| 188 | #define NV_CLCK_SET_MODE "clck_set_mode" |
| 189 | #define NV_NEED_SIM_PIN "need_sim_pin" |
| 190 | |
| 191 | #define NV_BLC_WAN_MODE "blc_wan_mode" |
| 192 | #define NV_BLC_WAN_AUTO_MODE "blc_wan_auto_mode" |
| 193 | |
| 194 | //mmiʹÓõÄÏà¹ØµÄNV |
| 195 | |
| 196 | /*******************************NETÄ£¿é**********************************/ |
| 197 | //#define NETTYPE_NV_NAME "network_type" |
| 198 | //#define PPP_STATUS_NV_NAME "ppp_status" |
| 199 | //#define NV_SIGNAL_NUM "signalbar" |
| 200 | #define NV_RJ45_PLUG "rj45_plug" |
| 201 | #define RJ45_WAN_LAN_OFF "wan_lan_off" |
| 202 | #define RJ45_WAN_ON_LAN_OFF "wan_on_lan_off" |
| 203 | #define RJ45_WAN_OFF_LAN_ON "wan_off_lan_on" |
| 204 | #define RJ45_WAN_LAN_ON "wan_lan_on" |
| 205 | |
| 206 | /*******************************quotaÄ£¿é**********************************/ |
| 207 | //#define NV_QUOTA_FROM_SERVER "quota_from_server" |
| 208 | #define NV_TOTALQUOTA_FROM_SERVER "totalquota_from_server" |
| 209 | |
| 210 | /*******************************smsÄ£¿é**********************************/ |
| 211 | //#define SMS_IN_BOX_STATUS_NV "sms_init_status" |
| 212 | #define SMS_IN_BOX_STATUS_UNREAD "sms_unread" |
| 213 | #define SMS_IN_BOX_STATUS_FULL "sms_memory_full" |
| 214 | #define SMS_IN_BOX_STATUS_NOR "sms_normal" |
| 215 | #define SMS_UNREAD_COUNT_NV "sms_unread_count" |
| 216 | |
| 217 | /*******************************voipÄ£¿é**********************************/ |
| 218 | #define NV_VOIP_STATUS "voip_status" |
| 219 | |
| 220 | /*******************************timeÄ£¿é**********************************/ |
| 221 | #define HOUR_NV "sntp_hour" |
| 222 | #define MINUTE_NV "sntp_minute" |
| 223 | |
| 224 | /*******************************tipÄ£¿é**********************************/ |
| 225 | //#define NV_SIM_CARD_STATE "modem_main_state" |
| 226 | #define NV_SIM_STATE_PUK_WATIT "modem_waitpuk" |
| 227 | #define NV_SIM_STATE_PIN_WATIT "modem_waitpin" |
| 228 | #define NV_SIM_STATE_DESTROY "modem_sim_destroy" |
| 229 | #define NV_SIM_STATE_READY "modem_ready" |
| 230 | #define NV_SIM_STATE_NCK_WAIT "modem_imsi_waitnck" |
| 231 | #define NV_SIM_STATE_UNDETECTED "modem_sim_undetected" |
| 232 | #define NV_SIM_STATE_BUSY "afdafaf" |
| 233 | #define NV_SIM_STATE_INIT_COMPLETE "modem_init_complete" |
| 234 | #define NV_SIM_STATE_INIT_EXCPTION "modem_undetected" |
| 235 | |
| 236 | |
| 237 | //#define NV_NET_PROVIDER "network_provider" |
| 238 | #define NV_NET_PROVIDER_CMCC "China Mobile" |
| 239 | #define NV_NET_PROVIDER_CUCC "China Unicom" |
| 240 | #define NV_NET_PROVIDER_CTCC "China Telecom" |
| 241 | #define NV_NET_BOLT_4G_1 "PLMN--51088" |
| 242 | #define NV_NET_BOLT_4G_2 "PLMN--51068" |
| 243 | #define NV_NET_BOLT_4G_3 "51088" |
| 244 | #define NV_NET_BOLT_4G_4 "51068" |
| 245 | #define NV_NET_BOLT_4G_5 "BOLT SUPER 4G" |
| 246 | |
| 247 | |
| 248 | #define NV_SSID_WRITE_FLAG "ssid_write_flag" |
| 249 | //#define NV_SSID "SSID1" |
| 250 | #define NV_WIFIKEY "WPAPSK1" |
| 251 | #define NV_MULTI_SSID_SWITCH "m_ssid_enable" |
| 252 | #define NV_SSID2 "m_SSID" |
| 253 | #define NV_WIFIKEY2 "m_WPAPSK1" |
| 254 | #define NV_WIFISTA_SSID "EX_SSID1" |
| 255 | |
| 256 | |
| 257 | //#define NV_MSISDN "msisdn_from_server" |
| 258 | #define NV_SINR "lte_sinr" |
| 259 | #define NV_PCI "lte_pci" |
| 260 | #define NV_ACESS_DURATION "realtime_time" |
| 261 | #define NV_CURRENT_UAAGE_TX "realtime_tx_bytes" |
| 262 | #define NV_CURRENT_UAAGE_RX "realtime_rx_bytes" |
| 263 | //#define NV_NEED_SIM_PIN "need_sim_pin" |
| 264 | |
| 265 | /*******************************trafficÄ£¿é**********************************/ |
| 266 | #define NV_TRAFFIC_LIMIT_SWITCH "data_volume_limit_switch" //Á÷Á¿¼à¿Ø¿ª¹Ø 1:¿ª£¬0:¹Ø |
| 267 | #define NV_TRAFFIC_LIMIT_UNIT "data_volume_limit_unit" //Á÷Á¿µ¥Î» ÓÐdataºÍtimeÁ½ÖÖ |
| 268 | #define NV_TRAFFIC_LIMIT_SIZE "data_volume_limit_size" //Á÷Á¿×ÜÖµ |
| 269 | #define NV_TRAFFIC_ALERT_PERCENT "data_volume_alert_percent" //Á÷Á¿¸æ¾¯Öµ |
| 270 | #define NV_TRAFFIC_USED_DATA "flux_month_total" //ÒÑʹÓÃÁ÷Á¿Öµ µ¥Î»B |
| 271 | #define NV_TRAFFIC_USED_TIME "monthly_time" //ÒÑʹÓÃʱ¼äÁ÷Á¿Öµ µ¥Î»S |
| 272 | |
| 273 | #define NV_TRAFFIC_LIMIT_UNIT_DATA "data" |
| 274 | #define NV_TRAFFIC_LIMIT_UNIT_TIME "time" |
| 275 | |
| 276 | |
| 277 | /*******************************wifiÄ£¿é**********************************/ |
| 278 | //#define WLAN_NV_WIFI_SLEEP_NAME "wifiSleep" |
| 279 | #define WLAN_NV_AP_HIDESSID_NAME "HideSSID" |
| 280 | #define WLAN_NV_AUTHMODE_NAME "AuthMode" |
| 281 | #define WLAN_NV_ENCRYP_TYPE_NAME "EncrypType" |
| 282 | #define WLAN_NV_WSC_MODE_NAME "WscModeOption" |
| 283 | #define WLAM_NV_WPS_MODE_NAME "wps_mode" |
| 284 | #define WLAN_NV_VA0_WIIF_NUM "sta_count" |
| 285 | #define WLAN_NV_VA1_WIIF_NUM "m_sta_count" |
| 286 | #define WLAN_NV_CUR_STATE "wifi_cur_state" |
| 287 | #define WLAN_NV_PROCESS_STATE "wifi_process_state" |
| 288 | |
| 289 | /************************** ¿ìËÙ¿ª»úÏà¹Ø¶¨Òå***********************/ |
| 290 | #define POWERON_MODE "mgmt_quicken_power_on" |
| 291 | #define FAST_POWERON_MODE "1" |
| 292 | #define NV_FAKE_POWEROFF_STATE "mmi_fake_poweroff_state" //is fake-poweroff state? 1:yes , 0:no |
| 293 | |
| 294 | /****************GPS***********************************************/ |
| 295 | #define GPS_NV_UPDATE_FLAG "gps_update_flag" |
| 296 | |
| 297 | |
| 298 | #endif |
| 299 | |