Par port card problems what to do???

More
03 Dec 2011 01:14 #15310 by garymcrobertpdx
What is it with par port cards? I have a Netmos card that works fine
and the mother board par port works also.

I got a dual port Netmos card it fails to work????

I used the lspci -v and got the address

04:00.0 Communication controller: NetMos Technology PCI 9815 Multi-I/O Controller (rev 01)
Subsystem: LSI Logic / Symbios Logic 2P0S (2 port parallel adaptor)
Flags: medium devsel, IRQ 11
I/O ports at dcc8
I/O ports at dcd0
I/O ports at dcd8
I/O ports at dce0
I/O ports at dce8
I/O ports at dcf0

I tried each address one at a time.
loadrt hal_parport cfg="0xdcc8 out"
loadrt hal_parport cfg="0xdcd0 out"
loadrt hal_parport cfg="0xdcd8 out"
loadrt hal_parport cfg="0xdce0 out"
loadrt hal_parport cfg="0xdce8 out"
loadrt hal_parport cfg="0xdcf0 out"

Nothing! What is the magic incantation?

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

More
03 Dec 2011 09:38 #15322 by Rick G
Have you looked here...

wiki.linuxcnc.org/emcinfo.pl?NetMos

Rick G

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

More
04 Dec 2011 00:26 #15341 by andypugh
garymcrobertpdx wrote:

What is the magic incantation?


You can try [code] cat /proc/ioports[/quote] which should give you an unambiguous address.

Or try looking through dmesg, when parport_pc loads it says where it has found ports.

Or you could try using index numbers (0, 1, 2) rather than the port address in the loadrt line.

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

More
04 Dec 2011 02:18 #15351 by garymcrobertpdx
Hi

Yes I have been there and I tried the suggested procedure.

me@CNC:~$ /sbin/insmod /lib/modules/2.6.24-16-rtai/kernel/drivers/parport/parport_pc.ko
insmod: error inserting '/lib/modules/2.6.24-16-rtai/kernel/drivers/parport/parport_pc.ko': -1 Operation not permitted
me@CNC:~$

But as you can see it failed to deliver results perhaps due to my lack of experience with Linux???

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

More
04 Dec 2011 02:36 #15352 by garymcrobertpdx
Hi Andy

tried the command
me@CNC:~$ cat /proc/ioports
got a lot of stuff but I do see some thing familiar
d000-dfff : PCI Bus #04
dcc8-dccf : 0000:04:00.0
dcd0-dcd7 : 0000:04:00.0
dcd8-dcdf : 0000:04:00.0
dce0-dce7 : 0000:04:00.0
dce8-dcef : 0000:04:00.0
dcf0-dcff : 0000:04:00.0

This looks much like the results from the command
me@CNC:~$ lspci -v
Subsystem: LSI Logic / Symbios Logic 2P0S (2 port parallel adaptor)
Flags: medium devsel, IRQ 11
I/O ports at dcc8
I/O ports at dcd0
I/O ports at dcd8
I/O ports at dce0
I/O ports at dce8
I/O ports at dcf0 [size=16

tried using loadrt hal_parport cfg="0 out"EMC2 gave an error when launched it.
how did I screw up the syntax

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

More
04 Dec 2011 08:58 - 04 Dec 2011 09:04 #15355 by Rick G

tried using loadrt hal_parport cfg="0 out"EMC2 gave an error when launched it.


Have you tried without the "out"?
loadrt hal_parport cfg="0"
I beleive out is the default.

Does your motherboard also have a parallel port?

Rick G
Last edit: 04 Dec 2011 09:04 by Rick G.

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

More
04 Dec 2011 19:33 #15369 by garymcrobertpdx
Hi Rick / Andy

Looks like I have been barking up the wrong tree! the problem is not the address of the board.
But a problem with the boards lack of ability to source current. For some reason this card has
outputs that vary from 5ma to 0.1ma which is not adequate to drive a opto LED in a motor drive.

So why is this the case with one card and not another? what sort of weird design is this?
I sure would like to see a list of brand name par port cards that are known to work
properly, that sure could save a lot of time and irritation.

Anyway thank for your suggestions and help

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

More
04 Dec 2011 19:59 #15371 by BigJohnT
There doesn't seem to be much of a standard with parallel port cards, some work with anything, some don't do EPP some don't do input and some don't do anything... any chance the card is borked?

John

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

More
04 Dec 2011 20:09 #15372 by andypugh
garymcrobertpdx wrote:

Looks like I have been barking up the wrong tree! the problem is not the address of the board.
But a problem with the boards lack of ability to source current.


They generally do a lot better at sinking current.

Connect 5V to the top of the Opto, and connect the parport on the ground side, you will probably find that works a lot better.

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

More
04 Dec 2011 20:31 #15376 by garymcrobertpdx
Hi John

The card is new out of the box. I could build a add on buffer using something like
a 74HC244 but what a pain in the butt.. I miss the old ISA buss it was a snap to
ship data in and out of the IO buss via a TTL latch that could sink and source 20ma
with no screwing around.

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

Time to create page: 0.562 seconds
Powered by Kunena Forum