Tuesday, 17 September 2013

Microsoft Sync Framework through USB between Windows CE Device and Windows PC

Microsoft Sync Framework through USB between Windows CE Device and Windows PC

How can we use the MS Sync Framework to synchronize a text file located on
a Windows CE 6.0 device with a text file located on a Windows PC when the
device and the PC are connected through USB?
We already know how to do this when...
the two text files to sync are located on the same PC,
the device and the PC are connected through ethernet, and
the device and the PC are connected through Internet.
Our current hack is as follows:
The user connects the device cradle to the PC using USB.
The user docks the device in its cradle.
The user opens the desktop app on the PC.
The user clicks the sync button in the desktop app.
The desktop app uses the Remote API (RAPI2) to copy the text file from the
device to the PC.
The desktop app uses the MS Sync framework to sync the two files.
The desktop app uses RAPI2 to copy the synced text file back to the device.
This could run into problems, we think, as the target text file becomes
large. That is why we want to sync across the USB connection instead of
copying the file twice across the USB connection.
Do we need to write a driver to do this? What approach can we use?

No comments:

Post a Comment