Possibility to send IR RAW codes

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

Possibility to send IR RAW codes

#1 Post by tklein.lotte@web.de » 30 Mar 2017, 12:46

hello,

how can I send ir raw-codes with th esp Easy firmware? Until now i use a custom sketch with a function "irsend.sendRaw(irLeinwand_stop, sizeof(irLeinwand_stop) / sizeof(irLeinwand_stop[0]), khz);"
the command irsend aloows onl protocal as far I know.

Ther are 3 code from a device which I can't get working. Two different IR-Reiver recordes the same raw codes. Is it necessary to send the ir-signal with a 850 nm ir diod? Actually I'm using a 940 nm.

Greetings
Thomas

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

Re: Possibility to send IR RAW codes

#2 Post by Shardan » 30 Mar 2017, 18:56

Hello again,

maybe have a look at this thread:
https://www.letscontrolit.com/forum/vie ... &hilit=raw

The plugin they developed is atm not included in the standard binaries or source code of R148 or ESPEasyMega.
Seems it is still a "work in progress".

Here the "protocol version" is used with FHEM successfully. I've flashed a decoding sketch on an Arduino and decoded my remotes.
Just one remote in my collection refused....... a somewhat crude remote from a linux based HD recorder (old Unitymedia device).

A picture of the small IR-transmitter/receiver is in that thread.

Regards
Thomas
Regards
Shardan

tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

Re: Possibility to send IR RAW codes

#3 Post by tklein.lotte@web.de » 31 Mar 2017, 17:39

thx,

must the code be written down in hex or dec?

http://192.168.0.76/tools?cmd=IRSEND %2C NEC %2C 8166817E %2C 32
or
http://192.168.0.76/tools?cmd=IRSEND %2C NEC %2C 2170978686 %2C 32

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

Re: Possibility to send IR RAW codes

#4 Post by Shardan » 31 Mar 2017, 18:15

Hello Thomas,

the codes are in Hex.

From FHEM you can use the "ESPEasy" pluigin from FHEM: https://fhem.de/commandref.html#ESPEasy

I bought some very cheap LED stripes from the DIY market and virtualized the remote control with FHEM "remotecontrol"
https://fhem.de/commandref.html#remotecontrol
LED-Remote_640.jpg
LED-Remote_640.jpg (94.13 KiB) Viewed 11229 times
Virtual-Remote_640.jpg
Virtual-Remote_640.jpg (44.26 KiB) Viewed 11229 times
If needed i can give a config sample.


Regards
Shardan
Regards
Shardan

tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

Re: Possibility to send IR RAW codes

#5 Post by tklein.lotte@web.de » 31 Mar 2017, 18:37

thx, but I wasn't able to understand the description of the modul? What is ist for? --> "Provides access and control to Espressif ESP8266 WLAN-SoC w/ ESPEasy"

I have read about the modul remotecontrol. But I want to use features combine with alexa/siri so I dont need a remote gui. So is the plan :-)

tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

Re: Possibility to send IR RAW codes

#6 Post by tklein.lotte@web.de » 31 Mar 2017, 19:02

if you mean esp bridge i can say that I use it still. It's wonderfull by creating devices at it self. But I thougt that it is only one way. So I can Input from DHT/PIR/.. to my fhem.

Greeting and enjoy the weekend
Thomas

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

Re: Possibility to send IR RAW codes

#7 Post by grovkillen » 31 Mar 2017, 19:03

Does the LED strips need to be controlled with IR? Can't you control it with gpio instead?
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: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Possibility to send IR RAW codes

#8 Post by Shardan » 31 Mar 2017, 19:49

tklein.lotte@web.de wrote: 31 Mar 2017, 19:02 if you mean esp bridge i can say that I use it still. It's wonderfull by creating devices at it self. But I thougt that it is only one way. So I can Input from DHT/PIR/.. to my fhem.

Greeting and enjoy the weekend
Thomas
Yep, it's the espbridge. It can be used bi-directional if the command supports that.

When making the IR hardware i contacted the developer as the IRSEND was not supported and he had it integrated within some days.
I use a syntax like "set <fhem-device> IRSEND NEC F700FF 32" to trigger the IR send in the IR device. It's same syntax as with the http just use spaces instead commas.

