Another Newbie with PCIE parallel port problems

More
7 years 7 months ago #129638 by cmelojr
So it could be that it's my BOB which is the cheap chinese one that gets thrown in with stepperdriver/stepper combos but I'll describe where I'm at.

pcie card I have is the netmos 9900 variety HERE

Following instructions in the wiki and what I found in other threads I run lspci -v and find that the ports are disabled so I run:
sudo modprobe parport_pc
sudo rmmod ppdev
sudo rmmod lp
sudo rmmod parport_pc

Then that is cleared up.

However I can't get it to control anything. So I downloaded the Ptest file here and tried editing the .hal to enter my two possible ports(0xc000 or 0xc010) while monitor the pin I'm trying to activate and get nothing. I've tried probing the BOB and the cable pins themselves with a voltmeter. Putting them on for example pin 2 and ground. I believe I should see 5 volts here if everything were working correctly?

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?

I've seen other have trouble with this card so maybe I just need to buy a new one but I feel like I've gotten past the problems that others seem to get hung up on so maybe it's not the card.

Thanks for any help

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

More
7 years 7 months ago #129708 by andypugh
Maybe you have an onboard parallel port (as a header) and that is parport 0.
You could try 1.

I assume that you got 0xc000 from lspci?

If you start LinuxCNC then quit it, then look at dmesg in the terminal, is there anything interesting on the last 100 lines or so about parports?

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

More
7 years 7 months ago #129709 by cmelojr
I don't think there's any on board parallel port even as an unused header but I'll double check tonight.

I did find c000 and c010 when using lscpi. Both 8 pin which I assume were the two "halves" of the same card/port? Either way I tried both and neither worked but maybe like us said I need to try parport 1. I assume that's editing the .hal where I see parport 0 to 1s. Or do I have to add additional lines that are 1s?

I'll also restart it and check dmesg when I get home.

I would have copy and pasted all my actual files and information from the terminal but the linux cnc machine isn't connected to the internet.

Thanks for the suggestions

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

More
7 years 7 months ago - 7 years 7 months ago #129718 by Richard J Kinch

cmelojr wrote: Thanks for the suggestions


I am just starting a project step of integrating the identical PCIe parallel port card as a second port for an already-running LinuxCNC system running on a ASRock Q1900B-ITX motherboard with an on-board port that works well.

What is your situation with BIOS settings? Was that considered in your installation process?

Have you experimented with getting something simpler in Linux to run the port (something similar to the "echo hello > /dev/lp0" of olden days), to isolate yourself from the LinuxCNC complexities?

On the electrical level, it's best to have some conservative test device with +5VDC and pullup resistors, that you've proven to work on a known-working port. Otherwise you can get trapped in a situation where there's more than one problem that single-point diagnosis can't solve.
Last edit: 7 years 7 months ago by Richard J Kinch.

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

More
7 years 7 months ago #129722 by cmelojr
I have looked in the BIOS but whatever motherboard is in the PC from Lenovo has very simplistic BIOS settings. Nothing I can change that relates to the PCIe. I do remember reading that someone else had trouble with the BIOS and that's one thing I checked last night.

I'm not at all familiar with "echo hello > /dev/lp0" but what I mentioned trying is using this: wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Tester

I can't be certain I was using it right nor probing the pins correctly. To better describe what I was doing is I had a DVM probe on pin 2 for example and the other probe on one of the grounds. Then used Ptest to try and activate pin 2. I was looking for 5 volts which I did not see but like you said there are so many other things that could be not working or I could be doing wrong. I suppose another thing I can check is that the cable at least has continuity. I have no other parallel port devices so there's not really anything else I can check that I have on hand.

This gives me more things to check though, thank you.

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

More
7 years 7 months ago #129733 by cmelojr
So I've started to do more digging. For those that may be interested it's a Lenovo K450e desktop with a CIB85M Motherboard. No onboard parallel ports.

Restarted and looked at dmesg which I'll attach as well as lspci

I also retried starting a new stepconf with a 1 for parport base address

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

Time to create page: 0.371 seconds
Powered by Kunena Forum