I've run into a problem where a customer says that if they use my
application to send a break signal via cable, it works. If they send break
via Palm V modem, it does not work, and it appears that what happens with
the modem is that instead of a singble break for .5 seconds, he gets 2
shorter break signals.

Has anyone run into this?

Any idea?

The code in the app bascially turns break on, waits 500ms, turns it back
off, code below...

Brian

/* SendBreak
 *      04/03/00        bhall   Try using SysTaskDelay instead of loop
 *                                              - Skip if we find an error
 *                                              - Only call ClearErr if we
had an error
 */
void CSerialConnection::SendBreak(void)
{
        Err             err;

        // Turn break on
        if (fHasNewSerialMgr)   err = SrmControl(fPortID, srmCtlStartBreak,
0, 0);
        #if EMULATION_LEVEL == EMULATION_NONE
        else                                    err =
SerControl(fSerLibRefNum, serCtlStartBreak, 0, 0);
        #endif
        if (err) goto out;

        // Wait 500ms
        if (1) {
                SysTaskDelay(sysTicksPerSecond / 2);
        } else {
                UInt32  start, end;

                start = TimGetTicks();
                end = start + (sysTicksPerSecond / 2);
                while (TimGetTicks() < end)
                        ;
        }

        // Turn break off
        if (fHasNewSerialMgr)   err = SrmControl(fPortID, srmCtlStopBreak,
0, 0);
        #if EMULATION_LEVEL == EMULATION_NONE
        else                                    err =
SerControl(fSerLibRefNum, serCtlStopBreak, 0, 0);
        #endif

out:
        // Clear any errors
        if (err) ClearErr();
}
_____________________________________________________________________
Mark/Space Softworks                               voice 408-293-7299
111 West Saint John, 3rd Floor                       fax 408-293-7298
San Jose, CA 95113                         <http://www.markspace.com>

        PalmOS, Mac OS, Windows and Web Software & Solutions:

         PageNOW! Wireless Messaging, PhoneWatcher Caller ID,
     Online & Communicate terminal emulation and serial debugging

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to