Another Newbie with PCIE parallel port problems

More
7 years 7 months ago #129734 by tommylight

cmelojr wrote: I could also be editing the .hal files incorrectly but from my understanding I find the line that reads:
"loadrt hal_parport cfg="0" and change it to "loadrt hal_parport cfg="0xc0x0" and since I only have the one port it should be good?

"loadrt hal_parport cfg="0xc0x0" <<< is wrong, "x" there is not to substitute a number, it is an actual address bit, it should be
"loadrt hal_parport cfg="0xc000"
or
"loadrt hal_parport cfg="0xc010"
The parallel port tester that comes with Linuxcnc is very good at testing ports, it has no "complexities", and parallel port is a Direct Memory Access device, so can not be tested same as serial port.
You can use a piece of wire and insert it on pins 2 and 10,11,12,13,15, so when you press pin 2 on hal pp tester you get a response on the input.
The thing with modprobe is not OK, i never had to do that to load the driver for parallel port.

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

More
7 years 7 months ago #129736 by cmelojr
The x in 0xc0x0 was just me trying to say I tried both 0xc000 and 0xc010 exactly like you say.

For the ptest what do you mean by response? I tried placing a jumper on 2 and a ground but couldn't get anything to happen. By clicking on pin 2 in ptest or not. I'll test the cable itself and retry now.

Interestingly about the modprobe you mention is I didn't have to do it this time I started the computer. The lspci I just posted is from a couple minutes ago without running those lines of code I mentioned.

Thanks, still trying to wrap my head around all this.

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

More
7 years 7 months ago #129739 by andypugh
Nothing in the dmesg that I was expecting, so perhaps you are using the uspace build of LinuxCNC with a preempt-rt kernel?

In that case the relevant info should be in the terminal window that you start the p-port tester from.

Are you definitely using a relatime kernel (uname -a will tell us)

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

More
7 years 7 months ago #129740 by tommylight
From your dmesg:
[ 16.623196] lp: driver loaded but no devices found
[ 16.908926] ppdev: user-space parallel port driver
Can you use "sudo lspci -v"

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

More
7 years 7 months ago - 7 years 7 months ago #129741 by cmelojr
Tested my parallel cable and that was good.

Ran uname -a and got this:
Linux LinuxCNC 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 GNU/Linux

Assuming the rtai is the real time kernel.

Jumped pin 2 two ground and ran ptest. I'm assuming that I must edit the following line: loadrt hal_parport cfg="0x378 out"
I tried 0xc000 and 0xc010 on that line with the pin 2 jumped to ground and hit the pin 2 button. Should I expect something?
Last edit: 7 years 7 months ago by cmelojr.

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

More
7 years 7 months ago #129743 by cmelojr
If I run sudo lspci -v then the ports show up as disabled. Attached my output. I tried running the series of commands again but this time with the same result of them showing up as disabled still.

:(

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

Time to create page: 0.105 seconds
Powered by Kunena Forum