iRule  Universal Remote Control

Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

soapaction for Panasonic Viera on http gateway

Greg Apr 29, 2013 10:09AM EDT

I saw the article that states that the SOAPACTION header is taken care of automatically. I'm attempting to set up a Viera plasma using HTTP with SOAP. I have tested the exact call using the REST console in Chrome and it works fine with a manually entered SOAPACTION. When I test the same using an HTTP gateway with iRule, I just see a red transmission icon and nothing works.

In the REST console, if I remove the soapaction or change it, I get a failure as well, so I'm thinking that may be the culprit.

Is there any mechanism for debugging in iRule that would help me figure out whether this is going to be possible or not?

For reference, the URL to call for the Viera is: [tv_ip]:55000/nrc/control_0

The proper soapaction is: "urn:panasonic-com:service:p00NetworkControl:1#X_SendKey"

Thanks,

Greg

Up 4 rated Down
iRule Support Team Apr 29, 2013 10:11AM EDT Builder & App Support Support
Hi Greg,

Are you using method=POST in the HTTP GATEWAY that you setup with port 55000?





Alex
Up 2 rated Down
Greg Apr 29, 2013 10:28AM EDT
Yes, I started with POST, then tried GET just to see, then put it back to POST. I'm using POST with REST Console on the testing that works.
Up 5 rated Down
iRule Support Team Apr 29, 2013 10:56AM EDT Builder & App Support Support
Hi Greg,

SOAP commands should work fine, we will probe the command and add the soap action header.  We need to see what you are trying to send, like the command in the builder. Can you please share the device and let us know what it is called? Once we take a look at the commands, we can let you know what the issue is.



Alex
Up -1 rated Down
Greg Apr 29, 2013 10:59AM EDT
Shared as "Panasonic Viera IP (SOAP)". If you search for Model as "Viera", it's the only one that comes up.
Up -3 rated Down
iRule Support Team Apr 29, 2013 11:21AM EDT Builder & App Support Support
Hi Greg,

Please try the following format in the gateway:

http://[tv_ip]:55000/nrc/control_0? (including the ? at the end)




Alex
Up 12 rated Down
Greg Apr 29, 2013 11:56AM EDT
That made the transmit arrow icon go green instead of red, but still no response from the TV itself.
Up 18 rated Down
iRule Support Team Apr 29, 2013 12:06PM EDT Builder & App Support Support
Hi Greg,

Can you paste in exactly what you are sending through the REST console that works? You can send the screenshot to support@iruleathome.com




Alex
Up 6 rated Down
Greg Apr 29, 2013 12:37PM EDT
The soapaction doesn't apppear to be populated by the irule http gateway. I used wireshark to sniff what is going to the TV. When I send via the REST Console in Chrome, this is what is sent (and works):

POST /nrc/control_0 HTTP/1.1
Host: 192.168.0.208:55000
Connection: keep-alive
Content-Length: 334
Origin: chrome-extension://cokgbflfommojglbmbpenpphppikmonn
SOAPACTION: "urn:panasonic-com:service:p00NetworkControl:1#X_SendKey"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Content-Type: application/xml
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1"> <X_KeyEvent>NRC_INTERNET-ONOFF</X_KeyEvent> </u:X_SendKey> </s:Body> </s:Envelope>


When I send via iRule and the http gateway as configured, here is what is sent (in 2 packets vs. 1)