Regards
Shardan
Regards
Shardan

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

Re: Possibility to send IR RAW codes

#9 Post by Shardan » 31 Mar 2017, 20:13

grovkillen wrote: 31 Mar 2017, 19:03 Does the LED strips need to be controlled with IR? Can't you control it with gpio instead?
Sure i could.
But i have several LED stripes in that room, on top TV, stereo and DVD player. It needs only one
single IR transceiver in the room to control all the devices from my homecontrol.
For controlling that by GPIO i had to use several ESPs or long cabling.

Other advantages: I can use the original cabling and power supply without changing anything.
Any of the Stripes can be relocated without problem.
As an extra the manual remote control is still working if necessary.

Another extra: As it is a IR Transceiver it receives commands from remote controls too.
That makes some things possible: For example if i use the usual remote to switch on TV the IR transceiver
receives the signal too - and i can dim down lights automatically via homecontrol.

I have a ready developed LED driver for ESP that avoids usual problems.
Most use too low voltage to drive the MOSFETs so the current they can handle is very limited.
Avoiding this needs far more effort and is more expensive. First you need an additional higher
voltage from the power supply (10...15V) as MOSFET's are voltage driven. Then you need
a MOSFET driver chip like the Maxxim 7667 for interfacing the ESP to the MOSFET's. The
7667 is expensive... and so on.
With this circuit i have tested ESP-based LED drivers with 15A on one single channel.
Pending on the used MOSFET type even more is possible - just my testing equipment has it's limits ;)

Just this is a far more expensive solution equaled to using the IR-modules
delivered with the stripes. I need the IR-transceiver for TV and stereo anyways.


Regards
Shardan
Regards
Shardan

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

Re: Possibility to send IR RAW codes

#10 Post by grovkillen » 31 Mar 2017, 21:00

I hear ya. :)
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:

tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

Re: Possibility to send IR RAW codes

#11 Post by tklein.lotte@web.de » 02 Apr 2017, 11:51

Yep, it's the espbridge. It can be used bi-directional if the command supports that.
perfect, so I can transmit data from my fhem to my oled-display lines 7+8 :-)
When making the IR hardware i contacted the developer as the IRSEND was not supported and he had it integrated within some days.
I use a syntax like "set <fhem-device> IRSEND NEC F700FF 32" to trigger the IR send in the IR device. It's same syntax as with the http just use spaces instead commas.
That really cool. <fhem-device> --> this ist for example the wemos with the ir transmitter (autocreate by fhem-http and esp-bridge)? Are RAW-codes supported?
Which Firmware(147, Mega) and FHEM-version must be used?

Greetings
Thomas

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

Re: Possibility to send IR RAW codes

#12 Post by Shardan » 02 Apr 2017, 13:22

tklein.lotte@web.de wrote: 02 Apr 2017, 11:51
Yep, it's the espbridge. It can be used bi-directional if the command supports that.
perfect, so I can transmit data from my fhem to my oled-display lines 7+8 :-)
When making the IR hardware i contacted the developer as the IRSEND was not supported and he had it integrated within some days.
I use a syntax like "set <fhem-device> IRSEND NEC F700FF 32" to trigger the IR send in the IR device. It's same syntax as with the http just use spaces instead commas.
That really cool. <fhem-device> --> this ist for example the wemos with the ir transmitter (autocreate by fhem-http and esp-bridge)? Are RAW-codes supported?
Which Firmware(147, Mega) and FHEM-version must be used?

Greetings
Thomas
Hello Thomas,

i didn't test with an OLED Display, following the commendref it is possible
(Search for ESPEasy Devices).

<fhem-device> is just the device as autocreate created, yes.
At this time some standard protocolls are supported. Have a look at this thread:
https://forum.fhem.de/index.php/topic,5 ... #msg530220

Raw codes are not supported at this time. There is a plugin under development for that.
https://www.letscontrolit.com/forum/vie ... lit=IRSEND

I'm using the R148 for IRSEND modules. THe plugin is included in older versions and ESPEasy 2.0.0 too so it should work.
FHEM supports it since version 5.7.

Regards
Shardan
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 32 guests