This is something that seems to be discussed a lot on this forum. If you
look in the archive you will find how to do this.
err = SysLibFind("Serial Library", &pDcb->hComm);
err |= SerOpen(pDcb->hComm,0,pDcb->baudRate);
if (pDcb->echoOn != 0)
{
SerControl(pDcb->hComm, serCtlIrDAEnable, 0, 0);
}
if (err == 0)
sts = EM_STS_OK;
Something like this will do the trick.
When you want to close the serial port:
SerControl(hComm, serCtlIrDADisable, 0, 0);
CloseComm
Hope this helps..
Jimmy
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 06, 1999 9:27 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Raw IR
How do I send raw bytes out of the IR port without using IRDA? I
just want to send and receive bytes, like you can with the serial
port, without any protocols. Are there any code examples of this?
The documentation says that "connectionless" communication is
possible, but doesn't say how, and it is very hard to understand
the IR section of the manual. (This is very easy on Windows CE
devices, by the way.)
Thanks,
Brad Myers