How should I send the IR Transmit code?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
marceloMiranda
Normal user
Posts: 10
Joined: 12 Dec 2018, 18:01

How should I send the IR Transmit code?

#1 Post by marceloMiranda » 29 Jan 2019, 18:56

ESP8266 MQTT IR Transmitter with ESPEasy

I'm using the schematic below:
IR_transmitter.PNG
IR_transmitter.PNG (80.76 KiB) Viewed 2885 times
The modules works perfect for capturing and transmitting IR signals. They are very simple to use, along with the IRremoteESP8266 library on Arduino IDE.

With the: IRremoteESP8266/examples/IRrecvDumpV2 I get code 8166817E

Converting for DEC=2170978686

With the: IRremoteESP8266/examples/IRServer work very well.

But PLEASE I need help understanding ESPEasy!!!

My Devices setting is as below.
esp_devices.png
esp_devices.png (96.82 KiB) Viewed 2885 times
MQTT work very well.

I using GIT version:mega-20181112
IP:192.168.50.179

If I change the "led" pin is set for GPIO the command
http://192.168.50.179/control?cmd=GPIO,4,0
Turn OFF the led.

And the command
http://192.168.50.179/control?cmd=GPIO,4,1
Turn ON the led

How do I send the code, “2170978686” through IR?

HTTP bellow does not work...
http://192.168.50.179/control?cmd=IRSEND,2170978686

MQTT send 2170978686 bellow does not work...
/IR/GPIO/04

Please How should I send the code in ESPEasy?

Thanks
Marcelo Miranda

marceloMiranda
Normal user
Posts: 10
Joined: 12 Dec 2018, 18:01

Re: How should I send the IR Transmit code?

#2 Post by marceloMiranda » 30 Jan 2019, 17:33

If this helps, IRrecvDump V2 sends

IRrecvDumpV2 is now running and waiting for IR input on Pin 14
Timestamp : 000035.723
Encoding : NEC
Code : 8166817E (32 bits)
Library : v2.5.2

Raw Timing[71]:
+ 9068, - 4444, + 624, - 1614, + 624, - 496, + 626, - 496,
+ 624, - 496, + 624, - 498, + 624, - 498, + 624, - 492,
+ 624, - 1618, + 624, - 496, + 624, - 1620, + 624, - 1616,
+ 628, - 498, + 624, - 496, + 620, - 1618, + 624, - 1618,
+ 624, - 496, + 624, - 1614, + 624, - 498, + 624, - 498,
+ 624, - 498, + 624, - 498, + 624, - 498, + 624, - 496,
+ 624, - 1614, + 628, - 492, + 624, - 1618, + 624, - 1620,
+ 624, - 1614, + 628, - 1614, + 624, - 1618, + 624, - 1620,
+ 624, - 498, + 624, - 42326, + 9072, - 2208, + 602

uint16_t rawData[71] = {9068, 4444, 624, 1614, 624, 496, 626, 496, 624, 496, 624, 498, 624, 498, 624, 492, 624, 1618, 624, 496, 624, 1620, 624, 1616, 628, 498, 624, 496, 620, 1618, 624, 1618, 624, 496, 624, 1614, 624, 498, 624, 498, 624, 498, 624, 498, 624, 498, 624, 496, 624, 1614, 628, 492, 624, 1618, 624, 1620, 624, 1614, 628, 1614, 624, 1618, 624, 1620, 624, 498, 624, 42326, 9072, 2208, 602}; // NEC 8166817E
uint32_t address = 0x6681;
uint32_t command = 0x81;
uint64_t data = 0x8166817E;

Then I tried the command

http://192.168.50.179/control?cmd=IRSEN ... 166817E,32

Also does not work, neither HTTP nor MQTT.

:cry:

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

Re: How should I send the IR Transmit code?

#3 Post by jimmys01 » 17 Feb 2019, 17:59

IRSEND,NEC,8166817E should work. If not check your schematic. R2 has to be calculated, depending on the LED you use.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests