Question:- How do I connect my IR phone to my Psion and read info from the phone using OPL ?

Answer:- Use SComms.opx from www.symbian.com also downloadable from this web page.

Most mobile phones that have IR (infra red), use AT commands to communicate with other IR enabled devices, such as your Psion. These AT commands are in fact modem commands. Using the supplied test program and the OPX's from other third parties, namely Symbian, you will be able to get names, phone numbers, battery level etc, direct from your IR phone. This is all done from within your own OPL programs on your Psion.

I've searched the internet for hours to find and reach this level of knowledge. If you've just found this info, enjoy :)

Now it get's technical, again.


Download IRTestProg.zip here. This contains 5 files, each file is explained in turn below.


SComms.Opx This file should be copied to your Psion's C: or D: System/Opx directory
This is the main gummins of the routines available to the OPL programmer.

SComms.Oxh This file should be copied to your Psion's C: or D: System/Opl directory
This is the header file that must be defined by INCLUDE "SComms.oxh" at the top of your OPL program. See IRTestProg for details

E32er.Oph This file should be copied to your Psion's C: or D: System/Opl directory. Not sure if it's actually needed.
This file has all the error codes that SComms.opx can throw at you. E.g -33 Timed out. No connection

IRTestProg This file can be copied to any directory on your Psion
This is mine. I edited the original example program to make it easier to use. Modify it all you like.

at_commands This file can be copied to any directory on your Psion
This is a list of AT commands for getting various pieces of information from your phone.



The program simply allows you to enter an AT command, then displays the phones response. Edit and use the code anyway you wish. If you write any good little apps, E-mail them to me and i'll add them to the site for all to see and use.

The IR on the phone must be activated before running the program. If no connection is made the program will not run.