db2ace2 Posted September 28, 2013 Posted September 28, 2013 Where are the Network Module Rules defined. I am getting a Net Module Rule 2:715 when I execute a Network Resource Post command. Where can I find these messages defined? Thanks Charles Seiler
Michel Kohanim Posted September 29, 2013 Posted September 29, 2013 Hi Charles, Configuration | Networking | Network Resources . With kind regards, Michel
db2ace2 Posted September 30, 2013 Author Posted September 30, 2013 Hello, There must be some DOC on how to setup and use the Network Resources to POST a REST command from one ISY to another? No matter what I do I cannot seem to get it to work, and I still cannot find the Error Messages Documented anywhere. Is this a Security Issue? I have a Self Signed Server CA for Both ISY's. Is there additional Windows or Router Setup needed? Both ISY's are on the same local Router both using PORT 80. I am trying to set up a Network Resource to POST from ISY#1 to ISY#2 a /REST/X10/C12/3 command. POST / HTTP/1.1 Host: 192.168.1.245:80 User-Agent: Mozilla/4.0 Connection: Close Content-Type: application/x-www-form-urlencoded Content-Length: 15 Authorization: Basic XXXXXXXXXXXXXXXXXXXXXX== /rest/X10/C12/3 When I Test this I get a TCP client request Failed (Net Module Rule 1:715) I tried with and without Basic Authorization in the request. (XX'd Out the BASE64 in the above.) I would not think this would be all that complicated. I am already using REST commands to send REST commands from Camera Devices to the ISY and that works great. I would think I should be able to send a REST command from one ISY to another just as easily? Any Ideas what this error is, and what I need to do to get this working? Is this a Security Error or is something else wrong? Is this a SSL CA Certificate Issue and if so what do I need to fix this? This is critical to my continued use of ISY. Thanks Charles Seiler
Michel Kohanim Posted September 30, 2013 Posted September 30, 2013 Hi Charles, , There must be some DOC on how to setup and use the Network Resources to POST a REST command from one ISY to another? No matter what I do I cannot seem to get it to work, and I still cannot find the Error Messages Documented anywhere. Unfortunately not. Network resources assumes that you already know about basic HTTP/TCP communications (unfortunately). Is this a Security Issue? I have a Self Signed Server CA for Both ISY's. Is there additional Windows or Router Setup needed? Both ISY's are on the same local Router both using PORT 80. Not as long as you follow Basic64 encoding. I am trying to set up a Network Resource to POST from ISY#1 to ISY#2 a /REST/X10/C12/3 command. POST / HTTP/1.1 Host: 192.168.1.245:80 User-Agent: Mozilla/4.0 Connection: Close Content-Type: application/x-www-form-urlencoded Content-Length: 15 Authorization: Basic XXXXXXXXXXXXXXXXXXXXXX== /rest/X10/C12/3 The problem is that that the POST to ISY does not have a body. So, you should put /rest/X10/C12/3 in the Path and NOT the Body. With kind regards, Michel
db2ace2 Posted October 2, 2013 Author Posted October 2, 2013 Thanks Michel for all the help with Network Resources Rest Interface. I seem to have it working now as far as using Network Resources to set values of Variables on the second ISY, and also issuing DON/DOF/Beep etc. directly to devices and Scenes on the second ISY so that's progress, and I am learning which is always a great thing. Just a couple of additional questions if I may? Q#1 Is it possible to have ISY#1 send a rest/vars/set Command to set a variable on ISY#2 to the value of another variable on ISY#2? If so how would this be coded? Q#2 Similarly is it possible to have ISY#1 send a rest/vars/set command to set a variable on ISY#2 to the value of a variable on ISY#1? Thus far I do this by encoding the variables value in the rest command as a literal value but I wasn't sure how to code it to use a variable name from the ISY#1 in the command being sent to ISY#2. Q#3 Could you also provide an example of how to code the rest/vars/set command to set the value to a string Value? Thanks Again for your help. You saved me as an ISY User and allowed me to move forward with several projects I am in the midst of. Charles Seiler
LeeG Posted October 2, 2013 Posted October 2, 2013 Variables are signed 32 bit integers, no strings. See this link viewtopic.php?f=68&t=6063 Q1 and Q2 - No, not the way you mean.
Xathros Posted October 2, 2013 Posted October 2, 2013 It has been mentioned in the past that an upcoming update may allow the use of variables within network resources. I'm hopeful that we will see this in the next release. If so, then the answers to Q1 & 2 will be yes. For the moment however, we cannot do that. -Xathros
Pazium Posted April 13, 2015 Posted April 13, 2015 Can you tell me why I am getting this error TCP Client DNS error api.aerisapi.com TCP client Request Failed {Net Module Rule:42:500} My request looks iike this POST /sony/IRCC HTTP/1.1 Host: 192.168.1.24:80 User-Agent: TVSideView/2.0.1 CFNetwork/672.0.8 Darwin/14.0.0' Connection: keep-alive Content-Type: text/xml; charset=UTF-8 SOAPACTION: urn:schemas-sony-com:service:IRCC:1#X_SendIRCC Content-Length: 316 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate <?xml version="1.0"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"> <IRCCCode>AAAAAQAAAAEAAAAvAw==</IRCCCode> </u:X_SendIRCC> </s:Body> </s:Envelope> The turns off the TV, a Sony Bravia KDL 48w600B Thanx Mike
Techman Posted April 13, 2015 Posted April 13, 2015 "api.aerisapi.com" brings up HAMWeather. Do you have the climate module installed.
Michel Kohanim Posted April 13, 2015 Posted April 13, 2015 Hi Pazium, {Net Module Rule:42:500} => you are getting a status code of 500 which means internal server error. So, it does not like something in the payload. My suggestions in order of priority: 1. The contents of SOAPACTION must be in quotes ... i.e. "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC" 2. Remove user-agent or use the default 3. Remove accept-encoding 4. Remove accept 5. Change connection to close With kind regards, Michel
Pazium Posted April 13, 2015 Posted April 13, 2015 i have hamweather installed thanx, in will try each. the contents works great with my kdl 32w650a. it has the nginx server i dont know if the kdl 48w600b has the same. i understand it runs debian linux. i'll let you know how it works out
Michel Kohanim Posted April 14, 2015 Posted April 14, 2015 Hi Pazium, Thank you. Please do keep me posted. With kind regards, Michel
Pazium Posted April 15, 2015 Posted April 15, 2015 Thanx Michel for your help. None of those worked. I still get the same error with of the suggestions The 42:500 error Well it looks like this now: POST /sony/IRCC HTTP/1.1 Host: 192.168.1.18:80 User-Agent: TVSideView/2.0.1 CFNetwork/672.0.8 Darwin/14.0.0 Connection: keep-alive SOAPACTION: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC" Content-Length: 316 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate Content-Type: "text/xml; charset=UTF-8" <?xml version="1.0"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"> <IRCCCode>AAAAAQAAAAEAAAAvAw==</IRCCCode> </u:X_SendIRCC> </s:Body> </s:Envelope> it is based on this link https://blog.rieder.io/blog/2014/02/04/bravia-scripting/ Which has this python code: headers = { 'User-Agent': 'TVSideView/2.0.1 CFNetwork/672.0.8 Darwin/14.0.0', 'Content-Type': 'text/xml; charset=UTF-8', 'SOAPACTION': '"urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', } content = """<?xml version="1.0"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"> <IRCCCode>AAAAAQAAAAEAAAAvAw==</IRCCCode> </u:X_SendIRCC> </s:Body> </s:Envelope>""" url = 'http://this-is-the-ip-of-the-tv/sony/IRCC' response = requests.post(url, data=content, headers=headers) print(response) Like I said I know it works for the other Bravia Thank you very much.
Michel Kohanim Posted April 15, 2015 Posted April 15, 2015 Hi Pazium, The difference is that your snippet does not have quotes for the value of content-type while ISY rule does. It's definitely payload related. Are you certain the value of IRCCode is valid? With kind regards, Michel
Pazium Posted April 15, 2015 Posted April 15, 2015 i did have the quotes off at one point. I'll take them off and get back to you. The IRCCode comes form the xml as this <av:X_IRCCCode command="Power OFF">AAAAAQAAAAEAAAAvAw==</av:X_IRCCCode> I copied the content using the copy command from the line that works for the other Bravia. Both Bravias use nginx web servers
Pazium Posted April 16, 2015 Posted April 16, 2015 i used Magpe on the bravia and got all of this: deviceData=<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:pnpx="http://schemas.microsoft.com/windows/pnpx/2005/11"xmlns:df="http://schemas.microsoft.com/windows/2008/09/devicefoundation"> <specVersion> <major>1</major> <minor>0</minor> </specVersion> <device> <deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType> <friendlyName>BRAVIA KDL-48W600B</friendlyName> <manufacturer>Sony Corporation</manufacturer> <manufacturerURL>http://www.sony.net/</manufacturerURL> <modelName>KDL-48W600B</modelName> <modelNumber>MINT1.7.0.1</modelNumber> <UDN>uuid:00000000-0000-1010-8000-fcf152f5f8dd</UDN> <dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC> <microsoft:magicPacketWakeSupported xmlns:microsoft="urn:schemas-microsoft-com:WMPNSS-1-0">1</microsoft:magicPacketWakeSupported> <iconList> <icon> <mimetype>image/png</mimetype> <width>32</width> <height>32</height> <depth>24</depth> <url>/MediaRenderer_HM_ME_32x32.png</url> </icon> <icon> <mimetype>image/png</mimetype> <width>48</width> <height>48</height> <depth>24</depth> <url>/MediaRenderer_HM_ME_48x48.png</url> </icon> <icon> <mimetype>image/png</mimetype> <width>60</width> <height>60</height> <depth>24</depth> <url>/MediaRenderer_HM_ME_60x60.png</url> </icon> <icon> <mimetype>image/png</mimetype> <width>120</width> <height>120</height> <depth>24</depth> <url>/MediaRenderer_HM_ME_120x120.png</url> </icon> <icon> <mimetype>image/jpeg</mimetype> <width>32</width> <height>32</height> <depth>24</depth> <url>/MediaRenderer_HM_ME_32x32.jpg</url> </icon> <icon> <mimetype>image/jpeg</mimetype> <width>48</width> <height>48</height> <depth>24</depth> <url>/MediaRenderer_HM_ME_48x48.jpg</url> </icon> <icon> <mimetype>image/jpeg</mimetype> <width>60</width> <height>60</height> <depth>24</depth> <url>/MediaRenderer_HM_ME_60x60.jpg</url> </icon> <icon> <mimetype>image/jpeg</mimetype> <width>120</width> <height>120</height> <depth>24</depth> <url>/MediaRenderer_HM_ME_120x120.jpg</url> </icon> </iconList> <serviceList> <service> <serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType> <serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId> <SCPDURL>/RenderingControlSCPD.xml</SCPDURL> <controlURL>/upnp/control/RenderingControl</controlURL> <eventSubURL>/upnp/event/RenderingControl</eventSubURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType> <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId> <SCPDURL>/ConnectionManagerSCPD.xml</SCPDURL> <controlURL>/upnp/control/ConnectionManager</controlURL> <eventSubURL>/upnp/event/ConnectionManager</eventSubURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType> <serviceId>urn:upnp-org:serviceId:AVTransport</serviceId> <SCPDURL>/AVTransportSCPD.xml</SCPDURL> <controlURL>/upnp/control/AVTransport</controlURL> <eventSubURL>/upnp/event/AVTransport</eventSubURL> </service> <service> <serviceType>urn:dial-multiscreen-org:service:dial:1</serviceType> <serviceId>urn:dial-multiscreen-org:serviceId:dial</serviceId> <SCPDURL>/DIALSCPD.xml</SCPDURL> <controlURL>/upnp/control/DIAL</controlURL> <eventSubURL /> </service> <service> <serviceType>urn:schemas-sony-com:service:IRCC:1</serviceType> <serviceId>urn:schemas-sony-com:serviceId:IRCC</serviceId> <SCPDURL>/IRCCSCPD.xml</SCPDURL> <controlURL>http://192.168.1.16/sony/IRCC</controlURL> <eventSubURL /> </service> <service> <serviceType>urn:schemas-sony-com:service:ScalarWebAPI:1</serviceType> <serviceId>urn:schemas-sony-com:serviceId:ScalarWebAPI</serviceId> <SCPDURL>/ScalarWebApiSCPD.xml</SCPDURL> <controlURL>/upnp/control/ScalarAPI</controlURL> <eventSubURL /> </service> </serviceList> <av:X_MaxBGMCount xmlns:av="urn:schemas-sony-com:av">64</av:X_MaxBGMCount> <av:X_StandardDMR xmlns:av="urn:schemas-sony-com:av">1.1</av:X_StandardDMR> <av:X_ScreenResolution xmlns:av="urn:schemas-sony-com:av">2K</av:X_ScreenResolution> <av:X_IRCCCodeList xmlns:av="urn:schemas-sony-com:av"> <av:X_IRCCCode command="Power">AAAAAQAAAAEAAAAVAw==</av:X_IRCCCode> <av:X_IRCCCode command="Power ON">AAAAAQAAAAEAAAAuAw==</av:X_IRCCCode> <av:X_IRCCCode command="Power OFF">AAAAAQAAAAEAAAAvAw==</av:X_IRCCCode> </av:X_IRCCCodeList> <pnpx:X_compatibleId>MS_DigitalMediaDeviceClass_DMR_V001</pnpx:X_compatibleId> <pnpx:X_deviceCategory>MediaDevices</pnpx:X_deviceCategory> <pnpx:X_hardwareId>VEN_0106&DEV_0007&REV_01</pnpx:X_hardwareId> <df:X_deviceCategory>Display.TV Multimedia.DMR</df:X_deviceCategory> <av:X_TrackID_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> <av:X_TrackID_BaseURL>http://192.168.1.16/sony/BgmSearch</av:X_TrackID_BaseURL> </av:X_TrackID_DeviceInfo> <av:X_DIALEX_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> <av:X_DIALEX_AppsListURL>http://192.168.1.16/DIAL/sony/applist</av:X_DIALEX_AppsListURL> <av:X_DIALEX_DeviceID>B0:00:03:52:77:34</av:X_DIALEX_DeviceID> <av:X_DIALEX_DeviceType>CoreTV_DIAL</av:X_DIALEX_DeviceType> </av:X_DIALEX_DeviceInfo> <av:X_ScalarWebAPI_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> <av:X_ScalarWebAPI_Version>1.0</av:X_ScalarWebAPI_Version> <av:X_ScalarWebAPI_BaseURL>http://192.168.1.16/sony</av:X_ScalarWebAPI_BaseURL> <av:X_ScalarWebAPI_ServiceList> <av:X_ScalarWebAPI_ServiceType>guide</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>system</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>videoScreen</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>audio</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>avContent</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>appControl</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>browser</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>notification</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>cec</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>accessControl</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>encryption</av:X_ScalarWebAPI_ServiceType> </av:X_ScalarWebAPI_ServiceList> </av:X_ScalarWebAPI_DeviceInfo> <av:X_RDIS_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> <av:X_RDIS_Version>1.0</av:X_RDIS_Version> <av:X_RDIS_SESSION_CONTROL>false</av:X_RDIS_SESSION_CONTROL> <av:X_RDIS_ENTRY_PORT>20677</av:X_RDIS_ENTRY_PORT> </av:X_RDIS_DeviceInfo> </device> </root> &ssdp=HTTP/1.1 200 OK CACHE-CONTROL: max-age=1800 EXT: LOCATION: http://192.168.1.16:52323/dmr.xml SERVER: Linux/2.6 UPnP/1.0 KDL-48W600B/1.7 ST: upnp:rootdevice USN: uuid:00000000-0000-1010-8000-fcf152f5f8dd::upnp:rootdevice X-AV-Physical-Unit-Info: pa="BRAVIA KDL-48W600B"; X-AV-Server-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-48W600B"; mv="1.7"; ----------------------------------------------------------------------------------------------------------------------------------------------------------------- The other BRAVIA return this to Magpie deviceData=<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:pnpx="http://schemas.microsoft.com/windows/pnpx/2005/11"xmlns:df="http://schemas.microsoft.com/windows/2008/09/devicefoundation"> <specVersion> <major>1</major> <minor>0</minor> </specVersion> <device> <deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType> <friendlyName>BRvKDL32W650A bdrm</friendlyName> <manufacturer>Sony Corporation</manufacturer> <manufacturerURL>http://www.sony.net/</manufacturerURL> <modelName>KDL-32W650A</modelName> <modelNumber>MINT1.7.0.1</modelNumber> <UDN>uuid:00000000-0000-1010-8000-d8d43c8fe38f</UDN> <dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC> <microsoft:magicPacketWakeSupported xmlns:microsoft="urn:schemas-microsoft-com:WMPNSS-1-0">1</microsoft:magicPacketWakeSupported> <iconList> <icon> <mimetype>image/png</mimetype> <width>32</width> <height>32</height> <depth>24</depth> <url>/MediaRenderer_LW_32x32.png</url> </icon> <icon> <mimetype>image/png</mimetype> <width>48</width> <height>48</height> <depth>24</depth> <url>/MediaRenderer_LW_48x48.png</url> </icon> <icon> <mimetype>image/png</mimetype> <width>60</width> <height>60</height> <depth>24</depth> <url>/MediaRenderer_LW_60x60.png</url> </icon> <icon> <mimetype>image/png</mimetype> <width>120</width> <height>120</height> <depth>24</depth> <url>/MediaRenderer_LW_120x120.png</url> </icon> <icon> <mimetype>image/jpeg</mimetype> <width>32</width> <height>32</height> <depth>24</depth> <url>/MediaRenderer_LW_32x32.jpg</url> </icon> <icon> <mimetype>image/jpeg</mimetype> <width>48</width> <height>48</height> <depth>24</depth> <url>/MediaRenderer_LW_48x48.jpg</url> </icon> <icon> <mimetype>image/jpeg</mimetype> <width>60</width> <height>60</height> <depth>24</depth> <url>/MediaRenderer_LW_60x60.jpg</url> </icon> <icon> <mimetype>image/jpeg</mimetype> <width>120</width> <height>120</height> <depth>24</depth> <url>/MediaRenderer_LW_120x120.jpg</url> </icon> </iconList> <serviceList> <service> <serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType> <serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId> <SCPDURL>/RenderingControlSCPD.xml</SCPDURL> <controlURL>/upnp/control/RenderingControl</controlURL> <eventSubURL>/upnp/event/RenderingControl</eventSubURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType> <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId> <SCPDURL>/ConnectionManagerSCPD.xml</SCPDURL> <controlURL>/upnp/control/ConnectionManager</controlURL> <eventSubURL>/upnp/event/ConnectionManager</eventSubURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType> <serviceId>urn:upnp-org:serviceId:AVTransport</serviceId> <SCPDURL>/AVTransportSCPD.xml</SCPDURL> <controlURL>/upnp/control/AVTransport</controlURL> <eventSubURL>/upnp/event/AVTransport</eventSubURL> </service> <service> <serviceType>urn:dial-multiscreen-org:service:dial:1</serviceType> <serviceId>urn:dial-multiscreen-org:serviceId:dial</serviceId> <SCPDURL>/DIALSCPD.xml</SCPDURL> <controlURL>/upnp/control/DIAL</controlURL> <eventSubURL /> </service> <service> <serviceType>urn:schemas-sony-com:service:IRCC:1</serviceType> <serviceId>urn:schemas-sony-com:serviceId:IRCC</serviceId> <SCPDURL>/IRCCSCPD.xml</SCPDURL> <controlURL>http://192.168.1.17/sony/IRCC</controlURL> <eventSubURL /> </service> <service> <serviceType>urn:schemas-sony-com:service:ScalarWebAPI:1</serviceType> <serviceId>urn:schemas-sony-com:serviceId:ScalarWebAPI</serviceId> <SCPDURL>/ScalarWebApiSCPD.xml</SCPDURL> <controlURL>/upnp/control/ScalarAPI</controlURL> <eventSubURL /> </service> </serviceList> <av:X_MaxBGMCount xmlns:av="urn:schemas-sony-com:av">64</av:X_MaxBGMCount> <av:X_StandardDMR xmlns:av="urn:schemas-sony-com:av">1.1</av:X_StandardDMR> <av:X_ScreenResolution xmlns:av="urn:schemas-sony-com:av">2K</av:X_ScreenResolution> <av:X_IRCCCodeList xmlns:av="urn:schemas-sony-com:av"> <av:X_IRCCCode command="Power">AAAAAQAAAAEAAAAVAw==</av:X_IRCCCode> <av:X_IRCCCode command="Power ON">AAAAAQAAAAEAAAAuAw==</av:X_IRCCCode> <av:X_IRCCCode command="Power OFF">AAAAAQAAAAEAAAAvAw==</av:X_IRCCCode> </av:X_IRCCCodeList> <pnpx:X_compatibleId>MS_DigitalMediaDeviceClass_DMR_V001</pnpx:X_compatibleId> <pnpx:X_deviceCategory>MediaDevices</pnpx:X_deviceCategory> <pnpx:X_hardwareId>VEN_0106&DEV_0006&REV_01</pnpx:X_hardwareId> <df:X_deviceCategory>Display.TV Multimedia.DMR</df:X_deviceCategory> <av:X_TrackID_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> <av:X_TrackID_BaseURL>http://192.168.1.17/sony/BgmSearch</av:X_TrackID_BaseURL> </av:X_TrackID_DeviceInfo> <av:X_ScalarWebAPI_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> <av:X_ScalarWebAPI_Version>1.0</av:X_ScalarWebAPI_Version> <av:X_ScalarWebAPI_BaseURL>http://192.168.1.17/sony</av:X_ScalarWebAPI_BaseURL> <av:X_ScalarWebAPI_ServiceList> <av:X_ScalarWebAPI_ServiceType>guide</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>system</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>videoScreen</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>audio</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>avContent</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>appControl</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>browser</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>notification</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>cec</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>accessControl</av:X_ScalarWebAPI_ServiceType> <av:X_ScalarWebAPI_ServiceType>irCommandProxy</av:X_ScalarWebAPI_ServiceType> </av:X_ScalarWebAPI_ServiceList> </av:X_ScalarWebAPI_DeviceInfo> <av:X_RDIS_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> <av:X_RDIS_Version>1.0</av:X_RDIS_Version> <av:X_RDIS_SESSION_CONTROL>false</av:X_RDIS_SESSION_CONTROL> <av:X_RDIS_ENTRY_PORT>20677</av:X_RDIS_ENTRY_PORT> </av:X_RDIS_DeviceInfo> <av:X_DIALEX_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> <av:X_DIALEX_AppsListURL>http://192.168.1.17/DIAL/sony/applist</av:X_DIALEX_AppsListURL> </av:X_DIALEX_DeviceInfo> </device> </root> &ssdp=NOTIFY * HTTP/1.1 HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://192.168.1.17:52323/dmr.xml NT: upnp:rootdevice NTS: ssdp:alive SERVER: Linux/2.6 UPnP/1.0 KDL-32W650A/1.7 USN: uuid:00000000-0000-1010-8000-d8d43c8fe38f::upnp:rootdevice X-AV-Physical-Unit-Info: pa="BRAVIA KDL-32W650A"; X-AV-Server-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-32W650A"; mv="1.7"; I don't see any meaningful differences, do you?
Michel Kohanim Posted April 16, 2015 Posted April 16, 2015 Hi Pazium, Do you have access to curl? Everything looks ok to me. With kind regards, Michel
Pazium Posted April 17, 2015 Posted April 17, 2015 ok I used CHROME POSTMAN put in the headers and the content andsent it got this response, a 606 error <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <s:Body> <s:Fault> <faultcode>s:Client</faultcode> <faultstring>UPnPError</faultstring> <detail> <UPnPError xmlns="urn:schemas-upnp-org:control-1-0"> <errorCode>606</errorCode> <errorDescription>Action not authorized</errorDescription> </UPnPError> </detail> </s:Fault> </s:Body> </s:Envelope>
Michel Kohanim Posted April 17, 2015 Posted April 17, 2015 Hi Pazium, Perhaps you need authorization? Does it require username and password? With kind regards, Michel
Pazium Posted April 17, 2015 Posted April 17, 2015 No. but I read about this header thing in a couple of places X-CERS-DEVICE-ID How do I add this to the list of headers in ISY?
Pazium Posted April 17, 2015 Posted April 17, 2015 it may be looking for these X-CERS-DEVICE-ID X-CERS-DEVICE-INFO
Pazium Posted April 17, 2015 Posted April 17, 2015 did this and still got the 500 error in isy POST /sony/IRCC/ HTTP/1.1 Host: 192.168.1.16:80 User-Agent: TVSideView/2.0.1 CFNetwork/672.0.8 Darwin/14.0.0' SOAPACTION: urn:schemas-sony-com:service:IRCC:1#X_SendIRCC Content-Length: 316 X-CERS-DEVICE-INFO: Pazz Remote X-CERS-DEVICE-ID: 11-38-11-38-11-38 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate <?xml version="1.0"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"> <IRCCCode>AAAAAQAAAAEAAAAvAw==</IRCCCode> </u:X_SendIRCC> </s:Body> </s:Envelope>
Recommended Posts