Return to site

Dosbox Serial Port Settings

broken image


Login screen for Digital Distortion BBS as seen in Telemate under DOSBox.

  1. First, configure DOSBox with a serial port emulating a modem: serial serial1 = modem listenport:2323 Next, launch your favorite DOS terminal or BBS hosting software and configure its corresponding serial port with default settings, as follows: COM1: - COM port 1 - 8N1 data-bits, stop-bits, and parity - 57600 baud - 03F8 address - IRQ4.
  2. About: DOSBox emulates a full x86 PC with sound and DOS (for e.g. To run old DOS games). Fossies Dox: dosbox-0.74-3.tar.gz ('inofficial' and yet experimental doxygen-generated source code documentation).

You can specify other machine settings such as graphics, memory, and sound. It is somewhat equivalent to a virtual machine. The vast majority of software ever written for DOS (including Windows 1.x, 2.x, and 3.x) will run on DOSBox. Mounting Drives And Commands To Run On Startup.

A few months ago I wrote about my experiences trying to telnet in to Atari BBSes using an emulated Atari on my Mac.

Basically the solution boiled down to this: Use tcpser4j to change a telnet connection to a serial connection, use socat to pipe that serial connection to a file, and set the Hatari emulator to use that file as a virtual RS232 device. After those steps, I could run my favorite old Atari ST terminal programs like ANSIterm and Freeze Dried Terminal.

Recently I decided I wanted to do the same thing with a DOS emulator like DOSBox — but for different reasons.

What I wanted to try this time were DOS front-end programs for BBS door games like Global War, Land of Devastation, and TradeWars. These front-ends work only in DOS, and each one is unique. They offer special features like EGA or SVGA graphics or sound effects. I'll write more about these front-ends in the near future.

Setting up DOSBox

Before I could do try using front-ends, first I had to learn how to telnet from a regular terminal program on an emulated PC.

Turns out that it's really easy. And the folks at StarBase 21 BBS have already written a great tutorial on how to do it.

Dosbox Serial Port Settings Windows 7

Basically, you don't need anything except DOSBox! No socat. No tcpser. DOSBox has its own built-in routines for piping a telnet connection through its virtual serial port.

Dosbox Serial Port Setup

I'll condense the SB21 instructions (and clarify one detail for Macs), in case you'd like to try this yourself:

1. Download a copy of Telemate or Telix or whatever DOS terminal program you want

2. Download a copy of the latest version of DOSBox for your platform (for me, Mac OS X)

3. Install DOSBox on your machine. This is fairly easy, but if you get stuck you can find help on the DOSBox wiki

4. Edit the config files in a text editor like Notepad, Sublime Text, Text Edit, etc. As the SB21 tutorial explains, the location of the file varies by platform:

Windows XP: %USERPROFILE%Local SettingsApplication DataDOSBoxdosbox-#.##.conf
Windows Vista / 7: {system drive}:Users{username}AppDataLocalDOSBoxdosbox-#.##.conf
Mac OS X: {username}/Library/Preferences/DOSBox #.## Preferences

(Please note that the SB21 tutorial is slightly mistaken about OS X. On the Mac it is not a .conf file)

4a. Go to the 'serial' section beginning on line 199 and change these two lines:

to

4b. Go to the 'autoexec' section beginning on line 239 and add a mount instruction. This will tell DOSBox to use a folder on your computer as a hard drive for the emulated DOS PC.

If you're on Windows, you might put this:

On a Mac, you might put this:

Serial

Save and close the config file after making this change.

5. On your computer, create that 'dos' folder at the location you specified in step 4b.

6. Unzip the terminal program you downloaded in step 1 into the dos folder you created in step 5.

7. Run DOSBox. You should now be able to launch your terminal program! Be sure to change the baud rate to the highest available speed.

8. To telnet to a BBS, just type old Hayes 'AT' modem commands into the terminal — but with a telnet address instead of a phone number. For example:

Dosbox

Save and close the config file after making this change.

5. On your computer, create that 'dos' folder at the location you specified in step 4b.

6. Unzip the terminal program you downloaded in step 1 into the dos folder you created in step 5.

7. Run DOSBox. You should now be able to launch your terminal program! Be sure to change the baud rate to the highest available speed.

8. To telnet to a BBS, just type old Hayes 'AT' modem commands into the terminal — but with a telnet address instead of a phone number. For example:

You should be golden!

Related





broken image