locked
WMCC connection breaks from time to time RRS feed

  • Question

  • Hi!

    I have a Motorola MC9590 that I connect to a Windows 7 64bit machine through Windows Mobile Connection Center. There is not problem making the connection but I continuously get disconnects and instant reconnects. Some times the device can be connected for a very long time before the disconnect/reconnect event, and some times it's just a few minutes. As a developer you'd understand the frustration of broken debug sessions over and over again...

    The disconnect event is in the syslog:

    (Translated from swedish)
    Unable to connect the Windows Mobile-base unit because of a communication (0x80072745)-error (the information contains the error code).
    Source: RapiMgr
    Event Id: 8

    The Motorola doesn't show this behaviour on a WinXP running ActiveSync 4.5. BUT, on the other hand, no other devices show this behaviour on my Win 7 64bit... So it's kinda confusing. I've tested several Motorola machines with the same result on my Win7 device however.

    I've spoken to Motorola support and they have tested on 64bit machines and don't see this behaviour.

    I have completely uninstalled WMCC and reinstalled it. I've also clean booted the device(s).

    Please someone give me some hint on what to do!

    Regards,

    Peter

    Thursday, October 21, 2010 8:02 AM

Answers

  • We are aware of this issue in Windows Mobile Device Center (WMDC). Our preliminary research seems to indicate that this is caused by a race condition in WMDC; and that it only affects connections over USB-serial - not USB-RNDIS. It is also more likely to occur when transferring large amounts of data – such as large files.

     

    Because the root cause might be a race condition, the problem might not reproduce on host computers that are faster or slower than yours; and might not reproduce with Windows Mobile devices which are faster or slower than yours.

     

    Unfotunately, we do not have a fix or workaround, and we do not know when we might have a fix or workaround.

     

    Chris Cooper


    Chris Cooper (MSFT)
    Thursday, October 28, 2010 10:28 PM

