---------------------------------------------------------------------------
OVERVIEW
---------------------------------------------------------------------------
This program can be used to map received IR codes from IR2PC modul to keyboard keys.
After the learning process simply start dosir2pc.exe first and afterwards the 
application you want to control.
The max. number of codes which can be learned is defined to 40. You can change it to your 
belongings by setting the value in the source code:
#define    MAXCODES 40 

---------------------------------------------------------------------------
INSTALLATION of IR2PC modul:
---------------------------------------------------------------------------
YES sure you need the modul!!
Before poweron connect the IR-modul directly to one of 
the COMports (1 or 2). You can use a cable for connecting.
It is a 1 to 1 cable.
No extra powersupply is needed!

Power the PC on and boot DOS. 
Or you can use a DOS-box under Windoofs. 

Now the PC have to learn your handheld remote keys:

Start the program: 
dosir2pc 1 l <enter>
1 - is for COMport 1, take 2 for COM2
l - learning mode

Once dosir2pc.exe recognizes the IR-hardware you are now able to map remote code to 
keyboard keys
dosir2pc assists you to learn the mapping of code.

After the learning process is finished, all keys are stored in 
ir2pc.dat. It is an ASCII-file and you can look at it by typing
'type ir2pc.dat' under DOS.

The next step is to start the program dosir2pc.exe again (without option l) 
by typing: 
dosir2pc 1 <enter>

This program is a TSR-program which is held in memory after
execution. Press a button on the remote and you will see
the mapped key on the screen! Thats it....
Start your application you want to control with the remote. Press the remote button
and the application should react.

You can change the code to your belongings if you want.

---------------------------------------------------------------------------
INTERFACE Specification (only if you write your own software for the IR-modul) 
---------------------------------------------------------------------------
Serial settings

The settings of the serial port must be 9600 Baud, no parity, 1 stop bit and no
flow-control. 
 
Initialization

The device is powered up by setting RTS and DTR high on the host. After a 
few milliseconds the microcontroller is up and running. During powerup the 
output pins of the microcontroller are not yet stable. This gives some   
garbage on the RXD line of the host. So clear the input fifo on the host, a few 
milliseconds after setting RTS and DTR high. The modul sends 'X' to the host.
Next the host must send a character 'I' and a character 'R' with at least a 500 
microsecond delay in between. 
The microntroller responds with sending the characters 'O' and 'K'. 
Now the initialization is done and the microcontroller will start sending 
decoded infrared-trains to the host from this point on.

Receiving Remote Keypresses

Once the device is initialized, the microcontroller sends 6 bytes to the host, 
every time a decodable infrared pulsetrain comes in from the infrared 
receiver. These 6 bytes are constant for every specific key on a remote.



