Computing.Net > Forums > Disk Operating System > Adding serial ports - DOS procedures?

Adding serial ports - DOS procedures?

Reply to Message Icon

Original Message
Name: Roger Selby
Date: January 10, 2002 at 06:26:53 Pacific
Subject: Adding serial ports - DOS procedures?
Comment:

Hi - I'm trying to add a 2 - serial port card to a Pentium 266 machine - I have to have two 9-pin ports for a DOS program I need to run. I think I understand the procedure for configuring the ports/IRQs/comm designations via Windows 95 (went through all that), but is there something else I should be doing to allow the new ports to work with a DOS program running at bootup from a floppy disk? Editing a config file or something? The DOS program doesn't seem to be able to utilize the ports when the machine is booted up into DOS mode..... Thanks for any help!


Report Offensive Message For Removal


Response Number 1
Name: Andrew Ordo
Date: January 10, 2002 at 07:41:08 Pacific
Subject: Adding serial ports - DOS procedures?
Reply: (edit)

There is no procedure for "adding" serial or parallel ports in DOS. DOS applications simply talk directly to whatever hardware happens to be present at whatever I/O port(s) they're trying to talk to.

All you need to do to use additional serial ports in DOS is correctly configure your hardware. The following are the usual default resource assignments for serial ports under DOS:

PORT BASE I/O IRQ
ADDR.

COM1 3f8 4
COM2 2f8 3
COM3 3e8 4 *
COM4 2e8 3*


*This is the typical brain-dead default setting, but obviously, you probably wouldn't want to assign the same IRQ for more two serial ports. You can usually get away with this if you're not going to be using both ports at the same time, but ideally, you would want to assign IRQs other than 3 or 4 to COM3 and COM4. Sadly, there are some stupidly-designed serial port add-on boards that don't allow you to choose IRQs other than 3 or 4 for COM3 or COM4. Needless to say, these should probably be avoided!

Here's the catches:

1. Your serial port hardware must actually be accessible in real mode. This seems like a no-brainer, but I've seen some pretty wacky PCI and USB-based serial port add-ons that obviously won't work in real mode! My recommendation: If you're going to be adding serial ports to be used under real mode DOS, use a non plug and play, ISA serial port adapter card that has jumpers that let you select a unique IRQ for each serial port. These aren't that hard to find. If your system doesn't have ISA slots, you may be out of luck.

2. The hardware resources for the serial ports must be correctly configured. Some really fancy DOS apps might let you tell the program what resources you're using for your ports. Most DOS apps assume you're using standard the standard I/O port assignments. Some DOS apps may only support IRQs 3 and 4 for serial ports.

3. DOS only supports four serial ports. Theoretically, there might be ways around this limitation, but for practical purposes, four's the limit.


If your serial port hardware is accessible to DOS in real mode (no funky USB or PCI multi-port adapters) and the ports are properly configured, they should work.

If your additional ports aren't on a non plug and play ISA adapter card, good luck.

If your motherboard has one or more built-in serial ports, you may need to reconfigure, enable, or disable them, depending on your situation, using the CMOS setup utility built into the motherboard BIOS.

If you're using serial ports built into your motherboard, make sure the physical 9-pin D-sub connectors in the back of your computer are connected to the correct headers on the motherboard. I've seen more than a dozen systems shipped straight from the factory from reputable companies like Dell, IBM, and Gateway that didn't have the serial port connectors on the back of the computer correctly connected to the motherboard headers. In most cases, the connections for serial port 1 and serial port 2 were swapped. You'd be amazed how often this happens.

Utilities like Microsoft Diagnostics (MSD.EXE) and Norton Utilities can be useful for seeing what serial ports are visible to DOS and how they're probably configured. (Don't rely on these too much, it is theoretically possible for software to incorrectly report system resource settings, even with ISA hardware.)

I hope some of this helps.


Report Offensive Follow Up For Removal

Response Number 2
Name: Roger Selby
Date: January 10, 2002 at 10:49:33 Pacific
Subject: Adding serial ports - DOS procedures?
Reply: (edit)

Thanks for the hints - I'll see if one or another of the suggestions (or a combination of several) will hit the spot...

RMS


Report Offensive Follow Up For Removal

Response Number 3
Name: Roger Selby
Date: January 10, 2002 at 11:18:01 Pacific
Subject: Adding serial ports - DOS procedures?
Reply: (edit)

Originally I left the motherboard com port 1 set to IRQ 4, and set the jumpers on the new card to IRQ 10 (the only unused IRQ)and com 2 for one port, and left the jumpers off to disable the third un-needed port. Perhaps that is the problem there, if the DOS program requires com 2 to be IRQ 3 by default.

Another related question - I have an ethernet card in there as well - does that get assigned a comm number by the system - perhaps that is a complication?


Report Offensive Follow Up For Removal

Response Number 4
Name: Andrew Ordo
Date: January 10, 2002 at 15:03:07 Pacific
Subject: Adding serial ports - DOS procedures?
Reply: (edit)

Roger,

I would definitely try assiging IRQ 3 to COM2 (along with base I/O port address 2f8). The DOS program may very well expect COM2 to use IRQ 3.

Some DOS programs are hard coded to use specific resources. For example, a lot of older DOS games are actually hard coded to use ONLY IRQ 5 for sound cards! (The developers were making the assumption you were using a Creative Labs Game Blaster, Sound Blaster, or something compatible.)

Ethernet adapters don't get assigned COM numbers; they're not COM ports. Ethernet does use a serial methodology for data transfer, but it's not the same sort of RS-232 serial port commonly referred to as a "COM" port.

Good luck getting your serial port working!


Report Offensive Follow Up For Removal

Response Number 5
Name: Roger Selby
Date: January 11, 2002 at 11:37:49 Pacific
Subject: Adding serial ports - DOS procedures?
Reply: (edit)

Hey Andrew -

It looks like changing the IRQ for com port 2 to the standard "3" did the trick right off the bat. The DOS app was able to communicate to the devise connected to com 2 right away without even having to make any bios/cmos adjustments. Thanks very much for the hints and advice! Very generous and patient of you!

This forum is a real lifesaver - very helpful for me - I have only recently migrated to wintel platforms from an obscure platform I won't mention in public, so I'm pretty taken aback by all of the complications and pitfalls required to be dealt with in making a wintel box continue to work. I long for the simple days of my old obscure 16 bit platform. It definately had its limitations but created far less headaches whenever I added something new. And way more stable. Lot less inexplicable corruption, conflicts, crashes, freezes, etc...

Roger S.


Report Offensive Follow Up For Removal


Response Number 6
Name: Tim Miller
Date: March 20, 2002 at 22:56:04 Pacific
Subject: Adding serial ports - DOS procedures?
Reply: (edit)

Sounds like you are emulating. Freetv HAHAHAHAHAHAHA
Glad to see it working.
HAck On


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Adding serial ports - DOS procedures?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge