Not able to print a document using root enumerated usb device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB
devices over the network, i have usb thumb drive, hard drive and some
printers working correctly,
But i have a printer with one interface and 2 alternate interface
initialization is being done correctly and i am able to see printer in the
printer and faxes folder,
but when i give a print out the windows shows an error saying printing
failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer XXXX.
Data type: NT EMF 1.008. Size of the spool file in bytes: 145636. Number of
bytes printed: 0. Total number of pages in the document: 1. Number of
pages printed: 0. Client machine: \XXXX. Win32 error code returned by the
print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
initialization.

I went through the post of
James Harper
https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott

Under whose security context are you opening the connection to the remote system? It is entirely possible that the security context under which you are opening the handle does not have the correct permissions to do what you want. So you are going to have to open a connection using the correct security credentials.

–Mark Cariddi
OSR Open Systems Resources, Inc.

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Dennis Scott
Sent: Monday, August 23, 2010 12:45 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Not able to print a document using root enumerated usb device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB devices over the network, i have usb thumb drive, hard drive and some printers working correctly,
But i have a printer with one interface and 2 alternate interface initialization is being done correctly and i am able to see printer in the printer and faxes folder,
but when i give a print out the windows shows an error saying printing failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer XXXX. Data type: NT EMF 1.008. Size of the spool file in bytes: 145636. Number of bytes printed: 0. Total number of pages in the document: 1. Number of pages printed: 0. Client machine: \XXXX<file:>. Win32 error code returned by the print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during initialization.

I went through the post of
James Harper
https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</file:>

Mark,

The Security context of ?
which the device is created ( i.e, enumerated device)?
OR with which the printer is accessed?

This is under xp Sp3 i am trying to give test print from printers and faxes
window.

On Mon, Aug 23, 2010 at 6:45 PM, Mark Cariddi wrote:

> Under whose security context are you opening the connection to the remote
> system? It is entirely possible that the security context under which you
> are opening the handle does not have the correct permissions to do what you
> want. So you are going to have to open a connection using the correct
> security credentials.
>
>
>
> --Mark Cariddi
>
> OSR Open Systems Resources, Inc.
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
> Sent: Monday, August 23, 2010 12:45 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Not able to print a document using root enumerated usb
> device.
>
>
>
> Hi all,
>
> I have a virtual bus driver which serves the purpose of enumerating USB
> devices over the network, i have usb thumb drive, hard drive and some
> printers working correctly,
> But i have a printer with one interface and 2 alternate interface
> initialization is being done correctly and i am able to see printer in the
> printer and faxes folder,
> but when i give a print out the windows shows an error saying printing
> failed event log says
> a. Document failed to print due to GDI/Driver error in rendering.
> b. The document Test Page owned by XXXX failed to print on printer XXXX.
> Data type: NT EMF 1.008. Size of the spool file in bytes: 145636. Number of
> bytes printed: 0. Total number of pages in the document: 1. Number of
> pages printed: 0. Client machine: \XXXX. Win32 error code returned by the
> print processor: 31 (0x1f).
>
> If i connect the printer directly to the system i dont see any problem.
>
> The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
> initialization.
>
> I went through the post of
>
> James Harper
>
> https://www.osronline.com/ShowThread.cfm?link=168353
>
> should i enumerate root hub??
>
> Dennis scott
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

How are you opening a connection to the remote system? Are you doing something like ZwCreateFile? If so, are you doing it from system context or from a user context? Depending on whose context you use, you have different security credentials and thus may or may not be able to do what you want to do…

–Mark Cariddi
OSR Open Systems Resources, Inc.

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Dennis Scott
Sent: Monday, August 23, 2010 9:33 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Not able to print a document using root enumerated usb device.

Mark,

The Security context of ?
which the device is created ( i.e, enumerated device)?
OR with which the printer is accessed?

This is under xp Sp3 i am trying to give test print from printers and faxes window.
On Mon, Aug 23, 2010 at 6:45 PM, Mark Cariddi > wrote:
Under whose security context are you opening the connection to the remote system? It is entirely possible that the security context under which you are opening the handle does not have the correct permissions to do what you want. So you are going to have to open a connection using the correct security credentials.

–Mark Cariddi
OSR Open Systems Resources, Inc.

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of Dennis Scott
Sent: Monday, August 23, 2010 12:45 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Not able to print a document using root enumerated usb device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB devices over the network, i have usb thumb drive, hard drive and some printers working correctly,
But i have a printer with one interface and 2 alternate interface initialization is being done correctly and i am able to see printer in the printer and faxes folder,
but when i give a print out the windows shows an error saying printing failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer XXXX. Data type: NT EMF 1.008. Size of the spool file in bytes: 145636. Number of bytes printed: 0. Total number of pages in the document: 1. Number of pages printed: 0. Client machine: \XXXX<file:>. Win32 error code returned by the print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during initialization.

I went through the post of
James Harper
https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</file:></mailto:xxxxx></mailto:xxxxx>

No mark, the problem is different, this is like an USB over LAN, usb is
connected to an Remote system (windows/linux) called server and is virtually
mounted on an other windows system called client and data transfer will
happen over LAN. on client when i virtually enumerate the device, the
previously mentioned problem is occurring.

Dennis scott

On Mon, Aug 23, 2010 at 7:20 PM, Mark Cariddi wrote:

> How are you opening a connection to the remote system? Are you doing
> something like ZwCreateFile? If so, are you doing it from system context
> or from a user context? Depending on whose context you use, you have
> different security credentials and thus may or may not be able to do what
> you want to do?..
>
>
>
> --Mark Cariddi
>
> OSR Open Systems Resources, Inc.
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
> Sent: Monday, August 23, 2010 9:33 AM
>
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Not able to print a document using root enumerated
> usb device.
>
>
>
> Mark,
>
> The Security context of ?
> which the device is created ( i.e, enumerated device)?
> OR with which the printer is accessed?
>
> This is under xp Sp3 i am trying to give test print from printers and faxes
> window.
>
> On Mon, Aug 23, 2010 at 6:45 PM, Mark Cariddi wrote:
>
> Under whose security context are you opening the connection to the remote
> system? It is entirely possible that the security context under which you
> are opening the handle does not have the correct permissions to do what you
> want. So you are going to have to open a connection using the correct
> security credentials.
>
>
>
> --Mark Cariddi
>
> OSR Open Systems Resources, Inc.
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
> Sent: Monday, August 23, 2010 12:45 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Not able to print a document using root enumerated usb
> device.
>
>
>
> Hi all,
>
> I have a virtual bus driver which serves the purpose of enumerating USB
> devices over the network, i have usb thumb drive, hard drive and some
> printers working correctly,
> But i have a printer with one interface and 2 alternate interface
> initialization is being done correctly and i am able to see printer in the
> printer and faxes folder,
> but when i give a print out the windows shows an error saying printing
> failed event log says
> a. Document failed to print due to GDI/Driver error in rendering.
> b. The document Test Page owned by XXXX failed to print on printer XXXX.
> Data type: NT EMF 1.008. Size of the spool file in bytes: 145636. Number of
> bytes printed: 0. Total number of pages in the document: 1. Number of
> pages printed: 0. Client machine: \XXXX. Win32 error code returned by the
> print processor: 31 (0x1f).
>
> If i connect the printer directly to the system i dont see any problem.
>
> The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
> initialization.
>
> I went through the post of
>
> James Harper
>
> https://www.osronline.com/ShowThread.cfm?link=168353
>
> should i enumerate root hub??
>
> Dennis scott
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

What kind of printer is it that you try to use? Might it be a DOT4 (IEEE
1284.4) printer. I think those use some special USB
interfaces/endpoints. So the printer driver might try to communicate
using DOT4, I do not know if you have implemented support for that in
you virtual USB thingy.

/christoph

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dennis Scott
Sent: Monday, August 23, 2010 12:45 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Not able to print a document using root enumerated usb
device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB
devices over the network, i have usb thumb drive, hard drive and some
printers working correctly,
But i have a printer with one interface and 2 alternate interface
initialization is being done correctly and i am able to see printer in
the printer and faxes folder,
but when i give a print out the windows shows an error saying printing
failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer
XXXX. Data type: NT EMF 1.008. Size of the spool file in bytes: 145636.
Number of bytes printed: 0. Total number of pages in the document: 1.
Number of pages printed: 0. Client machine: \XXXX. Win32 error code
returned by the print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
initialization.

I went through the post of

James Harper

https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott

Yes, actually it is “hp LaserJet 3015 PCL 5e” which is DOT4 (IEEE 1284.4
Compatible Bi-directional) printer, what kind of support these printers
required? i have another printer “HP Deskjet F4200 series” which is working
properly.

Thanks
dennis scott

On Tue, Aug 24, 2010 at 1:23 PM, Christoph Lindemann <
xxxxx@printassociates.com> wrote:

What kind of printer is it that you try to use? Might it be a DOT4 (IEEE
1284.4) printer. I think those use some special USB interfaces/endpoints. So
the printer driver might try to communicate using DOT4, I do not know if you
have implemented support for that in you virtual USB thingy.

/christoph

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
*Sent:* Monday, August 23, 2010 12:45 AM
*To:* Windows System Software Devs Interest List
*Subject:* [ntdev] Not able to print a document using root enumerated usb
device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB
devices over the network, i have usb thumb drive, hard drive and some
printers working correctly,
But i have a printer with one interface and 2 alternate interface
initialization is being done correctly and i am able to see printer in the
printer and faxes folder,
but when i give a print out the windows shows an error saying printing
failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer XXXX.
Data type: NT EMF 1.008. Size of the spool file in bytes: 145636. Number of
bytes printed: 0. Total number of pages in the document: 1. Number of
pages printed: 0. Client machine: \XXXX. Win32 error code returned by the
print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
initialization.

I went through the post of

James Harper

https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

It’s been a while since I have looked at this. Windows has some DOT4
driver, which it will stack on to of the parallel or usb driver (how
they are connected exactly I can not remember). And the windows spooler
has also a special DOT4 port monitor. I think to remember the HP
installs their own special DOT4 port monitor.

On the USB level you have to support/provide the “1284.4 compatible
bi-directional interface” (interface protocol 3)

See http://www.usb.org/developers/devclass_docs/usbprint11.pdf

The 1284.4 protocol might (I don’t know) also have some special
requirements when transmitting over USB (and your case also network),
like packet size, timouts…

/christoph


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dennis Scott
Sent: Tuesday, August 24, 2010 10:08 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Not able to print a document using root enumerated
usb device.

Yes, actually it is “hp LaserJet 3015 PCL 5e” which is DOT4 (IEEE 1284.4
Compatible Bi-directional) printer, what kind of support these printers
required? i have another printer “HP Deskjet F4200 series” which is
working properly.

Thanks
dennis scott

On Tue, Aug 24, 2010 at 1:23 PM, Christoph Lindemann
wrote:

What kind of printer is it that you try to use? Might it be a DOT4 (IEEE
1284.4) printer. I think those use some special USB
interfaces/endpoints. So the printer driver might try to communicate
using DOT4, I do not know if you have implemented support for that in
you virtual USB thingy.

/christoph

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dennis Scott
Sent: Monday, August 23, 2010 12:45 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Not able to print a document using root enumerated usb
device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB
devices over the network, i have usb thumb drive, hard drive and some
printers working correctly,
But i have a printer with one interface and 2 alternate interface
initialization is being done correctly and i am able to see printer in
the printer and faxes folder,
but when i give a print out the windows shows an error saying printing
failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer
XXXX. Data type: NT EMF 1.008. Size of the spool file in bytes: 145636.
Number of bytes printed: 0. Total number of pages in the document: 1.
Number of pages printed: 0. Client machine: \XXXX. Win32 error code
returned by the print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
initialization.

I went through the post of

James Harper

https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging
and other seminars visit: http://www.osr.com/seminars To unsubscribe,
visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks christoph,

i went through the document(page 10/17) defines it,yes i have to support
interface protocol 3 but i am not sure how??
can you please explain me how should i do this in my bus driver.

On Tue, Aug 24, 2010 at 2:43 PM, Christoph Lindemann <
xxxxx@printassociates.com> wrote:

It?s been a while since I have looked at this. Windows has some DOT4
driver, which it will stack on to of the parallel or usb driver (how they
are connected exactly I can not remember). And the windows spooler has also
a special DOT4 port monitor. I think to remember the HP installs their own
special DOT4 port monitor.

On the USB level you have to support/provide the ?1284.4 compatible
bi-directional interface? (interface protocol 3)

See http://www.usb.org/developers/devclass_docs/usbprint11.pdf

The 1284.4 protocol might (I don?t know) also have some special
requirements when transmitting over USB (and your case also network), like
packet size, timouts?

/christoph


*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
*Sent:* Tuesday, August 24, 2010 10:08 AM

*To:* Windows System Software Devs Interest List
*Subject:* Re: [ntdev] Not able to print a document using root enumerated
usb device.

Yes, actually it is “hp LaserJet 3015 PCL 5e” which is DOT4 (IEEE 1284.4
Compatible Bi-directional) printer, what kind of support these printers
required? i have another printer “HP Deskjet F4200 series” which is
working properly.

Thanks
dennis scott

On Tue, Aug 24, 2010 at 1:23 PM, Christoph Lindemann <
xxxxx@printassociates.com> wrote:

What kind of printer is it that you try to use? Might it be a DOT4 (IEEE
1284.4) printer. I think those use some special USB interfaces/endpoints. So
the printer driver might try to communicate using DOT4, I do not know if you
have implemented support for that in you virtual USB thingy.

/christoph

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
*Sent:* Monday, August 23, 2010 12:45 AM
*To:* Windows System Software Devs Interest List
*Subject:* [ntdev] Not able to print a document using root enumerated usb
device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB
devices over the network, i have usb thumb drive, hard drive and some
printers working correctly,
But i have a printer with one interface and 2 alternate interface
initialization is being done correctly and i am able to see printer in the
printer and faxes folder,
but when i give a print out the windows shows an error saying printing
failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer XXXX.
Data type: NT EMF 1.008. Size of the spool file in bytes: 145636. Number of
bytes printed: 0. Total number of pages in the document: 1. Number of
pages printed: 0. Client machine: \XXXX. Win32 error code returned by the
print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
initialization.

I went through the post of

James Harper

https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Unfortunately I have no real experience with USB driver development, so
I am afraid I can not help you there. Your driver should implement the
Dot4Print device class, I think.

/christoph


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dennis Scott
Sent: Tuesday, August 24, 2010 11:28 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Not able to print a document using root enumerated
usb device.

Thanks christoph,

i went through the document(page 10/17) defines it,yes i have to support
interface protocol 3 but i am not sure how??
can you please explain me how should i do this in my bus driver.

On Tue, Aug 24, 2010 at 2:43 PM, Christoph Lindemann
wrote:

It’s been a while since I have looked at this. Windows has some DOT4
driver, which it will stack on to of the parallel or usb driver (how
they are connected exactly I can not remember). And the windows spooler
has also a special DOT4 port monitor. I think to remember the HP
installs their own special DOT4 port monitor.

On the USB level you have to support/provide the “1284.4 compatible
bi-directional interface” (interface protocol 3)

See http://www.usb.org/developers/devclass_docs/usbprint11.pdf

The 1284.4 protocol might (I don’t know) also have some special
requirements when transmitting over USB (and your case also network),
like packet size, timouts…

/christoph

________________________________

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dennis Scott
Sent: Tuesday, August 24, 2010 10:08 AM

To: Windows System Software Devs Interest List

Subject: Re: [ntdev] Not able to print a document using root enumerated
usb device.

Yes, actually it is “hp LaserJet 3015 PCL 5e” which is DOT4 (IEEE 1284.4
Compatible Bi-directional) printer, what kind of support these printers
required? i have another printer “HP Deskjet F4200 series” which is
working properly.

Thanks
dennis scott

On Tue, Aug 24, 2010 at 1:23 PM, Christoph Lindemann
wrote:

What kind of printer is it that you try to use? Might it be a DOT4 (IEEE
1284.4) printer. I think those use some special USB
interfaces/endpoints. So the printer driver might try to communicate
using DOT4, I do not know if you have implemented support for that in
you virtual USB thingy.

/christoph

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dennis Scott
Sent: Monday, August 23, 2010 12:45 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Not able to print a document using root enumerated usb
device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB
devices over the network, i have usb thumb drive, hard drive and some
printers working correctly,
But i have a printer with one interface and 2 alternate interface
initialization is being done correctly and i am able to see printer in
the printer and faxes folder,
but when i give a print out the windows shows an error saying printing
failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer
XXXX. Data type: NT EMF 1.008. Size of the spool file in bytes: 145636.
Number of bytes printed: 0. Total number of pages in the document: 1.
Number of pages printed: 0. Client machine: \XXXX. Win32 error code
returned by the print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
initialization.

I went through the post of

James Harper

https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging
and other seminars visit: http://www.osr.com/seminars To unsubscribe,
visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging
and other seminars visit: http://www.osr.com/seminars To unsubscribe,
visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Any way Christoph thanks for the inputs, at least now i know the root cause
of the problem. thanks.

On Tue, Aug 24, 2010 at 3:49 PM, Christoph Lindemann <
xxxxx@printassociates.com> wrote:

Unfortunately I have no real experience with USB driver development, so I
am afraid I can not help you there. Your driver should implement the
Dot4Print device class, I think.

/christoph


*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
*Sent:* Tuesday, August 24, 2010 11:28 AM

*To:* Windows System Software Devs Interest List
*Subject:* Re: [ntdev] Not able to print a document using root enumerated
usb device.

Thanks christoph,

i went through the document(page 10/17) defines it,yes i have to support
interface protocol 3 but i am not sure how??
can you please explain me how should i do this in my bus driver.

On Tue, Aug 24, 2010 at 2:43 PM, Christoph Lindemann <
xxxxx@printassociates.com> wrote:

It?s been a while since I have looked at this. Windows has some DOT4
driver, which it will stack on to of the parallel or usb driver (how they
are connected exactly I can not remember). And the windows spooler has also
a special DOT4 port monitor. I think to remember the HP installs their own
special DOT4 port monitor.

On the USB level you have to support/provide the ?1284.4 compatible
bi-directional interface? (interface protocol 3)

See http://www.usb.org/developers/devclass_docs/usbprint11.pdf

The 1284.4 protocol might (I don?t know) also have some special
requirements when transmitting over USB (and your case also network), like
packet size, timouts?

/christoph


*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
*Sent:* Tuesday, August 24, 2010 10:08 AM

*To:* Windows System Software Devs Interest List

*Subject:* Re: [ntdev] Not able to print a document using root enumerated
usb device.

Yes, actually it is “hp LaserJet 3015 PCL 5e” which is DOT4 (IEEE 1284.4
Compatible Bi-directional) printer, what kind of support these printers
required? i have another printer “HP Deskjet F4200 series” which is
working properly.

Thanks
dennis scott

On Tue, Aug 24, 2010 at 1:23 PM, Christoph Lindemann <
xxxxx@printassociates.com> wrote:

What kind of printer is it that you try to use? Might it be a DOT4 (IEEE
1284.4) printer. I think those use some special USB interfaces/endpoints. So
the printer driver might try to communicate using DOT4, I do not know if you
have implemented support for that in you virtual USB thingy.

/christoph

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *Dennis Scott
*Sent:* Monday, August 23, 2010 12:45 AM
*To:* Windows System Software Devs Interest List
*Subject:* [ntdev] Not able to print a document using root enumerated usb
device.

Hi all,

I have a virtual bus driver which serves the purpose of enumerating USB
devices over the network, i have usb thumb drive, hard drive and some
printers working correctly,
But i have a printer with one interface and 2 alternate interface
initialization is being done correctly and i am able to see printer in the
printer and faxes folder,
but when i give a print out the windows shows an error saying printing
failed event log says
a. Document failed to print due to GDI/Driver error in rendering.
b. The document Test Page owned by XXXX failed to print on printer XXXX.
Data type: NT EMF 1.008. Size of the spool file in bytes: 145636. Number of
bytes printed: 0. Total number of pages in the document: 1. Number of
pages printed: 0. Client machine: \XXXX. Win32 error code returned by the
print processor: 31 (0x1f).

If i connect the printer directly to the system i dont see any problem.

The last IRP i receive is URB_FUNCTION_CLASS_INTERFACE during
initialization.

I went through the post of

James Harper

https://www.osronline.com/ShowThread.cfm?link=168353

should i enumerate root hub??

Dennis scott


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer