USB to Parallel adapter?

Jun 27, 2006 28 Replies

"Jim Thompson" wrote in message news: snipped-for-privacy@4ax.com...

The problem is that devices like this, do not take 'parallel port commands', but direct bit I/O, often at high rates. So (for instance), the driver may issue something like a 1uSec pulse easily when talking directly to the port, but via the 'time sliced' system used on USB, this becomes very difficult indeed. The only 'universal' way to do it for output, would be to use something like a bulk I/O device, and sample the data to be sent perhaps every uSec, and then send this as a block to the USB device, which generates the output at the same rate. This however would fail, if the communication is bidirectional. If (for instance), the local driver expects to output a bit, and then only a uSec latter, retrieve a 'reply'. By the time the transmission is packetted up, and sent over USB, then the reply is received, hundreds of times the expected delay wuld have taken place. The way it can be done, is to put significant intelligence in the USB device, and program this to output the required patterns, and retrieve the data, then send this as a 'non timing critical' transaction over USB. This can be done, and several companies do such adapters for their older devices, but it requires a new local driver, and custom code in the USB device, which makes this a more expensive solution....

Best Wishes

Hello Jim,

Bit bangers do not believe there is an analog world. On account of Max Planck, they say.

Regards, Joerg http://www.analogconsultants.com

What makes you assume that?

The first three here have parallel ports:

I stuck angle brackets in hopes the link won't wrap.

I know, you don't have Fry's in Britain, but you must have _something_ like it! The motherboards all come from China anyway, after all. :-)

I think probably a whole lot of motherboards still have the parallel port, it's just that not all desktops load the connector.

A new PS wouldn't hurt either, and a decent operating system. ;-)

Good Luck! Rich

Ha, ha. It's not the connecting of the dots - it's trying to do _anything at all_ synchronously on a Windoze OS.

Good Luck! Rich

Apparently there is a low-level microsecond timer that can be accessed. See

formatting link
for some information.

Here is software that claims 1 millisecond asynchronous event scheduling:

formatting link

Here is another good reference page:

formatting link

However, it is probably best to say goodbye to the fading parallel port. In my case it may be a problem because I have some very expensive software that is protected by a dongle, and reverts to DEMO mode if it is removed (Save functions are disabled). I was worried about this in case I lost the dongle or it stopped working, or having to pay a huge price for a USB dongle. However, I found the ultimate solution. The VB script has a "Save" function that is not disabled, so I don't really need the dongle after all! Hooray for back doors!

Paul

USB doesn't like bitbanging because USB relies on polling. It is probably much easier to create something that works over ethernet.

Reply to nico@nctdevpuntnl (punt=.) Bedrijven en winkels vindt U op www.adresboekje.nl

At the risk of repeating myself since no one seems to have commented on my post, the practical solution is to get a PCIMIA card such as from

formatting link
. I have one and it works with my Velleman scope and Xilinx parallel cable.

There is no practical general purpose USB solution for all the reasons mentioned here. Cost wise the PCIMIA solution is similar to Pico USB adaptor but of course the PCIMIA solution works with all units needing LPT.

Also, for those on laptops, many laptop manufacturers take a few 'shortcuts' on their parallel port implementations. I don't know how many times I got a call from some engineer "I just got a new laptop, but the dongle doesn't work on it!" This was especially true for docking stations. It seems like they didn't implement all the pins directly, but multiplex them internally somehow...

Charlie

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required