USB-Printer and devu-prn

Hi,

we have tested some USB Printers (Epson STYLUS PHOTO 750 and a HP) with the devu-prn driver from the last USB-DDK.
But only the HP gave us 3 pages of 30 and the EPSON printed only via the parallel port correct (no pages via USB).
We have started spooler only with the option -d /dev/usbpar0 was that correct? We can see the USB Printer in the photon printer
dialog box like a parallel printer.

Another question is:
We see with a USB Analyser, that after a BULK-Transfer from host to device is answered with a NAK by the device, the host sends the
next packet in a timeout intervall from ~10µs . This is a very short time, is this a normal behaviour?



Best regards,

Hermann Leenings

Hermann Leenings <Leenings.Hermann@scheidt-bachmann.de> wrote:

Hi,

we have tested some USB Printers (Epson STYLUS PHOTO 750 and a HP) with
the devu-prn driver from the last USB-DDK. But only the HP gave us 3
pages of 30 and the EPSON printed only via the parallel port correct
(no pages via USB).

Did you power cycle the printers when switching between the parallel ports and
the USB ports?

We have started spooler only with the option -d /dev/usbpar0 was that
correct? We can see the USB Printer in the photon printer dialog box
like a parallel printer.

Are you using NTO or QNX 4? What stack are you using? What is the date of
the usb ddk that you are using? Can you post the output from usb -vvvv?
What is the date/version of the Photon printer drivers?

Another question is:
We see with a USB Analyser, that after a BULK-Transfer from host to device
is answered with a NAK by the device, the host sends the next packet in a
timeout intervall from ~10us . This is a very short time, is this a normal
behaviour?

Yes. The interval depends on how many requests are in the ohci/uhci schedule.

Kevin Chiles <kchiles@qnx.com> schrieb in im Newsbeitrag: 9eg6ve$glv$1@nntp.qnx.com

Hermann Leenings <> Leenings.Hermann@scheidt-bachmann.de> > wrote:
Hi,

we have tested some USB Printers (Epson STYLUS PHOTO 750 and a HP) with
the devu-prn driver from the last USB-DDK. But only the HP gave us 3
pages of 30 and the EPSON printed only via the parallel port correct
(no pages via USB).

Did you power cycle the printers when switching between the parallel ports and
the USB ports?

Yes!

We have started spooler only with the option -d /dev/usbpar0 was that
correct? We can see the USB Printer in the photon printer dialog box
like a parallel printer.

Are you using NTO or QNX 4? What stack are you using? What is the date of

We use NTO RtP 6.0 Patch C with the newest USB-DDK:
2129646 107 -rwxrwxr-x 1 root root 54397 Sep 30 2000 /bin/devu-cpia
2505675 61 -rwxrwxr-x 1 root root 30734 Feb 01 15:54 /bin/devu-kbd
2505677 57 -rwxrwxr-x 1 root root 29116 Feb 01 15:54 /bin/devu-mouse
2505679 142 -rwxrwxr-x 1 root root 72670 Feb 01 15:54 /bin/devu-ohci
2505676 57 -rwxrwxr-x 1 root root 28995 Feb 01 15:54 /bin/devu-prn
2505678 142 -rwxrwxr-x 1 root root 72336 Feb 01 15:54 /bin/devu-uhci



the usb ddk that you are using? Can you post the output from usb -vvvv?

USB (UHCI) v1.10, v1.00 DDK
Control, Interrupt, Bulk, Isoch, Low speed, High speed

Device Address : 1
Vendor : 0x04b8 (EPSON)
Product : 0x0001 (USB Printer)
Device Release : r1.00
USB Spec Release : v1.00
Serial Number : N/A
Class : 0x07 (Unknown)
Subclass : 0x01
Protocol : 0x02
Max PacketSize0 : 64
Languages : 0x0409 (English)
Current Frame : 396 (1024 bytes)
Configurations : 1
Configuration : 1
Attributes : 0x40 (Self-powered)
Max Power : 2 mA
Interfaces : 1
Interface : 0 / 0
Class : 0x07 (Printer)
Subclass : 0x01
Protocol : 0x02
Endpoints : 2 + Control
Endpoint : 0
Attributes : Control
Max Packet Size: 64
Endpoint : 1
Attributes : Bulk/OUT
Max Packet Size: 64
Endpoint : 2
Attributes : Bulk/IN
Max Packet Size: 64


What is the date/version of the Photon printer drivers?

2132379 104 -rwxrwxr-x 1 root root 52917 May 15 15:15 /usr/bin/phs-to-escp2

I hope this info will help you, at the moment it is not important for us that a USB printer runs with QNX 6.0. We have seen this
behaviour at a USB test with our own USB device.


Another question is:
We see with a USB Analyser, that after a BULK-Transfer from host to device
is answered with a NAK by the device, the host sends the next packet in a
timeout intervall from ~10us . This is a very short time, is this a normal
behaviour?

Yes. The interval depends on how many requests are in the ohci/uhci schedule.

Hermann Leenings <Leenings.Hermann@scheidt-bachmann.de> wrote:

Kevin Chiles <> kchiles@qnx.com> > schrieb in im Newsbeitrag: 9eg6ve$glv$> 1@nntp.qnx.com> …
Hermann Leenings <> Leenings.Hermann@scheidt-bachmann.de> > wrote:
Hi,

we have tested some USB Printers (Epson STYLUS PHOTO 750 and a HP) with
the devu-prn driver from the last USB-DDK. But only the HP gave us 3
pages of 30 and the EPSON printed only via the parallel port correct
(no pages via USB).

Did you power cycle the printers when switching between the parallel ports and
the USB ports?
[snip]

Can you do a quick test for me? What happens if you send the output to a
file and then “cat” it to /dev/usbprn0?

Kevin Chiles <kchiles@qnx.com> schrieb in im Newsbeitrag: 9elcd7$n6u$1@nntp.qnx.com

Hermann Leenings <> Leenings.Hermann@scheidt-bachmann.de> > wrote:

Kevin Chiles <> kchiles@qnx.com> > schrieb in im Newsbeitrag: 9eg6ve$glv$> 1@nntp.qnx.com> …
Hermann Leenings <> Leenings.Hermann@scheidt-bachmann.de> > wrote:
Hi,

we have tested some USB Printers (Epson STYLUS PHOTO 750 and a HP) with
the devu-prn driver from the last USB-DDK. But only the HP gave us 3
pages of 30 and the EPSON printed only via the parallel port correct
(no pages via USB).

Did you power cycle the printers when switching between the parallel ports and
the USB ports?
[snip]

Can you do a quick test for me? What happens if you send the output to a
file and then “cat” it to /dev/usbprn0?

I think, you mean /dev/usbpar0 ???
I test it, but nothing had happened! No formfeed or LED flash…
Do you know a ESC sequence with that the printer make something like a formfeed?