Updated IRSend RAW Encoding (markdown)

s-hadinger 2019-08-06 17:52:22 +02:00
parent 206ec460a8
commit e6794549f1
1 changed files with 28 additions and 1 deletions

@ -157,3 +157,30 @@ Do the same with the second sequence `A5CD`, you should find the following seque
The final sequence is:
`IRSend {"Protocol":"PIONEER","Bits":64,"Data":"0xA55AD926A55AB3CD"}`
## Converting Pronto IR codes to Tasmota
`Pronto` is a very common and early format to describe raw IR codes. It is fully described in this excellent series of articles [The Pronto's IR Code Format](http://www.remotecentral.com/features/irdisp1.htm)
Pronto is commonly represented as a series of 4-digits HEX numbers in unsigned 16-bits format.
Example, from Foxtel Vol+:
`Vol +`<br>
`0000 0073 0000 0012 000F 000A 0006 000A 0006 0016 0006 000A 0006 0010 0006 0016 0006 0016 0006 000A 0006 000A 0006 000A 0006 0016 0006 0010 0006 0016 0006 000A 0006 0010 0006 000A 0006 000A 0006 0CA0`
To convert from Pronto to IRSend by hand it requires extra work.
1. Ignore first `0000`
2. `0073` if the IR frequency, compute as "Frequency = 1000000/(N * .241246)". So for 0x73 (115), this gives 36KHz. First value for IRSend is `36`.
3. `0000` is the length of the One Time Burst. There is no one time burst
4. `0012` - Decimal 18 is the length of the repeat burst. There are 18 bits (Burst pairs) in this code.
Next pulses are measured in pulses of the IR clock, so it depends on the frequency. With 36KHz, each pulse is (1000/36) 27.7 microseconds
So you need to multiply by 27.7 for Tasmota to get actual µs
`000F 000A` - becomes `415,277`
`0006 000A` - becomes `166,277`
And so on...
In the end, it will look like:
`IRSend 36,415,277,166,277,...`