So far so good. I did

SerControl(SerL,serCtlIrDAEnable,0,0);

and now I'm able to receive data. But the data I receive are not the same value then
receiving from the real serial port.

Example:
I have a continued data transfer from an external device. Every 20 ms I receive 7 
Bytes. The
first Byte always is
0x02(HEX).

My device sends (IR) data. This data I transform 1:1 into an electrical signal which I 
can
receive over every RS232 port.

Now receiving over the IR port from my Palm III I receive wrong data. That means I can
detect the 7 Bytes bundle
correctly, but the first Byte is always 0xFB (251 dezimal) and not 0x02.
Any Idea....

Tom Zerucha schrieb:

> On Fri, 12 Mar 1999, Joerg Lichtin wrote:
>
> > My sending device is Not using the IrComm protocol. It sends the row data and my
application reads the data directly
> > from the serial port. I think in htis case I can't use the IrComm driver.
> > Are there any other solutions to get the IR data without any protocol
> >
> > Joerg
>
> DO NOT enable the enhanced IR comm protocol.  A Palm without this will
> work to send serial data out the infrared port.  The enhancement is
> something that allows IrDA to be used to emulate a full RS232
> implementation including RTS and other handshaking lines over an infrared
> link, but uses several layers of protocol instead of just sending the
> character over.
>
> I am assuming a Palm III and not an upgraded PalmPilotPro.
>
> Open the serial port and configure the baud rate normally, then do:
>
> SerControl(SerL,serCtlIrDAEnable,0,0);
>
> This will switch the UART from the cradle port to the IrDA interface.
>
> To switch back to the cradle port, just do:
>
> SerControl(SerL,serCtlIrDADisable,0,0);



Reply via email to