Parallell Port PCI & PCIe Add In Card Info Thread

More
14 Jun 2021 00:35 - 14 Jun 2021 06:56 #211982 by BeagleBrainz
I'll preface by stating that I don't have any PCI\PCIe cards to work with, tho I thought I did.
I feel it's about that time to attempt to get a centralised one stop thread for the various cards out there that people have got to work and those cards that don't work. Now we are not taking about onboard\builtin parallel ports that typically have the address of 0x378, 0x3bc & 0x278. We are dealing with users who either didn't have a Parallel and had to use an add in card or required a 2nd parallel port card.

I think to begin if we could have the output the command below with the stanza just applicable to the Parallel Port card. If you have a link to the thread that you start to get this card going, if successful that would be great as well.
sudo lspci -vnn

I would imagine a post could be in the form of, please note that as I don't have a PP card to play with I've used the output for my wifi card, just so you can get a feel for the info. First to post will have their info put in the example if that is ok.


For a working card

Card working
Link to my thread:
Data regarding card
03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:0085] (rev 34)
Subsystem: Intel Corporation Centrino Advanced-N 6205 (802.11a/b/g/n) [8086:1311]
Flags: bus master, fast devsel, latency 0, IRQ 32
Memory at f3000000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number a4-4e-31-ff-ff-e1-a2-88
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi


For a non working card
Card not working
Link to my thread:
Data regarding card
03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:0085] (rev 34)
Subsystem: Intel Corporation Centrino Advanced-N 6205 (802.11a/b/g/n) [8086:1311]
Flags: bus master, fast devsel, latency 0, IRQ 32
Memory at f3000000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number a4-4e-31-ff-ff-e1-a2-88
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi



I know guess there will be some overlap on those that work and those that don't. Eventually I'll gather some cards myself and add too the list.
Hopefully what we will end up with is a reliable database & links to threads that have got cards going. And maybe a list that those that are inhabited by evil spirits.

Links & Stuff:
Some comparisons by Andy
forum.linuxcnc.org/38-general-linuxcnc-q...sic-questions#102070


Another good thread from ArcEye
forum.linuxcnc.org/18-computer/18917-faq...-parallel-port-cards


From KV Creates, execellant youtube channel www.youtube.com/channel/UCISg96UTdJCzrF7ifmr6Esw
kvvcreates.com/linux-parallel-port-cards/


Some helpful stuff on the wiki, a little outdated in some cases:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Cards
wiki.linuxcnc.org/cgi-bin/wiki.pl?NetMos


linuxcnc.org/docs/2.8/html/examples/pci-parallel-port.html


Regarding hal_parport:
linuxcnc.org/docs/2.8/html/hal/parallel-port.html


Parallel Port Tester
wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Tester


A tester can aslo be found in the Linuxcnc Config Selector

Some Notes:
www.vdwalle.com/Norte/Second%20Parport.htm


Anyway to all those that get involved Thank You.
Attachments:
Last edit: 14 Jun 2021 06:56 by BeagleBrainz.
The following user(s) said Thank You: phillc54, tommylight

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

More
14 Jun 2021 01:09 #211985 by BeagleBrainz
Some observations from reading the code for hal_parport and the Linux kernel drivers for the parallel port. Feel free to correct my mistakes.

From what I can gather if your add in card as a PCI ID that the Linux Kernel is aware of, the parallel port card should "register" with the system. If not you may have to "register" the parallel port by something such as:
sudo modprobe parport_pc io=0xe100 irq=11
Now this will last between boots but will will come to that at other stage, if in fact it is reliable.
Obviously the IO & IRQ were obtained via
sudo lspci -vnn

What appears to happen inside hal_parport is that it questions the Linux Kernel regarding the Parallel Port parameters given when initially loading, if in fact the kernel "knows" about it, the hal_parport driver asks for exclusive use, which means if you try to print from an application to a printer that you think is connected the Linux Kernel will not allow this to happen. If the Kernel has no knowledge of a parallel port being then you get the dreaded "Linux parallel port @xxxxx not found". Which is frustrating as you know that the address is reported by the card. So this could be why "registering" or telling the kernel that the parallel port is actually there may work.

