Hi,
     The reason is because you haven't turned off the IR receiver when 
you are transmitting. This is an essential step. I'm surprised 
actually that you are not seeing the same behavior on Palm Branded 
devices.

     It's a simple fact that in all IR tranceivers I'm aware of the 
transmitter and receiver are optically coupled meaning that 
everything transmitted is also seen by the receiver. You need to turn 
off the receiver before you begin transmitting. Take a look at 
SerialMgr.h and close to the declaration of serCtlIrDAEnable you 
should see serCtlIrReceiveEnable (or something similar).

        Cheers,
        Bruce.

>I have an application that uses SIR (physical layer IR) to talk to a 
>proprietary
>device.
>I use SerControl(refnum, serCtlIrDAEnable, 0, 0) to setup the UART, and then
>make
>standard SerSend, SerReceive, ect... calls.
>I have tested it on palm III, IIIe, IIIc, V, Vx, everything works fine.
>
>When I test it on a visor, it seems like the IR port is in loopback.  Anything
>I send out the IR shows up immediately in the serial receive queue.
>I have even taped over the IR port, so I know its not getting reflections from
>something external.
>The IR port on the visor can send and receive things OK using the exchange
>manager though.
>
>Has anyone seen this before?  Any ideas on how I can Isolate the problem?
>
>Ronnen
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, please
>see http://www.palmos.com/dev/tech/support/forums/

-- 
------------------------------------------------------------------------------
Bruce Thompson          | "Pinkie! Are you pondering what I'm pondering?"
Software Engineer       | "I think so Brain, but if they called them Sad
Partner Engineering     |  Meals kids wouldn't buy them!"
Palm, Inc.

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

Reply via email to