none
ActiveSync RRS feed

  • Question

  • Hello all!

    I have some problem with using activesync under smdk2410. ActiveSync works fine but when I unplug my usb cable and connect it again activesync doesn't start. Then I unplug usb cable over and connect it again and activesync starts.

    I receive the next debug messages:

    When I plug usb cable:

    AUTORAS:: Dialer notifies: [1] [Dialer Start]
    Posting WM_NETCONNECT(TRUE) message
    AUTORAS:: Dialer notifies: [4] [Dialer Connected]

    When I unplug usb cable I don't have any messages.

    When I plug usb cable again :

    RASCS_Disconnected: Ecode=619
    Posting WM_NETCONNECT(FALSE) message, ErrorCode = 619(0x26B)
    AUTORAS:: Dialer notifies: [2] [Dialer Terminate]

    Then I unlpug the cable and plug it again:

    AUTORAS:: Dialer notifies: [1] [Dialer Start]
    Posting WM_NETCONNECT(TRUE) message
    AUTORAS:: Dialer notifies: [4] [Dialer Connected]

     

    I have investigated this problem a lot and detect one strange thing:

    If I plug usb cable, then unplug it, then wait more 60 sec and plug it - activesync starts fine!!! Where am I can find this timeout?

    Why is activesync can not start after reconnect? Thanks for any advice! Thanks,

     

    Best Regards,

    Dave


    Friday, April 1, 2011 4:15 PM

All replies

  • Your USBF driver is not detecting that the USB cable has been removed.  So, REPLLOG is still running becuase it takes a few seconds to timeout.

    Some of the BPSs and CSPs in Platform Builder demonstrate what to do.  Search for "cable"


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Friday, April 1, 2011 6:01 PM
    Moderator
  • Hello Bruce, Thanks for reply!

    1) I understand that activesync is running because of timeout. But how I can change (reduce) this timeout? I know that there are not public sources of repllog.exe . Maybe you know how I can change this timeout.

    2) I try to develop the mechanism of detecting when USB cable has been removed. When usb function driver is initialising I create the special thread that is polling the power state through GetDevicePowerState call. When GetDevicePowerState return power state D4 I know that usb cable has been removed. Then I set NOTIFICATION_EVENT_RS232_DETECTED event. Is it right solution for detecting when USB cable has been removed?

    3) I have yet another problem with activesync that maybe can be related with USB cable detecting:

    Sometimes when I plug my usb cable I receive "USB device not recognized" message and activesync doesn't start. I receive this message intermittently and I can not understand why that happens. If I reconnect my USB cable several times - activesync starts. This message often appears when I plug/unplug my device quickly a lot of times. But this message can appears when I power on my device. Why is it happen? Maybe usb function driver doesn't know when I remove USB cable, and connection hangs. Or no?

    Please give me some advice or solutions. Thank you for your help!

     

    Best Regards,

    Dave

    Tuesday, April 5, 2011 11:04 AM
  • 1.  I don't know of any settings to reduce the timeout

    2.  The correct method would be to have hardware that you can monitor for cable removal.

    3.  When powering up, your USBF is powered but it doesn't have a way (driver) to send identifier information.   Don't know why it is doing this at other times.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Tuesday, April 5, 2011 12:27 PM
    Moderator