Re: Detecting a USB connection is made - How does ActiveSync do it??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Bruce Eitman \(eMVP\) (beitmannospam_at_nospam.neo.rr.com)
Date: 05/30/04


Date: Sun, 30 May 2004 11:34:56 -0400

When the HARDWARE connection between the PPC and Desktop is established,
ActiveSync on the desktop send a packet to the PPC, the device driver sees
the packet and signals the NOTIFICATION_EVENT_RS232_DETECTED event. When
that event occurs, a database entry is read which indicates which EXE to
start. By default it is set to start repllog.exe. You could change this to
be your app. You will of course need to do the work on the desktop to
replace ActiveSync. When you do that, you will no longer rely on ActiveSync
to make everything happen.

Remember that to implement a protocol, *you* must do everything yourself
start to finish. Can't just leave things to chance. If it were easy,
everyone would replace ActiveSync.

-- 
   Bruce Eitman (eMVP)
   Senior Engineer


Relevant Pages

  • Re: TcpDelAckTicks from PPC
    ... I have a USB adapter connecting to the PPC that this ... packet on the ethernet. ... assign my IP address to the PPC, ... What I am seeing is that, if ActiveSync is the ...
    (microsoft.public.pocketpc.activesync)
  • Re: Packet sending problem while PCC in cradle
    ... I do not think UDP applications can work through Activesync. ... I am using PPC 2003 and ActiveSync 3.8. ... but no packet is captured. ...
    (microsoft.public.pocketpc.developer)
  • Re: Ping from PocketPC
    ... I think that you have there a limitation of ActiveSync. ... be a forwarder of every conceivable packet on Earth. ... You could try changing the TTL value in your ICMP packets, ... expected when it is connected using WLAN or UMTS/GPRS connection. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Packet sending problem while PCC in cradle
    ... I am using PPC 2003 and ActiveSync 3.8. ... When i tried to send udp ... but no packet is captured. ...
    (microsoft.public.pocketpc.developer)
  • Re: Pinging when connected with active sync
    ... ActiveSync doesn't claim that it forwards all packet ... and the Ping class of the OpenNETCF, but it only works when connected to ... "Impossible to send a packet" even though every other TCP operation is ...
    (microsoft.public.dotnet.framework.compactframework)