New IR RAW code RX/TX support

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
jazzgil
New user
Posts: 1
Joined: 24 Sep 2018, 00:51

New IR RAW code RX/TX support

#1 Post by jazzgil » 25 Sep 2018, 11:19

Greetings,

I've added support into P016 (IR RX aka TSOP4838) and P035 (IR TX) for reading and printing out RAW IR codes, and submitting for trasmit. It uses a new format that is short enough to be sent as a command, but also allows easy inspections and modifications after the code is constructed. I called it 'RAW2'. It functions independently of GusPS's RAW format, which has implemented a B32 compressed format. The new RAW2 support prints out a line to the log (Info level) similar to the following:

Code: Select all

IRSEND,RAW2,191C1E1^30161H15151716*2151,38,267,134
Which can then be used as a command, either in a rule, an MQTT or HTTP.

The RAW2 format is as follows:
  1. IRSEND,RAW2,<code>,<frequency in KHz>,<pulse multiplier>,<blank multiplier>
  2. Every pulse or blank timing is converted into a multiplier to be multiplied by the corresponding pulse or blank multiplier.
  3. The multiplier is then encoded in the code as a single B32 Hex digit (0-9A-V).
  4. If the multiplier is greater than 31, it is encoded as two B32 digits with a '^' sign prepended.
  5. If 2 multipliers repeat, for example: 454545, they are replaced by '*' and a single times digit, and then the two multipliers. For eaxmple: *345.
It might take several tries to capture and generate the command, as the algorithm tries to find high enough common denominators to divide the raw timings and construct a short enough command that will be usable by ESPEasy. Just keep pressing short clicks, and at a few centimeters from the receiver, until it spews a nice and short command.

Hope this helps anyone...

Cheers,
Gilad

sheppy
Normal user
Posts: 49
Joined: 28 Jun 2016, 05:53

Re: New IR RAW code RX/TX support

#2 Post by sheppy » 01 Dec 2018, 18:39

Is this available in any of the nightly builds or does it need to be built from scratch. The recent binaries don’t seem to have the P016 plugin. I’ve just got a Daikin Heatpump that refuses to be controlled using my normal USB IR dongle as the command string seems to overflow it’s memory

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

Re: New IR RAW code RX/TX support

#3 Post by grovkillen » 01 Dec 2018, 19:30

The IR libraries are really big and is not included in the standard build, BUT if you look in the release zip you'll find that we have special IR builds (it's part of the filename).
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:

8lazo8
New user
Posts: 8
Joined: 26 Dec 2018, 13:22

Re: New IR RAW code RX/TX support

#4 Post by 8lazo8 » 26 Dec 2018, 13:44

grovkillen wrote: 01 Dec 2018, 19:30 The IR libraries are really big and is not included in the standard build, BUT if you look in the release zip you'll find that we have special IR builds (it's part of the filename).
Hi,

Is there somewhere any documentation, how to use the latest IRTX plugin?

I was reading the libraries for hours but could not find out how to send proper command (HTTP) for a Gree AC for example.

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

Re: New IR RAW code RX/TX support

#5 Post by grovkillen » 26 Dec 2018, 14:06

Sorry, I have not yet come to test that plugin out myself. I will though!
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:

8lazo8
New user
Posts: 8
Joined: 26 Dec 2018, 13:22

Re: New IR RAW code RX/TX support

#6 Post by 8lazo8 » 28 Jan 2019, 22:05

grovkillen wrote: 26 Dec 2018, 14:06 Sorry, I have not yet come to test that plugin out myself. I will though!
Any chance to reverse engineer it? :)

Some documentation would be nice for all the plugins anyway.

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

Re: New IR RAW code RX/TX support

#7 Post by grovkillen » 28 Jan 2019, 22:08

Yes, I'm on it but currently I'm in desperate need of income so I have to do some semi-unrelated consulting on the side. Hope to get more time in a week or two.
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:

8lazo8
New user
Posts: 8
Joined: 26 Dec 2018, 13:22

Re: New IR RAW code RX/TX support

#8 Post by 8lazo8 » 31 Jul 2019, 13:56

grovkillen wrote: 28 Jan 2019, 22:08 Yes, I'm on it but currently I'm in desperate need of income so I have to do some semi-unrelated consulting on the side. Hope to get more time in a week or two.
Hi Grovkillen did you have a chance to take a look on this?

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

Re: New IR RAW code RX/TX support

#9 Post by jimmys01 » 31 Jul 2019, 21:09

https://github.com/letscontrolit/ESPEas ... 5_IRTX.ino

Check on the top of the plugin code is some usage instructions.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 25 guests