Hey all!
I've been trying to use the Serial Manager to send just some bytes through
th IR port, but I can't get the signal on the reciver machine, nor on a
osiloscope (or how ever it' spelled in english), the code I'm using to send
the message is:
static void CambiarEstado(UInt16 amp, UInt16 est){
UInt16 puerto;
// SrmOpen (UInt32 port, UInt32 baud,UInt16 *newPortIdP)
Err error = SrmOpen (serPortIrPort, 2400, &puerto);
if (error) {
FrmAlert (PortAlert);
}
else {
UInt32 toSend, numSent;
UInt16 i;
Err err;
Char msg[] = "err\n";
msg[0] = amp;
msg[1] = est;
toSend = StrLen(msg);
for ( i = 0; i <=10 ; i = i+1){
numSent = SrmSend(puerto, msg, toSend, &err);
SrmSendWait (puerto);
}
if (err == serErrTimeOut) {
;//cts timeout detected
}
}
SrmClose (puerto);
}
Please, can any one help me?
The reciver hardware actually "sees" a standar TV control.
Thanx!!!
Jos� M. Vives
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/