
Chapter 19: Wireless Wide-Area Networking
Roaming
Psion Mobile Devices Developers Guide
210
19.7.5 Roaming
Typically, in your home country the home network is selected automatically, and all other networks are
forbidden. There is usually no national roaming.
If you are in another country, several networks may have roaming agreements with your home network and
you may want to manually select one—for example, the partner with the best tariff.
If the network is not selected manually, the WWAN modem automatically selects the network with the
highest signal strength.
If you are in a border area you can manually select your home network, in order to prevent roaming to a
partner network across the border with higher roaming charges.
Use SetRegisterState to manually select the a WWAN network. See Section 19.8 Access Flags on page 211
for information on using the Set Register State Access Flag.
19.7.6 Connecting Manually to a WWAN Network
Usually, at startup the WWAN driver selects, connects to, and registers with, the appropriate networks for
the SIM card.
If you call GetRegisterState and the return value indicates that the connection is deregistered, then you
must do one of the following to select the network:
•Use SetRegisterState, or
• Use the WWAN settings in the GUI Wireless Manager applet
See Section 19.7.3 The DbGprs.csv File on page 209 for information that must be provided to the WWAN
network during connection.
19.7.7 Selecting an Access Point Name (APN)
An Access Point Name (APN) identifies an external network that is accessible from a computer. An APN has
several associated attributes that define how the computer can access the external network at that point.
In most cellular networks there are two types of APNs:
• Wireless Application Protocol (WAP) APN, enabling access to the default WAP content (or the network
operator's walled garden). This APN normally filters non-WAP content by traffic, ports, or volume.
• Internet or WEB APN, which enables access to all Internet content. This APN is normally unfiltered and
often the network operator charges a higher tariff for it. This connection is needed when using applica-
tions or an HTML browser.
By default, the user interface (WWANUI) sets up the correct packet data context, including the Internet
APN. You may want to configure more APNs, if you have arranged with your service provider to use more
than one SIM card, or to grant your SIM card access to several APNs. Use SetProvisionedContexts to make
these APN changes.
User name, password, and authentication method have to be set through RAS; however, applications must
also fill in AuthenticationType, UserName, and Password when calling SetProvisionedContexts.
if (packetService.AttachState == WwanAttachStateAttached)
{
// Packet data is now enabled. WWAN communication can start...
}
else if (packetService.AttachState == WwanAttachStateDetached)
{
// Packet data is NOT enabled, which means that either
// the service provider does not have packet data enabled,
// or the WWAN driver did not automatically select a network
// at startup, and it must be selected manually here.
}
}
Comentarios a estos manuales