El Proton (Basic) tiene una instruccion que es " SonyIn" .. funciona perfecto,solo tienes que definir un pin como entrada y te devuelve las 2 variables.. (Command /System)
del Proton:
"Syntax
Variable = SonyIn
Overview
Receive Sony SIRC (Sony Infrared Remote Control) data from a predetermined pin. The pin is
automatically made an input.
Operators
Variable - a bit, byte, word, dword, or float variable, that will be loaded by SonyIn. The return
data from the SonyIn command consists of two bytes, the System byte containing the type of
remote used. i.e. TV, Video etc, and the Command byte containing the actual button value. The
order of the bytes is Command (low byte) then System (high byte). If a byte variable is used to
receive data from the infrared sensor then only the Command byte will be received."