VoxCommando

VoxNastics (User Guides and Mods) => Integration Ideas => Topic started by: JoshK on March 14, 2016, 08:53:11 AM

Title: Sony Simple IP Control
Post by: JoshK on March 14, 2016, 08:53:11 AM
Has anyone got VC controlling a recent Sony Bravia set using IP Control?
If so, I'd love to see?
Title: Re: Sony Simple IP Control
Post by: nime5ter on March 14, 2016, 10:29:00 AM
For anyone who wants to give it a try, it looks like there might be a few approaches one could try.

1. Use the TCP plugin to create a TCP client and connect to your Bravia server, and then probably TCP.ClientWriteLn to send commands:
http://voxcommando.com/mediawiki/index.php?title=Plugin_TCP#Actions_for_the_TCP_plugin
http://shop.kindermann.com/erp/KCO/avs/3/3005/3005000168/01_Anleitungen+Doku/Steuerungsprotokoll_1.pdf

2. Use the Scrape.Post action to send SOAP http post requests:
http://www.openremote.org/display/forums/Sony+TV+HTTP+control

Example of VC commands that use this method: http://voxcommando.com/forum/index.php?topic=1932.0
Title: Re: Sony Simple IP Control
Post by: JoshK on March 28, 2016, 09:51:32 AM
Have a sony kdl75w850c and haven't had any luck with either of these methods. I'm thinking it might be an authentication issue? i see from some threads in the irule forum that their needs to be some authentication performed to get irule working - https://getsatisfaction.com/irule/topics/sony-4k-2014-tv-ip-control-authentication

not sure if I should be doing something to authenticate vc?
Title: Re: Sony Simple IP Control
Post by: nime5ter on March 28, 2016, 10:02:31 AM
What commands have you tried? (Post the xml)

What kind of error message are you getting in VC? (post the log file from VC after running the commands)
Title: Re: Sony Simple IP Control
Post by: JoshK on April 09, 2016, 01:33:29 PM
I'd been trying using the web api, but couldn't get this to work.

got it working using the TCP.Client - power off pasted below -

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.4-->
<command id="-1" name="Actions copied from LCB">
  <action>
    <cmdType>TCP.Client.Connect</cmdType>
    <params>
      <param>LoungeBravia</param>
      <param>10.1.1.7</param>
      <param>20060</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TCP.Client.Write</cmdType>
    <params>
      <param>LoungeBravia</param>
      <param>*SCPOWR0000000000000000\x0A</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TCP.Client.Disconnect</cmdType>
    <params>
      <param>LoungeBravia</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>
Title: Re: Sony Simple IP Control
Post by: jitterjames on April 09, 2016, 02:00:26 PM
Looks pretty straightforward. :)