Preview only previe...
 
Notifications
Clear all

Preview only preview?

17 Posts
4 Users
0 Reactions
5,674 Views
Posts: 48
 Ray
Topic starter
(@ray)
Trusted Member
Joined: 16 years ago

Checked the source of the parallel12 plugin in. It is definitely doing what I thought above. It is definitely defining a port Out function using the out32 function of inpout32.dll

(Use of inpout32.dll is ok for win95/98/ME since they don't restrict port output and is Ok for ISA parallel ports with WinXP/Vista but not at all for PCI parallel ports on XP/Vista. (according to the creator of inpout32.dll)

So it isn't Vixen that is using inpout32.dll but just the parallel12 plugin.

It isn't Vixen that doesn't allow parallel output thru PCI ports but this parallel12 plugin.

That explains why the 595 plugin works with pci parallel cards - it must not use this inpout32.dll.

Is there any way to get the source of the 595 plugin to verify what it does to get around "privileged instructions" in winXP? If not all the code, then perhaps just a hint of the methods used to access PCI parallel ports so I can try to write a PCI-compatible parallel12 plugin?


Reply
Posts: 48
 Ray
Topic starter
(@ray)
Trusted Member
Joined: 16 years ago

As a temporary workaround I'm going to look for an old computer with legacy parallel ports.

But I'm not dropping the plugin idea either. As a next year project I'll try to get a parallel8/12 plugin that understands PCI parallel ports. (Worth doing since all the new computers will have to have PCI cards if they want parallel) The Simple595 plugin seems to do that by using latches (unlike the parallel12 which tries port output and strikes out) so the idea is feasible. Just don't think I can do it before xmas.

Anyway I'm off to the plugins forum for advice.

Thanks again.
And a special thanks for the advice that set me looking at how the 595 plugin works with PCI parallel.


Reply
Posts: 48
 Ray
Topic starter
(@ray)
Trusted Member
Joined: 16 years ago

Just an update.

I spoke with the guy over at logix4u.net that makes the dll inpout32.dll that the Vixen parallel12 (and basic parallel?) plugin uses.

To recap: try to use the Vixen parallel12 plugin with a PCI parallel card and you get 0 output on the parallel cable. The parallel12 plugin just wraps all their parallel port requests around the functions in the inpout32.dll from logix4u. And those functions work only with with legacy or ISA parallel. So anyone attempting to use the parallel12 plugin with a PCI parallel port is just out of luck - and I can verify from experience that you get no signals on the parallel cable from a PCI port.

So I asked the logix4u guy about developing some similar functions for PCI parallel.My question to him was

"Anyway to convince you to include support for PCI parallel cards in iopout32.dll?"

His response
" Unfortunately no. It is very difficult if not impossible. Sorry that I'm unable to help you."

So I've gone to search for perhaps another .dll with functions that work with PCI parallel cards.Maybe rewrite the parallel12 plugin with wrappers around the new dll functions.


Reply
dirknerkle
Posts: 10311
(@dirknerkle)
Illustrious Member
Joined: 18 years ago
Ray wrote:Which windows are you using? Of course it will work in win95 or win98 but not in winXP since the earlier windows versions don't protect parallel port output.

I did it last year with XP using the Simple 595 plugin on a Dell computer. It worked fine, but then I decided that I wanted more than just blinky and I changed to a Ren-C and have been using serial Renard ever since.


Reply
Posts: 48
 Ray
Topic starter
(@ray)
Trusted Member
Joined: 16 years ago

And do you know if it was for PCI parallel?

As I stated I am looking at parallel12 which doesn't support PCI parallel in winXP since it wraps all its functions around the inpout32.dll, which doesn't support PCI.

But if you did get it working for PCI parallel then I would like to know HOW the 595 plugin writers managed to do PCI support. As I stated if you did it with PCI then there must be some way to make the same programming work with parallel12.


Reply
dirknerkle
Posts: 10311
(@dirknerkle)
Illustrious Member
Joined: 18 years ago

Yes, it was a PCI card. No, I never tried the parallel12 plugin -- I needed to use a second Olsen 595 board and I didn't want to daisy chain them, so I slipped in a PCI board, loaded the appropriate drivers, rebooted the box, checked the address of the 2nd port, plugged that into the Simple595 plugin and bingo. Blinky on two parallel ports.


Reply
Posts: 48
 Ray
Topic starter
(@ray)
Trusted Member
Joined: 16 years ago

Been looking into it further again.

Many people mention the 595 plugins but nobody gives the source code. So probably they are doing it differently than the parallel12 source which wraps around the inpout32.dll It's true the logix4u guys claim inpout32 doesn't work with PCI but you'd think it would still be able to work with PCI addresses. (However most modern programmers think this portin, port out stuff is so outmoded anyway, which is why winXP did away with it, allowing it only for kernel mode drivers. So maybe the wrapping of the parallel12 plugin around this is the problem. Supposedly one is to use createFile(LPT1 and writeFile to do port output. So maybe that is what the did in the 595 plugin that everybody swears works with PCI parallel on winXp and above)

However, with further research I think part of the problem is my PCI card only supports EPP. There is no SPP. From what I've found out about EPP it looks like you have to initialize the port before use, by sending 00000100 to the control register (base+2) Also it looks like EPP will timeout if it doesn't get a signal back on the Acknowledge line (pin 10) after 10 usec. So one is supposed to clear the timeout by reading the Statusregister (base+1) periodically. Hmm. Or maybe just connect pin10 to high?

Taking the rest of my input to the plugins forum. So won't add anything here again. Thanks again everyone.


Reply
Page 2 / 2
Share: