MTK WAP and MMS Network service configuration

Source: Internet
Author: User
Tags web services port number

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

Kal_uint8 Username[nvram_profile_username_len];

Kal_uint8 Password[nvram_profile_password_len];

Kal_uint8 Use_proxy_status;

} nvram_profile_content_struct;

nvram_profile_content_struct Const NVRAM_EF_MMS_PROFILE_CONTENT_DEFAULT[NVRAM_PROFILE_MAX] =

{

1,0,80, "Http://mms", 10,-1,1,210,241,199,199, "", ""

, 0

},

Where the first parameter is a modifiable state (1 is non-modifiable 2 is modifiable) The second parameter is null third parameter port number fourth parameter is home page fifth parameter is main ID of Access point sixth parameter access point minor ID seventh connection type No. 901 for IP 12th The 13th for the account name is the 14th Agent State for the password

2.WAP configuration Process

2.1 WAP Introduction: (The following example is X200)

WAP (Wireless application Protocol), which is the wireless application protocol. WAP is a global network communication protocol. WAP provides a common standard for mobile Internet, with the goal of bringing the rich information of the Internet and advanced business into wireless terminals such as mobile phones. WAP defines a common platform that converts information from the current Internet HTML language to the information described in WML (Wireless Markup Language) and is displayed on the mobile phone's display. WAP only requires mobile phone and WAP proxy server support, and does not require the existing Mobile communication network protocol to make any changes, so it can be widely used in GSM, CDMA, TDMA, 3G and other networks.

2.2 WAP Configuration

2.2.1 Network SERVICE--"wap--> Setting--" Edit Account--"Select Settings file

This menu manages the WAP browser Internet configuration, which displays the default file name from

Nvram_ef_wap_profile_names_default

Upgrade only required after modifying Nvram_ef_wap_profile_names_default Nvram_ef_wap_profile_names_default

#define Nvram_ef_wap_profile_names_lid_verno "//modify"

2.2.1 Network SERVICE--"Wap--> settings-" Edit Account--"Select Settings file-----------> Edit settings file

The Edit Settings profile interface is used to edit the contents of each WAP browser settings file, including the homepage, link type,

The operator APN settings, user name, password

The default value for each WAP browser settings file is from Nvram_ef_wap_profile_content_default

Modify Nvram_ef_wap_profile_content_default just Upgrade

#define NVRAM_EF_WAP_PROF_WAP_PROFILE_CONTENT_LID_VERNO "003"

2.2 WAP profile configuration and data account relationship:

Data Account List: Nvram_ef_abm_gprs_profile_lid_verno

Wap Browser Setup file list: (Nvram_ef_wap_profile_ names_default)

WAP Browser settings file content list: (Nvram_ef_wap_profile_content_default)

Data Account list, Wap browsing

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.