Adding a GSM-GPRS Network Access Point (WAP Technique) Example
4/8/2010
This example adds a GPRS network access point (NAP) by using WAP techniques.
Code Example
<characteristic type="NAPDEF">
<parm name="NAPID" value="GPRS1"/>
<parm name="BEARER" value="GSM-GPRS"/>
<parm name="NAME" value="ANY NAME GPRS Connection"/>
<parm name="NAP-ADDRESS" value="+XXXXXXXXXXX"/>
<parm name="NAP-ADDRTYPE" value="APN"/>
<parm name="LOCAL-ADDR" value="GPRS IP address"/>
<parm name="LOCAL-ADDRTYPE" value="IPv4"/>
<characteristic type="NAPAUTHINFO">
<parm name="AUTHTYPE" value="PAP"/>
<parm name="AUTHNAME" value="myuser"/>
<parm name="AUTHSECRET" value="mysecret"/>
</characteristic>
</characteristic>
Remarks
One provisioning XML file typically contains configuration information for multiple Configuration Service Providers. To use this example, you must replace the values as appropriate, and add the node as a child of the OMA Client Provisioning file. For information about the syntax of this file, see OMA Client Provisioning Files. For examples, see OMA Client Provisioning XML File Examples.
If you are using standard OMA Client Provisioning ("WAP Technique") format to add a network access point then your provisioning XML document must be placed in a mxipcold_<package name>_<version>.provxml file (for example mxipcold_myprovfile_001.provxml).
As shown in this example,
- The BEARER parm shows the NAP type of GSM-GPRS to indicate a GPRS NAP.
- The value in the NAP-ADDRTYPE parm is set to Access Point Name (APN) for the GPRS connection.
- The information in the NAPAUTHINFO characteristic contains authentication information in the NAP.
If you use this example as a template, you must change the following information:
- Change the value in the NAPID parm to the identifier of the NAP, 16-characters maximum.
- Change the value in the NAME parm to a user readable name for the NAP.
- Change the value in the NAP-ADDRESS parm to the address of the NAP.
- Change the value in the LOCAL-ADDR parm to the device's GPRS IP address.
- Change the value in the LOCAL-ADDRTYPE parm to indicate the address format of the LOCAL-ADDR value: IPv4 or IPv6.
- Change the information in the NAPAUTHINFO characteristic as follows:
- Change the value in the AUTHTYPE parm to identify the authentication protocol: PAP for Password Authentication Protocol or CHAP for Challenge Handshake Authentication Protocol.
- Change the value in the AUTHNAME parm to the user name used for authentication.
- Change the value in the AUTHSECRET parm to the user password used for authentication.
See Also
Tasks
NAPDEF Configuration Service Provider Examples for OMA Client Provisioning