ToniA / arduino-heatpumpir

An Arduino library to control split-unit heatpumps over Infrared
GNU General Public License v2.0
389 stars 141 forks source link

Decoded HISENSE air conditioning control #2

Closed cosmopaco closed 8 years ago

cosmopaco commented 9 years ago

After hard work I managed to decode an infrared command of a machine hisense air conditioning. Specifically

http://www.hisense.es/electrodomesticos/climatizacion/conductos.html

If it's interesting for this project, let me know.

I adapted this great library for sending commands. That if my way.

ToniA commented 9 years ago

Sure, if your code fits into this library, I would be happy to receive a pull request :)

cosmopaco commented 9 years ago

Sent raster annotation.

// Hisense timing constants

define HISENSE_AIRCON1_HDR_MARK 9060

define HISENSE_AIRCON1_HDR_SPACE 4550

define HISENSE_AIRCON1_BIT_MARK 520

define HISENSE_AIRCON1_ONE_SPACE 1700

define HISENSE_AIRCON1_ZERO_SPACE 630

define HISENSE_AIRCON1_MSG_GAP 8140

BYTE 1 Header_1 0x87

BYTE 2 Header_2 0x06

BYTE 3 Bit 0-1 Vel Aut=0x00 VH=0x01 VM=0x02 VL=0x03 Bit 2 on/off Bit 3 Sleep mode Bit 4 ? Bit 5 ? Bit 6 ? Bit 7 Swing

BYTE 4 Data Bit 0-1 Mode Heat=0x0 Auto=0x01 Cool=0x02 DRY=0x03 Bit 2-3 ? Bit 4-7 Temp (18+ value)

BYTE 5 Not used 0x00

BYTE 6 Not used 0x00

MIDEL MARK 500-8120usg

BYTE 7 0x00 Hour in remote control Bit 7 12/24 indicator.

BYTE8 Minute in remote control

BYTE9 0x00

BYTE10 0x00

BYTE 11 0x0C unknown

BYTE 12 0x00

BYTE 13 0x00 Temp in remote control

BYTE 14 Cheksum Exclusive OR from the bytes 3 to 13

cosmopaco commented 9 years ago

Any question. I'ts necessari reduce the time declarate? What time decapre the functionts in the progres to sent?

cosmopaco commented 9 years ago

Sorr

cosmopaco commented 9 years ago

I can not post the changes to github windows. I leave a link to download. You can upload the changes, if you you're interested.

https://www.dropbox.com/sh/svmmuro5l672pls/AABwo8O3xlBrA3078ZCd5eXna?dl=0

ToniA commented 9 years ago

Thank you!

I pushed your changes into the GitHub, please see https://github.com/ToniA/arduino-heatpumpir/commit/1b4f45ae9a4df4a73c5bcc2acdecb31043227441

Toni

Date: Mon, 17 Nov 2014 00:57:28 -0800 From: notifications@github.com To: arduino-heatpumpir@noreply.github.com CC: toni.arte@iki.fi Subject: Re: [arduino-heatpumpir] Decoded HISENSE air conditioning control (#2)

I can not post the changes to github windows. I leave a link to download.

You can upload your changes, if you you're interested.

https://www.dropbox.com/sh/svmmuro5l672pls/AABwo8O3xlBrA3078ZCd5eXna?dl=0

— Reply to this email directly or view it on GitHub.

                  =
simoneluconi commented 6 years ago

Any help for Hisense TQ models? I can't figure out how to decode the ir codes

ToniA commented 6 years ago

Well, there's not much I can do without having access to the remote controller. But if you could build a decoder (see https://github.com/ToniA/Raw-IR-decoder-for-Arduino), and write the module to decode the protocol, I could assist you in writing the sender.

simoneluconi commented 6 years ago

Its my first time so i'm not very practical, also every time i change some settings almost all the bits changes, but if it can help i can provide the raw ir data from the remote.

For example: (i have used this example) Temperature: 21°C - Mode: Heating - Fan: Auto - Swing: (i don't know, is not displayed in the remote)

Decoded NEC: 11000001011000000000000000001010 (32 bits)
Raw (100): 10001100101000 1000100110000 1010001010 11001000000 1010001010 11001000000 1010001010 111000010 1010111100 111000010 1010001010 111000010 1010111100 111000010 1010111100 111000010 1010001010 11001000000 1010001010 111000010 1010111100 11000001110 1010111100 11000001110 1010111100 111000010 1010001010 111000010 1010111100 111000010 1010111100 111000010 1010111100 111000010 1010001010 111000010 1010111100 110010000 1010001010 111110100 1010111100 111000010 1010111100 110010000 1010111100 111000010 1010111100 111000010 1010001010 111000010 1010111100 111000010 1011101110 101011110 1010001010 111110100 1010111100 110010000 1010111100 11000001110 1010111100 111000010 1010111100 11000001110 1011101110 110010000 1010111100 110010000 1100100000 101011110 1010111100 110010000 1010111100 111000010 1010111100 111000010 1010001010 111000010 1010111100 111000010 1010111100 111000010 1010111100 110010000 1010111100 111000010 1010001010 111000010 1010111100 111000010 1010111100 111000010 1010001010 111000010 1011101110 110010000 1010001010 111000010 1010111100 

Temperature: 21°C - Mode: Heating - Fan: Fast - Swing: (i don't know, is not displayed in the remote)

Decoded NEC: 11000001011000001000000000001010 (32 bits)
Raw (100): 10001110111110 1000010011010 1100100000 10110101010 1100100000 10110101010 1100100000 101011110 1011101110 101011110 1100100000 101011110 1100100000 101011110 1011101110 101011110 1100100000 10110101010 1100100000 101011110 1100100000 10110101010 1011101110 10110101010 1100100000 101011110 1100100000 101011110 1100100000 101011110 1011101110 101011110 1100100000 101011110 1100100000 10110101010 1100100000 100101100 1100100000 101011110 1100100000 100101100 1100100000 101011110 1100100000 101011110 1100100000 101011110 1011101110 101011110 1100100000 101011110 1011101110 101011110 1100100000 101011110 1011101110 101011110 1100100000 10110101010 1100100000 101011110 1100100000 10110101010 1100100000 101011110 1100100000 100101100 1100100000 101011110 1011101110 101011110 1100100000 101011110 1100100000 101011110 1011101110 101011110 1100100000 101011110 1100100000 101011110 1100100000 100101100 1100100000 101011110 1011101110 101011110 1100100000 101011110 1100100000 100101100 1100100000 101011110 1100100000 101011110 1100100000 100101100 1100100000 

Temperature: 21°C - Mode: Heating - Fan: Med - Swing: (i don't know, is not displayed in the remote)

Decoded NEC: 11000001011000001000000000001010 (32 bits)
Raw (100): 10001101011010 1000100110000 1010001010 11000001110 1010111100 11000001110 1010111100 111000010 1010111100 110010000 1010001010 111110100 1011101110 110010000 1010001010 111110100 1010111100 11000001110 1010001010 111000010 1010111100 11000001110 1010001010 11001000000 1010001010 111000010 1010001010 111110100 1010111100 111000010 1010001010 111110100 1010111100 110010000 1010111100 11000001110 1010111100 110010000 1010001010 111110100 1011101110 110010000 1010001010 111000010 1010111100 111000010 1010111100 111000010 1010111100 110010000 1010111100 111000010 1010001010 111000010 1010111100 111000010 1010001010 111000010 1010111100 11000001110 1010111100 111000010 1010111100 11000001110 1010111100 111000010 1010111100 110010000 1010111100 111000010 1010111100 110010000 1010111100 111000010 1011101110 110010000 1010001010 111000010 1010111100 111000010 1010111100 111000010 1010111100 110010000 1010111100 111000010 1010001010 111000010 1010111100 111000010 1010111100 111000010 1010001010 111000010 1010111100 111000010 1010111100 111000010 1010001010