timelery / Samsung-RemoteControl

Console application to remotely control 2014+ Samsung televisions (Not tested on latest Tizen OS)
73 stars 14 forks source link

Latest Samsung KS8000 model #2

Open KenSperl opened 7 years ago

KenSperl commented 7 years ago

Tried your code on a new Samsung UNKS8000F 55" and getting the following error: Unknown exception occurred during pairing attempt. Please try again. Was hoping you could shed some light on this issue. We would be interested in working with you to help us create a working command line app for our office automation.

thanks!

Full dump of console:

Discovery started... Model 2014 Samsung TV found. UPnP connection extablished with TV - uuid: [redacted] DeviceConnected added TV: http://[redacted]:54023/ No previously paired TV found. uPnP device count after device discovery: 1 uPnP device found?: True Select the TV you want to connect to from the list below. 1.[TV] Marketing suite 1 Selected TV: [TV] Marketing suite Connecting to selected TV now Connect started... Error establishing connection with previously paired TV. Select the TV you want to connect to from the list below. 1.[TV] Marketing suite 1 Selected TV: [TV] Marketing suite Connecting to selected TV now Connect started... Enter PIN from TV within 30 seconds. 3997 InitSPCContext stdout pPWd : 3997 CleintHello's Hash Value same InitTargetDevice - started... InitTargetDevice - Created Tv device. Unknown exception occurred during pairing attempt. Please try again. Select the TV you want to connect to from the list below. 1.[TV] Marketing suite 1 Selected TV: [TV] Marketing suite Connecting to selected TV now Connect started... deviceController.Connect call complete Enter PIN from TV within 30 seconds. 9995 InitSPCContext stdout pPWd : 9995 CleintHello's Hash Value same InitTargetDevice - started... InitTargetDevice - Created Tv device. Unknown exception occurred during pairing attempt. Please try again. Select the TV you want to connect to from the list below. 1.[TV] Marketing suite 1 Selected TV: [TV] Marketing suite Connecting to selected TV now Connect started... deviceController.Connect call complete Enter PIN from TV within 30 seconds. 6566 InitSPCContext stdout pPWd : 6566 CleintHello's Hash Value same InitTargetDevice - started... InitTargetDevice - Created Tv device. Unknown exception occurred during pairing attempt. Please try again. Select the TV you want to connect to from the list below. 1.[TV] Marketing suite 1 Selected TV: [TV] Marketing suite Connecting to selected TV now Connect started... deviceController.Connect call complete Enter PIN from TV within 30 seconds. 2523 InitSPCContext stdout pPWd : 2523 CleintHello's Hash Value same InitTargetDevice - started... InitTargetDevice - Created Tv device. Unknown exception occurred during pairing attempt. Please try again. Select the TV you want to connect to from the list below. 1.[TV] Marketing suite

buergi commented 7 years ago

Exactly the same problem for my UE55KS8090.

KenSperl commented 7 years ago

Buergi, Any interest in helping us provide a bounty for this problem? Ken

jessiewestlake commented 7 years ago

I was having this exact same problem with a newer (2016) Samsung 65in Curved Smart TV (UN65KS8500). Well, I was having a worse problem at first, but once I fixed that, I ran into your problem.

In order to find out what the actual error is (instead of Unknown error), go to Line 448 of Project.cs. Either replace, or place after, the line Console.WriteLine("Unknown exception occurred during pairing attempt. Please try again.");
with
Console.WriteLine(exception2.Message);

If that doesn't give enough information, add the line below as well. Console.WriteLine(exception2.StackTrace);

That will report the real error, rather than the obfuscated message about an "Unknown Error". Figuring the root cause from there is up to you. I got interrupted before I finished figuring mine out. Hope this helps! I'll try to write back when I figure out the exact solution to the root cause of my problem, but they could be different than yours.

adamscybot commented 7 years ago

Anyone manage to find out whats up here?

Masurov commented 6 years ago

Same issue as jessiewestlake with the exact same material.

The exception occurs in the CreateTvDevice method :

SecondTv secondTv = new SecondTv(secondTvSyncTransport, deviceInfo.LocalAddress); SecondTvRemoteInput secondTvRemoteInput = new SecondTvRemoteInput(secondTvAsyncTransport, deviceInfo.LocalAddress); secondTvRemoteInput.Connect(secondTvSyncTransport); //Timeout exception here

exception message :

Timeout in SecondTV Transport

the exception stack trace :

à Networking.Native.SecondTvSyncTransport.SendRequest(Object message) à SmartView2.Devices.SecondTvRemoteInput.Connect(ISecondTvTransport connectTransport) à SmartTVRemoteControl.DeviceFactory.CreateTvDevice(DeviceInfo deviceInfo, IPlayerNotificationProvider playerNotification, IBaseDispatcher dispatcher, ISecondTvSecurityProvider securityProvider) dans C:\Users\V\AppData\Local\Temp\Samsung-RemoteControl-master\SmartTVRemoteControl\DeviceFactory.cs:ligne 67

I don't understand what those multiple connection are and should be done to. No clue what we are trying to do here because those samsung objects are not documented anywhere.