This should get you started
http://www.rentron.com/Infrared_Communication.htm