Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

eo29
Newcomer
Posts: 11
Joined: Mon Nov 30, 2020 10:20 pm
Nigeria

Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by eo29 » Mon Nov 30, 2020 10:52 pm

Hi All,

Just wanted to know whether this is a bug or not. Currently running VBox XTi 3340 with firmware 2.66, the vbox tuners are not available during discovery to select them in Mythtv. I have reverted back to firmware 2.59, and this works perfectly well. I have also tried firmware 2.62 and 2.65 no luck what so ever. I am just wondering whether the vboxutils.cpp code has got 2.5x firmware hardcoded.

The vbox get recognized during the start process during boot on both firmware, but it seems like the upnp scan is failing on 2.66

Snippet of the log file.

2020-11-30 19:14:32.116587 D [23590/23590] CoreContext recorders/vboxutils.cpp:107 (doUPNPSearch) - VBox: Found possible VBox at TV Gateway (vbox_4E02) (192.168.1.194:55555)
2020-11-30 19:14:32.116607 I [23590/23590] CoreContext referencecounter.cpp:144 (DecrRef) - (0x7f40b4001b00)::DecrRef() -> 1
2020-11-30 19:14:32.116623 I [23590/23590] CoreContext referencecounter.cpp:144 (DecrRef) - (0x7f40b400b9c0)::DecrRef() -> 1
2020-11-30 19:14:32.116648 I [23590/23590] CoreContext recorders/vboxutils.cpp:44 (probeDevices) - VBox: Using UPNP to search for Vboxes (3 secs)
2020-11-30 19:14:32.116668 D [23590/23590] CoreContext ssdp.cpp:212 (PerformSearch) -


Any help will be greatly appreciated. Thanks.

v31.0+fixes.202011271724.102dbe6733~ubuntu18.04.1
Ubuntu 18.04
Vbox XTi VB Firmware 2.66 (Doesnt work)
Vbox XTi VB Firmware 2.59 (Works)

Snipet of the log file on 2.66

User avatar
kmdewaal
Developer
Posts: 307
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by kmdewaal » Tue Dec 01, 2020 7:56 am

There is a check on the number but only that it should be bigger than 2.50.
Can you please post the complete log file, including the "CheckVersion -- required ..... actual ...."?

eo29
Newcomer
Posts: 11
Joined: Mon Nov 30, 2020 10:20 pm
Nigeria

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by eo29 » Tue Dec 01, 2020 8:56 am

Hi,

Thanks for your response, see attached log file.

Kind Regards.
Attachments
mythtv-setup.20201201085422.9671.log
VBox XTi v2.66 Mythtv Log File
(12.82 KiB) Downloaded 13 times

User avatar
paulh
Developer
Posts: 645
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by paulh » Tue Dec 01, 2020 10:36 am

Doesn't look like it's seeing the VBox at all.

In a webbrowser try to query the VBox for the board info by entering this URL (I'm assuming 192.168.1.194 is the IP address of the VBox)

Code: Select all

http://192.168.1.194/cgi-bin/HttpControl/HttpControlApp?OPTION=1&Method=QueryBoardInfo
I would expect a response similar to this one.

Code: Select all

<VboxHttpControl>
	<script/>
	<Status>
		<ErrorCode>0</ErrorCode>
		<ErrorDescription>Completed Successfully</ErrorDescription>
	</Status>
	<Reply>
		<DeviceName>vbox_freeview</DeviceName>
		<ProductNumber>3342</ProductNumber>
		<ProductName>3342-21</ProductName>
		<SerialNum>001640643718</SerialNum>
		<HWRev>H0</HWRev>
		<FWRev>3.1</FWRev>
		<UbootVersion>2.1.20</UbootVersion>
		<KernelVersion>VB04</KernelVersion>
		<SoftwareVersion>VB.2.59</SoftwareVersion>
		<ProductType>XTI</ProductType>
		<NumOfTranscoders>0</NumOfTranscoders>
		<TunersNumber>2</TunersNumber>
		<TunerTypes>
			<Tuner1>DVBT/T2</Tuner1>
			<Tuner2>DVBT/T2</Tuner2>
		</TunerTypes>
	</Reply>
</VboxHttpControl>

eo29
Newcomer
Posts: 11
Joined: Mon Nov 30, 2020 10:20 pm
Nigeria

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by eo29 » Tue Dec 01, 2020 10:47 am

This is the response from the browser.

Completed Successfully vbox_4E02 3344 3344-21 001646644E02 H0 3.1 2.1.20 VB04 VB.2.66 XTI 0 4 DVBS/S2 DVBS DVBT/T2 DVBT/T2

I dont see any of the xml tags from the output.

User avatar
paulh
Developer
Posts: 645
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by paulh » Tue Dec 01, 2020 3:15 pm

What browser are you using maybe it's trying to beautify the xml? Firefox shows it as formatted xml. Anyway the VBox is responding and the values look good.

No sure what's going on. It looks like the auto discovery is not seeing the VBox. You could use one of the UPnP tools to see what they find. For example using gssdp-discover from gupnp-tools :-

Code: Select all

gssdp-discover -i enp39s0 --timeout=3
Where enp39s0 is the network interface you want to use to search for UPnP devices.
You should see lots of resources but the 5 or so you want to see are the ones with 55555 for the port number.

eo29
Newcomer
Posts: 11
Joined: Mon Nov 30, 2020 10:20 pm
Nigeria

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by eo29 » Tue Dec 01, 2020 7:19 pm

Yep, that finds it ok.

Code: Select all

  Location: http://192.168.1.194:55555/DeviceDescription.xml
  Location: http://192.168.1.194:55555/DeviceDescription.xml
  Location: http://192.168.1.194:55555/DeviceDescription.xml
  Location: http://192.168.1.194:55555/DeviceDescription.xml
  Location: http://192.168.1.194:55555/DeviceDescription.xml
  Location: http://192.168.1.194:55555/DeviceDescription.xml
  Location: http://192.168.1.194:55555/DeviceDescription.xml
  Location: http://192.168.1.194:55555/DeviceDescription.xml

eo29
Newcomer
Posts: 11
Joined: Mon Nov 30, 2020 10:20 pm
Nigeria

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by eo29 » Tue Dec 01, 2020 7:23 pm

I dont see any of the "CheckVersion -- required ..... actual ....", but when i switch back to firmware 2.59, i see this. So must be the script that runs that bit of code is not working with firmware 2.66.

User avatar
paulh
Developer
Posts: 645
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by paulh » Tue Dec 01, 2020 9:56 pm

It's not even getting that far to check the version it's not finding any VBoxes at all.

If you use a browser to look at the http://192.168.1.194:55555/DeviceDescription.xml you should get an xml file that contains among other things the deviceType we want 'urn:schemas-upnp-org:device:MediaServer:1' and a friendlyName mine gives 'VBox TV Gateway (vbox_freeview)' but it's not consistent between all the different VBoxes so is only used in the debug message.

You may be able to get more debug logging by running mythtv-setup with the --verbose upnp command line flag or --verbose upnp:debug

eo29
Newcomer
Posts: 11
Joined: Mon Nov 30, 2020 10:20 pm
Nigeria

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by eo29 » Tue Dec 01, 2020 10:44 pm

Below is the output from the command in a browser

Code: Select all

http://192.168.1.194:55555/DeviceDescription.xml
Below is the output from the command in a browser

Code: Select all

1 0 urn:schemas-upnp-org:device:MediaServer:1 TV Gateway (vbox_4E02) Live TV Media Server Live TV Gateway 1.0 0001646644E02 uuid:b7531642-0123-3210-bbbb-001646644E02 /vbox.html DMS-1.50 image/jpg 48 48 24 /images/upnpLogo-48x48.jpg image/jpg 120 120 24 /images/upnpLogo-120x120.jpg image/png 48 48 24 /images/upnpLogo-48x48.png image/png 120 120 24 /images/upnpLogo-120x120.png urn:schemas-upnp-org:service:ContentDirectory:1 urn:upnp-org:serviceId:ContentDirectory /ContentDirectory/b7531642-0123-3210-bbbb-001646644E02/scpd.xml /ContentDirectory/b7531642-0123-3210-bbbb-001646644E02/control.xml /ContentDirectory/b7531642-0123-3210-bbbb-001646644E02/event.xml urn:schemas-upnp-org:service:ConnectionManager:1 urn:upnp-org:serviceId:ConnectionManager /ConnectionManager/b7531642-0123-3210-bbbb-001646644E02/scpd.xml /ConnectionManager/b7531642-0123-3210-bbbb-001646644E02/control.xml /ConnectionManager/b7531642-0123-3210-bbbb-001646644E02/event.xml urn:plex-tv:device:Media:1 VBox Plex Live TV Media Server Live TV Gateway 1.0 0001646644E02 uuid:b7531642-0123-3210-aaaa-001646644E02 /vbox.html urn:plex-tv:service:MediaGrabber:1 urn:plex-tv:serviceId:MediaGrabber http://192.168.1.194:55555
Also included attached debug file.

Thanks.
Attachments
mythtv-setup.20201201224120.22245.zip
(16.13 KiB) Downloaded 8 times

User avatar
paulh
Developer
Posts: 645
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by paulh » Wed Dec 02, 2020 12:55 am

OK I think I see what is wrong. I was wrong about the friendlyName it is not only used in debug messages but also used to identify possible VBoxes. Unfortunately it looks like they have changed the format of the friendlyName so the search is failing.

I'd like to see the actual DeviceDescription.xml rather than the mangled one your browser is returning. Try using wget to download it like this :-

Code: Select all

wget http://192.168.1.194:55555/DeviceDescription.xml
You should then have the raw DeviceDescription.xml file in the current directory.

Thanks for helping to debug this :)

