Hi
Is it possible to force a connection in code (I'm using C++) with
ActiveSync from the CE device? I need my device to be connected all
the time, but sometimes the ActiveSync connection cuts out on me. Or,
if I can't do that, can I somehow force the PC to connect with the
device (I don't think this is possible since ActiveSync appears to be
a client-initiated system)

I've done some research on the topic with no luck, and I couldn't find
anything at MSDN either.

Thanks!
Tim

Re: Iniating a connection to ActiveSync (from the device and from the PC) by Chris

Chris
Thu Jul 08 17:26:10 CDT 2004

run repllog.exe

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com



"darkhelmetGT" <darkhelmetgt@gmail.com> wrote in message
news:1e93d81.0407081416.4a30dd80@posting.google.com...
> Hi
> Is it possible to force a connection in code (I'm using C++) with
> ActiveSync from the CE device? I need my device to be connected all
> the time, but sometimes the ActiveSync connection cuts out on me. Or,
> if I can't do that, can I somehow force the PC to connect with the
> device (I don't think this is possible since ActiveSync appears to be
> a client-initiated system)
>
> I've done some research on the topic with no luck, and I couldn't find
> anything at MSDN either.
>
> Thanks!
> Tim



Re: Iniating a connection to ActiveSync (from the device and from the PC) by darkhelmetgt

darkhelmetgt
Mon Jul 12 13:28:07 CDT 2004

Thanks for the info

I also need to be able to reset a device while it's in the cradle,
then reconnect to it after the soft-reset. This needs to be automatic,
without human intervention.

When I programatically kick off a soft-reset, I lose the connection to
ActiveSync. It seems that unless I physically remove and put the
device back in the cradle, I cannot reconnect to ActiveSync.

I've tried killing repllog and disconnecting all active RAS
connections before the restart, with no luck.

Any suggestions? Is there a hack so I can make my CE device think that
it's been put back in the cradle?

Thanks!
Tim

"Chris Tacke, eMVP" <ctacke@spamfree-opennetcf.org> wrote in message news:<#k6mTqTZEHA.136@TK2MSFTNGP11.phx.gbl>...
> run repllog.exe
>
> --
> Chris Tacke, eMVP
> Co-Founder and Advisory Board Member
> www.OpenNETCF.org
> ---
> ---
> Principal Partner
> OpenNETCF Consulting
> www.OpenNETCF.com
>
>
>
> "darkhelmetGT" <darkhelmetgt@gmail.com> wrote in message
> news:1e93d81.0407081416.4a30dd80@posting.google.com...
> > Hi
> > Is it possible to force a connection in code (I'm using C++) with
> > ActiveSync from the CE device? I need my device to be connected all
> > the time, but sometimes the ActiveSync connection cuts out on me. Or,
> > if I can't do that, can I somehow force the PC to connect with the
> > device (I don't think this is possible since ActiveSync appears to be
> > a client-initiated system)
> >
> > I've done some research on the topic with no luck, and I couldn't find
> > anything at MSDN either.
> >
> > Thanks!
> > Tim

Re: Iniating a connection to ActiveSync (from the device and from by Trevor

Trevor
Mon Jul 12 13:40:33 CDT 2004

darkhelmetGT wrote:
> Thanks for the info
>
> I also need to be able to reset a device while it's in the cradle,
> then reconnect to it after the soft-reset. This needs to be automatic,
> without human intervention.
>
> When I programatically kick off a soft-reset, I lose the connection to
> ActiveSync. It seems that unless I physically remove and put the
> device back in the cradle, I cannot reconnect to ActiveSync.
>
> I've tried killing repllog and disconnecting all active RAS
> connections before the restart, with no luck.
>
> Any suggestions? Is there a hack so I can make my CE device think that
> it's been put back in the cradle?
>
> Thanks!
> Tim
>
> "Chris Tacke, eMVP" <ctacke@spamfree-opennetcf.org> wrote in message news:<#k6mTqTZEHA.136@TK2MSFTNGP11.phx.gbl>...
>
>>run repllog.exe
>>
>>--
>>Chris Tacke, eMVP
>>Co-Founder and Advisory Board Member
>>www.OpenNETCF.org
>>---
>>---
>>Principal Partner
>>OpenNETCF Consulting
>>www.OpenNETCF.com
>>
>>
>>
>>"darkhelmetGT" <darkhelmetgt@gmail.com> wrote in message
>>news:1e93d81.0407081416.4a30dd80@posting.google.com...
>>
>>>Hi
>>>Is it possible to force a connection in code (I'm using C++) with
>>>ActiveSync from the CE device? I need my device to be connected all
>>>the time, but sometimes the ActiveSync connection cuts out on me. Or,
>>>if I can't do that, can I somehow force the PC to connect with the
>>>device (I don't think this is possible since ActiveSync appears to be
>>>a client-initiated system)
>>>
>>>I've done some research on the topic with no luck, and I couldn't find
>>>anything at MSDN either.
>>>
>>>Thanks!
>>>Tim

Tim,

One such hack is to run "/Windows/runrepllog.exe". If this file is
executed while there is no ActiveSync session in progress then the
"Connect To" window from ActiveSync will be started. HTH.

Re: Iniating a connection to ActiveSync (from the device and from the PC) by Chris

Chris
Mon Jul 12 14:20:59 CDT 2004

From the PC side no. The device is running repllog.exe on an interrupt,
which makes the connection.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com



"Trevor" <trevor@spam.com> wrote in message
news:ejMxZ$DaEHA.3988@tk2msftngp13.phx.gbl...
> darkhelmetGT wrote:
> > Thanks for the info
> >
> > I also need to be able to reset a device while it's in the cradle,
> > then reconnect to it after the soft-reset. This needs to be automatic,
> > without human intervention.
> >
> > When I programatically kick off a soft-reset, I lose the connection to
> > ActiveSync. It seems that unless I physically remove and put the
> > device back in the cradle, I cannot reconnect to ActiveSync.
> >
> > I've tried killing repllog and disconnecting all active RAS
> > connections before the restart, with no luck.
> >
> > Any suggestions? Is there a hack so I can make my CE device think that
> > it's been put back in the cradle?
> >
> > Thanks!
> > Tim
> >
> > "Chris Tacke, eMVP" <ctacke@spamfree-opennetcf.org> wrote in message
news:<#k6mTqTZEHA.136@TK2MSFTNGP11.phx.gbl>...
> >
> >>run repllog.exe
> >>
> >>--
> >>Chris Tacke, eMVP
> >>Co-Founder and Advisory Board Member
> >>www.OpenNETCF.org
> >>---
> >>---
> >>Principal Partner
> >>OpenNETCF Consulting
> >>www.OpenNETCF.com
> >>
> >>
> >>
> >>"darkhelmetGT" <darkhelmetgt@gmail.com> wrote in message
> >>news:1e93d81.0407081416.4a30dd80@posting.google.com...
> >>
> >>>Hi
> >>>Is it possible to force a connection in code (I'm using C++) with
> >>>ActiveSync from the CE device? I need my device to be connected all
> >>>the time, but sometimes the ActiveSync connection cuts out on me. Or,
> >>>if I can't do that, can I somehow force the PC to connect with the
> >>>device (I don't think this is possible since ActiveSync appears to be
> >>>a client-initiated system)
> >>>
> >>>I've done some research on the topic with no luck, and I couldn't find
> >>>anything at MSDN either.
> >>>
> >>>Thanks!
> >>>Tim
>
> Tim,
>
> One such hack is to run "/Windows/runrepllog.exe". If this file is
> executed while there is no ActiveSync session in progress then the
> "Connect To" window from ActiveSync will be started. HTH.



Re: Iniating a connection to ActiveSync (from the device and from by Trevor

Trevor
Mon Jul 12 15:13:02 CDT 2004

Chris Tacke, eMVP wrote:
> From the PC side no. The device is running repllog.exe on an interrupt,
> which makes the connection.
>

I am talking about "runrepllog.exe" not "repllog.exe". When I launch
runrepllog it shows the ActiveSync connect dialog. If I connect the USB
cable while the dialog is still showing it connects via ActiveSync.
Couldn't he use CeCreateProcess to launch runrepllog.exe on the handheld
from the desktop?

Re: Iniating a connection to ActiveSync (from the device and from the PC) by Chris

Chris
Mon Jul 12 15:35:35 CDT 2004

No, it's a Catch-22.. Calling CeCreateProcess infers that ActiveSync has a
live connection, which you don't.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com



"Trevor" <trevor@spam.com> wrote in message
news:%23iA7GzEaEHA.1840@TK2MSFTNGP11.phx.gbl...
> Chris Tacke, eMVP wrote:
> > From the PC side no. The device is running repllog.exe on an interrupt,
> > which makes the connection.
> >
>
> I am talking about "runrepllog.exe" not "repllog.exe". When I launch
> runrepllog it shows the ActiveSync connect dialog. If I connect the USB
> cable while the dialog is still showing it connects via ActiveSync.
> Couldn't he use CeCreateProcess to launch runrepllog.exe on the handheld
> from the desktop?



Re: Iniating a connection to ActiveSync (from the device and from the PC) by Bruce

Bruce
Mon Jul 12 19:41:00 CDT 2004

This is not a CE problem, but a hardware problem. Many PPCs now handle this
in hardware.

Try running repllog after resetting, if that doesn't work. You may need to
contact the OEM to see if there is a solution, or select a different device.
It sounds like you may not be using a PPC, are you?

--
Bruce Eitman (eMVP)
Senior Engineer