Dusky Control - Take control of your Sky digibox |
|
•Home Controllers:
•FAQ |
Controlling Sky or Sky+ from your PC - serial protcool
The controller is a standard RS232 DCE unit, so to connect it to a standard DTE (eg. a PC) you would use a straight-wired 9-way D-type male to female cable. The controller has a female 9-way D-type on it. The pin out is ground on pin 5, the controller receives data on pin 3 and transmits data on pin 2. (There are no hardware flow control signals.) Commands can be sent as fast as you like. The controller will automatically send to the sky boxes are the maximum rate the sky box can handle reliably.
ASCII controlYou can talk to controllers from V1.0.0 onwards using a pure ASCII protocol. This is usually the method we recommend using for new applications. Commands break down like this:
As01sk101x
^ x: end of ascii sequence
^^^ 101: channel number
^^ sk: send 'sky' button to make sure sky box is powered on and ready to accept channel number
^^ 01: output number (01, 02, ... ) - as labelled - 01 means the output labelled 'output 1' and so on
^ s: sending to sky ('+' for sky+ or sky+hd)
^ A: start of ascii command
The full list of codes that can be sent is shown on
sky infrared control codes
ASCII Examples
Binary protocolThis is the original method for sending commands with our controllers. The control sequence is a four bytes in binary / hex format.The first byte is 0x43. The second byte selects the output number to use (numbered from 0). The third and fourther bytes indicate the infrared code to be sent, as found in the sky infrared control codes. For example, to send the digit '1' to a sky box on output labelled '1',
send the four bytes:
To send the digits '123' to a sky box on output labelled '1',
send the 12 bytes:
0x43 0x00 0x00 0x01 0x43 0x00 0x00 0x02 0x43 0x00 0x00 0x03 To send the digit '1' to a sky+ box on output labelled '1', send the
four bytes:
To send the digit '1' to a sky+ box on output labelled '2', send the
four bytes:
To send the 'sky' button to a sky+ box on output labelled '2'
(which will make sure
it is switched on and go back to the 'live tv' view), send the four bytes:
To send the digit '1' to a sky+ box on the output labelled '5', send the
four bytes:
Joseph Heenan, joseph@dusky-control.com | ||||||||||||||||||||||||||||||||||||||||||||||||