Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Sun Apr 03, 2011 5:45 pm
by kot
Unless I explicitly tell (via serviio-console), that this particular device is a Bravia, Serviio will apply "generic" profile to the player rendering it unusable for video-watching...
The headers, according to the DEBUG-log, are:
- Code:
2011-04-03 13:40:13,667 DEBUG [DeviceDescriptionRequestHandler] DeviceDescription request received for device 81f02b02-9ef6-3ce6-abcd-30578ac46920 from 192.168.1.3 (headers = [Host: 192.168.1.8:8895,Date: Thu, 01 Jan 2009 00:04:30 GMT,User-Agent: UPnP/1.0,X-AV-Physical-Unit-Info: pa="BRAVIA KDL-46XBR9";,X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-46XBR9"; mv="1.7";])
Should the profiles.xml be amended as something like:
- Code:
- <FriendlyName>Bravia.*</FriendlyName>
+ <FriendlyName>B[Rr][Aa][Vv][Ii][Aa].*</FriendlyName>
?
Re: Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Sun Apr 03, 2011 6:23 pm
by zip
Does the TV show up in Device Spy (Intel tools)? If yes, get it's properties and check the FriendlyName property.
The below log is a fallback detection (based on HTTP headers rather than on UPnPsearch of the device on your network)
Re: Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Mon Apr 04, 2011 2:56 am
by kot
zip wrote:Does the TV show up in Device Spy (Intel tools)? If yes, get it's properties and check the FriendlyName property.
The below log is a fallback detection (based on HTTP headers rather than on UPnPsearch of the device on your network)
Intel tools aren't available for Unix

Is there any other tool you can suggest? Or, perhaps, Serviio can log such things too?
Re: Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Mon Apr 04, 2011 8:41 am
by zip
It does log it. Turn on detailed logging, remove the device from the list in the console (and save) and restart Serviio. Then post the log.
Re: Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Tue Apr 05, 2011 6:53 am
by Illico
When you compare with EX500 where are differences?
- Code:
2011-04-05 08:50:46,234 DEBUG [DeviceDescriptionRequestHandler] DeviceDescription request received for device 223a9375-eb61-3269-abcf-3ad9f2e63b1f from 192.168.1.9 (headers = [Host: 192.168.1.6:8895,Date: Tue, 05 Apr 2011 06:50:47 GMT,User-Agent: UPnP/1.0,X-AV-Physical-Unit-Info: pa="BRAVIA KDL-46EX501";,X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-46EX501"; mv="1.7";])
2011-04-05 08:50:46,234 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.9
2011-04-05 08:50:46,250 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.9
2011-04-05 08:50:46,656 DEBUG [DeviceDescriptionRequestHandler] Sending DeviceDescription XML back using profile 'Sony Bravia TV'
Re: Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Tue Apr 05, 2011 9:11 am
by zip
AFAIK Bravia's are visible in DeviceSpy, right? If yes, then the TV should respond to M-SEARCH request from Serviio and give it URL with it's description which Serviio then reads and decides on the profile.
If M-SEARCH doesn't return anything (ie not visible in DeviceSpy) then there is a fallback option to detect the device based on the HTTP headers of Serviio's DeviceDescription requests (as seen in your logs) - this is however not part of the Bravia profile. We can add that, no problem, but TV's that don't support M-SEARCH will always show orange dot in the console and the device name will be Unrecognized device.
Illico, can you confirm if your TV is visible in DeviceSpy?
Re: Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Tue Apr 05, 2011 11:23 am
by Illico
zip wrote:Illico, can you confirm if your TV is visible in DeviceSpy?
Yes I confirm, my Sony Bravia KDL-46EX501 is visible in DeviceSpy device list with the following xml description:
- Code:
<?xml version="1.0" encoding="UTF-8"?>
<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-46EX501</friendlyName>
<manufacturer>Sony Corporation</manufacturer>
<manufacturerURL>http://www.sony.net/</manufacturerURL>
<modelName>KDL-46EX501</modelName>
<UDN>uuid:00000000-0000-1010-8000-0024BEF777B7</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>
I removed all devices on Serviio Console, restart serviio service, power-on my Sony Bravia, and TV device appears in the console with Sony Profile automatically set.
So no problem for me.
Re: Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Thu Apr 28, 2011 1:15 pm
by raddyb
Just to confirm, I have a Sony Bravia KDL-52Z5100, and it does not show up on Device Spy either. (For kot, check out the gupnp-tools at
http://gupnp.org for Linux replacements of the Intel tools.) When my TV didn't show up using gupnp-tools, I booted Windows and tried the standard tools, but no device listing for the TV showed up there, either. Perhaps the US market TVs don't have all the features they should.
Now that I know what to look for in the DEBUG logs, I'll dig through them this weekend to see if I can get the HTTP header-recognition feature to work.
Re: Why is not this TV recognized as "Sony Bravia TV"?

Posted:
Thu Apr 28, 2011 11:52 pm
by raddyb
The good news is that the HttpHeaders search worked. Thanks, Illico.
The Video profiles also seem to work for my TV, though I did have to add some ffmpeg munging to do it. I have some video clips with audio recorded at 44100Hz that didn't play well with the current configuration. I couldn't figure out how to force a 48000Hz sample rate into the transcoding scheme, so I wrapped a shell script around ffmpeg to insert a '-ar 48000' before the '-ab' parameter, and this seemed to fix the audio dropout problem.
I can't seem to get any audio files or images to show up, though it's obvious from the TVs content selection menus that the items have been parsed by serviio.
According to the DLNA database, my model (KDL-52Z5100) does not support as wide a range of profiles as the EX models I've been reading.
Device Class: DMP
VIDEO: MPEG_PS_NTSC, MPEG_TS_SD_NA, MPEG_TS_SD_NA_ISO, MPEG_TS_SD_NA_T
AUDIO: LPCM, MP3
IMAGE: JPEG_SM, JPEG_LRG, JPEG_MED
And that's it. I've set up my own profile for this device so that I can play around with the configuration settings to see if I can get audio and images to work. I need to study the main BRAVIA thread to understand how the DLNA profiles are parsed, renamed, transcoded. It's tough since I don't even know what these things are supposed to mean. (For example: what does the JPEG_LRG profile mean? that kind of thing. I'm sure if I dig long enough, I can figure out some of this crap.)
Thanks for the software, zip, and thanks for all your experimentation efforts, illico!