Dave Davey <[EMAIL PROTECTED]> writes:
> On Tue, Sep 28, 1999 at 10:08:30AM +0200, Dag Brattli wrote:
> > Hi,
> >
> > PS. The latest 2.3.18ac series contains some bug-fixes to IrCOMM, so it
> > could be worth a try if you have problems with IrCOMM.
> >
>
> Terrific! My Canon BJC-80 printer is working properly again!
This is great news!! I made a small fix but I never expected it to have
much effect for your problem.
The problem was that when writing small amounts of data (less than 2K), the
remote device could flow-control off to prevent Linux from sending more
data. After some time, it would flow control on again to signal that it
could receive more data. When this happens, Linux would signal (wake up)
the writing process telling it that it could write more data again. The
problem was however that if the writing process had finished writing, then
all the data would be in IrCOMM's transmit buffer which I had forgot to
check. So the data would only be sent if the process had something more to
write ;-) At least this is the only change I could think of. I found the
bug after using Mincom towards the Ericsson phone. The init string would
only be written fully if I pressed a key afterwards(which would then flush
the transmit buffer).
-- Dag
--
/ Dag Brattli | The Linux-IrDA Project /
// University of Tromsoe, Norway | Infrared communication for Linux //
/// http://www.cs.uit.no/~dagb | http://www.cs.uit.no/linux-irda/ ///
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda