RE: DOT4PRINT driver.

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Guillaume,

There is nothing wrong with the procedure you are following.
Actually there could be few reasons for the problem you are facing.
- It could be a timeout problem as you are suspecting. The reason could be a
delayed resonse or no response from the printer.
To exactly know whether the printer is responding you can use a debugger
(may be a usbmonitor) to really check what is happeing on port.

- If you are using high speed, just try with the full speed USB. It may work
because in this case if the device is slow still there is chance to read data.

One very specific case with few printers is taht they dont provide any
bi-directional support through readdata rather through control endpoint they
provide status.

The reason why with DeviIocontrol things are working is that its instant and
through control pipe.

Another option is you can try and put read in a loop with delay.... it wont
solve the problem but isolate the cause.

Hope this helps.

Thanks.
Hemanshu Srivastava

"Guillaume" wrote:

> Dear All,
>
> I would like to send/receive PJL to/from usb printers.
>
> To manage this, I find out that I had to:
>
> - Retrieve printer port from printer name using PRINTER_INFO_2 struct ;
> - Retrieve corresponding USBPrint interface (using setupapi) ;
> - Get the Symbolic path corresponding to the found interface ;
> - Use CreateFile () to open the printer ;
> - Use WriteFile () to send PJL to the printer ;
> - Use ReadFile () to get an answer back from the printer.
>
> Everything works find with Lexmark E321 USB printers.
>
> When I try this with a HP Laserjet 1320n, a timeout happens when
> reading data from the printer. That is weird as I can use
> DeviceIOControl without any problem.
>
> I don't know if it is of interest but HP Laserjet 1320n uses DOT4PRINT
> driver.
> I suspect it may cause the problem. Is there something to do to enable
> DOT4 bidirectionality? Otherwise, what could be the cause of the
> problem I encounter?
>
> I would really appreciate some help on this issue...
>
> Best regards,
>
> Guillaume.
>
>
.



Relevant Pages

  • Retrieve corresponding USBPrint interface
    ... Hi Guillaume, ... > I would like to send/receive PJL to/from usb printers. ... > I don't know if it is of interest but HP Laserjet 1320n uses DOT4PRINT ... > Best regards, ...
    (microsoft.public.development.device.drivers)
  • RE: Please help Reports Wizard doesnt work "OpenReport Action Canc
    ... Thanks FONS..Ya I was playing around with printer drivers and for some reason ... instead of using the HP laser 4100 I use the HP laserjet 4000 and its works ...
    (microsoft.public.access.reports)
  • Re: OT: Lexmark Optra Service Manuals
    ... For some reason she objects to them sitting ... >> LaserJet we had been using for over 10 years. ... davidfor at internode dot on dot net ...
    (comp.os.os2.misc)
  • How do I stop printer from printing all 200 pages
    ... For some reason my printer a HP LaserJet 4v decided to spool 200 pages instead of 1 page. ... I also clicked on the little printer icon on the task bar, and clicked on "cancel" ...
    (microsoft.public.windowsxp.general)
  • Re: OT: Lexmark Optra Service Manuals
    ... > Now I just have to appease "she who must be obeyed" and dispose of the ... For some reason she objects to them sitting ... > LaserJet we had been using for over 10 years. ...
    (comp.os.os2.misc)