[mythtv-users] Accessing Mythbackend via UPNP [RESOLVED]

John Pilkington J.Pilk at tesco.net
Sun Feb 22 22:08:46 UTC 2015


On 22/02/15 21:29, David Hampton wrote:
> On Fri, 2015-02-13 at 22:31 +0000, John Pilkington wrote:
>> On 13/02/15 19:58, David Hampton wrote:
>>> On Fri, 2015-02-13 at 17:25 +0000, John Pilkington wrote:
>>>> On 13/02/15 15:43, David Hampton wrote:
>>>>> Hi,
>>>>>
>>>>> I'm trying to use UPNP for the first time, and am unable to locate my
>>>>> myth backend via the UPNP protocol.  When I run wireshark on my local
>>>>> machine I see frequent MDNS and SSDP messages from a file server, but I
>>>>> only ever see an occasional MDNS message from the myth backend.  I tried
>>>>> enabling upnp logging (-v none,upnp --loglevel debug) on the backend,
>>>>> and myth believes its sending SSDP notification messages, but wireshark
>>>>> never sees those messages hit the wire.  Here a log excerpt from a
>>>>> startup with only upnp logging enabled:
>>>>>
>>>>> 2015-02-12 23:07:04.750213 I  SSDP::EnableNotifications() - sending NTS_byebye
>>>>> 2015-02-12 23:07:04.750269 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : upnp:rootdevice : uuid:::upnp:rootdevice
>>>>> 2015-02-12 23:07:04.903074 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : uuid: : uuid:
>>>>> 2015-02-12 23:07:04.923967 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 :  : uuid:::
>>>>> 2015-02-12 23:07:05.010700 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1 : uuid:::urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1
>>>>> 2015-02-12 23:07:05.026723 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : urn:schemas-upnp-org:service:ConnectionManager:1 : uuid:::urn:schemas-upnp-org:service:ConnectionManager:1
>>>>> 2015-02-12 23:07:05.101670 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : urn:schemas-upnp-org:service:ContentDirectory:1 : uuid:::urn:schemas-upnp-org:service:ContentDirectory:1
>>>>> 2015-02-12 23:07:05.111431 I  SSDP::EnableNotifications() - sending NTS_alive
>>>>> 2015-02-12 23:07:05.111446 I  Starting TaskQueue Thread...
>>>>> 2015-02-12 23:07:05.111554 I  TaskQueue Thread Started.
>>>>> 2015-02-12 23:07:05.111565 I  SSDP::EnableNotifications() - Task added to UPnP queue
>>>>> 2015-02-12 23:07:05.111570 D  UPnp::Start - Returning
>>>>> 2015-02-12 23:07:05.111841 I  TaskQueue Thread Running.
>>>>> 2015-02-12 23:07:05.111942 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : upnp:rootdevice : uuid:::upnp:rootdevice
>>>>> 2015-02-12 23:07:05.123822 I  MediaServer:Init:End
>>>>> 2015-02-12 23:07:05.167536 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : uuid: : uuid:
>>>>> 2015-02-12 23:07:05.286496 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 :  : uuid:::
>>>>> 2015-02-12 23:07:05.439684 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1 : uuid:::urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1
>>>>> 2015-02-12 23:07:05.481091 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : urn:schemas-upnp-org:service:ConnectionManager:1 : uuid:::urn:schemas-upnp-org:service:ConnectionManager:1
>>>>> 2015-02-12 23:07:05.534329 I  UPnpNotifyTask::SendNotifyMsg : 239.255.255.250:1900 : urn:schemas-upnp-org:service:ContentDirectory:1 : uuid:::urn:schemas-upnp-org:service:ContentDirectory:1
>>>>>
>>>>> Comparing these to messages from my file server, these messages are all
>>>>> missing the actual UUID value.  I poked around, but I don't see where
>>>>> this is defined.  I do see the following message when searching other
>>>>> myth log files with normal logging enabled:
>>>>>
>>>>> 2015-02-09 02:22:54.860839 E [12434/12434] CoreContext upnputil.cpp:51
>>>>> (LookupUDN) - LookupUDN()- bad device type '', not enough tokens
>
> The problem appears to be a packaging error.  When I increased the
> debugging level from 'info' to 'debug', I saw this message:
>
> MediaServer::Loading UPnp Description /usr/share/mythtv/devicemaster.xml
>
> The devicemaster.xml file didn't exist on my pure backend system.  When
> I installed the mythtv-frontend rpm that contains that file, UPNP
> started working perfectly.  For completeness, I ran an strace on the
> mythfrontend application and it doesn't seem to read the
> devicemaster.xml file.
>
> Anyway, all working now.  Thanks for the help.
>
> David
>

Glad you got it sorted.  I've looked at my collection of spec files (for 
rpm-based repos) and they all have it in the frontend package - but it's 
in programs/backend  in the source tarball.

I've always run FE/BE boxes.

Cheers,

John




More information about the mythtv-users mailing list