<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v7.1.1-37812">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>RE: [mythtv-users] New Sky+ App - control Sky box via tcp/ip network</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<blockquote style="border-left: 2px solid #325FBA; padding-left: 5px;margin-left:5px;">-----Original message-----<br /><strong>From:</strong>        Raymond Wagner &lt;raymond@wagnerrp.com&gt;<br /><strong>Sent:</strong>        Thu 16-08-2012 21:14<br /><strong>Subject:</strong>        Re: [mythtv-users] New Sky+ App - control Sky box via tcp/ip network<br /><strong>To:</strong>        Discussion about MythTV &lt;mythtv-users@mythtv.org&gt;; <br />On 8/16/2012 10:38, Dave Pearson wrote:<br />&gt; Before anyone says why don&#39;t I do it myself - I&#39;m not clever enough!<br /><br />Sure you are, you just don&#39;t know you are. Grab a copy of wireshark or <br />tcpdump and have at it. Just start it up, and record the communications <br />between the iPad and the STB as you perform various actions. The only <br />real difficulty would be if they decided it was necessary to perform <br />some kind of authentication between the STB and application, or worse, <br />encrypted the communication.<br />_______________________________________________<br />mythtv-users mailing list<br />mythtv-users@mythtv.org<br />http://www.mythtv.org/mailman/listinfo/mythtv-users<br /></blockquote><p>OK, I wasn&#39;t clever enough to use wireshark to figure out how to send the control commands to my SKY+HD Box, but someone else was (<a href="http://www.gladdy.co.uk/blog/2012/08/21/the-skyhd-picasso-dnla-control-server-protocol/">http://www.gladdy.co.uk/blog/2012/08/21/the-skyhd-picasso-dnla-control-server-protocol/</a>) and using the information on that page I have been able to use firefox poster to send a command to change the channel. I&#39;m now trying to take what I&#39;m using in poster to create a bash script that I can use to change the channel in mythtv, unfortunately I&#39;m having no luck with curl at all.</p><p>&nbsp;</p><p>This is what I&#39;m POSTing using poster:</p><p>&nbsp;</p><p>headers:</p><p>&nbsp;</p><p>SOAPACTION: urn:schemas-nds-com:service:SkyPlay:2#SetAVTransportURI</p><p>content-type: text/xml; charset=utf-8</p><p>&nbsp;</p><p>body:</p><p>&nbsp;</p><p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</p><p>&lt;s:Envelope s:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:s=&quot;http://schemas.smlsoap.org/soap/envelope/&quot;&gt;</p><p>&lt;s:Body&gt;</p><p>&lt;u:SetAVTransportURI xmlns:u=&quot;urn:schemas-nds-com:service:SkyPlay:2&quot;&gt;</p><p>&lt;InstanceID&gt;0&lt;/InstanceID&gt;</p><p>&lt;CurrentURI&gt;xsi://ff0&lt;/CurrentURI&gt;</p><p>&lt;CurrentURIMetaData&gt;NOT_IMPLEMENTED&lt;/CurrentURIMetaData&gt;</p><p>&lt;/u:SetAVTransportURI&gt;</p><p>&lt;/s:Body&gt;</p><p>&lt;/s:Envelope&gt;</p><p>&nbsp;</p><p>Using the above code in poster I mange to change the channel to ff0, which is the hex code for channel 113 (Universal HD), unfortunately I just cannot figure out how I can get curl to POST the body text (I think the headers are being passed correctly. I&#39;m sure this is really simple, but I&#39;m just stuck! any help will be gratefully received.</p><p>&nbsp;</p><p>Regards,</p><p>Dave</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
</body>
</html>