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 0×03 0xC3 0×75. The Ruby code in this case will be following:

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

Related Posts:

  • Howto add support of new device in Plutohome
  • Will replace Lua Ruby in LinuxMCE?
  • Howto re-install Plutohome start scripts
  • Howto re-install Plutohome start scripts
  • Catch the sun!

  • No comments yet.

    Write a comment:

    Close
    E-mail It