Re: IRSEND and IR emitter flashes

Bengt Martensson <[email protected]> Sat, 13 Jul 2019 17:33:40 +0200
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
On 7/13/19 3:28 PM, Bryan Hunter wrote:
> Normally for each key sent by IRSEND, I am able to see the IR emitter 
> visibly flash twice.  Sometimes it will flash only once, and 
> occasionally it will not flash at all (failing).

"This cannot happen". Looks as it is broken.

 >  I presume that each
> flash is a transmit of the key with the sequence number incremented for 
> the 2nd send.

What is "the sequence number"? (If you ask more specifically, possibly 
it you can get a better answer.)

>  I do not yet know why or exactly where this is failing.  
> I would like in the meantime to increase the number of these sends but 
> have not yet found where this could be done.

irsend has a parameter (--count) for specifying this.

> Can someone please explain where and how this flow works and can be 
> configured?  I would particularly like to know if this is a LIRC feature 
> or a driver feature.

Looks like something is simply broken. Some general advice:

* If possible, configure Lirc for send-only or receive-only, unless your 
really need it.
* irsend is a very badly implemented (and designed) program. Please try 
e.g. lirconian (https://github.com/bengtmartensson/Lirconian) or (GUI) 
IrScrutinizer (Sending hw -> Lirc).
* First try to get a simple setup, using e.g. RC5, Sony, or NEC signals 
to work before approaching an unknown signal
* You can use IrScrutinizer + suitable hardware to analyze what Lircd is 
really sending.

Hope this helps,

Bengt