DAIKIN REMOTE

129 views
Skip to first unread message

hans

unread,
Aug 28, 2023, 7:33:05 AM8/28/23
to jallib
Daikin air conditioner remote control.
I have two daikins that are operated with infrared. After hours of puzzling, I've come to the point where I can turn them both on and off in the heating position. I would also like to know the other functions, but I dread all that work.
I read the remote control with a scope and then figure out the values.
Is there anyone who has already done this?
Otherwise I would like to have a system to read the signals from the remote control.
regards
Hans
18f4550_daikin10.jal

hans

unread,
Aug 28, 2023, 7:55:04 AM8/28/23
to jallib
have forgotten this basic

Op maandag 28 augustus 2023 om 13:33:05 UTC+2 schreef hans:
daikin principe.docx

hans

unread,
Aug 28, 2023, 8:07:34 AM8/28/23
to jallib
picture

Op maandag 28 augustus 2023 om 13:55:04 UTC+2 schreef hans:
20230828_140343[1].jpg

Rob CJ

unread,
Aug 28, 2023, 1:04:20 PM8/28/23
to jallib
Hi Hans,

Maybe look on the internet if people already figured this out. I saw there is some info there but not sure if that is the info you are looking for.

BTW. A tip for your program. You are declaring an array with constant values as var. You can save RAM memory by defining the array as const. You have way more const memory than var memory.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens hans <hanz...@zeelandnet.nl>
Verzonden: maandag 28 augustus 2023 13:33
Aan: jallib <jal...@googlegroups.com>
Onderwerp: [jallib] DAIKIN REMOTE
 
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/2c2df2f5-f93b-403d-a414-a52cf4504571n%40googlegroups.com.

hans

unread,
Aug 28, 2023, 2:46:19 PM8/28/23
to jallib
Hello Rob,
Searching the internet is my basic approach. What I found doesn't work for me.
I now know what a bit looks like and I know its structure.
  I would now like to have a program that can read those bits concatenated into bytes I have no idea how I would go about doing that.
regards
Hans

Op maandag 28 augustus 2023 om 19:04:20 UTC+2 schreef Rob CJ:

hans

unread,
Aug 29, 2023, 10:44:59 AM8/29/23
to jallib
I think NEC is the same system and am therefore looking for the libs for this. I can't handle the Gitthub . Where can I find the libs
16F877a_nec_rc_decode.jalr and the nec_rc_decoder.jal

Op maandag 28 augustus 2023 om 20:46:19 UTC+2 schreef hans:

Rob CJ

unread,
Aug 29, 2023, 12:43:48 PM8/29/23
to jal...@googlegroups.com
Hi Hans,

What I see on Internet about the Daikin protocol is that the message length is not always the same and that is not the same as the NEC protocol which has a fixed length.

But I may be wrong. I attached the two files to this discussion.

Kind regards,

Rob


Verzonden: dinsdag 29 augustus 2023 16:44
Aan: jallib <jal...@googlegroups.com>
Onderwerp: Re: [jallib] DAIKIN REMOTE
 
16f877a_nec_rc_decoder.jal
nec_rc_decoder.jal

hans

unread,
Aug 29, 2023, 1:31:49 PM8/29/23
to jallib
Hi Rob
Thank you.
NEC is therefore:
-- Logical '0': A 562.5 us pulse burst followed by a 562.5 us space,
-- with a total transmit time of 1,125 ms
-- Logical '1': A 562.5 us pulse burst followed by a 1.6875ms space,
-- with a total transmit time of 2.25 ms

My system currently works with:
-- Logical '0': usec_delay(450) pulse burst followed by a usec_delay(350) space,
-- with a total transmit time of 800
-- Logical '1': usec_delay(450pulse burst followed by a usec_delay(1190) space,
-- with a total transmit time of 1640

Some publications mention 500 followed by 440 or 1300 uS
If I am able to read the different ranges of the remote control, I think I can get further.
regards
Hans

Op dinsdag 29 augustus 2023 om 18:43:48 UTC+2 schreef Rob CJ:

hans

unread,
Aug 29, 2023, 1:44:02 PM8/29/23
to jallib
This info is not correct for my units but helped me to understand. https://github.com/blafois/Daikin-IR-Reverse

Op dinsdag 29 augustus 2023 om 19:31:49 UTC+2 schreef hans:

hans

unread,
Aug 31, 2023, 6:00:29 AM8/31/23
to jallib
The remote control read on a KY-022 is HIGH at rest.
1. 350 us low
2. 120 us high
3. Then always the 19 bytes burst = 450 us, 0 =350 and 1 =1190
4. Followed by 19 bytes of which the first 4 are always equal 17,218,39,0

I am now reading this out in an audio program and then puzzle the matter out.
Is this a way for someone who handles pics ?? / Yes, for a klutz like me it is. Unless some Jal_scholar can help me with a program that just reads that array of values.


Op dinsdag 29 augustus 2023 om 19:44:02 UTC+2 schreef hans:
20230831_114717[1].jpg

Rob CJ

unread,
Aug 31, 2023, 12:48:01 PM8/31/23
to jal...@googlegroups.com
Hi Hans,

What you could do is modify the NEC decoder library and change the bit times and the number of bits. Since you know which bit time is 1 and which is 0 this should be douable.

The NEC prototol also starts with a pulse more or less the same as the Daikin, followed by bytes of data and a stop bit.

You find the info in the library. The protocol is as follows.

-- Specification of NEC IR protocol:
-- Logical '0': A 562.5 us pulse burst followed by a 562.5 us space,
--              with a total transmit time of 1.125 ms
-- Logical '1': A 562.5 us pulse burst followed by a 1.6875ms space,
--              with a total transmit time of 2.25 ms
-- *) Start with 9 ms leading pulse burst (16 times the pulse burst length used
--    for a logical data bit) followed by a a 4.5 ms space.
-- *) 8-bit address for the receiving device or 16 bit for the extended protocol
-- *) 8-bit logical inverse of the address or high byte for the extended protocol.
-- *) 8-bit command.
-- *) 8-bit logical inverse of the command.
-- *) Final 562.5 us pulse burst to signify the end of message transmission.
-- *) The four bytes of data bits are each sent least significant bit first.
-- *) After a command is tranmitted and the key on the remote control is still
--    pressed only a repeat message is sent consisting of a start pulse of
--    9 ms, followed by a 2.25 ms space.

Kind regards,

Rob



Verzonden: donderdag 31 augustus 2023 12:00

hans

unread,
Sep 3, 2023, 10:05:40 AM9/3/23
to jallib
Okay Rob.
 After 4 days of struggling and a mess of results, I followed my wife's advice. I'm going to start with the old graphics approach.
 Make an audio recording, greatly enlarge and print it and then write down the series of zeros and ones
. For example, I made my circuit earlier and last winter it switched the air conditioners on and off according to the program as heating.
 Remains with me the respect for the programs you all can make.
regards
Hans

Op donderdag 31 augustus 2023 om 18:48:01 UTC+2 schreef Rob CJ:

Rob CJ

unread,
Sep 3, 2023, 1:23:27 PM9/3/23
to jal...@googlegroups.com
Hi Hans,

Your plan is to send Daikin commands to your airconditioning and you need some software to get the commands that you need?

I think the commands you need can be found on the internet (you will nog be the first person who wants to do that).

If you have the commands from the internet, then the only thing remaining is sending out the data according to the protocol, correct?

Reverse Engineering Air Conditioner IR Remote Control Protocol: Hi, this is my first instructable, hope you like it. To get into electronics I chose a home automation project: a system allowing me to control and program both air conditioner units in my flat. In this instructable I show how I got to understa…

So when you have the commands you can use the software you already created to send the data out.

Is my assumption correct or is it something else you want to achieve?

Thanks.

Kind regards,

Rob



Verzonden: zondag 3 september 2023 16:05

hans

unread,
Sep 3, 2023, 1:51:05 PM9/3/23
to jallib
Hello Rob,
I know these sources and used this info at the time. Unfortunately didn't work. I then used my graphical trick and discovered minimal differences which apparently are crucial and depend on the type of device and type of remote control. The values I found my way worked perfectly and so did the unit I made. But only to switch the heating on and off in time.
Because my sight is getting less and less, I was dreading working this way again. Unfortunately, I didn't manage to get the series of zeros and ones right on my screen.
regards
Hans

Op zondag 3 september 2023 om 19:23:27 UTC+2 schreef Rob CJ:

Rob CJ

unread,
Sep 4, 2023, 2:00:59 AM9/4/23
to jal...@googlegroups.com
Hi Hans,

I am this week on holiday this week but woke up with an idea. I hacked the rc_nec_decoder software that I made and changed it into a bit-timer.

I am not able to test this but it works as follows:
  1. It starts when an infra red receiver, connected to the external interrupt goes low (active). That is, a signal is received.
  2. It measures all bursts (H) and pauses (L) of the remote control signal until no signal is received for 65 ms (timer 1 overflow)
  3. After the overflow of timer 1 it wil indicate that something is received. All bits are stored in us in a large array of words.
The only thing you need to do is get it working for your PIC where you have to initialize timer 1 to run at 1 MHz. This because it gives all times in us. If you run it at another clock you have to recalculate what the bit times are.

As said, this compiles, it is not tested. Try it out. Sample file is attached. Do not look too much at the code of the rc_timer.jal file since as said it is just a hack. I may want to make is nice so it could be used as a library if there is a need for something like this

The sample files prints 'H:'  followed by the bit times in us. In this case 'H' means that there was an infra red signal (receiver is active low).

Kind regards,

Rob


Verzonden: zondag 3 september 2023 19:51
16f1825_rc_timer.jal
rc_timer.jal

hans

unread,
Sep 4, 2023, 5:07:59 AM9/4/23
to jallib
Hi Rob,
I prefer to use the same pic but i dont have it. Would it work on a 16F1827?.
regards
hans

Op maandag 4 september 2023 om 08:00:59 UTC+2 schreef Rob CJ:

David VB

unread,
Sep 4, 2023, 5:45:58 AM9/4/23
to jallib
Hi,

In case you didn't know, this cute little device enables you to retrieve the codes in hex format of IR emitter

DSO TC-3

It's inexpensive (around 65 €) and receives much appraisal in the reviews I've seen so far.
It is also a portable basic oscilloscope, signal generator and component tester

There are several videos on YouTube that you can search for, and it is available from Elektor, Amazon, AliExpress etc....

Hope this helps....

vsurducan

unread,
Sep 4, 2023, 6:19:33 AM9/4/23
to jal...@googlegroups.com
There is something cheaper for debugging data. It worth more than a Tektronix MSO4104 with logic analyzer but without having decoding card....

Pinhead

unread,
Sep 4, 2023, 7:00:20 AM9/4/23
to jal...@googlegroups.com

Yes, indeed, but less portable.

Anyway, I always had driver trouble with those kind of devices and finally ended up buying a Scanalogic one. 



Le 04-09-23 à 12:19, vsurducan a écrit :

Rob CJ

unread,
Sep 4, 2023, 9:09:15 AM9/4/23
to jal...@googlegroups.com
Hi all,

Yes, recently I purchased this logic analyzer. In combination with the software it is really handy. I solved some IIC problems with it.

And for Hans. I ported the sample program to a PIC16F1827 and have sent it directly to you.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens Pinhead <pinhe...@gmail.com>
Verzonden: maandag 4 september 2023 13:00
Aan: jal...@googlegroups.com <jal...@googlegroups.com>

hans

unread,
Sep 4, 2023, 4:28:02 PM9/4/23
to jallib
Apparently I am a very difficult customer and my forum questions and comments are increasingly simply deleted.

Op maandag 4 september 2023 om 15:09:15 UTC+2 schreef Rob CJ:
Message has been deleted

Rob CJ

unread,
Sep 5, 2023, 2:19:09 AM9/5/23
to jallib
Hi Hans and others,

I had a look at why some messages are not posted. Apparently Google Group has some - artifical? - intelligence to determine that a message is spam. If so it puts the message on hold and it has to be approved (or rejected) by the admin. In the past there used to be an option to post these messages anyway even when Google Groups saw this as spam. This option is no longer available and I do not know why.

I do not know what the intelligence is but I have seen that some message where all one-liners. Maybe that is one of the reasons it 'thinks' that it is spam.

And to answer your question (I hope). Next to pic_data_eeprom.jal there is also pic_data_hef.jal for PICs that have no EEPROM but High Endurance Flash (HEF).

Kind regards,

Rob


Verzonden: maandag 4 september 2023 22:34

Aan: jallib <jal...@googlegroups.com>
Onderwerp: Re: [jallib] DAIKIN REMOTE
 
Hi Rob,
This program is the regular Eeprom use,.
 i was looking for the one that uses the free programarea  part
regards
Hans

Op maandag 4 september 2023 om 22:28:02 UTC+2 schreef hans:
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Hans Van Veldhuizen

unread,
Sep 11, 2023, 1:55:39 PM9/11/23
to jallib
I have changed my log in account,. Now i make this test.

Op dinsdag 5 september 2023 om 08:19:09 UTC+2 schreef Rob CJ:
Message has been deleted

Hans Van Veldhuizen

unread,
Sep 11, 2023, 2:08:02 PM9/11/23
to jallib
So, if i use my other account then my messages are deleted. Is this the modern artificial intelligence

Op maandag 11 september 2023 om 19:55:39 UTC+2 schreef Hans Van Veldhuizen:
Message has been deleted

Hans van Veldhuizen

unread,
Sep 15, 2023, 10:45:24 AM9/15/23
to jallib
Hello,
Today I have the extension of my Daikin remote toy working, .....................
but Daikin now supplies a complete WIFI programming module with the newer units where you can do everything (except make coffee).
 It does cost quite a bit of money.
All in all quite fun to make again, thanks everyone.
regards
Hans

Op maandag 11 september 2023 om 20:08:02 UTC+2 schreef Hans Van Veldhuizen:
Reply all
Reply to author
Forward
0 new messages