Post by John Polto » Tue, 02 Dec 2003 00:07:55

I have never managed to get InfraRed working under OS/2.

Does anyone know of any articles written about it?

How do I tell if any InfraRed signals are getting sent out by the system?

I wonder if it is possible to use a laptop with InfraRed as a TV remote

It must be possible to program the frequency used... I know you can turn
a Palm Pilot into a remote control, so why not a PC?


Post by Aidan Gre » Tue, 02 Dec 2003 06:20:23

It depends on what model of a laptop you are working with.

Some infrared ports appear as COMM ports to a Plug-and-Play
system. They might work as COMM ports under OS/2 with Ray
Gwinn's SIO drivers.

I have no idea if they can be used to control a TV or not.

I think we will need to know what make and model of laptop
you have before we can suggest anything else to you.

Aidan Grey



Post by John Polto » Tue, 02 Dec 2003 08:12:16

IBM ThinkPad 600


Post by My Nam » Tue, 02 Dec 2003 15:47:18

The infrared port is setup by the 600's THINKPAD program, named TP2.EXE.
This setups all of the parts of a Thinkpad computer.

If you flash the BIOS with a newer BIOS, then all of these settings are
re-set to defaults. So one must re-run the TP2.EXE again to set the
computer back.

The 600 can only run so many ports at one time, so for instance you may
have to disable the built-in COMM port, in order to be able to have an
IRQ for the Infrared Port. Etc. Disable the MIDI, Joystick, etc., so
that the infrared port can be used.

And the infrared port is operated by the DLL file, INFRARED.PDR, which
must be used.

For all of the info, open up the Thinkpad program, TP2.EXE, and click on
the Help icon, search for the word "infrared", and you'll find all that
you need to know. (s)



Post by Michae » Wed, 03 Dec 2003 03:35:27


well the TP supplied Infrared Driver is outdated and very limited.
Better get
from hobbes and install this. You can setup a connection to your
cellphone, printer or whatever if it supports infrared.



Post by John Polto » Wed, 03 Dec 2003 05:14:28

How can you tell if is working?

And is here any way to use it as a remote control for your TV?


Post by USBGu » Wed, 03 Dec 2003 05:27:48

Use a mobile phone/pda etc with the laptop.

NO won't work


Post by John Polto » Wed, 03 Dec 2003 06:03:22

How do I send a signal from the laptop? I have a Palm Pilot which can do
IR, so I guess I could try that...

There is some software available to turn my Palm Pilot into a remote
control, and since it can talk to my laptop, then why shouldn't the
laptop be capable of transmitting the same signals as the Palm at the TV?

BTW are you a wiz with USB?

If so can you look at porting some Linux USB code to OS/2 so that
PilotLink can have USB functionality?


Post by R. G. Newb » Wed, 03 Dec 2003 06:35:41

Well there should be a way to make it work, BUT you would probably
need to know quite a lot about the internals of the IR system.

The present setup of the IR port is that the IR transmitter receiver
are 'disconnected' from the material being sent. A driver does the
translation. From what I can see, the IR transmitter exposes an
interface which acts just like a serial wire connection. What it
actually does is something quite different.

TV remotes use different coding methods, using both frequency and
timing characteristics. A Hewlett-Packard 48 series calculator has an
IR transmitter/receiver and a number of TV remote programs have been
written for it. The calculator generally seems to use Kermit as the
transmission methodology when talking to other calculators. But even
so, to receive/store and transmit TV remote signals, the authors of
various available TV remote programs had to resort to setting up a
timed frame and sampling the signal throughout the frame to obtain a
representation of the actual signal. (The sampled signal is then
stored as a hex number).

If you browse /search the program descriptions at you can
find at least 3 different TV remote programs for an HP-48 calc. Unless
you own an HP-48, the programs are of no use, but you may find the
descriptions of what/how a TV remote works exceedingly useful.

I suspect that any IR transmitter built into a laptop has the physical
capability of being used as remote. But I strongly suspect that the
bitwise control of the transmitter which is needed, is completely
hidden and cut off behind the BIOS or at best, only available to
someone who can right a system level driver.

I suspect doing this would be something like writing 'music' using a
programmable 'beep'. ( You can do that with an HP-48 too!)

But even if you do, your laptop may not have the range to work from
your couch!



Post by USBGu » Thu, 04 Dec 2003 08:26:45

Well If you are good in writing drivers you could try to port the LIRC from
linux to OS/2. You def need a driver as you need to program the IR
controler to send each bit and the timing is critical.

The IR drivers for OS/2 do implement an IRDA Stack so IR devices like
printer, phones, PDAs etc can be accessed.

Well I looked into that but pilotlink actually doesn't do USB but there
is a comport(tty) driver for linux that lets the device show up as a
normal serial device. Problem is that pilotlink opens the COM port and
then asks the user to press the sync button. But on USB the palm is
first visible to the PC when you press the sync button. So you can't
open the
comport as there is no HW behind it. Hen/egg problem.

But the I work with Brad on manplatosync (java app) to let it sync via USB.


Post by Andreas Lu » Thu, 04 Dec 2003 18:08:04

I asked some time ago, but nobody could tell me how to get this package
working with my tp390e. Is it so much different from other (officially
supported) models? My config.sys contains:


The drivers do not load with (sys1201). Any ideas?




Andreas Ludwig
directly from Vienna
using PMINews 2 on eCS 1.01 German!


Post by John Polto » Fri, 05 Dec 2003 04:51:26

I'm told by the developer of Pilotlink that it does. Maybe it is some
new functionality.

Apparently there are five functions which need porting. Examples are to
be found in linuxusb.c and freebsdusb.c which I presume are part of the
Pilotlink distribution, although I can't remember where it is hosted at
the moment... I just checked Sourceforge but couldn't see it.


Post by William L. » Fri, 05 Dec 2003 05:43:40


Set the BIOS to use com port 2 and the internal IR pins with an Internal
IR adapter, or use an IR dongle that hangs off the com2 port (no change
to bios required in this case). IR uses different frequencies to most
TV remotes. IRDA specification says that one can use it as a serial
port or as a LAN port. I used it with an old HP printer as a serial
port (used the version that shipped with Warp 4). I don't have a laptop
to try the newer versions. They don't install on my desktop (don't
recognize the internal adapter). Warp 4 also came with LAN drivers for
IR. Not ever used them, but know they don't work (share the port) with
the serial version.
Thanks a Million!


Post by Michae » Sun, 07 Dec 2003 06:48:20

yes its working, I tried it with 3 different cell phones, and it
worked nice.

I dont think thats possible.




Post by Michae » Sun, 07 Dec 2003 06:48:21

On Wed, 3 Dec 2003 09:08:04 UTC, "Andreas Ludwig" < XXXX@XXXXX.COM >

it may contain a not compatible controller (this model isnt listed in
the readme)

only two lines?
My config.sys has the following entries:

rem device=c:\tools\irdd2\IRCOMM.SYS /V