Linux / linuxcnc can't see my parallel port card


Page 1 of 2 12 LastLast
Results 1 to 12 of 20

Thread: Linux / linuxcnc can't see my parallel port card

  1. #1
    Member
    Join Date
    Mar 2017
    Location
    United States
    Posts
    797
    Downloads
    0
    Uploads
    0

    Default Linux / linuxcnc can't see my parallel port card

    I finally got around to finishing my CNC machine build and I installed Linux / Linuxcnc but it doesn't seem to recognize my pci parallel card....

    Is there something else I am supposed to do to make it see the card or should I just assume I bought one that was not compatible with Linux in some way?

    Similar Threads:


  2. #2
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    What parallel port address have you selected?

    If the parallel port is a add-on card you need to determine its address
    or use "0" (first parallel port) or "1" (second parallel port) as the port address

    The default 0x378 address will not work for add-on parallel port cards



  3. #3
    Member
    Join Date
    Mar 2017
    Location
    United States
    Posts
    797
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    Quote Originally Posted by PCW_MESA View Post
    What parallel port address have you selected?

    If the parallel port is a add-on card you need to determine its address
    or use "0" (first parallel port) or "1" (second parallel port) as the port address

    The default 0x378 address will not work for add-on parallel port cards
    My parallel port is a PCI card, not one that it built into the motherboard. I am not sure what chipset it uses etc as it's a random eBay purchase. The card has no branding or model number on it.

    I saw a video on how to find it's adress but the problem is that it does not come up in the linux terminal when I search through the list of hardware. It's not that I can't find the address, it's that I can't find anything that says parallel port. It's as if the card just isn't there.

    My understanding is that, if the card works, it should be listed as "parallel port" along with the rest of the hardware in the linux terminal.

    is there something else I need to do before finding the address to make linux see the card?



  4. #4
    Community Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    520
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    lspci -v | grep par

    That command will tell you if the OS sees the parallel port card.

    Mark



  5. #5
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    I'm pretty that you don't need Linux to recognize the parallel port for linuxCNC to be able to use the port, as long as you can find the ports physical base address
    (if Linux does not recognize the card, you cannot use the 0,1,2 address shortcut for first,second, third ports and must have the physical I/O address)

    You should be able to find the card with lspci, though it may be described as a "communication" card not a parallel port

    What are the markings on the main chip on the parallel port card? This may give you a clue to finding the card address in the lspci listing



  6. #6
    Member
    Join Date
    Mar 2017
    Location
    United States
    Posts
    797
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    Quote Originally Posted by wendtmk View Post
    lspci -v | grep par

    That command will tell you if the OS sees the parallel port card.

    Mark
    That's the issue. It does not see it at all.

    There is something that says "serial" but nothing with "parallel" in the description.



  7. #7
    Member
    Join Date
    Mar 2017
    Location
    United States
    Posts
    797
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    Quote Originally Posted by PCW_MESA View Post
    I'm pretty that you don't need Linux to recognize the parallel port for linuxCNC to be able to use the port, as long as you can find the ports physical base address
    (if Linux does not recognize the card, you cannot use the 0,1,2 address shortcut for first,second, third ports and must have the physical I/O address)

    You should be able to find the card with lspci, though it may be described as a "communication" card not a parallel port

    What are the markings on the main chip on the parallel port card? This may give you a clue to finding the card address in the lspci listing
    The only thing I can see in the list that I don't recognize is something described as "serial card". I am going to try removing the card and running the LSPCI - v command to see what is missing.

    btw, when I took a pic of the card, I found some writing on the chip which said WKH CH382L. When I put that into a google search, this comes up:

    http://www.mmui.com.cn/en/product_details85_a.html

    it says that it is compatible with Linux and supports "plug in and play". I guess they lied...



  8. #8
    Member
    Join Date
    Mar 2017
    Location
    United States
    Posts
    797
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    It looks like there is a specific reason why Linux doesn't start the driver according to this site: LinuxCNC Documentation Wiki: WCH

    It says this but it doesn't say if there is a fix besides cutting pin 63 (which is not labelled):

    The problem here is that, AFAIK, only Dev. IDs 3250 and 3253 are present in the Linux kernel serial/parallel drivers and therefore Dev. ID 3050 which is for the parallel port only configuration, isn't recognised and no driver is started. The manufacturer, WCH, provides Windows drivers and a DOS configuration application even allowing it to be used in the DOS 0x3BC/378/278 io port address ranges and selection of SPP or ECP/EPP modes. Device ID is set by zero-ohm links connected to pins 62 and 63 of the WCH382 chip - It may be possible to remove the link connected to pin 63 of the chip causing the card to identify as a serial/parallel combo card with Dev. ID 3250.



  9. #9
    Community Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    520
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    You can try it. Probably easier just to get a supported card - LinuxCNC Documentation Wiki: LinuxCNC Supported Hardware

    Mark



  10. #10
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    Quote Originally Posted by wendtmk View Post
    You can try it. Probably easier just to get a supported card - LinuxCNC Documentation Wiki: LinuxCNC Supported Hardware

    Mark
    You could also just try the address of the device found by lspci, LinuxCNCs parallel port driver
    ( hal_parport ) does not depend on Linux's driver at all so if the hardware works and you can
    determine the base address, you should be good to go.

    ( There are exceptions as some broken parallel port cards require vendor specific initialization )



  11. #11
    Member
    Join Date
    Mar 2017
    Location
    United States
    Posts
    797
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    Quote Originally Posted by PCW_MESA View Post
    You could also just try the address of the device found by lspci, LinuxCNCs parallel port driver
    ( hal_parport ) does not depend on Linux's driver at all so if the hardware works and you can
    determine the base address, you should be good to go.

    ( There are exceptions as some broken parallel port cards require vendor specific initialization )
    I already tried that. It doesn't work. I haven't even been able to get linuxcnc to open yet. It just produces an incredibly long error message. It's like "here's a copy of War and Peace, the answers in there somewhere".

    A new card arrived today and Linux can't recognize that one as a parallel port card either. It thinks they are all serial cards and the new one has both serial and parallel. Just my luck, it can see the serial port but not the parallel.

    At this point, I'm starting to wish I had just bought a USB solution... or gone with Windows software.



  12. #12
    Member machinehop5's Avatar
    Join Date
    Aug 2009
    Location
    United States
    Posts
    176
    Downloads
    0
    Uploads
    0

    Default Re: Linux / linuxcnc can't see my parallel port card

    Just a thought......what shows up in your Start up BIOS of the motherboard Options?



Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Linux / linuxcnc can't see my parallel port card

Linux / linuxcnc can't see my parallel port card