Page 1 of 1

New IR RAW code RX/TX support

Posted: 25 Sep 2018, 11:19
by jazzgil
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

Re: New IR RAW code RX/TX support

Posted: 01 Dec 2018, 18:39
by sheppy
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

Re: New IR RAW code RX/TX support

Posted: 01 Dec 2018, 19:30
by grovkillen
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).

Re: New IR RAW code RX/TX support

Posted: 26 Dec 2018, 13:44
by 8lazo8
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.

Re: New IR RAW code RX/TX support

Posted: 26 Dec 2018, 14:06
by grovkillen
Sorry, I have not yet come to test that plugin out myself. I will though!

Re: New IR RAW code RX/TX support

Posted: 28 Jan 2019, 22:05
by 8lazo8
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.

Re: New IR RAW code RX/TX support

Posted: 28 Jan 2019, 22:08
by grovkillen
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.

Re: New IR RAW code RX/TX support

Posted: 31 Jul 2019, 13:56
by 8lazo8
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?

Re: New IR RAW code RX/TX support

Posted: 31 Jul 2019, 21:09
by jimmys01
https://github.com/letscontrolit/ESPEas ... 5_IRTX.ino

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