Re: general purpose driver for Printer Port?



"anonym" <anonym@xxxxxxxxxx> wrote:

USB is attractive and more modern way to go but, it's more expensive on
hardware and I've yet to find anything that lets actual USB connected
hardware, directly generate an interrupt?

No, that's not how USB works, but you can certainly get the same effect.
The host controller gets interrupts, and returns completed packet requests
to the driver during its completion routine. The latency is quite good.

Since you mention it though, I notice (on my computer at least) that USB
shows up at I/O ports 1820-183F and using IRQ19. I imagine though, that
different motherboards may use different I/O mapping.

Where could I find some info on what "hardware" actually resides in that I/O
space and how to interact with it?

You can't. USB is a protocol driver, and you must communicate with the
host controller driver to talk to a USB device. USB is much more than just
a pair of wires.

Is it possible, that WITHOUT any PnP
detected/loaded driver or device ID or enumeration, one could directly
command a USB port to send/receive a packet?

No.

Is their a common chip-set
used or something like that, where I could read up on the topic?

Sort of. For USB 2.0, you can go fetch the EHCI specification, which all
USB 2.0 controllers follow. However, you can't play on USB without
following the whole specification, which makes it impractical for a
do-it-yourself solution.

I want to stay low-level as possible, since this gives the highest
flexibility and shortest latency!

It does NOT give the highest flexibility. Further, the response time for a
USB packet is just as good or better than a parallel port. A parallel port
can push about 1.5 MB/s. A USB device can transfer 45 MB/s.

This is what makes the good old parallel
port so attractive, in that it's just a data register for 8-bits of direct
I/O.

If you spent a little time playing with one of the FX2 development kits
from Cypress, or a PIC kit from Microchip, I think you would change your
tune. The extraordinary power and flexibility of USB makes it a much more
fun environment for experimentation than parallel ports, and it works on
those modern systems that no longer include a parallel port.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: [SLE] SuSe 9.0 - major problem with HP PSC 950 printer
    ... setup and/or kernel messages to verify correct base addresses in the ... * Some kind of deadlock with the services USB, ... for the PTAL service. ... This is why I recommend to use the parallel port whenever possible. ...
    (SuSE)
  • Re: Interfacing to parallel port dongle via USB adapter
    ... But newer computers, particularly laptops, do not have these legacy ports and instead use USB to Parallel converters. ... The usual solution is to obtain a USB dongle from the software vendor, but they require the user to be on "maintenance" in order to get a USB dongle, and they impose outrageous penalties and payment of back support in order to be reinstated. ... But I want to see if it is possible to emulate a parallel port via USB that will be transparent to the software that interfaces with the dongle. ... The parallel port hardware is mapped into the PC I/O space, and access is not constrained on any descrete time boundaries. ...
    (sci.electronics.design)
  • Re: pci-to-parallel vs usb-to-parallel?
    ... be impacted by other devices on the USB bus, ... Since USB 2 can deliver data much faster than the parallel device can consume it, even if you have multiple devices on a single USB bus, data will probably get to the printer fast enough for it to receive data at its highest design rate. ... parallel port speed for EPP/ECP is 2/2.5 MBits/s, while USB 1.x is 1.5/12 MBits. ... that system would potentially have issues with data transfer speeds. ...
    (Debian-User)
  • Re: Copy protection for a .NET application
    ... Well, William, there are many devices around that work as the hrdware locks. ... That you may put on Parallel port, serial port, USB, even I ... > scalability issues I would think. ...
    (microsoft.public.dotnet.framework)
  • Re: Copy protection for a .NET application
    ... Well, William, there are many devices around that work as the hrdware locks. ... That you may put on Parallel port, serial port, USB, even I ... > scalability issues I would think. ...
    (microsoft.public.dotnet.general)