If we need to short out some pin on the port to do this, I don't think
Metrowerks or Palm has API that controls the phsyical hardware.  

I know that with some of the Symbol units, the hotsync is an application on
the unit (i.e. not a hardware button, but an application button).  Now, how
can we get those code into our own program, is another question.
That is kind of what's needed.  To be able to access that HotSync program
within my code.

And thanks again for all the help so far!  It is much appreciated!

Thanks,
__________________________________________________
Eric C.F. Sun
Senior Software Developer
RAD Specialist 
Q.Data Inc.
Tel: (905)477-1367     x.277
Date: July 27, 2000   Time:12:07



        -----Original Message-----
        From:   Bradly J. Barton [SMTP:[EMAIL PROTECTED]]
        Sent:   Thursday, July 27, 2000 11:45 AM
        To:     Palm Developer Forum
        Subject:        Re: Programmatically perform a HotSync

        From what I understand, the button on the cradle simple shorts a
couple of
        pins to wake up the Palm and tell it to sync.. I don't know that you
can
        simulate that button. There are other people on the list that might
chime in
        here.. its out of my expertise. :)

        ----------
        Bradly J. Barton - [EMAIL PROTECTED]
        Jenies Technologies Incorporated
        (972) 602-1835
        http://www.JTI.net
        http://PalmInHand.com
        ----- Original Message -----
        From: "Chris Percival" <[EMAIL PROTECTED]>
        Newsgroups: palm-dev-forum
        To: "Palm Developer Forum" <[EMAIL PROTECTED]>
        Sent: Thursday, July 27, 2000 3:47 AM
        Subject: Re: Programmatically perform a HotSync


        > What about simulating a hotsync "keypress". i.e. put the hotsync
virtual
        key
        > in the pen queue?  I am guessing here by the way...
        >
        > Bradly J. Barton <[EMAIL PROTECTED]> wrote in message
        > news:18858@palm-dev-forum...
        > >
        > > What you need to do is launch the HotSync manager with either
the
        > > sysAppLaunchCmdSyncRequestLocal or
sysAppLaunchCmdSyncRequestRemote
        > command.
        > > You can use SysAppLaunch or SysUIAppSwitch function to do it.
        > >
        > > You can try this, but this function has not been tested.. it is
        something
        > > that was written in this email and based on something written to
launch
        > > clipper.. (Please let me know if this works /grin):
        > >
        > > Err StartLocalHotsync(UInt alertbox)
        > > {
        > >    Err err;
        > >    DmSearchStateType searchState;
        > >    UInt cardNo;
        > >    LocalID dbID;
        > >
        > >    // find hotsync and launch it
        > >    err = DmGetNextDatabaseByTypeCreator (true, &searchState,
        > >                                          sysFileTApplication,
        > >                                          sysFileCSync, true,
        > >                                          &cardNo, &dbID);
        > >    if (err)
        > >       FrmAlert(alertbox);
        > >    else
        > >       err = SysUIAppSwitch(cardNo, dbID,
        sysAppLaunchCmdSyncRequestLocal,
        > > NULL);
        > >
        > >  return err;
        > > }
        > >
        > >  (sysFileCSync is declared in SystemResources.h, by the way)
        > >
        > > ----------
        > > Bradly J. Barton - [EMAIL PROTECTED]
        > > Jenies Technologies Incorporated
        > > (972) 602-1835
        > > http://www.JTI.net
        > > http://PalmInHand.com
        > >
        > >
        > >
        >
        >
        >
        > --
        > For information on using the Palm Developer Forums, or to
unsubscribe,
        please see http://www.palmos.com/dev/tech/support/forums/


        -- 
        For information on using the Palm Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to