Menu

#74 Remote config parsed twice at lircd start-up

1.0
closed
nobody
None
notabug,
2014-11-25
2014-11-25
Forage
No

Hi,

Experimenting with lirc (0.9.2pre1) I found that when starting lircd, it will parse each remote button in the config twice. The buttons are also added to the transmit buffer when doing this.

Why is it adding the button to the transmit buffer in the first place? This is also being done when using irsend to send a specific button.
The button isn't really send by the ir transmitter. This makes me wonder if it's just a matter of a not very descriptive debug message.

Why is it doing this twice for each button, if it should really be doing this in the first place? This seems like a waste of resources if you ask me.

Attached you'll find a log of a typical lircd start with the remote being parsed.

1 Attachments

Discussion

  • Christoph Bartelmus

    Don't get what you mean by "parse each remote button in the config twice". Your log doesn't show it.
    The transmit buffer use is required as lircd needs to initialize some internal data structures. Use the source Luke.

     
  • Christoph Bartelmus

    • status: open --> need-info
     
  • Forage

    Forage - 2014-11-25

    There's a block like the following for each button present in the remotes config:


    lircd-0.9.2pre1[477]: clearing transmit buffer
    lircd-0.9.2pre1[477]: adding to transmit buffer:...
    lircd-0.9.2pre1[477]: adding to transmit buffer:...
    ...


    There's 70 of those blocks in the log, while there are only 35 buttons defined on the remote. So it's doing something with each button twice.

     

    Last edit: Forage 2014-11-25
  • Christoph Bartelmus

    Yes, it does. lircd needs to get timing data for an initial transmission and a repeated transmission for each button.

    I'm closing this issue. It's intended behaviour.

     
  • Christoph Bartelmus

    • status: need-info --> closed
    • Resolution: na, --> notabug,
     

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.