MTK WAP and MMS Network service configuration

Source: Internet
Author: User
Tags web services

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];

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.