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"$>

Related Posts:

  • Howto add support of new device in Plutohome
  • Configure iMON PAD/VFD in LinuxMCE
  • Configure iMON PAD/VFD in LinuxMCE
  • How to setup a Plutohome Orbiter for CISCO 7970
  • Will replace Lua Ruby in LinuxMCE?
  • Howto Build Plutohome Orbiter for Nokia770/N800/N810

  • Write a comment: