Search code examples
synchronizationusbwindows-ceactivesync

synchronize two win ce 6 devices using usb


I wanted to know if there is any way to synchronize (or exchanging files) two Windows CE 6.0 devices. Actually, I am able using ActiveSync to synchronize them one by one with a computer. Can I bypass the computer with plugging directly devices together and running a kind of ActiveSync Server in one of them (which will be the master)?

Thanks


Solution

  • Finally it's possible to make a wince device seen as a mass storage from another computer or another device (in my case another wince device).

    You need to update you registry settings to:

    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
       "DefaultClientDriver"=- ; erase previous default
    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
       "DefaultClientDriver"="Mass_Storage_Class"
    
    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
        "Dll"="usbmsfn.dll"
        "InterfaceSubClass"=dword:06 
        "InterfaceProtocol"=dword:50 
       "DeviceName"="DSK1:" 
       "FriendlyName"="Mass Storage"
       "idVendor"=dword:045E
        "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
        "idProduct"=dword:FFFF
        "Product"="Generic Mass Storage (PROTOTYPE--Remember to change idVendor)"
        "bcdDevice"=dword:0
    

    This is the official documentation of the process:

    http://msdn.microsoft.com/en-us/library/ms895481.aspx

    "usbmsfn.dll" should be also installed on your device to make this work.

    Do not also forget to restart your device after registry modification,

    Thanks,