Problems using plugin PCI parallel port as main IO.

More
9 years 11 months ago #82439 by Mouse
0x1008 was unresponsive and 0x100b gave the following error on the Linux CNC error window.
Code:
Debug file information: . Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: Device or resource busy ./beastatronVFD.hal:6: exit value: 1 ./beastatronVFD.hal:6: insmod for hal_parport failed, returned -1 See the output of 'dmesg' for more information. 8861 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components

I have also noticed that dmesg has the parallel port at 0x1008 but also on IRQ 23, does this need to also be set?
Code:
[ 10.720118] PCI parallel port detected: 14f2:0121, I/O at 0x1008(0x0), IRQ 23 [ 10.720140] parport0: PC-style at 0x1008, irq 23 [PCSPP,TRISTATE,EPP]

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

More
9 years 11 months ago #82440 by Todd Zuercher
Reboot and try 0x100b again.

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

More
9 years 11 months ago #82442 by Mouse
Same error as I described above. :(

I'm off for the weekend but will try out any further suggestions on Monday.

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

More
9 years 11 months ago #82444 by Todd Zuercher
Just noticed that both the addresses from your above cat /proc/ioports | grep parport are listed as parport 0. When I use that command on a machine with multiple parallel ports I get this.
Code:
0378-037a : parport0 e030-e032 : parport2 e050-e052 : parport1

Something goofy is going on. Before when you said 0x1008 was "unresponsive" what did you mean? Unresponsive to what?

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

More
9 years 11 months ago #82533 by Mouse

"unresponsive" what did you mean?

The stepper drivers receive no signal indicating the parallel port is not giving an output when running Linux CNC.
I am using the same LinuxCNC setup with the only change being the address of the port. So all being well the machine should work if the port address is correct however as you suggest something goofy might be going on.

I am considering connecting up some LEDs direct to the parallel port and some test code to flash them as a next move on diagnosing the problem.

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

More
9 years 11 months ago #82540 by andypugh
Try running the config apps/parport, that is a simple parallel port tester.
You will need to edit the HAL file and restart to change the base address.

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

Moderators: PCW, jmelson
Time to create page: 0.170 seconds
Powered by Kunena Forum