Dear lirc users,
with the help of Albert (thx!) I found the underlying cause in the
hw_ftdi.c. Please find attached an updated version. It mostly changes three
ints->long longs, hence a rather simple fix ... once you know where to look!
2014/1/3 Jansen, Willem <willem@...>
> Dear lirc users,
> first of all thank you for this great piece of software, it really takes
> the automation of my living room to the next stage :)
> I just completed the assembly of my very on transceiver based on Albert J.
> Huitsing's design (http://www.huitsing.nl/irftdi/). It works like a
> charm, however using it with the NEC protocol gave me a hard time. After
> building my own sound card oscilloscope I discovered what might be a bug in
> lirc (0.8.7 via CVS Server + Alberts 2009 hw_ftdi.c*):
> The "header" directive of my harman kardon remote should read:
> "header 9000 4500"
> When I use these settings (and the latest hw_ftdi.c code for the
> transmitter), lirc shrinks the leading pulse extremely, however does the
> 4500µsec header space + the rest of the data. (See scope_FT232.jpg). When I
> use a value for the pulse below 8192(=2^14) everything works as expected
> (See scope_orig.jpg). The NEC protocol requires a 9000µsec leading pulse.
> For now I simply use a shorter header pulse - which my receiver tolerates -
> but I guess there is a bug somewhere in the transmission part. The
> reception of "long" pulses works well by the way!
> 1) Can anybody confirm this with his or her setup?
> 2) Any idea where this might be coming from?
> Kind regards,
> * http://www.huitsing.nl/irftdi/lirc%2026%20jan%202009/daemons/hw_ftdi.c