POST /nrc/control_0 HTTP/1.1
Content-Type: text/xml
Content-Length: 335
Host: 192.168.0.208:55000
Connection: Keep-Alive
User-Agent: iRule (http://www.iruleathome.com)
Accept-Encoding: gzip
SOAPAction:
Accept: */*

/<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1"> <X_KeyEvent>NRC_INTERNET-ONOFF</X_KeyEvent> </u:X_SendKey> </s:Body> </s:Envelope>

Note the SOAPAction is empty.

Greg
Up 9 rated Down
iRule Support Team Apr 29, 2013 02:05PM EDT Builder & App Support Support
Hi Greg,

Please try this as your command:

/nrc/control_0?<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">  <s:Body>   <u:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1">    <X_KeyEvent>NRC_INTERNET-ONOFF</X_KeyEvent>   </u:X_SendKey>  </s:Body> </s:Envelope>


And in the gateway, simply use the IP address and put in the Port number in the field. And use Method=Post.




Alex
Up -6 rated Down
Greg Apr 29, 2013 03:03PM EDT
That seems to have done it! What was the issue from a technical perspective?

I'll continue building this out as it seems no one has done it so far. I'll share the control when I'm done.
Up 0 rated Down
iRule Support Team Apr 29, 2013 03:08PM EDT Builder & App Support Support
It was basically a formatting issue. When you put in ? in the gateway and then had your command in the builder start with /, it was messing up the command.

Once you have finished your device for Panasonic, could you please let us know so that we can add it to our list of devices and add the metadata for easier configuration.





Alex
Up -7 rated Down
Greg Apr 29, 2013 05:15PM EDT
Additional question: Is there some specific way to create a device file where the codes contain XML? I've tried using CDATA as well as changing all xml chars to their escaped versions, i.e. &lt; &gt; etc.

The file will import fine either way, the codes look identical in builder to what I manually created in builder, and yet they do not work. I assign the device to my gateway and hit a command, but get red transmission arrows. I verified with wireshark that I am not getting any traffic from the remote when those buttons are pressed.

There are a lot of commands that I have auto-generated into the device xml. I don't want to have to create them all in builder manually.

Thanks,

Greg
Up -9 rated Down
Greg Apr 29, 2013 05:23PM EDT
Additional color on the import question:
I created an import file with the SOAP command for a single function: Mute. I imported this, set it up on a button, and I get red transmission.

In the same imported device, from within builder, I manually added another code and named it MUTE 2. I copied and pasted the existing MUTE command SOAP string. I then assigned this to the same button.

My button now has MUTE and MUTE 2 from the same device. MUTE was via import, MUTE 2 was created in builder.

I get red transmission on MUTE and green on MUTE 2 (and the TV does mute), so to me there is definitely something up with the way it imported the codes from the device file. It is apparently something in the background that is not readily apparent from the Builder interface.
Up 9 rated Down
Greg Apr 29, 2013 05:25PM EDT
I've shared the buggy device as "Panasonic Mute Only - DEBUGGING"
Up -8 rated Down
iRule Support Team Apr 29, 2013 10:09PM EDT Builder & App Support Support
Hi Greg,

Could you please email the XML upload file to support@iruleathome.com so that we can take a look at the file formatting?




Alex
Up -4 rated Down
Greg Apr 30, 2013 03:11PM EDT
To assist anyone else who hits this issue:

When I used the CDATA tag to get XML to ignore the xml contents of the command, I had a linefeed character in there which iRule didn't like. It imported fine, but the commands would not work.

I had something like this:

<Code name="POWER"><![CDATA[
/nrc/control_0?....soap command here.....
]]></Code>

Instead, I should have had:

<Code name="POWER">
<![CDATA[/nrc/control_0?....soap command here.....]]>
</Code>

Thanks to iRule support (Alex) for figuring this out.

Greg
Up -11 rated Down
iRule Support Team Apr 30, 2013 03:21PM EDT Builder & App Support Support
Hi Greg,

How are you dealing with Power On for the Panasonic TVs as the command doesn't exist?




Alex
Up -4 rated Down
iRule Support Team May 01, 2013 09:51AM EDT Builder & App Support Support
Hi Greg,

I have imported the device you created and it seems incomplete. Are you still in the process of fully sniffing out all the commands?




Alex
Up -8 rated Down
Samuel Aug 21, 2013 10:25AM EDT
Hi,

To answer one of your question, I've got a Panasonic Vieira TX-P50VT30, when TV is off, network card is off.
Unfortunately like many other devices there is no network standby mode.


Best regards,
Samuel.
Up -1 rated Down
iRule Support Team Aug 21, 2013 10:26AM EDT Builder & App Support Support
Panasonic VT50/GT50/VT60/ZT60 support network standby. Only from Hardwired connection though. Send Wake-On-Lan for power on.




Alex
Up 2 rated Down
Andrew Rutherford Dec 11, 2013 02:06PM EST
Question - I have a WOL command attached to my "system on" command. However, it seems like anytime I open up iRule it automatically sends a WOL to the TV before I hit any buttons. Does iRule sent WOL to wake up all the gateways by default???
Up -1 rated Down
iRule Support Team Dec 11, 2013 02:07PM EST Builder & App Support Support
Andrew,

Make sure you do not have WOL checked in the Gateway to which your Panasonic device is assigned to in the app.



Alex
Up 0 rated Down
nick porter Jan 14, 2018 01:15AM EST
what is the actual process this post is?

i've had my panasonic tv use this ip control via irule for the last 3 years and it works flawlessly!

however we all know irule is dying, i now need a new form of control.

is this form of control limited to soap http post?

im trying to implement this control through QSC Q-sys platform, it is free and will run in emulation mode on a windows machine, it has a very fancy app.

does anyone know the correct raw ip/rs232 codes?

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Recent Discussions

Ajax-loader-small
customer-service@iruleathome.com
https://cdn.desk.com/
false
iruleathome
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
true
Invalid characters found
/customer/en/portal/articles/autocomplete
There was an error contacting Get Satisfaction
View All
0
discussions
replies
Questions
Ideas
Problems
Praise