PCI-E Parallel Card Problem

More
27 Jun 2021 14:13 #213022 by probamo
Replied by probamo on topic PCI-E Parallel Card Problem
I have read everything you posted, and looked in wiki, and on youtube how to set hal file for PCIe parport card. More-less took advance lessons, rather than basic course :-),Found celeron with very good latency (see file latency) attracted my attention, but w/o parport card on the motherboard. There is only PCIe slot available. The card is WCH (CD with drivers comes as a package) with 2S1P (2 serials 1 parallel). According to instruction I installed driver (make, make install) and reboot system. Enclosed file 2 showing there is lp,parport, ..., but in lspci -v there is no single identification of any card that kind, or I miss something?Thank you, 


 

File Attachment:

File Name: lspci-v.tar.gz
File Size:2 KB
Attachments:

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

More
27 Jun 2021 14:15 #213023 by probamo
Replied by probamo on topic PCI-E Parallel Card Problem
Forgot to say, in BIOS no any single item enabling/disabling slot

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

More
27 Jun 2021 15:08 - 27 Jun 2021 15:09 #213024 by PCW
Replied by PCW on topic PCI-E Parallel Card Problem
Probably this:

03:00.0 Serial controller: Device 1c00:3250 (rev 10) (prog-if 05 [16850])

Also since Linux found a parallel port, you should be able to use "0" as an address
Last edit: 27 Jun 2021 15:09 by PCW.

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

More
27 Jun 2021 16:30 #213028 by probamo
Replied by probamo on topic PCI-E Parallel Card Problem
Yes it is. I plugged in and plugged out card and found out the same. I connected comp to the machine, with port address '0', w/o success. Machine did not respond to the commands on any axis, and noise came from the electrical cabinet such as no control on the drivers and BoB at all.

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

More
28 Jun 2021 02:34 - 28 Jun 2021 03:03 #213075 by Bari
Replied by Bari on topic PCI-E Parallel Card Problem
wiki.linuxcnc.org/cgi-bin/wiki.pl?WCH   parallel port 2 serial ports when the Dev. ID is 3250

They come with an ancient CD for Windows and Linux drivers for kernel 2.6.The drivers are in all the latest kernels since 4.9 or 4.19

"According to instruction I installed driver (make, make install) and reboot system." You don't have to do this. I'm not sure what that makefile will do to new system.

File Attachment:

File Name: wch_devtable.c
File Size:17 KB

File Attachment:

File Name: wch_main.c
File Size:33 KB

File Attachment:

File Name: wch_common.h
File Size:19 KB

File Attachment:

File Name: wch_serial.c
File Size:86 KB
Attachments:
Last edit: 28 Jun 2021 03:03 by Bari. Reason: added source files

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

More
28 Jun 2021 02:55 - 28 Jun 2021 03:10 #213078 by BeagleBrainz

It looks like there are impostor cards with the CH382L chip number that are not using the CH382L.

The correct PCI device ID should be 9710:9805

If your PCI ID is 1c00:3050 you have an impostor. 1c00 is not even a good PCI vendor ID.

wiki.linuxcnc.org/cgi-bin/wiki.pl?WCH

pci-ids.ucw.cz/read/PC?restrict=1
1c00 is not on the vendor list




 
OK  on my kernel 4.19.106-rt44-lcnc

I get
rmurphy@thinkPad-t530:~/PP/CH38XDRV/DRV_2S1P/LINUX/driver$ modinfo parport_pc | grep 1C00
alias: pci:v00001C00d00003050sv00001C00sd00003050bc*sc*i*
rmurphy@thinkPad-t530:~$ modinfo parport_serial | grep 1C00
alias:          pci:v00001C00d00003250sv00001C00sd00003250bc*sc*i*
alias:          pci:v00001C00d00003050sv00001C00sd00003050bc*sc*i*


Which leads me to believe that 1C00:3050 is a supported card.
Looking at the output for lsmod by the poster lp,ppdev,parport_pc,parport are loaded.

If all is well there should be an entry here /proc/sys/dev/parport/ for parport0 (if the PCIe card is the only card) there also should be an entry under /dev/ for parport0

The output of
sudo dmesg | grep parport
will be useful.
I have a wch382 card on order to play with and will play around with the zero ohm links to see what happens.
The driver will compile for my kernel, but I think the driver is for the serial port only, as there is no deps on parport or parport_pc
Last edit: 28 Jun 2021 03:10 by BeagleBrainz.

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

More
28 Jun 2021 03:00 - 28 Jun 2021 03:04 #213080 by Bari
Replied by Bari on topic PCI-E Parallel Card Problem
My old post was wrong: 06 Apr 2017 23:50 #90987

We dug into the issue later and the wiki has all the new info.

wiki.linuxcnc.org/cgi-bin/wiki.pl?WCH
Last edit: 28 Jun 2021 03:04 by Bari.
The following user(s) said Thank You: BeagleBrainz

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

More
28 Jun 2021 03:08 #213081 by BeagleBrainz
Looks like we repeated the same info.

Hope that wasn't a problem Bari.
I've added a link to your wiki entry here: forum.linuxcnc.org/18-computer/42826-par...d-info-thread#211987

I'm making an attempt to collate as much info as I can, hopefully for a "one stop" place for PP cards PCI & PCIe .

I wonder how much it would cost to have some cards produced that could be guaranteed to work with Linuxcnc.(maybe too much for too little return) Or maybe just a ebay store with "Linuxcnc Certified" cards ;)

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

More
28 Jun 2021 03:12 - 28 Jun 2021 22:41 #213082 by Bari
Replied by Bari on topic PCI-E Parallel Card Problem
I have used a ton of the 1C00:3050 cards without issue for the past few years.

WCH CH382L PCIe single port parallel card
 
Attachments:
Last edit: 28 Jun 2021 22:41 by Bari. Reason: added datasheet for WCH CH382L (Chinese only)
The following user(s) said Thank You: BeagleBrainz

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

More
28 Jun 2021 18:12 #213164 by probamo
Replied by probamo on topic PCI-E Parallel Card Problem
I installed Wheezy and LCNC2.8.1 meaning RTAI kernel 3.4.x if not wrong. Today 2.8.2 is realised, I am gonna update it, and not sure if new RTAI kernel wold be updated as well 4.19 that might have already included driver for PCIe. Let you know outcomes.

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

Time to create page: 0.137 seconds
Powered by Kunena Forum