The inspiration for this theory and looking at the code came from this thread:
forum.linuxcnc.org/10-advanced-configura...-port-solved?start=0

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

More
14 Jun 2021 01:31 - 28 Jun 2021 03:29 #211987 by BeagleBrainz
This is a list of the PCI IDs that the kernel should know about from 4.19.106-rt44-lcnc kernel:
PCi ID Vendor:1C00 Device:3050 - WCH CH382L PCIe single port parallel card highly recommended for Linux > 4.9
PCi ID Vendor:135C Device:0278
PCi ID Vendor:9710 Device:9865 - Working PCI 9865 Multi-I/O Controller MosChip Semiconductor Technology Ltd. PCI
PCi ID Vendor:9710 Device:9865
PCi ID Vendor:9710 Device:9901
PCi ID Vendor:9710 Device:9815
PCi ID Vendor:9710 Device:9805
PCi ID Vendor:9710 Device:9755
PCi ID Vendor:9710 Device:9715
PCi ID Vendor:9710 Device:9705
PCi ID Vendor:14F2 Device:0121
PCi ID Vendor:416C Device:0100
PCi ID Vendor:1415 Device:C11C
PCi ID Vendor:1415 Device:C118
PCi ID Vendor:1415 Device:C114
PCi ID Vendor:1415 Device:C110 - Working PCIe StarTech PEX1P - Oxford Semiconductor Ltd Device
PCi ID Vendor:1415 Device:C104
PCi ID Vendor:1415 Device:C100
PCi ID Vendor:1415 Device:C004
PCi ID Vendor:1415 Device:C000
PCi ID Vendor:1415 Device:8403 - Working OX9162 Mode 0 (parallel port) Oxford Semiconductor Ltd PCI
PCi ID Vendor:1415 Device:9513
PCi ID Vendor:1415 Device:9523 - Working OX16PCI952 Integrated Parallel Port Oxford Semiconductor Ltd PCI
PCi ID Vendor:14DB Device:2121
PCi ID Vendor:14DB Device:2120
PCi ID Vendor:14D2 Device:8001
PCi ID Vendor:1592 Device:0783
PCi ID Vendor:1592 Device:0782
PCi ID Vendor:1409 Device:7268 - Working SUN1888 (Dual IEEE1284 parallel port) Timedia Technology Co Ltd PCI
PCi ID Vendor:1409 Device:7268
PCi ID Vendor:1409 Device:7268
PCi ID Vendor:1409 Device:7268
PCi ID Vendor:1409 Device:7268
PCi ID Vendor:10B5 Device:9050
PCi ID Vendor:1407 Device:8800
PCi ID Vendor:1407 Device:8003
PCi ID Vendor:1407 Device:8002
PCi ID Vendor:1407 Device:8000
PCi ID Vendor:131F Device:2021
PCi ID Vendor:131F Device:2020
PCi ID Vendor:131F Device:1021 - Working Siig IncCyberParallel (2-port)
PCi ID Vendor:131F Device:1020
PCi ID Vendor:1283 Device:8872
PCi ID Vendor:1106 Device:8231
PCi ID Vendor:1106 Device:0686

Links to other boards by PCI ID
a000:2000 NetMos Technology PCI 9865 Multi-I/O Controller
Some users have had success others reported non working.
Successforum.linuxcnc.org/38-general-linuxcnc-q...arallel-card?start=0
Successforum.linuxcnc.org/9-installing-linuxcnc...-pci-e-parallel-port

1c00:3250 CH382_2S1P (not a Linuxcnc forum post)
Success www.linux.org/threads/solved-unable-to-f...nc-as-parport.24355/
Wiki Entry from Bari. Hoping to obtain a similar card and have a go at the mod to the zero ohm resistor.
Success wiki.linuxcnc.org/cgi-bin/wiki.pl?WCH[/color]
Last edit: 28 Jun 2021 03:29 by BeagleBrainz.

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

More
14 Jun 2021 04:46 - 14 Jun 2021 05:31 #211997 by phillc54
StarTech PEX1P, this is the only parallel port in the machine and it works with the following in HAL:
loadrt hal_parport cfg="0 out"

Output from sudo lspci -vnn
01:00.0 Parallel controller [0701]: Oxford Semiconductor Ltd Device [1415:c110] (prog-if 02 [ECP])
	Subsystem: Oxford Semiconductor Ltd Device [1415:c110]
	Flags: bus master, fast devsel, latency 0, IRQ 16
	I/O ports at dc00 [size=8]
	I/O ports at d880 [size=4]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Legacy Endpoint, MSI 00
	Capabilities: [100] Device Serial Number 00-30-e0-11-11-00-01-10
	Capabilities: [110] Power Budgeting <?>
	Kernel driver in use: parport_pc
	Kernel modules: parport_pc

Although looking at current prices I wouldn't buy one now...

www.startech.com/en-us/cards-adapters/pex1p
Last edit: 14 Jun 2021 05:31 by phillc54.
The following user(s) said Thank You: BeagleBrainz

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

More
15 Jun 2021 23:20 #212154 by andypugh
I have a bundle of cards I bought to do a sort-of survey with, I will try to remember to fish them out and do the analysis.

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

More
16 Jun 2021 00:21 #212161 by BeagleBrainz
Many thanks Andy, I linked to a post where you did a mini survey.

I've been trolling the interwebs to find as much info as I can. Hopefully the community will be able to create a "one-stop" resource for Parallel Port cards.

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

More
16 Jun 2021 03:13 #212168 by phillc54
Another working card, labelled as SD-PEX10005, works with the following in HAL
loadrt hal_parport cfg="dc00 out"

It does show the silly "Linux parallel port @56320 not found" error but it runs the machine fine.

Output from sudo lspci -vnn
01:00.0 Parallel controller [0701]: MosChip Semiconductor Technology Ltd. MCS9900 Multi-I/O Controller [9710:9900] (prog-if 03 [IEEE1284])
	Subsystem: Device [a000:2000]
	Flags: bus master, fast devsel, latency 0, IRQ 10
	I/O ports at dc00 [size=8]
	I/O ports at d880 [size=8]
	Memory at feaff000 (32-bit, non-prefetchable) [size=4K]
	Memory at feafe000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Power Management version 3
	Capabilities: [80] Express Legacy Endpoint, MSI 00
	Capabilities: [100] Virtual Channel
	Capabilities: [800] Advanced Error Reporting

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

More
16 Jun 2021 04:10 - 16 Jun 2021 06:00 #212171 by BeagleBrainz
If you could do me a favour.

Before running Linuxcnc could you try.
sudo modprobe parport_pc io=0xdc00 irq=10
sudo dmesg -C
sudo dmesg

The first dmesg clears the log. Then run Linuxcnc and see if that clears the "Linux parallel port @56320 not found" message and all runs ok ?


Cheers
Rob
Last edit: 16 Jun 2021 06:00 by BeagleBrainz.

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

More
16 Jun 2021 04:27 #212172 by phillc54
No change after those commands, everything still run fine.
garage:~ $ sudo modprobe parport_pc io=0xdc00 irq=10
garage:~ $ sudo dmesg -C
garage:~ $ ~/linuxcnc-dev/scripts/linuxcnc ~/linuxcnc/configs/mill/mill.ini
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/phill/linuxcnc/configs/mill'
Machine configuration file is 'mill.ini.expanded'
Starting LinuxCNC...
Found file(REL): ./mill.hal
Note: Using POSIX realtime
config string 'dc00 out'
Linux parallel port @56320 not found
Found file(REL): ./../pendant/pendant-mill.hal
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
Linux parallel port @56320 not found

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

More
16 Jun 2021 05:56 - 16 Jun 2021 05:57 #212176 by BeagleBrainz
Cheers Phill

I mess up the commands. :silly:
Should have been
sudo dmesg -C
sudo modprobe parport_pc io=0xdc00 irq=10
sudo dmesg

Maybe after the next reboot.
Last edit: 16 Jun 2021 05:57 by BeagleBrainz.

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

Time to create page: 0.102 seconds
Powered by Kunena Forum