Data Synchronization With ActiveSync

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

Microsoft ActiveSync provides support for synchronizing data between a Windows-based desktop computer and a Windows® phone. Using time stamps and user preferences, the synchronization process tracks data changes on both the computer and the phone, and then transfers the appropriate data so that each has the most recent versions. Outdated or unwanted data is discarded. Windows Mobile provides support for ActiveSync version 4.2 and later.

Aa913369.note(en-us,MSDN.10).gifNote:
ActiveSync does not support synchronization between phones themselves.

ActiveSync supports serial, USB, infrared, modem, Bluetooth, and Ethernet connections.

For the Windows phone, ActiveSync supplies this functionality:

  • Backing up and restoring device data.
  • Installing and removing programs.

For interactions between a desktop computer and a Windows phone, ActiveSync supplies the following functionality:

  • Data synchronization
  • File conversion between the desktop computer and Windows Mobile formats
  • Importing and exporting database tables
  • Preparing the desktop for remote connections

This functionality is implemented by user-written code (service providers) that runs within the ActiveSync framework.

Aa913369.note(en-us,MSDN.10).gifNote:
When you want to synchronize a data record that has multiple properties, the data type of each property value must be unique.

ActiveSync also supports the option of maintaining a connection with a single desktop computer without staying in synchronization with that computer. When a user chooses this option, ActiveSync cannot connect and synchronize with a second desktop computer until the user terminates the connection with the first computer.

ActiveSync is built on a client/server architecture that consists of a service manager (the server) and a service provider (the client):

  • The service manager is a synchronization engine that is built into ActiveSync; it resides on both the desktop computer and the Windows phone. It performs those tasks common to all synchronization — establishing a connection, detecting data changes, resolving conflicts, mapping and transferring data objects. It and related software are shipped with Windows Mobile.
  • The service provider determines what data is tracked for changes by the service manager. It consists of two pieces written by developers — the desktop provider on the desktop and the device provider on the target device — that perform the synchronization tasks specific to your data. Microsoft provides service managers for several standard Windows applications.

The following illustration shows how the service manager interfaces with the service provider to access data.

Aa913369.67d1c66c-a800-4855-8b63-0d1172d846f3(en-us,MSDN.10).gif

Desktop ActiveSync 4.2 is now available. To download the latest version, see the ActiveSync page.

ActiveSync can be configured to synchronize with a desktop computer or with a Microsoft Exchange server. The behavior of Exchange ActiveSync varies depending on the way the Exchange server is configured. For more information about configuring Exchange ActiveSync, see Exchange Server 2003 on Microsoft TechNet.

Aa913369.note(en-us,MSDN.10).gifNote:
The root certificate must be added to the device before you configure the device to use Exchange ActiveSync.

The following types of information can be synchronized between a desktop computer and Windows Mobile Professional or Windows Mobile Classic:

  • Tasks
  • Calendars
  • Contacts
  • Favorites
  • Files
  • Inbox
  • Notes
  • SMS Messages
  • Pictures
  • Access Mobile (was Pocket Access) data
  • AvantGo Web sites

In addition, the Time and Proxy settings on the desktop computer are applied to these Windows phones.

Other Resources

ActiveSync

Community Additions

Show: