the present application relates to set top boxes and relates to the inclusion of a diagnostic function in the set top box which may be activated remotely or respond internally to the detection of faults or changes in status . the diagnostic function may emulate key presses from an infrared remote control to perform a test .