Menu

#386 Issue with SONY12.lircd.conf and SONY20.lircd.conf — Incorrect bits and pre_data_bits configuration

Future
open
None
na
6 days ago
6 days ago
No

Hi everyone,

I'd like to report an issue I encountered while working with the files available on SourceForge for the Sony SIRC protocol:

https://sourceforge.net/p/lirc-remotes/code/ci/master/tree/remotes/generic/SONY12.lircd.conf

https://sourceforge.net/p/lirc-remotes/code/ci/master/tree/remotes/generic/SONY20.lircd.conf

I was trying to convert the LIRC config to work with the IRplus Android app, which supports custom XML remote files. IRplus allows you to manually define protocol parameters like bits, pre-bits, device, and command, and I use it for testing Sony discrete IR codes with my phone's IR blaster.

At first, I couldn't get the codes to work properly. After some debugging, I realized the issue was in the following parameters from the LIRC config files:

bits 7
pre_data_bits 7
These values are incorrect for Sony SIRC 12, 15, and 20-bit protocols, and cause the app to misinterpret the full command.

How I fixed it:
To make the codes work, I had to manually adjust both bits and pre_data_bits in the XML to reflect the actual protocol used:

For SIRC 12-bit, use: bits="12" and pre-bits="12"

For SIRC 15-bit, use: bits="15" and pre-bits="15"

For SIRC 20-bit, use: bits="20" and pre-bits="20"

Once I made that change, all the IR codes started working perfectly in the IRplus app, including discrete power and HDMI inputs.

Suggestion:
If possible, I recommend updating the files at the links above to reflect the correct bits and pre_data_bits values according to the actual protocol length. That way, users converting or adapting LIRC files to other platforms won't be misled by the incorrect settings.

Thanks in advance, and I hope this helps anyone trying to integrate these codes into other systems like IRplus, Tasmota, or ESPHome.

Best regards,
Bruno

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.