-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v34 DiSEqC switch configuration not possible with webapp #995
Comments
I can fix the code if I understand the issues and there is somebody who can test the changes. I do not have the needed equipment to test this. Possibly all the is required is a fix to the "Open DVB card on demand" setting. Please let me know if you are able to test any fixes to the code that I make. To start, I will need to know the detailed steps you went through until you hit the first problem - what devices you set up, in what order, the parameters you used. I can make code changes or other suggestions as I try to fix the problem. |
Thanks @bennettpeter . I do have the equipment and if there is code that needs to be tested I can try to create a test environment so that I can test the changes without upsetting my primary system. I suspect that it may be more than just a fix to the "Open DVB card on demand" setting, as ticking/unticking this box currently doesn't seem to make any difference to the error (see detailed steps below). Also the old deprecated mythtv-setup provided a facility to specify the "LNB" satellite device connected to each of the ports of the DiSEqC switch (creating the entries in the "diseqc_tree" table in the underlying database - see below), but I couldn't see where this was possible in the new webapp. As you requested, I'll outline below:
The configuration steps I took in the MythTV Setup webapp are:
At this point I had to revert to the deprecated MythTV Backend (mythtv-setup). I deleted the previous Capture Cards and then created new Capture Card instances for this device for each port of the DiSEqC switch. I also created the corresponding Input Connections (as in step 3 above) in the deprecated mythtv-setup, though perhaps(?) this would have been possible via the webapp once the capture card devices had been created. Back in the webapp I can now see the working configuration:
Finally, the corresponding entries in the underlying database tables are:
|
I have a DVB card although I do not have a satellite system. Using latest master on a development system I went through your steps. I do see the message "Warning: This device is already in use". "Open DVB card on demand" is checked by default. When saving I get "Saved Successfully". I do not get "ERROR: Backend Network Failure" and I successfully created 4 capture cards with the same device (In my case /dev/dvb/adapter0/frontend0). The "ERROR: Backend Network Failure" message is a catch-all for any problem saving the entry on the backend. If you can look at the backend log and see if there was an error message when you got the "ERROR: Backend Network Failure", that may tell us where it is going wrong. Possibly this is a bug that has been fixed but the fix has not been included in your MythTV version. Please tell me the exact mythtv version you are using (mythutil --version will show it). |
The system is a fresh (<2 weeks) install of Xubuntu 24.04.1 LTS with all updates applied.
In /var/log/mythtv/mythbackend.log there are lots of entries like this:
However, I can't directly relate these to my actions on the webapp. When I next have access to the machine I'll clear out the Capture Card and Input Connection entries and monitor the logs while I try the configuration again, and post the findings. Just as background, I also have another DVB card (DVB-T2) that's a dual-tuner and appears as /dev/dvb/adapter0 and /dev/dvb/adapter1 and that's straightforward. It's just the DVB-S2 card /dev/dvb/adapter2 that gave the issue in the webapp, and I suspect it'd be ok if the card was connected directly to one satellite LNB, but the problem occurs specifically because it needs to be configured as a multi-port DiSEqC switch - that's the part I had to revert to the deprecated MythTV Backend setup for. |
During Capture Card setup when you select a device from the drop down list, it opens the card to find some information from it, and then displays the "Frontend ID", in my case it shows "Samsung S5H1411 QAM/8VSB Frontend" in the "Frontend ID" on the page. While looking up the information the backend log displays something like this:
If setup could not open the card in your case it would show nothing in the "Frontend ID" and an error message in the log. Does it display the "Frontend Id" for you? However you said you had an error when saving the card. I do not think it needs to open the card at that point, so I suspect something else is wrong during the save process. |
If @nick-reachcomp cannot test this, please can somebody who has appropriate equipment test this for me and let me know the backend error message. |
Apologies for the delay, I've been dealing with a separate display issue on that machine (I had to remove the DVB-S card in order to make physical space for an NVidia graphics card to resolve display issues with the AMD/ATI Radeon onboard graphics when connected to a TV). In any case, today I managed to temporarily re-install the DVB-S card for the purposes of testing for this issue. After deleting the previous /dev/dvb/adapter2/frontend0 Capture Cards (and their corresponding Input Connections) I was able to create multiple Capture Card entries for the /dev/dvb/adapter2/frontend0 device via the MythTV Setup webapp. Further to your previous message, the "Frontend ID" was displayed correctly as "TurboSight TBS 6981 DVB-S/S2", and more generally all "Save" operations completed successfully throughout. However, in order to create the corresponding "Input Connection" entries for each of the DiSEqC Switch ports, and in particular to be able to specify a port number for each input connection, I had to repeat the Satellite Switch & LNB configuration in each of the four corresponding Capture Card entries. Consequently, the SQL queries that I posted previously now return results (see below) that are not consistent with the "clean" table contents that I previously reported after setting things up with the deprecated Myth Backend Setup (mythtv-setup).
Note in the second query that the "ordinal" field doesn't contain the correct port numbers, and the "description" field doesn't contain the correct names ("Astra1", "Hotbird", "Hellas" and "Astra2") as it did when I previously used the deprecated Myth Backend Setup (mythtv-setup). Also, back in the web app when I go into the "Input Connections" section the port numbers that I had assigned as 1, 2, 3 and 4 respectively now show as -1, 0, 1 and 2 respectively. During the time period that I was setting things up, there were no error or warning messages in the /var/log/mythtv/mythbackend.log but only repeated messages along the lines of:
In summary, the setup process in the webapp "appeared" to go through more cleanly but still resulted in strange and incorrect-looking configuration in the database, particularly the diseqc_tree table. If there is some "trick" that I'm missing during the setup procedure it's certainly not obvious to me what I should be doing. |
I do not have any experience with satellite devices so please correct me where I am wrong. I would think that the way to set it up is as follows: if you have added several DVB cards, in Input Connections, add the switch at the bottom of the first DVB device. Give it a suitable name so you can identify it later. Add your LNBs. Then at the bottom of the second DVB card in Input Connections, instead of clicking "New satellite device", click "Connect to existing satellite device" and select the one you already created in the first case. You should see the whole structure of switch and LNBs under the second card. Repeat for the third and fourth card. This way you avoid creating 4 switches and 12 LNBs when you only need 1 switch and 4 LNBs. I don't know why you have to add 4 capture cards when you actually only have one? |
Ideally I'd think there should be one Capture Card instance with one Switch and, in my case, 4 LNBs... then one Input Connection for each LNB (i.e. each leaf node of the diseqc tree). This doesn't happen though and historically, according to the official documentation for the deprecated MythTV Backend Setup, the solution was to have to create multiple capture card instances. If the reason for this was the structure of the underlying database (perhaps?) then presumably something similar has to be done with the webapp, but it's not clear to me how and I can't find any clear official documentation on this. I'm not familiar with that "Connect to existing satellite device" option but it sounds like that could be a key part of the solution. For sure if I'm able to re-instate the DVB-S card on my machine at some point I'll test that and report the results. Thanks for your time and effort on this issue. |
I suspect that the old work-around way of doing things may no longer be necessary with the web app. |
Trying to follow the DiSEqC switch configuration procedure (described in the MythTV wiki Channel_Scanning#DiSEqC_switch_configuration documentation) with MythTV v34, I couldn't achieve this with the Backend webapp and I had to revert to using the deprecated Myth Backend Setup (mythtv-setup).
Ideally in "Capture Cards", when specifying a card as being an n-port DiSEqC switch, each of the ports should be available in the "Input Connections" in order to be associated with a video source. If this requires multiple capture-card entries for the same device (as is currently the case) then it should be possible via the webapp to set these up manually (or they could even be created automatically?).
I managed to complete the DiSEqC switch setup successfully using the deprecated mythtv-setup, but this should not be removed from the distribution until DiSEqC configuration is fully possible via the webapp interface.
More info is provided in the MythTV Official Community Forum where I posted topic #28344:
"v34 DiSEqC switch configuration not possible with webapp"
https://forum.mythtv.org/viewtopic.php?p=28344#p28344
The text was updated successfully, but these errors were encountered: