Compatibility?

227 views
Skip to first unread message

bluebu...@gmail.com

unread,
Sep 19, 2015, 4:26:29 PM9/19/15
to Sony API Library
I have a KDL55HX800 and I'm looking to try and control it especially with my Home Automation by sending commands to it.  Am I able to use one of the exes and it finds the tv and an xml file but I dont know how to get in to registration mode.  I searched around but I'm having trouble locating how to do so.  Then the programs crash right away.

SonyAPILib

unread,
Sep 19, 2015, 10:15:07 PM9/19/15
to Sony API Library, bluebu...@gmail.com
Bluebulletrl,

Thank you for your interest.

For starters, Where did you download from? CodeProject or Github?

Secondly, which exe are you running?
These are mainly examples, but they should be able to register and control your TV.

I would suggest trying the Console Example exe.

KDL TV's do not have to be put in a registration mode.
If it is a Gen2, then it should just pop up a confirmation screen on the TV that you have 30 seconds to click on.
If it is a Gen3, then the TV will display a 4 digit code that you will need to enter on your computer within 30 seconds.

Either way, I suggest you be at your TV when trying to register it!

Let me know what I can do to help.

K.

bluebu...@gmail.com

unread,
Sep 19, 2015, 11:37:58 PM9/19/15
to Sony API Library, bluebu...@gmail.com
Thanks for the reply.  I tried to run the ConsoleExample.exe out of the \bin\debug\ folder and it will search and find the TV.  Once I hit the option to test I get this

http://10.1.1.192:52323/dmr.xml: Building Device....
BRAVIA KDL-55HX800: Checking Device Status....

Get Status returned: Error
---------------------------------

BRAVIA KDL-55HX800: Performing Registration....
Before continuing, you may need to set the device to Registration Mode,
Confirm Registration or enter the Registration PIN code.
Go to the device and perfrom any step, or be ready to before ehitting enter belo
w!
=====================================
Hit any key to continue

I hit enter and the program crashes.  Here is a screenshot.  http://i.imgur.com/fff6GdN.png  My guess is its looking for a path that is not on my system, I just don't see where I can update these paths to make it work.  I'd love for the help as I'd really love to get this to work :)

SonyAPILib

unread,
Sep 20, 2015, 11:28:08 AM9/20/15
to Sony API Library, bluebu...@gmail.com
OK,

The Console Example should have created a log file.
It should be located in the folder: C:\ProgramData\Sony

Can you send me a copy of the SonyAPILib_LOG.txt file?
This will help shed some more light on what is going wrong.

Also, there should be a file named BRAVIA KDL-55HX800.xml.
This file will contain all the information obtained from the device during the BUILD process.



On Saturday, September 19, 2015 at 4:26:29 PM UTC-4, bluebu...@gmail.com wrote:

bluebu...@gmail.com

unread,
Sep 20, 2015, 11:39:36 AM9/20/15
to Sony API Library, bluebu...@gmail.com
Here is the logfile.

9/20/2015 11:34:45 AM - Clearing Log file: SonyAPILib_LOG.txt
9/20/2015 11:34:45 AM - UPnP is Discovering devices....
9/20/2015 11:35:10 AM - Devices Discovered: 7
9/20/2015 11:35:15 AM - Retrieving Device Description Document from URI:
9/20/2015 11:35:15 AM - http://10.1.1.192:52323/dmr.xml
9/20/2015 11:35:17 AM - Retrieving Controlling devices Mac Address. (this computer)
9/20/2015 11:35:17 AM - Mac Address retrieved: F0BF975DE742
9/20/2015 11:35:17 AM - Re-Parsing Mac Address. (Replace : with -)
9/20/2015 11:35:17 AM - Mac Address has been re-Parsed: F0-BF-97-5D-E7-42
9/20/2015 11:35:17 AM - Document Found
9/20/2015 11:35:17 AM - RenderingControl:1 Service discovered on this device
9/20/2015 11:35:17 AM - ConnectionManager:1 Service discovered on this device
9/20/2015 11:35:17 AM - AVTransport:1 Service discovered on this device
9/20/2015 11:35:17 AM - Verifing Registration for: BRAVIA KDL-55HX800
9/20/2015 11:35:17 AM - Checking Status of Device BRAVIA KDL-55HX800
9/20/2015 11:35:17 AM - Creating HttpWebRequest to URL: 
9/20/2015 11:35:17 AM - Checking Device Status for BRAVIA KDL-55HX800 Failed!
9/20/2015 11:35:17 AM - System.ArgumentNullException: Value cannot be null.
Parameter name: requestUriString
   at System.Net.WebRequest.Create(String requestUriString)
   at SonyAPILib.SonyAPI_Lib.SonyDevice.HttpGet(String Url) in f:\OSA Files\Sony API\SonyAPILib_5.2\SonyAPILib\SonyAPILib\sonyAPILib.cs:line 521
   at SonyAPILib.SonyAPI_Lib.SonyDevice.checkStatus() in f:\OSA Files\Sony API\SonyAPILib_5.2\SonyAPILib\SonyAPILib\sonyAPILib.cs:line 745
