python-broadlink icon indicating copy to clipboard operation
python-broadlink copied to clipboard

how to decode the protocol?

Open xhan opened this issue 8 years ago • 6 comments

I currently working on another WIFI-based Air Condition.
And the official's app which to control it is using an encrypted http protocol.

broadlink using it's own encrypted protocol too. can you share some resources or tutorials on how to decode protocol?

xhan avatar May 22 '17 12:05 xhan

which Air condition that you are working on, I have bought the AUX air condition, it use the broadlink_OEM , be able to use the lib to show the deivce. but it says unknow type. will share more informaton, once get home. ,hope we can work together to get the broadlink_oem based air condition work as well.

syu-lk4b avatar Jun 01 '17 05:06 syu-lk4b

sample for Samurai) https://github.com/merlokk/BlackBeanControl/blob/master/nec.py

merlokk avatar Aug 19 '17 13:08 merlokk

You have to reverse-engineer the official app to get the encryption key. And use a packet sniffer like Wireshark and specify the decryption method and keys in order to decrypt the packet.

In my opinion, it is not easy as you think. Reverse-engineering really requires you understand the programming language/Assembly very much.

a1aw avatar Aug 19 '17 17:08 a1aw

Have you tried decompiling the Java code in the APK? It is possible that everything is in Java. Even if most code is in a native .so library you may still quickly learn something from the Java code.

ptd006 avatar Nov 08 '17 15:11 ptd006

Dont needs. here https://github.com/mjg59/python-broadlink/blob/master/broadlink/init.py#L143

merlokk avatar Nov 08 '17 15:11 merlokk

@merlokk OP is looking at a different, non-broadlink device (from my reading of the post)

ptd006 avatar Nov 08 '17 15:11 ptd006