Parallel port problems on new build; pins 14 and 16 not working for spindle

More
04 Jul 2019 07:55 #138621 by PCW
"epp" mode is in the hal_parport manual page, and works for me ( it loads anyway... )
The following user(s) said Thank You: trebuchetguy

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 08:18 #138624 by andypugh
So it does!

linuxcnc.org/docs/2.8/html/man/man1/hal_parport.1.html

I suspect that it might still need to be set in the BIOS?
The following user(s) said Thank You: trebuchetguy

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 09:18 #138625 by PCW
Setting it in the BIOS only works on built-in motherboard ports.

If the parallel port follows the standard register map, its possible to set
the mode with direct port access. Not sure how hal_parport does it.
I'm wondering if it uses a linux parport driver call which would fail
if the parallel port was not detected by the linux parport driver

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 09:36 #138626 by andypugh

If the parallel port follows the standard register map, its possible to set
the mode with direct port access. Not sure how hal_parport does it.


Direct port output (outb)
github.com/LinuxCNC/linuxcnc/blob/master...s/hal_parport.c#L595

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 10:19 #138628 by PCW
Yeah so why the error message?
I'll try to duplicate this but will need to buy a couple PP cards
Pretty sure I've thrown all the ones I had out when we moved

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 11:51 #138633 by andypugh
Can you try loading just one p-port, then the other?

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 12:05 #138635 by trebuchetguy
Will do! It will probably be tomorrow before I get a chance to.

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 21:32 #138661 by trebuchetguy
Same error message when setting a single parallel port with epp mode, except that it only shows the error message once.

I'll work on putting on some pull up resistors on those pins now.

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 23:56 #138672 by PCW
What version of LinuxCNC?

Please Log in or Create an account to join the conversation.

More
05 Jul 2019 19:39 #138713 by trebuchetguy

Please Log in or Create an account to join the conversation.

Time to create page: 0.123 seconds
Powered by Kunena Forum