Hello, i'm having a problem when i send data using the serial.. it sends not valid data, for example, i send the ENQ (0x05) and i can see at a serial tester that was send 0xFF. Do anyone had this problem ??

thanks,
Augusto.

erro = SysLibFind("Serial Library", &Handle);
erro = SerOpen(Handle, 0, 19200);
if (erro != errNone && erro != serErrAlreadyOpen)
return false;
serSettings.baudRate = 19200;
serSettings.flags = serSettingsFlagBitsPerChar8 | serSettingsFlagStopBits1 | serSettingsFlagRTSAutoM;
serSettings.ctsTimeout = SysTicksPerSecond() / 2;
erro = SerSetSettings(Handle, &serSettings);
prg = PrgStartDialog ("Autentifica��o", progressCallbackFunction1,&i);


        do
        {
                SerSendFlush(Handle);
                SerSend(Handle, ENQ_, 1, &erro);
                if (erro != 0)
                        FrmAlert(ErrorAlert);
                EvtGetEvent(&event, 0);
                if(!PrgHandleEvent(prg, &event))
                {
                        if(PrgUserCancel(prg))
                        {
                                PrgStopDialog(prg, true);
                                SerClose(Handle);
                                return false;
                        }

_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com


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

Reply via email to