r45635 / HVAC-IR-Control

Ir Send - Updated for HVAC Mitsubishi & Panasonic IR
GNU General Public License v3.0
246 stars 89 forks source link

Reverse engineering code from Zigbee2MQTT #40

Open rkpatel33 opened 1 month ago

rkpatel33 commented 1 month ago

I was hoping to get some help getting pointed in the right direction on a personal project. I have some Mitsubishi wall units in my apartment that i think use the the protocol discussed here.

https://www.analysir.com/blog/2015/01/06/reverse-engineering-mitsubishi-ac-infrared-protocol/

I am planning to use Zigbee2MQTT connected to a Zigbee IR universal remote to control each unit. I tried to use your Broadlink code long ago and it seems to work, and today I tried to strip it down to generate the IR code that Zigbee2MQTT expects so I could then transmit it using my MQTT broker.

This is an example of the code, which seems to be a base 64 encoded string.

BwMNlwakAQUFgAPgAwEDBQWkAcABAQUFgANAAQMFBaQBwAEBBQWAA0ABAQUFgAPAAQMFBaQBwAEDBQWkAeBHAQMFBaQB4AsBAQUFgAPgBwEBBQWAA0ABAwUFpAHgBwEBBQWAA+AXAQEFBYADQAEDBQWkAeAjAQTrAWMBpOAmAQLrAaTgeAEDBQWkAeALAQEFBYADAY8s4hlHQMcBBQWAA0ABAwUFpAHAAQEFBYADQAEBBQWAA8ABAwUFpAHAAQMFBaQB4BsBQGvgBwHgARMBYwGAC0AHBWMBBQVjAUAHAKRgAeABBwEFBUADBaQBpAFjAUAfQANACwEFBUADA6QBpAFABwFjAUAXQANAD0AHAQUFgANAC+ADA8AfwBMBBQWAA0APAwUFYwFAB+APA+AHO0An4AsTQBfgBQMApCAB4AET4AMLAesB4BED4B8n4AND4Asz4AcTAwUFYwHgAzPACwcFBWMBBQVjAQ==

I tried to convert this back all the way to binary to compare to your protocol diagram as a reality check, but I get what appears to be garbage. I think this is bc I am misinterpreting what this string is.

Do you know if this actually just base64 encoded binary string, and if so the proper way to get back to the protocol frames in your blog post?

Any help appreciated, thanks.