MTK WAP and MMS Network Service configuration Collection
1. Data Account Configuration
1.1 APN Introduction
The English full name of APN is access point name, the Chinese full name of the AP, which is a parameter that you must configure when you surf the Internet through your mobile phone, which determines the type of access that your phone uses to access the network
1.2 Web Services--〉 Data account: This menu is used to manage APN settings for individual operators (including APN for Internet access, APN for MMS).
The default operator APN settings under the menu are derived from the Nvram_ef_abm_ps_profile_default array,
Upgrade only after modifying Nvram_ef_abm_ps_profile_default
#define Nvram_ef_abm_gprs_profile_lid_verno "064"//modify
1.3 Data Account configuration (modify default data account list)
Locate the Nvram_ef_abm_gprs_profile_default array and set the relevant rules for the WAP definition, where APN is a fixed item and must be set according to the APN address provided by the vendor.
Data accounts each record is such a structure
typedef struct
{
Kal_uint8 context_id;
Kal_uint8 name_length;
Kal_uint8 Name_dcs;
Kal_uint8 Authentication_type;
Kal_uint8 name[32];
Kal_uint8 User_name[max_gprs_user_name_len];
Kal_uint8 Password[max_gprs_password_len];
Kal_uint8 Dns[4];
Kal_uint8 Apn[max_gprs_apn_len];
Kal_uint8 apn_length;
Nvram_editor_qos_struct Req_qos;
} nvram_ef_abm_gprs_profile_struct;
Set the access point for China Mobile GPRS as shown in the figure:
/*china Mobile, GPRS cmwap*/
15,//Data account index, starting from 1
16,//Data account name length
0x00
0x00
' C ', ' h ', ' I ', ' n ', ' a ', 0x00, ' M ', ' O ', ' b ', ' I ', ' l ', ' e ', 0x00, ' G ', ' P ', ' R ',
' S ', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,//Name
0x00, 0x00, 0x00 and 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,//user name
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,//password
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,//DNS
0x00, 0x00, 0x00, 0x00,//secondary DNS
' C ', ' m ', ' w ', ' A ', ' P ', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,//APN
5,//Apn_len
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,//provurl
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,//napid
0x00,//account_type
0x00,//read_only
The corresponding code example:
Content List
The structure is as follows:
typedef struct
{
Kal_uint8 editable;
Kal_uint8 empty;
Kal_uint16 Proxy_port;
Kal_uint8 Url[nvram_profile_url_len];
Kal_uint32 data_account_primary_id;
Kal_uint32 data_account_secondary_id;
Kal_uint8 Conn_type;
Kal_uint8 Proxy_ip[4];