-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[samsungtv] Not all services found, some channels not available #7406
Comments
What is interesting too is these errors:
As your alternative way to request this URL shows, the server (TV) returns a 401 error (Unauthorised). So either this response is missing the expected WWW-Authenticate header or Jetty HTTP client is failing to parse it.
In JUPnP library, I don't see what we could do better with that. At least, the library is detecting the problem. |
But I understand that you got this 401 response only sometimes and not always ? |
In case the GET request to retrieve the device description succeeds after a certain time, we could avoid in the JUPnP library to ignore such requests during 10 minutes after a first failure. |
Thanks for your quick reply. I played around with this a bit more and I think, that there is some timing issue involved. I can access the services via the browser, but sometimes got an error code 401. When I repeated the same request by a reload, it worked. I think, if it would be possible to simply retry to retrieve the service information in case of an error code 401, things would work for my case. Basically the Samsung implementation is probably buggy. But then it also seems, that other UPNP clients seem to be a bit forgiving, when it comes to protocol violations. |
@martin5233 - can you try this JAR? https://drive.google.com/file/d/1fG2pukbBj5z7XujGfRZ9a8O4_mVNh9CK/view?usp=sharing - it's a build from #11487 I suspect your issue might be a duplicate of #7055, at least the part about services not working after turning the TV off and on again. |
@jlaur I have tried this out, and it seems, that now everything is working as it should. I turned the TV off and on again multiple times and each time the online status changed immediately as expected. Also the previously missing services 'RemoteControlReceiver' and 'MainTVServer2' were always detected. Thanks a lot for improving the addon! |
@martin5233 - thanks for your feedback. I'm glad that it resolved your issues. :-) |
Expected Behavior
The binding should recognize all UPNP services offered by the TV set (UE32ES6300) and therefore should provide access to all supported channels like current channel, source etc.
Current Behavior
Instead only the MediaRenderer service is recognized, which provides access to channels, such as brightness, color etc. The other two services RemoteControlReceiver and MainTVServer2 are not recognized and therefore the channels for the current program, source etc. are missing. I have verified the existence of the other services using other programs like gupnp-universal-cp.
I managed to get all services once after adding the missing MAC address. However after turning the TV off and on again, they were not recognized anymore.
I have attached three log files:
Possible Solution
In the log file with jupnp debug info enabled I found two suspicious messages:
Device descriptor retrieval failed, no response: http://192.168.1.20:7676/smp_2_
and
I suspect, that the jupnp subsystem has a bug, which causes these messages. When trying out to access the services with gupnp-universal-cp, I also got similar messages:
``** (gupnp-universal-cp:32241): WARNING **: 07:03:04.802: Failed to GET http://192.168.1.20:7676/smp_2_: Unauthorised, retrying in 5 seconds
but the services were still displayed.
Your Environment
Debian Buster running on a Cubietruck
Samsung TV is connected via WiFi
The text was updated successfully, but these errors were encountered: