On Thu, 1 Dec 2005, Steve Bangert wrote:

>  The other file I sent is viewable on a windows box with SnoppyPro
> installed, it has a nice gui to read it in, an export of that same file
> is attached.

Perhaps someone who knows more about your printer could make sense out of 
that log.  It doesn't mean much to me.

However it is apparent that a fair amount of information is going back and
forth.  The usblp driver provides a path for this information but doesn't
generate any of it.  That's up to a user program.

You can write a program to do a soft reset.  Here's what it needs (taken 
from the usblp.c source code):

#include <sys/ioctl.h>
#include <asm/ioctl.h>

#define IOCNR_SOFT_RESET        7
#define LPIOC_SOFT_RESET _IOC(_IOC_NONE, 'P', IOCNR_SOFT_RESET, 0)

...

        fd = open("/dev/usblp", O_RDWR);
        ioctl(fd, LPIOC_SOFT_RESET, 0);

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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