A bit confused about IR Receiver and IR Transmitter

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
janjoh
Normal user
Posts: 12
Joined: 05 Oct 2018, 19:54

A bit confused about IR Receiver and IR Transmitter

#1 Post by janjoh » 05 Oct 2018, 20:04

So, I have a space heater with ir Control. Using IRRecvDumpV2.ino on a NodeMCU v3 it decoded the remote as Unknown encoding and slightly varying output on repeated presses of the same button.

Ok, so i thought that it meant it really was a "non standard remote".

Just for a laugh i pointed the remote to a R147-device (Also on NodeMCU v3) and then the output is consistant


2396985398 for one button, 3404768302 for another etc.

Now, does that mean that IRRecvDumpV2 does not like my NodeMCU for some reason and that the code is actually "regular codes"? And of course, if i wanted to try to transmit the 3404768302 for example, what would be the proper call to IRTX? Not much info on the doc https://www.letscontrolit.com/wiki/index.php/IRTX and i have also looked at viewtopic.php?t=328 which shows the URL... But, would it be possible to use IR Receive in ESP Easy to obtain encoding and length?

Thank you in advance!

User avatar
grovkillen
Normal user
Posts: 2885
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: A bit confused about IR Receiver and IR Transmitter

#2 Post by grovkillen » 05 Oct 2018, 20:16

Both me and TD-er are less experienced with the IR plugins since none of us are using it privately. I hope to get the wiki up to date once we get more time on our hands.
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:

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

Re: A bit confused about IR Receiver and IR Transmitter

#3 Post by Shardan » 05 Oct 2018, 20:50

Hello,

I've the IRRecvDumpV2 running on an arduino without problems.

With "unkown" you get a raw code that might be usefull, I never tested it up to now
Regards
Shardan

janjoh
Normal user
Posts: 12
Joined: 05 Oct 2018, 19:54

Re: A bit confused about IR Receiver and IR Transmitter

#4 Post by janjoh » 06 Oct 2018, 21:05

Shardan wrote:
05 Oct 2018, 20:50
Hello,

I've the IRRecvDumpV2 running on an arduino without problems.

With "unkown" you get a raw code that might be usefull, I never tested it up to now
Yeah, on a "real" arduino i got different results.

As i wrote before, when running on a NodeMCU i got "slightly different" results every time i pressed the same button on the remote.

So, i located my old Arduino UNO, and now i get the SAME result, every time i press a given button. Yey!

Soooo, that leaves the question, how do i send RAW codes with ESPEasy.. and how do i decode the below into something the ESPEasy IRTX plugin can manage?

Button ON/OFF
Encoding : UNKNOWN
Code : A32AB931 (32 bits)
Timing[23]:
+1300, - 400 +1250, - 400 + 450, -1200 +1300, - 400
+1300, - 400 + 450, -1200 + 450, -1200 + 500, -1200
+ 450, -1200 + 500, -1200 + 450, -1200 +1300
unsigned int rawData[23] = {1300,400, 1250,400, 450,1200, 1300,400, 1300,400, 450,1200, 450,1200, 500,1200, 450,1200, 500,1200, 450,1200, 1300}; // UNKNOWN A32AB931


Button I
Encoding : UNKNOWN
Code : 39D41DC6 (32 bits)
Timing[23]:
+1300, - 400 +1300, - 400 + 450, -1200 +1300, - 400
+1250, - 400 + 450, -1200 + 500, -1200 +1300, - 400
+ 450, -1200 + 450, -1200 + 500, -1200 + 450
unsigned int rawData[23] = {1300,400, 1300,400, 450,1200, 1300,400, 1250,400, 450,1200, 500,1200, 1300,400, 450,1200, 450,1200, 500,1200, 450}; // UNKNOWN 39D41DC6


Button II
Encoding : UNKNOWN
Code : E0984BB6 (32 bits)
Timing[23]:
+1300, - 400 +1300, - 350 + 450, -1200 +1300, - 400
+1300, - 400 + 450, -1200 + 450, -1200 + 500, -1200
+1300, - 400 + 450, -1200 + 450, -1200 + 500
unsigned int rawData[23] = {1300,400, 1300,350, 450,1200, 1300,400, 1300,400, 450,1200, 450,1200, 500,1200, 1300,400, 450,1200, 450,1200, 500}; // UNKNOWN E0984BB6


Button III
Encoding : UNKNOWN
Code : 371A3C86 (32 bits)
Timing[23]:
+1300, - 400 +1300, - 400 + 400, -1250 +1300, - 350
+1300, - 400 + 450, -1200 + 450, -1250 + 450, -1200
+ 500, -1200 +1300, - 400 + 450, -1200 + 450
unsigned int rawData[23] = {1300,400, 1300,400, 400,1250, 1300,350, 1300,400, 450,1200, 450,1250, 450,1200, 500,1200, 1300,400, 450,1200, 450}; // UNKNOWN 371A3C86


Button IV
Encoding : UNKNOWN
Code : 143226DB (32 bits)
Timing[23]:
+1300, - 400 +1300, - 350 + 500, -1200 +1300, - 350
+1300, - 400 + 450, -1200 + 500, -1200 + 450, -1200
+ 500, -1200 + 450, -1200 +1300, - 400 + 450
unsigned int rawData[23] = {1300,400, 1300,350, 500,1200, 1300,350, 1300,400, 450,1200, 500,1200, 450,1200, 500,1200, 450,1200, 1300,400, 450}; // UNKNOWN 143226DB



