[solved] Bug in IR decoder/encoder?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
chunter1
Normal user
Posts: 82
Joined: 22 Jan 2016, 22:40

[solved] Bug in IR decoder/encoder?

#1 Post by chunter1 » 30 Dec 2017, 00:53

I am using the latest espeasy mega firmware with an IR-receiver und IR-transmitter setup.
Pressing a button on my Panasonic remote gives me the following entry in the log:
IR : Code 100a0a1 - Type: 5 - Bits: 48
When i then transmit the same code calling "192.168.x.x/control?cmd=IRSEND,PANASONIC,100a0a1,48" the receiver of my TV is not reacting.

I compared the incoming and the outcoming impulse-sequence on my scope and see a few differences in the first half of the sequence.
Clearly the codes don't match.
However when pointing the ESP8266's TX-diode to its own IR-receiver (loop-back), the log gives me the same result as mentioned at the beginning (IR : Code 100a0a1 - Type: 5 - Bits: 48).
To me it looks like there is a bug either in the decoder or encoder implementation?
Last edited by chunter1 on 31 Dec 2017, 09:27, edited 1 time in total.

chunter1
Normal user
Posts: 82
Joined: 22 Jan 2016, 22:40

Re: Bug in IR decoder/encoder?

#2 Post by chunter1 » 31 Dec 2017, 09:27

By chance I came across the solution.
Although the receiver decoder gives me "48" bits as code length, i need to define it as "16388" for my Panasonic.
Now the received and transmitted signal perfectly match.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Bug in IR decoder/encoder?

#3 Post by Shardan » 31 Dec 2017, 12:09

chunter1 wrote: 31 Dec 2017, 09:27 By chance I came across the solution.
Although the receiver decoder gives me "48" bits as code length, i need to define it as "16388" for my Panasonic.
Now the received and transmitted signal perfectly match.
How do you get to "16388"? What is it? Length?
Can you give an example please?

Regards
Shardan
Regards
Shardan

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Bug in IR decoder/encoder?

#4 Post by grovkillen » 31 Dec 2017, 12:20

Shardan wrote: 31 Dec 2017, 12:09
chunter1 wrote: 31 Dec 2017, 09:27 By chance I came across the solution.
Although the receiver decoder gives me "48" bits as code length, i need to define it as "16388" for my Panasonic.
Now the received and transmitted signal perfectly match.
How do you get to "16388"? What is it? Length?
Can you give an example please?

Regards
Shardan
Yes, please provide as much as possible when you find solutions. We need to cover more variations of settings on the wiki.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

chunter1
Normal user
Posts: 82
Joined: 22 Jan 2016, 22:40

Re: [solved] Bug in IR decoder/encoder?

#5 Post by chunter1 » 31 Dec 2017, 17:16

Sorry, this post should have been in the TASMOTA forum since i was testing that firmware and found the solution there.
....
* Add IrSend command option Panasonic as IrSend {"Protocol":"Panasonic", "Bits":16388, "Data":<Panasonic data>}
* where 16388 is 0x4004 hexadecimal (#1014)
...

chunter1
Normal user
Posts: 82
Joined: 22 Jan 2016, 22:40

Re: [solved] Bug in IR decoder/encoder?

#6 Post by chunter1 » 26 Feb 2019, 21:23

Unfortunately using the latest firmware with IR support does not work with these settings anymore.
Got no idea why my panasonic remote does not give me repeatable codes when trying to receive it.

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests