Page 1 of 1

[SOLVED] Serviio reverts to default profile - KDL-32EX43B

PostPosted: Mon Sep 30, 2013 10:26 pm
by ronanmagee
All,I have a 2010 Sony Bravia. It has fixed ip and is connected wirelessly to my router. Serviio run on my Windows 2008r2 home server.

The TV is detected by Serviio console and shoes the green circle icon & I can choose the Sony Bravia 2010 profile & it all works well. I can also save the profile selection.

When I turn off my TV over night Serviio console shows a red icon. Turning on TV in the morning I see the Serviio server but when I browse my content it cannot display it.

Returning to Serviio console and refreshing it - it appears the 2010 Bravia profile has been replaced with the standard DLNA profile.

Changing the profile setting to 2010 then presents the files & I can watch as normal.

I run a scheduled task @ 4am to stop & restart the service to clear out any temp files. I have bonded the server address to my network card on the home server.

Any help in making the 2010 a permanent selection after the TV has been rebooted would be great.

Ronan

Re: Serviio console reverts to default DLNA profile

PostPosted: Mon Sep 30, 2013 11:07 pm
by DenyAll
Post a detailed log showing you manually setting the profile, turning TV off/on and then resetting the profile. This should tell us what Serviio is seeing.

Re: Serviio console reverts to default DLNA profile

PostPosted: Wed Oct 02, 2013 11:00 am
by ronanmagee
Hi DenyAll,

Here is my scenario:

1. Serviio setup to work with Bravia KDL-32EX43B (using fixed IP 192.168.1.200) using the Sony(2010) profile. Serviio runs on IP 192.168.1.5. Image 1 which shows the Serviio before I turn on the TV as indicated by the red dot icon.

2. I turn on the TV and start streaming the video with no issues. I stop the video and come back to the menu and the TV can no longer read the directory listing from the server. The server now shows a green dot icon, however, the profile has changed to the generic DLNA profile.

3. I attach the debug log showing the 4am restart (to clear the cache) and subsequent streaming. At time 2013-10-01 23:02:35,088 (line number 1,198) DEBUG [WebServer] I/O error: Connection reset by peer: socket write error and subsequently, at time 2013-10-01 23:02:40,511 (line number 1,202) the profile is changed to the generic profile. (NOTE: I had to remove some lines from the middle of the LOG where it requested BBC iPlayer/ITV player data as the log was greater than the 500KB limit).

4. The server was then shutdown after this.

Ronan

Re: Serviio console reverts to default DLNA profile

PostPosted: Thu Oct 03, 2013 1:11 am
by DenyAll
@zip will need to have a look at this. I think I can see what is happening, but have no idea why.

The change actually occurs prior to the connection reset you mention:

  Code:
2013-10-01 23:02:06,045 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 00000000-0000-1010-8000-000000000000 from address /192.168.1.200:52323
2013-10-01 23:02:06,058 DEBUG [RendererManager] Retrieve device description from http://192.168.1.200:52323/dmr.xml
2013-10-01 23:02:06,404 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 00000000-0000-1010-8000-000000000000 from address /192.168.1.200:52323
2013-10-01 23:02:06,529 DEBUG [RendererManager] Looking for a renderer profile for: friendly name = 'BRAVIA KDL-32EX43B', model name= 'KDL-32EX43B', model number = 'null', manufacturer = 'Sony Corporation', product code = 'null', server name = 'Linux/2.6 UPnP/1.0 KDL-32EX43B/1.7'
2013-10-01 23:02:06,530 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.200
2013-10-01 23:02:06,531 DEBUG [RendererDAOImpl] Deleting a Renderer (uuid = 00000000-0000-1010-8000-544249b39ee3)
2013-10-01 23:02:06,598 DEBUG [RendererDAOImpl] Creating a new Renderer (uuid = 00000000-0000-1010-8000-000000000000)
2013-10-01 23:02:06,750 INFO  [RendererManager] Stored a new renderer: uuid='00000000-0000-1010-8000-000000000000', name = 'KDL-32EX43B', ipAddress='192.168.1.200', profile = '1'
2013-10-01 23:02:06,750 DEBUG [RendererManager] Adding renderer Renderer [uuid=00000000-0000-1010-8000-000000000000, ipAddress=192.168.1.200, name=KDL-32EX43B, profileId=1, manuallyAdded=false, forcedProfile=false, enabled=true, accessGroupId=1] to list of active renderers
2013-10-01 23:02:13,556 DEBUG [RendererDAOImpl] Retrieving list of all stored renderers
If I read this correctly, Serviio receives a keep alive message from the TV, it then retrieves it's description and then looks for the TV in its existing list of renderers. It does not find it, so it deletes the previous (correct) renderer on the .200 IP address and replaces it with a renderer for this (what it sees as a) new device.

If you look at the first time it correctly found the renderer (earlier in the log) you see:
  Code:
2013-10-01 22:58:32,815 DEBUG [RendererManager] Looking for a renderer profile for Http headers: [Host: 192.168.1.5:8895,Date: Tue, 01 Oct 2013 21:58:27 GMT,User-Agent: UPnP/1.0,X-AV-Physical-Unit-Info: pa="BRAVIA KDL-32EX43B";,X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-32EX43B"; mv="1.7";]
2013-10-01 22:58:32,818 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.200
2013-10-01 22:58:33,168 DEBUG [DeviceDescriptionRequestHandler] Sending DeviceDescription XML back using profile 'Sony Bravia TV (2010)'
I am wondering if this is occurring because the first time it the model name is detected as a "BRAVIA KDL-32EX43B" and the second as a "KDL-32EX43B"? zip will need to look at this and see if it is the issue, and if so, why its detected one way the first time, and another way the second.

ps. You may be able to work around the issue by changing the profile so that it automatically detects the correct profile for either model name for the device - change (in the sony2010 profile within profiles.xml):

    <FriendlyName>BRAVIA KDL-\d{2}[EHLNPB]X\d[01]\d.*</FriendlyName>
    to
    <FriendlyName>(BRAVIA KDL-\d{2}[EHLNPB]X\d[01]\d.*)|(KDL-\d{2}[EHLNPB]X\d[01]\d.*)</FriendlyName>
Don't know if this will work (as the friendly name doesn't actually change), so you will need to test (this assumes my theory about the changing model name is correct). After changing the profile, remember to restart the Serviio service (or your PC).

Re: Serviio console reverts to default DLNA profile

PostPosted: Thu Oct 03, 2013 5:46 am
by ronanmagee
Thanks,

Will try this later tonight & report back.

Thanks for looking!

Ronan

SOLVED Re: Serviio reverts to default profile - KDL-32EX43B

PostPosted: Thu Oct 03, 2013 10:03 pm
by ronanmagee
DenyAll,

Thanks very much for your advice. The code below worked a treat. I have shutdown the server, turned TV on/off numerous times and all is good.

I have updated this topic to resolved and put the TV Model in the title.

Ronan

Solution:

  Code:
 Change (in the sony2010 profile within profiles.xml):

    <FriendlyName>BRAVIA KDL-\d{2}[EHLNPB]X\d[01]\d.*</FriendlyName>
    to
    <FriendlyName>(BRAVIA KDL-\d{2}[EHLNPB]X\d[01]\d.*)|(KDL-\d{2}[EHLNPB]X\d[01]\d.*)</FriendlyName>