Partager via


AlwaysOn Data Connections (Windows Embedded CE 6.0)

1/6/2010

When an AlwaysOn connection is established, it remains always connected.

Overview of AlwaysOn Data Connections

The AlwaysOn feature helps guarantee that the Windows Embedded CE powered device always maintains its packet-data connection after the application establishes a connection. To establish an AlwaysOn data connection, the connection must be configured as AlwaysOn. Following initial configuration, Connection Manager will try to keep the AlwaysOn data connection always connected.

You can designate any data connection as AlwaysOn; you typically do so for Suspend/Resume-capable connections. However, make sure that you do not make this designation for an active data connection because doing so could prevent the device from receiving incoming calls.

Ee498227.collapse(en-US,WinEmbedded.60).gifRetrying an AlwaysOn Data Connection

An AlwaysOn data connection might not connect because the device is out of range, the device is not available, or the device is in use by a higher-priority connection request. If activation fails in a recoverable way (this does not include an incorrect username, password, APN, or upon remote disconnect) and the device remains in either the home or roam registration state, Connection Manager uses the following retry logic.

  • Retry one time immediately.

  • Retry every 30 minutes until success. To change the periodic retry interval, modify the AlwaysOnRetryInterval value under the HKEY_LOCAL_MACHINE\Comm\ConMgr\Planner\Settings\AlwaysOnRetryInterval registry key, as shown in the following table.

    Name Type Value

    AlwaysOnRetryInterval

    DWORD

    Specifies the retry interval in milliseconds. The default value is 1800000, which specifies an interval of 30 minutes.

    Note

    A connection remains AlwaysOn only if it is configured as such. If the connection receives a disconnect event, it will be disconnected and the change of state will be communicated to the Connection Manager AlwaysOn manager. Connection Manager will then try to reestablish the connection as described earlier in this topic.

AlwaysOn as Default

ActiveSync Desktop Pass-through (DTPT) connections are set to AlwaysOn.

Note

You can modify the AlwaysOn setting for all connections except for DTPT connections, which are forced to be AlwaysOn.

AlwaysOn and the Idle State

If the device goes into an idle or sleep state, the AlwaysOn feature helps guarantee that the active-packet data session remains connected. Depending on your power-management implementation, the following list shows the events that might trigger a device to go into an idle state.

  • User presses the power button to turn off the device.
  • Idle time out occurs.
  • The OEM or software developer explicitly makes a system call to put the device into an idle state.

In all cases in the previous list, any active-packet data connection would remain active in the idle state. Even when the device is in an idle state, it is reachable and immediately available without reconnection when the device transitions from the idle state.

See Also

Concepts

Making a Data Connection Using Connection Manager

Other Resources

Connection Manager Application Development