Button V
Encoding : UNKNOWN
Code : 4EA240AE (32 bits)
Timing[23]:
+1350, - 350 +1300, - 350 + 500, -1200 +1300, - 350
+1350, - 350 +1300, - 400 + 450, -1200 + 450, -1200
+ 450, -1250 + 450, -1200 +1350, - 350 +1300
unsigned int rawData[23] = {1350,350, 1300,350, 500,1200, 1300,350, 1350,350, 1300,400, 450,1200, 450,1200, 450,1250, 450,1200, 1350,350, 1300}; // UNKNOWN 4EA240AE

janjoh
Normal user
Posts: 12
Joined: 05 Oct 2018, 19:54

Re: A bit confused about IR Receiver and IR Transmitter

#5 Post by janjoh » 18 Nov 2018, 20:09

I cant figure this out.

I can send a "canned" code easy enough. But I can't seem to figure out how to encode the raw packages I mention above to something that the plugin likes.

Any tips? :)

jimmys01
Normal user
Posts: 3
Joined: 07 Jan 2019, 22:37

Re: A bit confused about IR Receiver and IR Transmitter

#6 Post by jimmys01 » 07 Jan 2019, 22:45

Use the EspEasy firmware and the Communication - TSOP4838 device to listen for IR signals. There is a chance that the RAW2 encoding will give you an encoded message and then you can use the IRSEND,RAW2,"encoded msg" to replay it.
Also a bit more manual procedure you copy and paste the RAW timings to this https://docs.google.com/spreadsheets/d/ ... sp=sharing and user the IRSEND,RAW,"encoded msg" command instead

ged
Normal user
Posts: 10
Joined: 15 Oct 2016, 07:04

Re: A bit confused about IR Receiver and IR Transmitter

#7 Post by ged » 08 Mar 2019, 03:24

@janjoh

I have a Bionaire Space Heater, it has the same codes for 5 of the 6 buttons... because it only has 5 buttons!

Based on the spreadsheet, I am able to get these codes to work though it often takes several send attempts (EDIT: I think the unit may expect the code to be repeated a couple of times to emulate user pushing down and releasing on the remote). Tested on ESP_Easy_mega-20190216_normal_IR_ESP8266_4096.bin

Can you tell me what the functions of each of the buttons does on your unit? I'm curious...

Code: Select all

ESP=esp7 # whatever your ESP IP or hostname is
curl "http://${ESP}/control?cmd=IRSEND,RAW,FJSO3SV60O30C1G60V,38,225,200" && echo # OSC (A32AB931)
curl "http://${ESP}/control?cmd=IRSEND,RAW,V7PG7PUC1G60V60O3,38,225,175" && echo # MODE (E0984BB6)
curl "http://${ESP}/control?cmd=IRSEND,RAW,V7PG7PUC1G7PG60O3,38,225,200" && echo # DOWN (39D41DC6)
curl "http://${ESP}/control?cmd=IRSEND,RAW,3UFPG3UFPG60C1G7SO3,38,200,175" && echo # POWER (371A3C86)
curl "http://${ESP}/control?cmd=IRSEND,RAW,V7PG7PUC1G60O30FJ,38,225,175" && echo # UP (143226DB)
curl "http://${ESP}/control?cmd=IRSEND,RAW,1V7PG7PV7PG60O1G7SV,38,225,175" && echo # UNKNOWN (4EA240AE)

ged
Normal user
Posts: 10
Joined: 15 Oct 2016, 07:04

Re: A bit confused about IR Receiver and IR Transmitter

#8 Post by ged » 08 Mar 2019, 05:34

Just to follow up on this. The Remote control repeats the signal several times, the unit needs this repeating to capture commands (maybe it's a sleep or maybe it's trying to filter out noise, not sure)...

So for my ESP to reliably trigger the commands, I need it to repeat the pattern...

In my case 371A3C86 corresponds to power on signal..

Code: Select all

Button III
Encoding : UNKNOWN
Code : 371A3C86 (32 bits)
Timing[23]: 
+1300, - 400 +1300, - 400 + 400, -1250 +1300, - 350
+1300, - 400 + 450, -1200 + 450, -1250 + 450, -1200
+ 500, -1200 +1300, - 400 + 450, -1200 + 450
unsigned int rawData[23] = {1300,400, 1300,400, 400,1250, 1300,350, 1300,400, 450,1200, 450,1250, 450,1200, 500,1200, 1300,400, 450,1200, 450}; // UNKNOWN 371A3C86
The spreadsheet then produces the following:

Code: Select all

3UFPG3UFPG60C1G7SO3,38,200,175
So to make it repeat, I take the rawData buffer add a blank out period and then resend the buffer a second time...
After the last 450 PULSE (+450), I multiply 10 * the BLANK period of 175 to get 1750. I append 1750 to the end of rawData and then paste the contents of rawData a second time.

You end up with a rawData that looks like this:
{1300,400, 1300,400, 400,1250, 1300,350, 1300,400, 450,1200, 450,1250, 450,1200, 500,1200, 1300,400, 450,1200, 450, 1750 ,1300,400, 1300,400, 400,1250, 1300,350, 1300,400, 450,1200, 450,1250, 450,1200, 500,1200, 1300,400, 450,1200, 450}
The spreadsheet then encodes that as this:

Code: Select all

IRSEND,RAW,FPV60FPV60O1G60VJ0C03UFPG3UFPG60C1G7SO3,38,200,175
Feed this to your ESP and you're likely to have much better reliability actuating that function.

Good luck.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest