Dear Dan,

I found out the problem, It cause by my USB-LPT converter, the converter did
not support some usb control protocol,
so, while the system sending some request command to the converter, no
response feedback. that is why I get the error
message "printer.c: usblp0: nonzero read/write bulk status received: -145"

now, I met a stranger phenomenon while I copy a job to USB printer.
I connect a USB printer to my linux PC(linux 2.4.19 ) and direct copy a BIN
file to the USB port like below:
cp image.bin  /dev/usb/lp0

I found my system will automatically translate the character "0x0a" (LF) ot
"0x0d 0x0a"(CRLF), and it will cause my
printer print wrong data. In my system, I did not install any printool or
CUPS. so, I don't know who translate it.
did you have any idea about that?

Any advice is appreciate

-Sam




----- Original Message ----- 
From: "Sam J.C. Lu" <[EMAIL PROTECTED]>
To: "Daniel Blueman" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 12:30 AM
Subject: Re: Fw: [linux-usb-devel] [2.6.0-test2-bk5] OHCI USB printing
causing system lockup...


> Dear Dan,
>
> Thanks for your advice, I will try it and will report  my finding for you
if
> I got. : )
>
> -Sam
> ----- Original Message ----- 
> From: "Daniel Blueman" <[EMAIL PROTECTED]>
> To: "Sam J.C. Lu" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, November 13, 2003 12:15 AM
> Subject: Re: Fw: [linux-usb-devel] [2.6.0-test2-bk5] OHCI USB printing
> causing system lockup...
>
>
> > Sam,
> >
> > Can you reproduce this on 2.4.22 or similar? There have been so many
> changes
> > and fixes since 2.4.18.
> >
> > There probably isn't any official documentation describing these
drivers,
> > but you can take a look in the 'Documentation' directory in a recent
linux
> > kernel tree - it may well have some good (and more general) USB driver
> > information.
> >
> > Dan
> >
> > > Hi Dan,
> > >
> > > Thanks for your advice. :)
> > > Did you know Chinese?
> > >
> > > My system was an embeded system using Admtek 5120P CPU, and running on
> > > linux
> > > kernel 2.4.18
> > > the CPU built-in a USB controler.
> > >
> > > form you advice, I found the code at printer.c. but I don't have any
> idea
> > > abut usblp_bulk even the error code.
> > > did you have any idea why my system happen this error?
> > >
> > > PS:
> > > Since I am a freshman on linux system, is there any document describe
> usb
> > > driver and usblp driver?
> > >
> > > Thanks for your kindly help.
> > >
> > >
> > > -Sam
> > >
> > >
> > >
> > > ----- Original Message ----- 
> > > From: "Daniel Blueman" <[EMAIL PROTECTED]>
> > > To: "sam" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, November 12, 2003 10:55 PM
> > > Subject: Re: [linux-usb-devel] [2.6.0-test2-bk5] OHCI USB printing
> causing
> > > system lockup...
> > >
> > >
> > > > Ni hao ma Sam,
> > > >
> > > > The return code of -145 corresponds in the USB subsystem to:
> > > >
> > > > $ find /usr/src/linux -name *.h -exec grep -h 'define.*145' {} \;
> > > > [snip]
> > > > #define ETIMEDOUT       145     /* Connection timed out */
> > > >
> > > > >From this code:
> > > >
> > > > /*
> > > >  * URB callback.
> > > >  */
> > > >
> > > > static void usblp_bulk(struct urb *urb)
> > > > {
> > > > struct usblp *usblp = urb->context;
> > > >
> > > > if (!usblp || !usblp->dev || !usblp->used)
> > > > return;
> > > >
> > > > if (urb->status)
> > > > warn("usblp%d: nonzero read/write bulk status received: %d",
> > > > usblp->minor, urb->status);
> > > >
> > > > wake_up_interruptible(&usblp->wait);
> > > > }
> > > >
> > > > What kernel version are you running, and what USB hardware do you
> have?
> > > >
> > > > Dan
> > > >
> > > > PS You'll get far better response posting to the linux-usb mailing
> list
> > > >
> > > > > Dear Sir,
> > > > >
> > > > > I found a Messages from google to know you,
> > > > > as the subject, I met a problem while I try to print
> > > > > a job to usb printer.  I got a error message after the
> > > > > job printing a while and the system lockup.
> > > > >
> > > > > The error message was:
> > > > >
> > > > >  " printer.c: usblp0: nonzero read/write bulk status
received: -145
> "
> > > > >
> > > > > >from your message, you seem met the same problem,  did you have
> > > > > any idea about this error ?
> > > > >
> > > > > any advice ia appreciate.
> > > > >
> > > > > Sam J.C. Lu
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > -- 
> > > > Daniel J Blueman
> > > >
> > > > NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
> > > > Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
> > > >
> > > > Jetzt kostenlos anmelden unter http://www.gmx.net
> > > >
> > > > +++ GMX - die erste Adresse für Mail, Message, More! +++
> > >
> >
> > -- 
> > Daniel J Blueman
> >
> > NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
> > Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
> >
> > Jetzt kostenlos anmelden unter http://www.gmx.net
> >
> > +++ GMX - die erste Adresse für Mail, Message, More! +++
>




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to