Protocol.txt

rdnzl, 12/02/2008 11:44 am

Download (1.2 kB)

 
1
IRMAN PROTOCOL
2
                         Universal Infrared Receiver
3
                              Interface Protocol
4
5
-- Serial settings
6
   The settings of the serial port must be 9600 Baud, 1 stop bit, no parity and no flow-control.
7
8
9
-- Initialization
10
11
1) The device is powered up by setting RTS and DTR high on the host. 
12
After a few milliseconds the microcontroller is up and running. During 
13
powerup the output pins of the microcontroller are not yet stable.
14
This gives some garbage on the RXD line of the host. So clear the input
15
fifo on the host, a few milliseconds after setting RTS and DTR high.
16
17
2) Next the host must send a character 'I' and a character 'R' with at
18
least a 500 microsecond delay in between. The microntroller responds with
19
sending the characters 'O' and 'K'. 
20
21
3) Now the initialization is done and the microcontroller will start 
22
sending decoded infrared-trains to the host from this point on.
23
24
25
-- Receiving Remote Keypresses
26
27
Once the device is initialized, the microcontroller sends 6 bytes to the
28
host, every time a decodable infrared pulsetrain comes in from the infrared
29
receiver. These 6 bytes are pseudorandom, but constant for every specific
30
key on a remote.