roberodin/ha-samsungtv-custom

JU6075 not recognized

Opened this issue · 3 comments

/api/v2/ works on 8001 and https 8002

The Samsung Smartview_Frame app works fine. Been doing tcpdump of traffic between phone and TV. Uses UDP and TCP - Lots of DLNA is looks like. port 9000 on phone looks like uPnP webserver.
Some /ws/pairing/ taking place on port 8080 of TV.

Have full PCAP including pin pairing if it can help.

{
  "id": "uuid:a68c6452-...-c07771b475c4",
  "name": "[TV] UE65JU6075",
  "version": "2.0.25",
  "device": {
    "type": "Samsung SmartTV",
    "duid": "uuid:a68c6452-...-c07771b475c4",
    "model": "15_HAWKM_UHD_2D_BASIC",
    "modelName": "UE65JU6000",
    "description": "Samsung DTV RCR",
    "networkType": "wired",
    "ssid": "",
    "ip": "192.168.1.153",
    "firmwareVersion": "Unknown",
    "name": "[TV] UE65JU6075",
    "id": "uuid:a68c6452-...-c07771b475c4",
    "udn": "uuid:a68c6452-...-c07771b475c4",
    "resolution": "1920x1080",
    "countryCode": "DK",
    "msfVersion": "2.0.25",
    "smartHubAgreement": "true",
    "wifiMac": "fc:8...89:b1",
    "developerMode": "0",
    "developerIP": ""
  },
  "type": "Samsung SmartTV",
  "uri": "http://192.168.1.153:8001/api/v2/"
}

And I have these open ports:

PORT      STATE SERVICE
7236/tcp  open  display
7237/tcp  open  pads
7676/tcp  open  imqbrokerd
7677/tcp  open  sun-user-https
7678/tcp  open  unknown
8000/tcp  open  http-alt
8001/tcp  open  vcom-tunnel
8002/tcp  open  teradataordbms
8080/tcp  open  http-proxy
8187/tcp  open  unknown
9090/tcp  open  zeus-admin
9197/tcp  open  unknown
9999/tcp  open  abyss
15500/tcp open  unknown

More update, I have some websocket comms on 8000 - should I use port 8000 in config ?:
This seems to be keypresses

GET /socket.io/1/websocket/VNItgjf2qjs9vBfAAskp HTTP/1.1
Host: 192.168.1.153:8000
Sec-WebSocket-Key: NASf7CINERHQnOHMKCFLTw==
Sec-WebSocket-Version: 13
Upgrade: websocket
Origin: http://192.168.1.153:8000
Authorization: Basic KG51bGwpOihudWxsKQ==
Connection: Upgrade
...
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: HpTJ98DRZnmd7pY+5FYujqSlS3k=
....
Øy9ÛüÕ±EPkÍ@@I[À¨À¨@Üd=&HCz:7³
[ë~5::/com.samsung.companion:{"name":"receiveCommon","args":"[24,222,19,14,103,111,0,23,63,251,89,174,205,230,133,20,174,99,11,162,18,235,49,198,194,102,236,71,18,229,97,233,249,155,26,31,15,186,6,131,248,88,128,70,81,19,110,108,129,163,165,28,40,0,71,72,185,95,233,151,88,3,2,209]"}

More info. This .NET code works on Windows, and gets the 4 digit code etc
https://github.com/timelery/Samsung-RemoteControl

samsungctl does not work.

I've wrote a custom component to support H and J models, your TV uses pin mode correct? If possible try this: https://github.com/arturleao/samsungtv_custom