Command Repeater

Sep 6, 2010 at 11:17 PM

Hi all,

I'm posting a patch which allows the VmcController to repeat commands externally. I use this to send volume-Up and volume-Down commands to a Global Cache device which it then sends to Infrared or Serial ports. This, in turn, controls the volume on the devices connected to the extenders, since volume doesn't work on an extender using HDMI or SPDIF out of the box. Enjoy (as usual, at your own risk, and free for noncommercial use).

-James

Sep 6, 2010 at 11:24 PM

Sample command repeater vmcController.xml entry. The 'sendir' commands control a Yamaha sound bar via IR. The hex commands control a samsung TV.

 

<commandRepeater>
 <command appliesTo='40512' action='volume Down' targetIP='GC100_IP' targetPort='4998'>
  <string>sendir,2:3,1,38000,1,1,343,170,22,19,22,19,22,19,22,63,22,63,22,63,22,63,22,19,22,63,22,63,22,63,22,19,22,19,22,19,22,19,22,63,22,63,22,63,22,63,22,63,22,63,22,19,22,19,22,19,22,19,22,19,22,19,22,19,22,19,22,63,22,63,22,63,22,1518,343,84,22,3658,343,85,22,3658,343,85,22,3658,343,85,22,3658,343,84,22,3657,343,85,22,3658,343,85,22,3825&#13;&#10;</string>
 </command>
 <command appliesTo='40512' action='volume Up' targetIP='GC100_IP' targetPort='4998'>
  <string>sendir,2:3,1,38000,1,1,343,171,22,20,22,20,22,20,22,63,22,63,22,63,22,63,22,20,22,63,22,63,22,63,22,20,22,20,22,20,22,20,22,63,22,20,22,63,22,63,22,63,22,63,22,20,22,20,22,20,22,63,22,20,22,20,22,20,22,20,22,63,22,63,22,63,22,1517,343,84,22,3658,343,85,22,3658,343,85,22,3657,343,84,22,3657,343,85,22,3658,343,85,22,3658,343,84,22,3657,343,85,22,3658,343,85,22,3658,343,85,22,3825&#13;&#10;</string>
 </command>
 <command appliesTo='40511' action='volume Up' targetIP='GC100_IP' targetPort='4998'>
  <string>sendir,2:3,1,38000,1,1,341,169,22,20,22,62,22,20,22,20,22,62,22,20,22,62,22,62,22,62,22,20,22,62,22,62,22,20,22,62,22,62,22,20,22,20,22,62,22,20,22,20,22,20,22,20,22,20,22,20,22,62,22,20,22,62,22,62,22,62,22,62,22,62,22,62,22,1468,341,169,22,20,22,62,22,20,22,20,22,62,22,20,22,62,22,62,22,62,22,20,22,62,22,62,22,20,22,62,22,62,22,20,22,20,22,62,22,20,22,20,22,20,22,20,22,20,22,20,22,62,22,20,22,62,22,62,22,62,22,62,22,62,22,62,22,3793&#13;&#10;</string>
 </command>
 <command appliesTo='40511' action='volume Down' targetIP='GC100_IP' targetPort='4998'>
  <string>sendir,2:3,1,38000,1,1,341,170,22,20,22,63,22,20,22,20,22,63,22,20,22,63,22,63,22,63,22,20,22,63,22,63,22,20,22,63,22,63,22,20,22,63,22,63,22,20,22,20,22,20,22,20,22,20,22,20,22,20,22,20,22,63,22,63,22,63,22,63,22,63,22,63,22,3806&#13;&#10;</string>
 </command>
 <command appliesTo='40517' action='volume Down' targetIP='GC100_IP' targetPort='4999'>
  <string type='hex'>08-22-01-00-02-00-D3</string>
 </command>
 <command appliesTo='40517' action='volume Up' targetIP='GC100_IP' targetPort='4999'>
  <string type='hex'>08-22-01-00-01-00-D4</string>
 </command>
</commandRepeater>

Sep 9, 2010 at 3:26 PM

Thanks for doing this.  I dont suppose you would be willing to expand on this a bit by adding the ability to send IP commands directly to IP enabled device.  Another cool thing would adding the ability to recieve data back from a device.  Just a suggestion.

Sep 9, 2010 at 7:46 PM
Right now it'll just send the string in the config file directly to the host and port defined, so this should already work for your scenario (it uses TCP sockets and doesn't do anything to the string you specify).

Data received back will be written to the log file, did you have something in mind for the data coming back?


From: [email removed]
To: [email removed]
Date: Thu, 9 Sep 2010 08:26:19 -0700
Subject: Re: Command Repeater [VmcController:226251]

From: jbworks
Thanks for doing this. I dont suppose you would be willing to expand on this a bit by adding the ability to send IP commands directly to IP enabled device. Another cool thing would adding the ability to recieve data back from a device. Just a suggestion.
Read the full discussion online.
To add a post to this discussion, reply to this email (VmcController@discussions.codeplex.com)
To start a new discussion for this project, email VmcController@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com