Samsung Smart TV Plus

Questions and comments specific to a particular plugin should go here.
User avatar
kgschlosser
Site Admin
Posts: 4941
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Samsung Smart TV Plus

Post by kgschlosser » Sun Sep 01, 2019 3:55 am

here use this one. This si the gold standard for port scanners. took me a bit to remember which one it was..

https://nmap.org/dist/nmap-7.80-setup.exe

there is no need to enter any kind of information. it's free.
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1318
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Samsung Smart TV Plus

Post by jonib » Sun Sep 01, 2019 4:47 am

Result from NMAP hopefully I used the right options:

Code: Select all

Starting Nmap 7.80 ( https://nmap.org ) at 2019-09-01 06:42 W. Europe Daylight Time
Happy 22nd Birthday to Nmap, may it live to be 122!
NSE: Loaded 151 scripts for scanning.
NSE: Script Pre-scanning.
Initiating NSE at 06:42
Completed NSE at 06:42, 0.00s elapsed
Initiating NSE at 06:42
Completed NSE at 06:42, 0.00s elapsed
Initiating NSE at 06:42
Completed NSE at 06:42, 0.00s elapsed
Initiating ARP Ping Scan at 06:42
Scanning 192.168.1.204 [1 port]
Completed ARP Ping Scan at 06:42, 0.20s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 06:42
Completed Parallel DNS resolution of 1 host. at 06:42, 0.00s elapsed
Initiating UDP Scan at 06:42
Scanning 192.168.1.204 [1 port]
Completed UDP Scan at 06:42, 0.00s elapsed (1 total ports)
Initiating Service scan at 06:42
Initiating OS detection (try #1) against 192.168.1.204
Retrying OS detection (try #2) against 192.168.1.204
NSE: Script scanning 192.168.1.204.
Initiating NSE at 06:43
Completed NSE at 06:43, 0.00s elapsed
Initiating NSE at 06:43
Completed NSE at 06:43, 0.00s elapsed
Initiating NSE at 06:43
Completed NSE at 06:43, 0.00s elapsed
Nmap scan report for 192.168.1.204
Host is up (0.0015s latency).


PORT      STATE  SERVICE VERSION
55000/udp closed unknown
MAC Address: 00:12:FB:21:39:F5 (Samsung Electronics)
Too many fingerprints match this host to give specific OS details
Network Distance: 1 hop

TRACEROUTE
HOP RTT     ADDRESS
1   1.46 ms 192.168.1.204

NSE: Script Post-scanning.
Initiating NSE at 06:43
Completed NSE at 06:43, 0.00s elapsed
Initiating NSE at 06:43
Completed NSE at 06:43, 0.00s elapsed
Initiating NSE at 06:43
Completed NSE at 06:43, 0.00s elapsed
Read data files from: D:\Program\Network\Nmap
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 3.60 seconds
           Raw packets sent: 17 (2.708KB) | Rcvd: 15 (1.428KB)
jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
kgschlosser
Site Admin
Posts: 4941
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Samsung Smart TV Plus

Post by kgschlosser » Sun Sep 01, 2019 8:36 am

55000/udp

small issue. needs to be TCP.
scan the IP for all ports. TCP
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1318
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Samsung Smart TV Plus

Post by jonib » Sun Sep 01, 2019 2:13 pm

kgschlosser wrote:
Sun Sep 01, 2019 8:36 am
55000/udp

small issue. needs to be TCP.
Hmm, I thought I did scan both TCP and UDP, and both ware closed, I'll try again later after I eat.
scan the IP for all ports. TCP
Why all ports? isn't 55000 enough?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

jonib
Plugin Developer
Posts: 1318
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Samsung Smart TV Plus

Post by jonib » Sun Sep 01, 2019 4:29 pm

Port 55000/tcp

Code: Select all

Starting Nmap 7.80 ( https://nmap.org ) at 2019-09-01 18:27 W. Europe Daylight Time
Happy 22nd Birthday to Nmap, may it live to be 122!
NSE: Loaded 151 scripts for scanning.
NSE: Script Pre-scanning.
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Initiating ARP Ping Scan at 18:27
Scanning 192.168.1.204 [1 port]
Completed ARP Ping Scan at 18:27, 0.20s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 18:27
Completed Parallel DNS resolution of 1 host. at 18:27, 0.00s elapsed
Initiating SYN Stealth Scan at 18:27
Scanning 192.168.1.204 [1 port]
Completed SYN Stealth Scan at 18:27, 0.00s elapsed (1 total ports)
Initiating Service scan at 18:27
Initiating OS detection (try #1) against 192.168.1.204
Retrying OS detection (try #2) against 192.168.1.204
NSE: Script scanning 192.168.1.204.
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Nmap scan report for 192.168.1.204
Host is up (0.0019s latency).

PORT      STATE  SERVICE VERSION
55000/tcp closed unknown
MAC Address: 00:12:FB:21:39:F5 (Samsung Electronics)
Too many fingerprints match this host to give specific OS details
Network Distance: 1 hop

TRACEROUTE
HOP RTT     ADDRESS
1   1.90 ms 192.168.1.204

NSE: Script Post-scanning.
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Initiating NSE at 18:27
Completed NSE at 18:27, 0.00s elapsed
Read data files from: D:\Program\Network\Nmap
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 4.33 seconds
           Raw packets sent: 14 (1.740KB) | Rcvd: 14 (1.672KB)
All ports

Code: Select all

Starting Nmap 7.80 ( https://nmap.org ) at 2019-09-01 18:30 W. Europe Daylight Time
Happy 22nd Birthday to Nmap, may it live to be 122!
NSE: Loaded 151 scripts for scanning.
NSE: Script Pre-scanning.
Initiating NSE at 18:30
Completed NSE at 18:30, 0.00s elapsed
Initiating NSE at 18:30
Completed NSE at 18:30, 0.00s elapsed
Initiating NSE at 18:30
Completed NSE at 18:30, 0.00s elapsed
Initiating ARP Ping Scan at 18:30
Scanning 192.168.1.204 [1 port]
Completed ARP Ping Scan at 18:30, 0.21s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 18:30
Completed Parallel DNS resolution of 1 host. at 18:30, 0.00s elapsed
Initiating SYN Stealth Scan at 18:30
Scanning 192.168.1.204 [65535 ports]
Discovered open port 52396/tcp on 192.168.1.204
Completed SYN Stealth Scan at 18:30, 6.33s elapsed (65535 total ports)
Initiating Service scan at 18:30
Scanning 1 service on 192.168.1.204
Completed Service scan at 18:30, 11.02s elapsed (1 service on 1 host)
Initiating OS detection (try #1) against 192.168.1.204
NSE: Script scanning 192.168.1.204.
Initiating NSE at 18:30
Completed NSE at 18:30, 1.55s elapsed
Initiating NSE at 18:30
Completed NSE at 18:30, 0.03s elapsed
Initiating NSE at 18:30
Completed NSE at 18:30, 0.00s elapsed
Nmap scan report for 192.168.1.204
Host is up (0.0013s latency).
Not shown: 65534 closed ports
PORT      STATE SERVICE VERSION
52396/tcp open  http    DMRND httpd 0.5 (Samsung HT-C5200 entertainment system)
|_http-server-header: DMRND/0.5
|_http-title: Site doesn't have a title.
MAC Address: 00:12:FB:21:39:F5 (Samsung Electronics)
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:linux_kernel:2.6
OS details: Linux 2.6.9 - 2.6.30
Uptime guess: 0.076 days (since Sun Sep 01 16:40:48 2019)
Network Distance: 1 hop
TCP Sequence Prediction: Difficulty=207 (Good luck!)
IP ID Sequence Generation: All zeros
Service Info: Device: media device; CPE: cpe:/h:samsung:ht-c5200

TRACEROUTE
HOP RTT     ADDRESS
1   1.33 ms 192.168.1.204

NSE: Script Post-scanning.
Initiating NSE at 18:30
Completed NSE at 18:30, 0.00s elapsed
Initiating NSE at 18:30
Completed NSE at 18:30, 0.00s elapsed
Initiating NSE at 18:30
Completed NSE at 18:30, 0.00s elapsed
Read data files from: D:\Program\Network\Nmap
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 22.43 seconds
           Raw packets sent: 65555 (2.885MB) | Rcvd: 65553 (2.623MB)
jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
kgschlosser
Site Admin
Posts: 4941
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Samsung Smart TV Plus

Post by kgschlosser » Sun Sep 01, 2019 9:05 pm

well the reason why i wanted you to do all ports is just because port 55000 may be closed and typical "TCP" remote control is not available doesn't mean you are SOL (Shit Out of Luck). The older the Samsung TV the better the UPNP support. and that's the cool thing is that all of the "Events" come from the UPNP side of things. I have done a lot of work expanding the python library samsungctl. You can give it a try if you like I have it on GitHub you will need to use the develop branch. I have not done any work in it in the last few months. I have been super busy with life. I expanded it to support UPNP as well. the original library supported TV's that either used the legacy (port 55000) and the standard websocket TV's. This library supports ALL Samsung TV's that have a network jack and/or a WiFi card. I may need to tweak it a bit in order to get it to run without using the legacy connection. I never thought about making the library able to work in that way But it would appear that there is a need.

If you want to see what UPNP functions are available you can also use my UPNP Device library. also on GitHub.
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1318
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Samsung Smart TV Plus

Post by jonib » Sun Sep 01, 2019 9:53 pm

So will it work with my TV? looks like 52396/tcp is open.

I will definitely check out your UPnP stuff when I finally start to work on my Kodi plugin.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

brentk
Posts: 5
Joined: Sun Sep 22, 2019 4:16 am

Re: Samsung Smart TV Plus

Post by brentk » Sun Sep 22, 2019 4:23 am

Hi,
New EG user here. I am trying to use this plugin to communicate with a 2018 model Samsung TV. When I add the plugin, I receive a messag in the log saying "Reading Config" but nothing further happens. No popup on TV or computer. I do see that the file %APPDATA%\EventGhost\config.py does contain "Dummy" information for the TV - but this is not valid for my TV.
Can anybody please provide any pointers on how to troubleshoot this? Logs to look for etc. Tried the basics - disable firewall, etc. Can ping the TV and also access it from Home Assistant plugin.
Thanks.

rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: Samsung Smart TV Plus

Post by rdgerken » Sun Sep 22, 2019 5:16 pm

Can someone please re-post the last version of this plugin?

I think I'm looking for something in the "SamsungSmartTVPlus-0.4.1b.egplugin" range? Someone else posted a copy but it was a very early copy and is not working for me.

TIA

brentk
Posts: 5
Joined: Sun Sep 22, 2019 4:16 am

Re: Samsung Smart TV Plus

Post by brentk » Mon Sep 23, 2019 6:43 am

Ah - that's probably my issue. I'm using the version which was posted a couple of pages back which looks like a very old version.

User avatar
kgschlosser
Site Admin
Posts: 4941
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Samsung Smart TV Plus

Post by kgschlosser » Tue Sep 24, 2019 9:14 am

2018 TV all depends on the firmware and if your TV is using SSL websockets or not. If it is using SSL websockets then you are going to have to wait a bit longer. I need to finish up the library but i need to have access to a new TV to hammer out the last few things. and This I have not gotten my hands on yet. My neighbor has a frameTV but I do not think he is going to want to part with it while i reverse engineer the API on the thing. and I really hate Samsung as a company so I am not willing to go out and spend the money on a new TV just to get the software running.

If someone was willing to set up a VPN and allow me access to the network to test against their TV I would be more then willing to continue my work. I had to many people that use Home Assistant nagging the crap out of me about getting the thing working so I finally walked away from it for a while. Now that there seems to be more interest in it here I am willing to continue the work. But I need access to a TV.
If you like the work I have been doing then feel free to Image

brentk
Posts: 5
Joined: Sun Sep 22, 2019 4:16 am

Re: Samsung Smart TV Plus

Post by brentk » Thu Sep 26, 2019 5:58 am

I could probably set up a Wireguard VPN to give you access to the TV if you need (that's the only way I've been able to get a VPN working as I am behind CGNAT). Going to be away for work for the next few days but will be back towards the end of next week. I had also tried getting access from home assistant (new user) to the TV with partial success, but thought I would also try this method as I am more familiar with Windows and my Media PC runs Win10.
More than happy to help with testing where you need.

brentk
Posts: 5
Joined: Sun Sep 22, 2019 4:16 am

Re: Samsung Smart TV Plus

Post by brentk » Fri Sep 27, 2019 4:22 am

@kgs
kgschlosser wrote:
Tue Sep 24, 2019 9:14 am
2018 TV all depends on the firmware and if your TV is using SSL websockets or not. If it is using SSL websockets then you are going to have to wait a bit longer. I need to finish up the library but i need to have access to a new TV to hammer out the last few things. and This I have not gotten my hands on yet. My neighbor has a frameTV but I do not think he is going to want to part with it while i reverse engineer the API on the thing. and I really hate Samsung as a company so I am not willing to go out and spend the money on a new TV just to get the software running.

If someone was willing to set up a VPN and allow me access to the network to test against their TV I would be more then willing to continue my work. I had to many people that use Home Assistant nagging the crap out of me about getting the thing working so I finally walked away from it for a while. Now that there seems to be more interest in it here I am willing to continue the work. But I need access to a TV.
I'd be happy to let you access my TV via my WireGuard VPN if you need. I'm away for work until late next week, so could probably only set it up then.
I was also looking at getting the TV connected to Home Assistant and have had "partial" success with that. Since my Media PC which is connected to the TV is running Windows 10 (and I'm a lot more familiar with Windows), I also thought I'd try get it working with Event Ghost.

User avatar
kgschlosser
Site Admin
Posts: 4941
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Samsung Smart TV Plus

Post by kgschlosser » Sat Sep 28, 2019 3:40 am

well I am the guy that was working on the backend that HASS is/was going to use to connect to the TV's. It's the same backend that I am going to use for EG. I may or may not make the backend public. I will compile the whole thing using Cython so the code cannot be viewed.

The issue is HASS is to much of a pain in the ass to do anything with and No one that knows how to add things to HASS wants to help out. So it is pretty much stuck in limbo. And HASS has so much voodoo code in it getting a line on where a problem is is almost impossible to do. The people that want to help out do not know a thing about python and only know HASS which doesn't help. so I walked away from it for a bit because I was getting really annoyed with it. EG is more of a true python environment so if it works as a python library it IS going to work as a plugin as well.
If you like the work I have been doing then feel free to Image

SimonB
Posts: 23
Joined: Mon Jul 29, 2019 2:04 pm

Re: Samsung Smart TV Plus

Post by SimonB » Thu Oct 03, 2019 1:21 pm

Can I second rdgerken's request for an up-to-date link to a download for the plugin?

I've been through the thread and none of the links work any more.

Last part of my media setup would be to have proper control of the TV. I'm happy to test stuff out too Kevin. To be honest I can't remember when I bought my TV but if I can feed back useful stuff I will.

Post Reply