Hey all!!!
I'm trying to use the serial manager to send a simple 3 byte code, two
numbers and one character and I can't manage to get a good signal, I'v
already try with a M100 and a Tungsten E.
The problem is that I use a web cam I do see the "dot" of the light of the
IR, but not as clear as when I use any other program (i.e. beaming a note,
or any beaming attemp)
Also, when I use a osciloscope to watch the signal, again I see the beaming
signal but I can't see my program' signal, please help, I really need to
finish this class project this month, HELPPPPPP.
Here's the code I'm usign to send the signal:
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 <=10000 ; i = i+1){
numSent = SrmSend(puerto, msg, toSend, &err);
SrmSendWait (puerto);
}
if (err == serErrTimeOut) {
;//cts timeout detected
}
}
SrmClose (puerto);
}
Thx for your help guys!!!
Jos� Miguel Vives
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/