newAM / hisensetv

Python API to control Hisense brand TVs via their internal MQTT broker.
MIT License
37 stars 16 forks source link

Cannot connect to 55A6H #26

Open rahulraj80 opened 1 year ago

rahulraj80 commented 1 year ago

Hi!

I have been using an app to control my TV over wifi (https://play.google.com/store/apps/details?id=sensustech.universal.tv.remote.control) but I was looking to make something of my own.

I thought this repository would be the holy grail, but I am unable to connect to the device over WiFi. When I run nmap, I don't see the 36669 as an open port. There are quite a few open ports. Attaching a report of the port scan. Hisense_UDP_TCP.zip

All attempts fail with this error:

ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

I have also tried connecting to it by using the certificate/key shared on another repository to no avail through MQTT Explorer, but it is unable to connect to the device as well.

Any help or guidance on how I can control my TV using my laptop would be greatly appreciated! 🙏

rahulraj80 commented 1 year ago

Sharing the packet capture - hoping it will help. 192.168.3.13 is the TV IP. I am not sure why the source shows up as 10.1.10.1 - it should have been 192.168.3.12

Maybe it is because I used a VPN on the mobile device to capture the packets. selected_packets_duplex.zip

rahulraj80 commented 1 year ago

@newAM : Sorry for the tag - but could you share who can guide me a bit on this?

newAM commented 1 year ago

I'll take a look in a week or so, I'm away from my computer at the moment :)

newAM commented 1 year ago

The TV looks like it is on port 6466, which is the first time I have seen that.

There's not much else I can see from the packet capture because it is doing a TLS handshake - it might not be running MQTT on your model since they put it on a different port? You could try a TLS intercepting proxy to see what it is doing after the TLS handshake, but it is tedious to set that up.