kdschlosser / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
156 stars 33 forks source link

Samsung Tizen&UPnP MainTVServer #105

Open marius1968 opened 5 years ago

marius1968 commented 5 years ago

Starting with J class, Samsung is no longer displaying the urn service: samsung.com: serviceId: MainTVAgent2 which was very useful to get the channel list with GetChannelListURL action. However, Samsung's latest application (Smarthings, see Google Play) seems to have access to this service and more than it can return an answer when the user changes the channel from the remote. Do you have any idea how to get access to this service?

Regards, Marius

kdschlosser commented 5 years ago

it is not using upnp to achieve this. It is being done over an encrypted websocket connection.

Unfortunately there is limited information on what can be sent over the connection. If you set your TV into developer mode and access the logs on the TV that would tell us what is happening. I do not know how to do that for a 2015 TV. I only know how to go about it in 2016+

this link may provide instruction on getting developer mode on your TV working.

https://developer.samsung.com/forum/thread/enable-device-mode/201/303609?boardName=SDK&listLines=20&startId=zzzzz~&startPage=12&curPage=14

once you get that going let me know. you are not going to need to install the SDK or any of that stuff. we just need developer mode turned on. make nor that when it asks you to enter an IP address. enter one that is going to be on the same network as the TV is currently. and also make sure the IP is unique and not the same as the TV (I know that sounds goofy even tho it is the TV.)

we are going to need that IP to be able to get to the logs.

marius1968 commented 5 years ago

Thanks for the info, I'll try to connect to the TV as you said. Meanwhile, do you think it can help us access Smart Things source code? (see below) It is interesting to analyze the sources \ com \ sec \ android \ allshare \ iface \ messageAllShareAction.java

https://we.tl/t-Qop0x3kt3U

kdschlosser commented 5 years ago

the problem with that set of sources. is it really isn't source code. all of the things we would need are already compiled into .so files.