Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IR Code to send to Daikin Air Conditionator #32

Open
alexartd opened this issue Dec 28, 2024 · 0 comments
Open

IR Code to send to Daikin Air Conditionator #32

alexartd opened this issue Dec 28, 2024 · 0 comments

Comments

@alexartd
Copy link

Hello, I've used python version to learn daikin code that were saved into files. For example to turn off daikin I found this code:

260050020a0d0f0e0e0e0d0f0f0d0e00034171370f2a0d0f0e0e0f0d0e2b0e0e0e0e0e0e0f0e0e2a0f0d0f2a0d2b0f0e0d2b0f290e2b0e2a0f2a0e0e0f0d0f2a0e0e0f0d0e0f0e0e0d0f0f0d0f0e0e0e0e0e0f0d0f2a0e0e0e2a0e0f0e0e0e0e0f2a0e2a0e0e0f0e0e0e0d0f0f0d0e0f0e0e0e0e0e0e0e0f0e0e0e0e0f0d0f0e0e0e0e0e0e2a0f2a0e2a0e0f0e2a0f0d0f2a0d2b0f00047471380e2a0f0e0e0e0e0e0f2a0e0e0e0e0f0d0f0e0e2a0f0d0f2a0e2a0f0e0e2a0e2a0f2a0e2a0f2a0e0e0f0d0f2a0d0f0f0d0f0e0e0e0e0e0e0e0f0e0e0e0d0f0e0e0f0d0f2a0e0e0f0d0f0e0d0f0e2a0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f2a0e0e0e0e0e2b0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f2a0e2a0f0e0e2a0e2a0f0e0e2a0f00047471380e2a0f0e0e0e0d0f0e2a0f0e0d0f0e0e0f0e0e2a0e0e0f2a0e2a0f0d0f2a0e2a0f2a0e2a0f2a0e0e0e0e0f2a0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0d0f0e0e0e0e0f0e0e0e0d0f0e0e0f0e0e0e0e2a0f2a0e2a0f0d0f0e0e0e0e0e0f2a0d0f0e2a0f2a0e0e0e0e0f0e0e0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f2a0d2b0f0d0f2a0e0e0e0e0f0e0e0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0e0f0e0e0e2a0f2a0e0e0f0d0f0e0e0e0e0e0e0e0f0d0f0e0d0f0e0e0f2a0e2a0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0e0e0f0e0e0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e2a0f2a0e0e0e0e0f0d0f0e0e0e0e0e0e0e0f0e0d0f0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f0e0e2a0f0d0f2a0e0e0e000d050000000000000000

I've created into class RM2Device of broadlink-java-api, following method:

public boolean sendIRCommand(byte[] cmd) throws IOException {
    SendDataCmdPayload cmdPayload = new SendDataCmdPayload(cmd);
	DatagramPacket packet = sendCmdPkt(10000, cmdPayload);

    byte[] data = packet.getData();
    log.debug("RM2 send IR command received encrypted bytes: " + DatatypeConverter.printHexBinary(data));
    int err = data[0x22] | (data[0x23] << 8);

    if (err == 0) {
    	return true;
    }
    
    log.warn("RM2 send IR command received error: " + Integer.toHexString(err) + " / " + err);
    return false;
}

and I call it with above code:

private static String daikinFreddoOff = "260050020a0d0f0e0e0e0d0f0f0d0e00034171370f2a0d0f0e0......................";
boolean res = ((RM2Device) dev).sendIRCommand(daikinFreddoOff.getBytes());

but it doesn't work. Daikin don't turn off.
Is there a different code to send ? Pheraps anyone has found similar solution ?

Thanks very much.
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant