OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Hardware => Topic started by: Neil Waldhauer on December 16, 2019, 06:23:59 pm

Title: PCIe parallel port card
Post by: Neil Waldhauer 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 (https://www.os2world.com/wiki/index.php/Updated_PRINT01.SYS)

I have attached a pci output for the computer.
Title: Re: PCIe parallel port card
Post by: Lars 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.
Title: Re: PCIe parallel port card
Post by: Lars on December 16, 2019, 09:13:21 pm
Does it, by any chance, use this chip:
https://www.asix.com.tw/faq.php?op=faqdetail&PItemID=120&FaqNoID=#440

or this one:
https://www.asix.com.tw/faq.php?op=faqdetail&PItemID=130&FaqNoID=#518


Title: Re: PCIe parallel port card
Post by: Pete 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
Title: Re: PCIe parallel port card
Post by: Martin Iturbide 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
Title: Re: PCIe parallel port card
Post by: Neil Waldhauer 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.
Title: Re: PCIe parallel port card
Post by: Lars 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
Title: Re: PCIe parallel port card
Post by: Martin Iturbide on December 17, 2019, 01:10:54 pm
Hi. Can someone point me to download PAR1284.SYS ?
Title: Re: PCIe parallel port card
Post by: roberto on December 17, 2019, 04:34:39 pm
Martin
ftp://asavage.dyndns.org/OS2/Printers/Bidirectional/bidi.exe

The file is Bidi.exe
The web
http://asavage.dyndns.org/OS2/Warp4Install/Warp4Install.html
saludos
Title: Re: PCIe parallel port card
Post by: Tom 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 ?
Title: Re: PCIe parallel port card
Post by: Lars 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
Title: Re: PCIe parallel port card
Post by: Lars 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
Title: Re: PCIe parallel port card
Post by: Lars 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.

Title: Re: PCIe parallel port card
Post by: Lars 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 :-)
Title: Re: PCIe parallel port card
Post by: Lars 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