eo29
Newcomer
Posts: 11
Joined: Mon Nov 30, 2020 10:20 pm
Nigeria

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by eo29 » Wed Dec 02, 2020 8:53 am

Here you go.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:dlna="urn:schemas-dlna-org:d
evice-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <device>
    <deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>
    <friendlyName> TV Gateway (vbox_4E02)</friendlyName>
    <manufacturer></manufacturer>
    <manufacturerURL></manufacturerURL>
    <modelDescription> Live TV Media Server</modelDescription>
    <modelName> Live TV Gateway</modelName>
    <modelURL></modelURL>
    <modelNumber>1.0</modelNumber>
    <serialNumber>0001646644E02</serialNumber>
    <UDN>uuid:b7531642-0123-3210-bbbb-001646644E02</UDN>
    <presentationURL>/vbox.html</presentationURL>
    <dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.50</dlna:
X_DLNADOC>
    <iconList>
      <icon>
        <mimetype>image/jpg</mimetype>
        <width>48</width>
        <height>48</height>
        <depth>24</depth>
        <url>/images/upnpLogo-48x48.jpg</url>
      </icon>
      <icon>
        <mimetype>image/jpg</mimetype>
        <width>120</width>
        <height>120</height>
        <depth>24</depth>
        <url>/images/upnpLogo-120x120.jpg</url>
      </icon>
      <icon>
        <mimetype>image/png</mimetype>
        <width>48</width>
        <height>48</height>
        <depth>24</depth>
        <url>/images/upnpLogo-48x48.png</url>
      </icon>
      <icon>
        <mimetype>image/png</mimetype>
        <width>120</width>
        <height>120</height>
        <depth>24</depth>
        <url>/images/upnpLogo-120x120.png</url>
      </icon>
    </iconList>
    <serviceList>
      <service>
        <serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceTyp
e>
        <serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId>
        <SCPDURL>/ContentDirectory/b7531642-0123-3210-bbbb-001646644E02/scpd.xml
</SCPDURL>
        <controlURL>/ContentDirectory/b7531642-0123-3210-bbbb-001646644E02/contr
ol.xml</controlURL>
        <eventSubURL>/ContentDirectory/b7531642-0123-3210-bbbb-001646644E02/even
t.xml</eventSubURL>
      </service>
      <service>
        <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceTy
pe>
        <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
        <SCPDURL>/ConnectionManager/b7531642-0123-3210-bbbb-001646644E02/scpd.xm
l</SCPDURL>
        <controlURL>/ConnectionManager/b7531642-0123-3210-bbbb-001646644E02/cont
rol.xml</controlURL>
        <eventSubURL>/ConnectionManager/b7531642-0123-3210-bbbb-001646644E02/eve
nt.xml</eventSubURL>
      </service>
    </serviceList>
    <deviceList>
      <device>
        <deviceType>urn:plex-tv:device:Media:1</deviceType>
        <friendlyName>VBox Plex</friendlyName>
        <manufacturer></manufacturer>
        <manufacturerURL></manufacturerURL>
        <modelDescription> Live TV Media Server</modelDescription>
        <modelName> Live TV Gateway</modelName>
        <modelURL></modelURL>
        <modelNumber>1.0</modelNumber>
        <serialNumber>0001646644E02</serialNumber>
        <UDN>uuid:b7531642-0123-3210-aaaa-001646644E02</UDN>
        <presentationURL>/vbox.html</presentationURL>
        <serviceList>
          <service>
            <serviceType>urn:plex-tv:service:MediaGrabber:1</serviceType>
            <serviceId>urn:plex-tv:serviceId:MediaGrabber</serviceId>
            <URLBase>http://192.168.1.194:55555</URLBase>
          </service>
        </serviceList>
      </device>
    </deviceList>
  </device>
