Updated IRSend RAW Encoding (markdown)

s-hadinger 2019-08-05 10:21:29 +02:00
parent 8c1509bb20
commit 9589e8c534
1 changed files with 23 additions and 0 deletions

@ -134,3 +134,26 @@ or
`IRSend {"Protocol":"PIONEER","Bits":64,"Data":"0xA55A50AFA55A50AF"}`
Example 2: Pioneer Stereo:
`IRSend {"Protocol":"PIONEER","Bits":64,"Data":"0xA55AF906A55A03FC"}`
### How to convert Pioneer codes to Tasmota
Pioneer kindly publishes all [IR Codes](https://www.pioneerelectronics.com/PUSA/Support/Home-Entertainment-Custom-Install/IR+Codes) online on its website.
Let's take a Pioneer Receiver like VSX-820. Choose the right Excel file and navigate in the corresponding tab.
Pioneer codes are in short format. For example "TV / SAT" code is `A59B+A5CD`. You now need to convert these short codes into 64 bits IRRemote8266 codes.
Steps:
1. Take the first byte: 0xA5 or 0b10100101. Pioneer codes are LSB, but we need MSB. So read backwards all bits to 0b10100101 and back to hex `A5`. Your first byte is `A5`. Note: You can see here that `0xA5` is a palindrome.
2. Invert all bits of previous byte: 0b01011010. Your second byte is `5A`.
3. Take the second byte 0x9B or 0b10011011. Read backwards all bits giving 0b11011001. Your third byte is `D9`.
4. Invert all bits from previous byte: 0b00100110. Your fourth byte is `26`.
Do the same with the second sequence `A5CD`, you shold find the following sequence: `A55AB3CD`.
The final sequence is:
`IRSend {"Protocol":"PIONEER","Bits":64,"Data":"0xA55AD926A55AB3CD"}`