Hmmm,
        Actually this shouldn't be too hard to do using the new serial
manager which, I believe, means you have to have PalmOS3.3 or later (You
may need 3.5 I'm not sure.).  The first thing yo udo is to check and make
sure the new serial manager is available on your hardware, which yo ucan
do by calling:

err = FtrGet(sysFileCSerialMgr, sysFtrNewSerialPresent, &value);

Once this returns successfully, you use SrmOpen to open a conenction to
port "$8000" which is the normal palm serial port (located at the bottom
of the palm device), and save that handle off.  Next you can call SrmOpen
again to open a connectio nto port "$8001" wich is the logical ID for the
Ir port located at the top of the palm device.  Save that handle off as
something different.

Finally you can call SrmReceive (using the handle obtained for the Ir
port) to obtain chunks of data from the Ir port in thier raw form right 
off the UART (no crunching by the IrDA stack), and then stuff these bytes
(you don't even have to look at them) right on to the palms normal serial
port by calling SrmSend (using the handle obtained for the normal serial
port).  

I am assuming that the phone in question has implemented the logcial
portions of the IrDA protocol, and not the physical portions (which
require infrared light) and that the phone *physically* speaks RS-232.


                Noah J. Ternullo
                Lockhed Martin 
                System Engineer

        
--------------------------------------------------------------------------------
Noah J. Ternullo                                [EMAIL PROTECTED]
--------------------------------------------------------------------------------
"As a matter of constitutional tradition, in the absence of evidence to the 
contrary, we presume that governmental regulation of the content of speech
is more likely to interfere with the free exchange of ideas than to
encourage it."                  - Supreme Court Justice John Paul Stevens 
--------------------------------------------------------------------------------


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to