Priority-Based Connections in Connection Manager (Windows Embedded CE 6.0)
1/6/2010
Connection Manager establishes connections based on the priority of the connection requests.
Priority Levels
The relative priority levels for connections in Windows Embedded CE 6.0 are as follows:
Priority level | Connection type |
---|---|
Priority 1 |
Voice calls using a cellular radio in the Windows Embedded CE powered device. |
Priority 2 |
Data connections such as Bluetooth dial-up networking (DUN), ActiveSync Desktop Pass-through (DTPT), general packet radio service (GPRS) using a cellular radio in the device, and wireless LAN (WLAN) connections. |
Scenarios
The following sections describe some of the scenarios that show how Connection Manager prioritizes connection requests.
Multiple connection requests
- If Connection Manager receives multiple connection requests, Connection Manager adds each request to a list and then establishes the connection that has the highest priority.
Handling a connection request while a lower-priority connection is active
- If a lower-priority data connection is active and a higher-priority voice connection is requested, Connection Manager disconnects the lower-priority data connection. For more information about how to configure a connection as more secure, see Connection Manager Security and Configuring Device Connection Settings by using OMA XML.
Handling a connection request while a higher-priority connection is active
- If a higher-priority connection is already active and Connection Manager receives a lower-priority connection request for a different destination network, the active connection remains connected and the lower-priority connection is not established. However, the lower-priority connection is put into a state waiting for a connection until all higher priority connections are disconnected and then the lower-priority connection is established.
- The requesting application can modify the priority of the connection request by, for example, setting the dwPriority member of the CONNMGR_CONNECTIONINFO structure. If the application raises the priority of the requested connection to one that is higher than the priority of the existing active connection, Connection Manager disconnects the active connection and establishes a new connection for the requesting application.
Cached connections
- If an application requests a low-background connection, which is the lowest-priority connection, and a cached connection to the same destination exists, the low-background connection uses the cached connection. The connection remains active as long as the low-background application uses it, even after the caching timer expires.