9/20/2015 11:35:17 AM - BRAVIA KDL-55HX800: Registration Check returned: False
9/20/2015 11:35:17 AM - ERROR: getStatusUrl is NULL
9/20/2015 11:35:17 AM - This device is not compatiable with this Service!
9/20/2015 11:35:19 AM - Controlling Mac address: F0-BF-97-5D-E7-42
9/20/2015 11:35:19 AM - Registration was NOT successful for device at: 10.1.1.192
9/20/2015 11:35:19 AM - BRAVIA KDL-55HX800 is Retrieving Generation:0 Remote Command List
9/20/2015 11:35:19 AM - Creating HttpWebRequest to URL: 

I did not get any .xml file, atleast not in the folder you pointed me to.  Let mek now if you need anything else. Should I be copying the exe to another folder? How should I have the.  Ultimately I'm guessing these steps are to help find how to I can send some http:// POST commands so that I can do it from within OpenHAB.  This will make me very happy :)

SonyAPILib

unread,
Sep 20, 2015, 8:26:14 PM9/20/15
to Sony API Library, bluebu...@gmail.com
Sorry, got busy today.

Anyhow, according to the below LOG file:
I can several issues. One of them is that it does not discover the IRCC:1 service on your TV.
This is the SONY service used to send the commands to the TV.

Are you able to control your TV with the app "Sony TV-Sideview"?

Also can you send me a copy of the dmr.xml file that it finds?
This will help me determine if your TV is capable or compatible.

SonyAPILib

unread,
Sep 20, 2015, 8:31:26 PM9/20/15
to Sony API Library, bluebu...@gmail.com
I hate to say it,

But according to the TV-Sideview compatibility list, the KDL-xxHX800 is not capable of being controlled via HTTP.



On Saturday, September 19, 2015 at 4:26:29 PM UTC-4, bluebu...@gmail.com wrote:

bluebu...@gmail.com

unread,
Sep 20, 2015, 10:46:17 PM9/20/15
to Sony API Library, bluebu...@gmail.com
Hello,

Yea it looks like I can't, sounds like I need a new TV.

bluebu...@gmail.com

unread,
Sep 21, 2015, 12:09:05 PM9/21/15
to Sony API Library, bluebu...@gmail.com
Heres the XML returned, which kinda had me hoping. I tried the app and it doesn't register.

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<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-55HX800</friendlyName>
<manufacturer>Sony Corporation</manufacturer>
<manufacturerURL>http://www.sony.net/</manufacturerURL>
<modelName>KDL-55HX800</modelName>
<UDN>uuid:00000000-0000-1010-8000-544249C975C8</UDN>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>
<iconList>
<icon>
<mimetype>image/png</mimetype>
<width>32</width>
<height>32</height>
<depth>24</depth>
<url>/MediaRenderer_32x32x24.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/MediaRenderer_48x48x24.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>60</width>
<height>60</height>
<depth>24</depth>
<url>/MediaRenderer_60x60x24.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/MediaRenderer_120x120x24.png</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>32</width>
<height>32</height>
<depth>24</depth>
<url>/MediaRenderer_32x32x24.jpg</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/MediaRenderer_48x48x24.jpg</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>60</width>
<height>60</height>
<depth>24</depth>
<url>/MediaRenderer_60x60x24.jpg</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/MediaRenderer_120x120x24.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>
</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_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_SONY&DEV_BRAVIA_DMR&REV_01 VEN_0033&DEV_0006&REV_01 urn:schemas-upnp-org:device:MediaRenderer:1
</pnpx:X_hardwareId>
<df:X_deviceCategory>Display.TV Multimedia.DMR</df:X_deviceCategory>
</device>
</root>

On Sunday, September 20, 2015 at 8:31:26 PM UTC-4, SonyAPILib wrote:

SonyAPILib

unread,
Sep 21, 2015, 7:15:40 PM9/21/15
to Sony API Library, bluebu...@gmail.com
Wow,

This is very strange.

Towards the bottom it shows a sample IRCCCodeList with 3 IRCCCodes, "Power", "Power On", "Power Off", even though there should be about 38 total, they never show them all here.
But the strange part is that there is no IRCC service? But it dose show the AVTransport, ConnectionManager, and RenderingControl.

Using "RenderingControl", you may be able to change the volume or set mute, but you wont be able to change channels or use the menu system.

This sounds like an older generation, or before they fully implemented the control through HTTP.
How old is your TV?
Reply all
Reply to author
Forward
0 new messages