Hexadecimal characters in GSD

Pluto allows to control A/V devices such as DVD players, amplifiers or TVs using Generic Serial Device (GSD). It supports Ruby to have possibility define commands for the devices. Generally, the device commands are plain text. For example, command ‘ON’ for DVD Denon looks like PWON and Ruby code will be like that:

<$"PWON\r"$>


However, some manufactures use hexadecimal characters in commands – 0xFE 0x03 0xC3 0x75. The Ruby code in this case will be following:

<$"\xFE\x03\xC3\x75"$>

Published by

Michael Stepanov

Site owner and admin :)

Leave a Reply

Your email address will not be published. Required fields are marked *