All replies

  • If you're device has WiFi then you can just debug through that instead of ActiveSync. It's much faster as well, and you can run around with the device even while debugging

     

    Here's an old blog post (specific for VS2005 Beta) that should give you an idea of what to do:

    http://blogs.msdn.com/b/vsdteam/archive/2005/04/28/413304.aspx

     

    The process is slightly the same for Visual Studio 2008, you just have to copy the files described in the link above and run CMAccept.exe and ConmanClient2.exe on the device. You can disable security using the Device Security Manager under Tools in the Visual Studio 2008 menu.

     


    Christian Resma Helle - Commentor A/S
    Thursday, October 21, 2010 8:49 AM
  • Hi Christian.

    I will definitely give that a go. Thanks for the tip.

    I also want to mention that I did set up WMDC to produce debug logs according to the following article:

    http://www.pocketpcfaq.com/faqs/wmdc/debug/index.htm

    But I can't see anything weird in the log. The device just disconnects and reconnects instantly. If anyone is interested I can post the entire disconnect/reconnect log.

     / P

    Thursday, October 21, 2010 9:35 AM
  • Please do post the log if it's not to large. Otherwise thanks for the link on how to create debugging logs

     


    Christian Resma Helle - Commentor A/S
    Thursday, October 21, 2010 9:38 AM
  • wmdc Information: 0 : WindowsMobileDeviceCollection  - Disconnect
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 4 : Entering PartnershipCollection::OnDeviceDisconnect (device:Motorola 1)
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 4 : [5bcfebad] Entering Partnership::OnDeviceDisconnect
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 5 : [5bcfebad] Exiting Partnership::OnDeviceDisconnect
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : Deleting partnership with id = 1540352941 (hwndOwner:0, options:SkipTombstone
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 4 : [5bcfebad] Entering Partnership6::Delete (promptOwner:0, options:SkipTombstone)
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 4 : [5bcfebad] Entering Partnership05::Delete (promptOwner:0, options:SkipTombstone, SkipPartnershipConfirmation)
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 4 : [5bcfebad] Entering Partnership03::Delete (promptOwner:0, options:SkipTombstone, SkipPartnershipConfirmation
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 0 : Deleting partnership data folder
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 5 : [5bcfebad] Exiting Partnership03::Delete
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 5 : [5bcfebad] Exiting Partnership05::Delete
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 5 : [5bcfebad] Exiting Partnership6::Delete
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : Updating list of tombstoned partnerships from the registry
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x1e572472) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x37ff99df) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x6bb6a215) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0xffb6a38b) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x1e572472) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollection::ContainsCompatiblePartnership - Partnership (0x1e572472) exists and is compatible
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : Setting current partnership to 1e572472
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x1e572472) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x37ff99df) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x6bb6a215) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0xffb6a38b) found as next compatible partnership
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 0 : PartnershipCollection.RaiseStateChanged (device:, state:PartnershipsExistNoDeviceConnected, message:)
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 5 : Exiting PartnershipCollection::OnDeviceDisconnect (device:Motorola 1)
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Information: 2 : Disposing DataSourceCollection of Motorola 1
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 0 : SyncController2005.Dispose Enter
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 0 : SyncController2005 not disposed. Attempting to dispose
        DateTime=2010-10-21T09:29:50.9131265Z
    wmdc Verbose: 0 : SyncController2005.Dispose Leave
        DateTime=2010-10-21T09:29:50.9287265Z
    wmdc Information: 2 : Disposing of ~SyncCenterStatus
        DateTime=2010-10-21T09:29:50.9287265Z
    wmdc Information: 0 : WindowsMobileDeviceCollection  - Connecting
        DateTime=2010-10-21T09:29:56.4951365Z
    wmdc Information: 4 : PartnershipCollection.OnDeviceConnecting
        DateTime=2010-10-21T09:29:56.4951365Z
    wmdc Information: 0 : PartnershipCollection.RaiseStateChanged (device:, state:Connecting, message:)
        DateTime=2010-10-21T09:29:56.4951365Z
    wmdc Information: 0 : WindowsMobileDeviceCollection - Waiting for Wpd Driver to load
        DateTime=2010-10-21T09:30:01.4871453Z
    wmdc Information: 0 : WindowsMobileDeviceCollection - Raising Connect event
        DateTime=2010-10-21T09:30:01.4871453Z
    wmdc Information: 4 : Entering PartnershipCollection::OnDeviceConnect (device:Motorola 1)
        DateTime=2010-10-21T09:30:01.9551461Z
    wmdc Verbose: 0 : Creating a new partnership object for device Motorola 1
        DateTime=2010-10-21T09:30:01.9551461Z
    wmdc Verbose: 0 : Creating new Partnership6 object (id:1073707697)
        DateTime=2010-10-21T09:30:01.9551461Z
    wmdc Information: 0 : Partnership::TagWithCurrentVersion - Tagging current partnership (0x3fff7ab1) with PartnershipProtocol:3 and PartnershipVersion:0x06011b35
        DateTime=2010-10-21T09:30:01.9551461Z
    wmdc Information: 0 : PartnershipCollection::ContainsCompatiblePartnership - Partnership (0x3fff7ab1) exists and is compatible
        DateTime=2010-10-21T09:30:01.9551461Z
    wmdc Information: 0 : Setting current partnership to 3fff7ab1
        DateTime=2010-10-21T09:30:01.9551461Z
    wmdc Verbose: 4 : [3fff7ab1] Entering Partnership05::OnDeviceConnected
        DateTime=2010-10-21T09:30:01.9551461Z
    wmdc Information: 4 : [3fff7ab1] Entering Partnership::OnDeviceConnected
        DateTime=2010-10-21T09:30:01.9551461Z
    wmdc Information: 0 : Processing guest partnership
        DateTime=2010-10-21T09:30:01.9707461Z
    wmdc Information: 0 : [3fff7ab1] Creating data folder for partnership
        DateTime=2010-10-21T09:30:02.3919468Z
    wmdc Information: 0 : [3fff7ab1] Setting partnership data folder (value:C:\Users\peterh\AppData\Roaming\Microsoft\ActiveSync\Profiles\3fff7ab1)
        DateTime=2010-10-21T09:30:02.3919468Z
    wmdc Information: 0 : [3fff7ab1] Setting partnership data file (value:\Microsoft\ActiveSync\Profiles\3fff7ab1\repl.dat)
        DateTime=2010-10-21T09:30:02.3919468Z
    wmdc Verbose: 0 : Caching icon data to 'C:\Users\peterh\AppData\Roaming\Microsoft\ActiveSync\Profiles\3fff7ab1\Sync.ico'
        DateTime=2010-10-21T09:30:02.3919468Z
    wmdc Information: 0 : [3fff7ab1] Saving partnership data to the registry
        DateTime=2010-10-21T09:30:02.4231469Z
    wmdc Information: 0 : [3fff7ab1] Changing NETBIOS name to 'WINDOWSMOBILE58'
        DateTime=2010-10-21T09:30:02.4231469Z
    wmdc Verbose: 0 : Updating device NETBIOS name on device
        DateTime=2010-10-21T09:30:02.4231469Z
    wmdc Information: 0 : [3fff7ab1] Changing fiendly name name to 'Motorola 1'
        DateTime=2010-10-21T09:30:02.6571473Z
    wmdc Information: 5 : [3fff7ab1] Exiting Partnership::OnDeviceConnected
        DateTime=2010-10-21T09:30:02.7975476Z
    wmdc Verbose: 5 : [3fff7ab1] Exiting Partnership05::OnDeviceConnected
        DateTime=2010-10-21T09:30:02.7975476Z
    wmdc Information: 0 : Config XML to device: <wap-provisioningdoc><characteristic type="Sync" ><characteristic-query recursive="false" type="Sources" ></characteristic-query><characteristic-query type="Settings" ></characteristic-query></characteristic></wap-provisioningdoc>
        DateTime=2010-10-21T09:30:02.8131476Z
    wmdc Information: 0 : Main.Main - Start Windows Mobile Device Center UI
        DateTime=2010-10-21T09:30:02.8131476Z
    wmdc Verbose: 0 : SyncController2005.Dispose Enter
        DateTime=2010-10-21T09:30:02.8443476Z
    wmdc Information: 0 : Toast::OnPartnershipStateChanged (Connecting)
        DateTime=2010-10-21T09:30:02.9067477Z
    wmdc Verbose: 0 : MainHost.OnPartnershipStateChanged State:Connecting
        DateTime=2010-10-21T09:30:02.9223478Z
    wmdc Information: 0 : Config XML from device: <wap-provisioningdoc><characteristic type="Sync"><characteristic recursive="false" type="Sources"/><characteristic type="Settings"><characteristic type="CarrierConnectorList"/><characteristic type="PeakDays"><parm name="Fri" value="1"/><parm name="Mon" value="1"/><parm name="Sat" value="0"/><parm name="Sun" value="0"/><parm name="Thr" value="1"/><parm name="Tue" value="1"/><parm name="Wed" value="1"/></characteristic><parm name="AllowSSLOption" value="1"/><parm name="AutoSync" value="1"/><parm name="AutoSyncWhenCradled" value="1"/><parm name="BodyTruncation" value="5120"/><parm name="CalendarAgeFilter" value="4"/><parm name="CarrierConnector" value=""/><parm name="ClientAutdSupport" value="15"/><parm name="ClientCertAuthSupport" value="1"/><parm name="ClientDualHomeSupport" value="1"/><parm name="ClientHTMLMailSupport" value="1"/><parm name="ClientNegotiated" value="0"/><parm name="ClientProtocolVersion" value=""/><parm name="ConflictResolution" value="1"/><parm name="Device" value="PocketPC"/><parm name="DeviceAddressingMethod" value="0"/><parm name="DeviceID" value=""/><parm name="DevicePhoneNumber" value=""/><parm name="DevicePhoneReadOnly" value="0"/><parm name="DeviceSMSAddress" value=""/><parm name="DisconnectWhenDone" value="1"/><parm name="EmailAgeFilter" value="2"/><parm name="EnableNonLocalCrossPollination" value="0"/><parm name="HTMLMessagePolicy" value="1"/><parm name="HTMLTruncation" value="2048"/><parm name="MIMETruncation" value="5120"/><parm name="MailBodyTruncation" value="512"/><parm name="MailFileAttachments" value="0"/><parm name="NotificationsSupported" value="0"/><parm name="OffPeakFrequency" value="240"/><parm name="OutboundMailDelay" value="5"/><parm name="PeakEndTime" value="1800"/><parm name="PeakFrequency" value="10"/><parm name="PeakStartTime" value="0800"/><parm name="PreferredBodyType" value="2"/><parm name="RadioEnabledDevice" value="0"/><parm name="SaveSentItems" value="1"/><parm name="SendMailItemsImmediately" value="1"/><parm name="SyncAfterCount" value="0"/><parm name="SyncAfterTime" value="0"/><parm name="SyncAfterTimeWhenCradled" value="5"/><parm name="SyncWhenRoaming" value="0"/><parm name="VersionMajor" value="1"/><parm name="VersionMinor" value="1"/></characteristic></characteristic></wap-provisioningdoc>

        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : WindowsMobileDevice2005.LoadCore Exit
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Verbose: 1 : Creating new DataSourceCollection (owner:Motorola 1)
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : Deleting all tombstones with deviceId = {14892e21-1ab0-435b-9904-32e5e117f7f8}
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 4 : Entering PartnershipCollection::OnDeviceLoaded (device:Motorola 1)
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : Deleting all partnerships with deviceId = {14892e21-1ab0-435b-9904-32e5e117f7f8}
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x1e572472) found as next compatible partnership
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x37ff99df) found as next compatible partnership
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x6bb6a215) found as next compatible partnership
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0xffb6a38b) found as next compatible partnership
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : PartnershipCollectionEnumerator::MoveNext - Partnership (0x3fff7ab1) found as next compatible partnership
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : PartnershipCollection.RaiseStateChanged (device:Motorola 1, state:NewDeviceConnected, message:)
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Information: 0 : Toast::OnPartnershipStateChanged (NewDeviceConnected)
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Verbose: 0 : MainHost.OnPartnershipStateChanged State:NewDeviceConnected
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Verbose: 0 : [3fff7ab1] Getting partnership image (iconSize:Size256)
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Verbose: 0 : Getting image directly from connected device
        DateTime=2010-10-21T09:30:03.1251481Z
    wmdc Verbose: 0 : RightContentStack.Clear()
        DateTime=2010-10-21T09:30:03.1407482Z
    wmdc Verbose: 0 : RightContentStack.Next() Control:SetupOrGuest - Name:SetupOrGuest Size:{Width=0, Height=0} UserAction:False
        DateTime=2010-10-21T09:30:03.1563482Z
    wmdc Information: 5 : Exiting PartnershipCollection::OnDeviceLoaded (device:Motorola 1)
        DateTime=2010-10-21T09:30:03.1563482Z
    wmdc Information: 5 : Exiting Queued Thread in PartnershipCollection::OnDeviceConnect (device:Motorola 1)
        DateTime=2010-10-21T09:30:03.1563482Z

    Thursday, October 21, 2010 9:42 AM
  • We are aware of this issue in Windows Mobile Device Center (WMDC). Our preliminary research seems to indicate that this is caused by a race condition in WMDC; and that it only affects connections over USB-serial - not USB-RNDIS. It is also more likely to occur when transferring large amounts of data – such as large files.

     

    Because the root cause might be a race condition, the problem might not reproduce on host computers that are faster or slower than yours; and might not reproduce with Windows Mobile devices which are faster or slower than yours.

     

    Unfotunately, we do not have a fix or workaround, and we do not know when we might have a fix or workaround.

     

    Chris Cooper


    Chris Cooper (MSFT)
    Thursday, October 28, 2010 10:28 PM
  • I'll gladly support you with any information if that would make it easier for you to resolve the issue.

    I'll even sell you my machine and pda highly overpriced ;-)

     / P

    Tuesday, November 2, 2010 11:52 AM