Yes! The code you suggested worked. Even though it is for a button press it
seems to stop HotSync running when the external server accesses the serial
port.
Thank you very much for your help.
-----Original Message-----
From: Chris Percival <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: 20 October 2000 16:16
Subject: Re: How can I stop HotSync activating when the serial port is
accessed?
>Hmm, sounds like the right cable, but I know a 2700 cable will do this. If
>you have a 2700 cable and raise DTR into it, the palm will try and do a hot
>sync.
>
>You can disable the hotsync action (through the button press anyway) in
code
>like this in your event loop:
>
> EvtGetEvent(&event, evtWaitForever);
>
> // Ignore Hotsync button... (both of them to be safe)
> if ((event.eType == keyDownEvent) &&
> TxtCharIsHardKey(event.data.keyDown.modifiers, event.data.keyDown.chr)
&&
> ((event.data.keyDown.chr == vchrHardCradle) || (event.data.keyDown.chr
==
>vchrHardCradle2)))
> continue;
>
> if (! SysHandleEvent(&event))
> if (! MenuHandleEvent(0, &event, &error))
> if (! AppHandleEvent(&event))
> FrmDispatchEvent(&event);
>
>Chris
>
>
>
>Charlie Grant <[EMAIL PROTECTED]> wrote in message
>news:27519@palm-dev-forum...
>>
>> The cable is the one that was supplied by Symbol with the unit and
cradle.
>> The cable is labelled "170047-000 REV.B".
>>
>> -----Original Message-----
>> From: Chris Percival <[EMAIL PROTECTED]>
>> Newsgroups: palm-dev-forum
>> To: Palm Developer Forum <[EMAIL PROTECTED]>
>> Date: 20 October 2000 15:40
>> Subject: Re: How can I stop HotSync activating when the serial port is
>> accessed?
>>
>>
>> >Are you sure you are using a 1700 cable and not a 2700 cable?
>> >
>> >Charlie Grant <[EMAIL PROTECTED]> wrote in message
>> >news:27504@palm-dev-forum...
>> >>
>> >> I am writing an application on the Symbol SPT 1700 which communicates
>> with
>> >> an application running on a Unix server, via the Palm's serial port.
>> When
>> >> the Unix application accesses the Palm's serial port, HotSync
>> >automatically
>> >> runs on the Palm. Is it possible to disable HotSync?
>> >>
>> >> Please reply via my email address: [EMAIL PROTECTED]
>> >>
>> >> Thanks.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> >
>> >
>> >--
>> >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/