</root>

User avatar
paulh
Developer
Posts: 645
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by paulh » Wed Dec 02, 2020 7:38 pm

How strange :!: That kind off looks like a bug or oversight in the VBox firmware. If you compare it to mine many of the references to VBox are missing. For example the friendlyName in previous firmwares was 'VBox TV Gateway (xxxxx)' but yours is ' TV Gateway (xxxxx)' (notice the space before TV it's like it tried to prepend the VBox part but somehow failed). We look for the reference to VBox so we know for sure we have found a VBox and not some other 'urn:schemas-upnp-org:device:MediaServer:1 type of device.

We'll have to change the way we identify a VBox while doing the uPnP search.

This is what my DeviceDescription.xml file looks like.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:dlna="urn:schemas-dlna-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <device>
    <deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>
    <friendlyName>VBox TV Gateway (vbox_freeview)</friendlyName>
    <manufacturer>VBox</manufacturer>
    <manufacturerURL>http://www.vboxcomm.com/</manufacturerURL>
    <modelDescription>VBox Live TV Media Server</modelDescription>
    <modelName>VBox Live TV Gateway</modelName>
    <modelURL>http://www.vboxcomm.com/</modelURL>
    <modelNumber>1.0</modelNumber>
    <serialNumber>0001640643718</serialNumber>
    <UDN>uuid:b7531642-0123-3210-bbbb-001640643718</UDN>
    <presentationURL>/vbox.html</presentationURL>
    <dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.50</dlna:X_DLNADOC>
    <iconList>
      <icon>
        <mimetype>image/jpg</mimetype>
        <width>48</width>
        <height>48</height>
        <depth>24</depth>
        <url>/images/upnpLogo-48x48.jpg</url>
      </icon>
      <icon>
        <mimetype>image/jpg</mimetype>
        <width>120</width>
        <height>120</height>
        <depth>24</depth>
        <url>/images/upnpLogo-120x120.jpg</url>
      </icon>
      <icon>
        <mimetype>image/png</mimetype>
        <width>48</width>
        <height>48</height>
        <depth>24</depth>
        <url>/images/upnpLogo-48x48.png</url>
      </icon>
      <icon>
        <mimetype>image/png</mimetype>
        <width>120</width>
        <height>120</height>
        <depth>24</depth>
        <url>/images/upnpLogo-120x120.png</url>
      </icon>
    </iconList>
    <serviceList>
      <service>
        <serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType>
        <serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId>
        <SCPDURL>/ContentDirectory/b7531642-0123-3210-bbbb-001640643718/scpd.xml</SCPDURL>
        <controlURL>/ContentDirectory/b7531642-0123-3210-bbbb-001640643718/control.xml</controlURL>
        <eventSubURL>/ContentDirectory/b7531642-0123-3210-bbbb-001640643718/event.xml</eventSubURL>
      </service>
      <service>
        <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
        <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
        <SCPDURL>/ConnectionManager/b7531642-0123-3210-bbbb-001640643718/scpd.xml</SCPDURL>
        <controlURL>/ConnectionManager/b7531642-0123-3210-bbbb-001640643718/control.xml</controlURL>
        <eventSubURL>/ConnectionManager/b7531642-0123-3210-bbbb-001640643718/event.xml</eventSubURL>
      </service>
    </serviceList>
  </device>

User avatar
kmdewaal
Developer
Posts: 307
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by kmdewaal » Wed Dec 02, 2020 8:29 pm

This are the UUIDs from the boxes of eo29, paulh and then from my own DVB-C/T VBox:

Code: Select all

<UDN>uuid:b7531642-0123-3210-aaaa-001646644E02</UDN>
<UDN>uuid:b7531642-0123-3210-bbbb-001640643718</UDN>
<UDN>uuid:b7531642-0123-3210-bbbb-001640643909</UDN>
Maybe we can identify the VBoxes by the first part of the UUID, e.g. the "b7531642-0123-3210: part?

User avatar
paulh
Developer
Posts: 645
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: Mythtv 0.31 | Ubuntu 18.04 | VBox XTi 3340 Firmware 2.66

Post by paulh » Wed Dec 02, 2020 9:55 pm

Yes that looks like a good option. I have 3 VBox all different models and they all have similar UDN uuid's starting with b7531642-0123-3210.

All my VBoxes are 1st generation though. It would be nice to see if 2nd and 3rd generation boxes follow the same format.

Post Reply