On Thu, 18 May 2006, Bernie Vandzura wrote:

> Hi,
>   I wonder if you can help me. I am new at Linux and I was put in charge of 
> a task to write printer test software which does not use any installed 
> drivers.  We are doing an embedded project which has a USB module and we are 
> using it to print out reports, but we don't want to install any drivers 
> since we won't have the capability to do that.  The output to the printer 
> will be straight ascii text. We are using Knoppix on a laptop to emulate our 
> embedded device so we can take the laptop to say Staples and try out 
> printers to see if it will print out the straight ascii text we send it. I 
> am using the libusb library to write bulk messages out the usb port and I am 
> using the detach driver function to get rid of any driver linux installed 
> when the printer is hotplugged to the laptop. I can see that when a printer 
> is hotplugged it installs something called 'usblp'. Is this a driver?

Yes.

>  Will 
> detaching the driver really get rid of this driver?

No.  The driver will still be loaded into the kernel, but it will not be 
bound to the printer device.  If you want, you can remove the driver 
entirely by doing "rmmod usblp".

> Will the routines I am 
> using to send out bulk messaging be direct calls to the usb device and 
> simulate not having a driver installed or is there another layer of the 
> linux kernel I am missing?

Yes to both.  Your data will be sent directly to the device as though no 
driver for it was installed, and you are missing other layers of the 
kernel.

> I tested  8 printers, and 3 were able to print 
> out the text I sent it. Thanks for any help 

Any printer that can handle straight ASCII text should be able to accept 
your data.

Alan Stern



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to