Author Topic: PCIe parallel port card  (Read 1028 times)

Neil Waldhauer

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 38
  • Posts: 496
    • View Profile
    • Blonde Guy
PCIe parallel port card
« on: December 16, 2019, 06:23:59 pm »
I've got an IOCrest PCI-Express parallel port card WCH 382 which I wanted to use for a second parallel port.

I think this ought to work with PRINT01.SYS, but so far, I do not have any success. I use /V so I can see the one parallel port, but no second port appears, so I guess the card is not recognized.

I have tried the updated driver on OS/2 World
https://www.os2world.com/wiki/index.php/Updated_PRINT01.SYS

I have attached a pci output for the computer.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 481
    • View Profile
Re: PCIe parallel port card
« Reply #1 on: December 16, 2019, 08:48:39 pm »
1) I cannot find this card in the PCI output

2) can you have a look at the card and give the "major" chip's product name (or make a PNG) ? If you have that, you can search for the HW spec which should show if it uses "parallel port" compatible ports or some memory mapped registers in which case PORT01.SYS cannot work.

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 481
    • View Profile

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 36
  • Posts: 884
    • View Profile
Re: PCIe parallel port card
« Reply #3 on: December 17, 2019, 12:11:25 am »
Hi Lars

Going by Neils product description it is this http://www.iocrest.com/en/product_details312_a.html which uses a WCH382 Chipset.


Regards

Pete

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 430
  • -Receive: 90
  • Posts: 2508
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: PCIe parallel port card
« Reply #4 on: December 17, 2019, 02:54:55 am »
Hi.
1) I cannot find this card in the PCI output

I think it is 1C00:3050 on the the pci-out.txt report.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Neil Waldhauer

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 38
  • Posts: 496
    • View Profile
    • Blonde Guy
Re: PCIe parallel port card
« Reply #5 on: December 17, 2019, 03:23:32 am »
The chip seems to say CH382 on it. The entire chip case is 6mm square, and the print is tiny. The box says WCH382. There are more numbers, but they are very difficult to read. I think Martin is correct about the Vendor ID/Chip ID.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 481
    • View Profile
Re: PCIe parallel port card
« Reply #6 on: December 17, 2019, 11:13:45 am »
I did not find a good HW manual for the chip. But with the given PCI output, I'd assume (that is: I don't know but it's likely) that the given I/O port range on your system (this is setup by the BIOS) is 0xE000 - 0xE0FF for the lower set of standard parallel port (and EPP) registers and 0xE100 - 0xE103 for the upper 4 registers (to support ECP).

It's obvious that these are not the standard I/O ports addresses for a standard parallel port and that's why it will not work with PRINT01.SYS or PAR1284.SYS for that matter.
However, the chip claims it DOES contain a IEEE1284 compliant controller which means it has the same set of operational registers as a standard parallel port with the very same functionality.

It would be possible to take the PAR1284.SYS source code (being part of the DDK) and "convert" that so that it uses the I/O port addresses that the BIOS has set up instead of the hard coded ones (standard parallel port addresses).

It's work but it is not impossible.

Lars
« Last Edit: December 17, 2019, 11:31:44 am by Lars »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 430
  • -Receive: 90
  • Posts: 2508
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: PCIe parallel port card
« Reply #7 on: December 17, 2019, 01:10:54 pm »
Hi. Can someone point me to download PAR1284.SYS ?
Martin Iturbide
OS2World NewsMaster
... just share the dream.

roberto

  • Sr. Member
  • ****
  • Thank You
  • -Given: 16
  • -Receive: 11
  • Posts: 497
    • View Profile

Tom

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 5
  • Posts: 29
    • View Profile
Re: PCIe parallel port card
« Reply #9 on: December 17, 2019, 06:04:40 pm »
You can find it at IBM's own FTP-site:

ftp://service.software.ibm.com/ps/products/os2/os2ddpak_old/

and then it is part of the file bidi.exe (which is a self-extracting archive)

Hi. Can someone point me to download PAR1284.SYS ?

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 481
    • View Profile
Re: PCIe parallel port card
« Reply #10 on: December 18, 2019, 07:41:48 am »
correction time:
I received a private email that pointed me to the fact that PRINT01.SYS supports file \OS2\BOOT\PCIDev.tbl.
I was not aware of that (I thought that was only for COM.SYS) but if yes, maybe this additional entry in PCIDev.tbl will do the trick (if I guess the syntax correctly,it is only poorly documented, my assumption is that each of the 6 possible entries after the vendor and device ids aligns with a BAR entry in PCI config space):

;IOCrest PCI-Express parallel port card WCH 382
1C00,3050,p1,,e1


Regards,
Lars
« Last Edit: December 18, 2019, 08:10:45 am by Lars »

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 481
    • View Profile
Re: PCIe parallel port card
« Reply #11 on: December 18, 2019, 07:49:48 am »
I just checked: PAR1284.SYS does NOT offer the PCIDev.tbl support even though it DOES support ECP and EPP parallel ports.
Can anyone enlighten me if PAR1284.SYS was superseded by an updated PRINT01.SYS that also supports ECP and EPP parallel ports plus support for non-legacy port addresses ?

Lars

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 481
    • View Profile
Re: PCIe parallel port card
« Reply #12 on: December 18, 2019, 09:17:59 am »
@Neil: I think you will need to disable all onboard/legacy parallel ports (hopefully possible to do that via BIOS).
I am not sure if PRINT01.SYS will be able to handle a mixed combination of legacy and PCI parallel port interfaces.


Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 481
    • View Profile
Re: PCIe parallel port card
« Reply #13 on: December 18, 2019, 12:07:41 pm »
@Neil,

if this does not work:
1C00,3050,p1,,e1

then try this:
1C00,3050,s,,p

and let us know what worked, if any :-)

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 481
    • View Profile
Re: PCIe parallel port card
« Reply #14 on: December 18, 2019, 12:31:50 pm »
and last but not least, if everything seems to fail, read the bottom of this page (regarding use of DOS config tool):

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