Table of Contents
Synchronet Virtual DOS Modem
SVDM is a MODEM emulator for Windows which utilizes the Synchronet Virtual UART/FOSSIL Driver (
DOSXTRN.EXE/SBBSEXEC.DLL) to enable support for DOS communications programs on Windows NT-based operating systems. 64-bit Windows support is enabled by also installing NTVDMx64.
SVDM should run on 32-bit and 64-bit editions of Windows XP and later.
Although SVDM reuses components of the Synchronet BBS Software and shares some of its source code and libraries, it is is not technically “part of” Synchronet BBS nor is it required for the normal use or operation of a Synchronet BBS.
You can find the latest “release” of SVDM available for download (as
svdm??.zip) at http://synchro.net/Synchronet/.
- Use 16-bit DOS terminal programs (e.g. Telix, ProComm, Qmodem, Telemate, etc.) to connect to Internet-connected BBSes
- Use 16-bit DOS terminal program's “host mode” to accept incoming Telnet or “Raw TCP” connections from Internet clients
- Use 16-bit DOS BBS program (e.g. Synchronet v1/2, WWIVv4, TriBBS, etc.) to accept incoming Telnet or “Raw TCP” connections from Internet users
- Run 16-bit DOS door programs from Internet-connected BBSes (with the SVDM
- Open source (Microsoft Visual C)
- Emulates an NS16550 UART
- Provides a FOSSIL/PC-BIOS (int14h) software interface
- IPv4 and IPv6 support (for inbound and outbound connections)
- Inbound connection filtering based on IP address/range
- Telnet client and server support
- Raw TCP client and server support
- Play optional sound (wave) files upon “ring”, connection, and disconnection
- Accurate Hayes Smartmodem / USRobotics Sportster Modem “AT Command Set” emulation
- Complete with virtual NVRAM settings/number storage (i.e. AT&W, AT&Zn=S)
- Optional auto-answer (ATS0=1)
- RING result upon incoming connections
- Verbal and numeric result modes
- Caller ID support (enabled with AT+VCID=1 or AT#CID=1)
- “Dial” IP addresses or hostnames with optionally-specified TCP port and/or protocol
SVDM currently does not include an “installer”, so you will need to copy the following files to a directory ideally in your system's search path:
svdm.exe- the main program (modem emulator)
svdm.ini- configuration settings, optional
dosxtrn.exe- 16-bit FOSSIL driver and VDD loader
sbbsexec.dll- 32-bit Virtual UART/Device Driver
On 32-bit editions of Windows Vista and later,
sbbsexec.dll must also be copied to your
Windows/System32 directory (by an administrator).
The general usage is to use
svdm to execute the 16-bit DOS communications program of interest. Any command-line options you want to pass to the program may be specified on the command-line after the program path/filename.
usage: svdm [-opts] <program> [options] opts: -telnet Use Telnet protocol by default -raw Use Raw TCP by default -4 Use IPv4 address family by default -6 Use IPv6 address family by default -l[addr] Listen for incoming TCP connections [on optionally-specified network interface] -p<port> Specify default TCP port number (decimal) -n<node> Specify node number -d Enable debug output -h<sock> Specify socket descriptor/handle to use (decimal) -r<cps> Specify maximum receive data rate (chars/second) -c<fname> Specify alternate configuration (.ini) path/filename -V Display detailed version information and exit
When utilizing UART (COM Port) virtualization (e.g. with most DOS terminal programs and some DOS door programs), be sure to enable RTS/CTS hardware flow control in the DOS program and do not enable DTR/DSR or XON/XOFF (software) flow control.
For DOS programs using UART/COM Port I/O, the COM port number (or I/O port and IRQ) must match what SVDM is virtualizing. By default, SVDM virtualizes COM 1 (I/O Port 3F8, IRQ 4), but this can be changed globally or per program via the
For DOS programs using the PC-BIOS/FOSSIL int14h interface, all COM ports are supported and treated identically (i.e. the
DX register value is ignored).
The DTE baud rate set by the DOS program is not used by SVDM (i.e. the transmit and receive data rates are only limited by the TCP/IP network). If you wish to artificially limit the receive data rate for some reason (not normally necessary), you can use the
-r command-line option or the “Rate” key in the root section of
svdm.ini to set the maximum receive rate, in characters per second.
A DTE rate of 38400 bps is reflected by virtual device driver and if the DOS program attempts to change this value, there is no effect.
For incoming TCP connections, SVDM will report either “CONNECT 9600” or just “CONNECT” (assumed 300 bps) depending on the modem's extended response (
Bits o' Parity
The communication data (word) bit width, stop bits, and parity settings used by the DOS program are not used by SVDM. The equivalent of 8 data bits, no parity, and one stop bit, is assumed.
If the DOS program de-asserts (“drops”) DTR, the TCP connection will be terminated (by default). Alternatively, the DOS program can send the escape sequence (by default, “+++”, surrounded by a one second guard time of inactivity) to enter command mode and then send “ATH” or “ATH0” to disconnect.
Run Telix (popular comm program for MS-DOS from the 1980s):
Run Renegade BBS Software (in WFC mode), listening on all network interfaces for incoming TCP connections:
svdm -l renegade
SVDM responds to the
ATD dial command to perform an outbound TCP connection. If the first character of the dial-string (following the 'D') is an uppercase 'T' or 'P', this character is ignored as it was used to specify “tone” or “pulse” dialing on the old telephone system and not relevant to TCP/IP connections. For example, any of the following commands may be used to “dial” test.synchro.net:
ATDTtest.synchro.net ATDPtest.synchro.net ATDtest.synchro.net atdtest.synchro.net
The address to “dial” may be specified as a DNS hostname, an IPv4 address, or an IPv6 address:
ATDvert.synchro.net ATD192.168.1.2 ATD[::1]
The TCP port to connect to may be specified following the address and a colon:
ATDvert.synchro.net:23 ATD192.168.1.2:23 ATD[::1]:23
The TCP protocol to connect with may be specified (followed by a colon) before the address:
ATDtelnet:vert.synchro.net ATDtelnet:192.168.1.2 ATDraw:[::1]
The last “number dialed” can be dialed again by dialing 'L' or 'l':
Up to 20 dial strings (numbers) can be stored using the
Saved dial strings (numbers) can be queried/displayed using the
Saved dial strings (numbers) can be dialed by using the
If your DOS terminal program of choice has trouble dialing long dial strings (e.g. accommodating long DNS hostnames or IPv6 addresses), try using the saved number storage feature to resolve that limitation. After enter the following command, dialing “S0” as a “phone number” would actually connect to “telnet:vert.synchro.net:23”.
Another option for dialing longer dial strings is specify “aliases” in the
[alias] section of your
svdm.ini file. Any combination of printable ASCII characters may be used for a dial string alias, except for the colon (
:) and equals (
SVDM's behavior can be customized or modified by specifying command-line parameters, invoking modem “AT commands”, or creating/modifying a
The default configuration file
svdm.ini will be loaded from the same directory where the executed
svdm.exe is located.
|Root|| || || Specify the TCP protocol:
|Root|| || ||Specify the TCP port number|
|Root|| || ||Specify the BBS node number|
|Root|| || ||Enable listening for incoming TCP connections|
|Root|| || ||Enable debug output|
|Root|| || ||Set virtual UART/FOSSIL driver log level|
|Root|| || ||Set time-slice yield interval (in milliseconds) for FOSSIL driver|
|Root|| || || Set to
|Root|| || ||The server (e.g. BBS) is expected to echo input back to the client (for Telnet option negotiation)|
|Root|| || ||Limit receive rate to a specific number of characters-per-second|
|Root|| || ||Default IP address family: “unspec”, “ipv4”, or “ipv6”|
|Root|| ||hard-coded||Message to send before disconnecting remote connections when already-servicing a remote client/user connection|
|Root|| ||hard-coded||Message to display upon incoming connections, blank to disable|
|Root|| ||blank||Wave file to play upon incoming “ring”|
|Root|| ||blank||Wave file to play upon connection|
|Root|| ||blank||Wave file to play upon disconnection|
|Root|| ||blank||Path/filename of file containing lists of IP addresses/patterns/ranges to reject incoming connections from|
|Root|| || ||File to write incoming connected client information (e.g. IP address), blank to disable|
| || || || Automatically answer/accept incoming TCP-connection attempts (
| || || || Incoming/client IP address reporting between RING results (
| || || || Send AT command characters back to terminal (
| || || || Respond to AT commands (
| || || || Respond to AT commands with numeric rather than verbal result codes (
| || || || ASCII value of carriage return character (
| || || || ASCII value of line feed character (
| || || || ASCII value of backspace character (
| || || || ASCII value of escape character (
| || || || Extended results mode (
| || || || Dial timeout in seconds (
| || || || Escape sequence Guard time in 20-millisecond units (
| || || ||Virtualize a UART (COM Port) in addition to providing a FOSSIL service|
| || || ||COM Port number (e.g. 1-4) to virtualize|
| || ||depends||Hardware interrupt request (IRQ) line to virtualize, e.g. 4|
| || ||depends|| Hardware I/O port base address (use
| ||various|| Each key is a unique dial string alias (e.g.
| ||various|| See
Settings changed via modem AT command take precedence over command-line options which take precedence over .ini file settings.
Settings in the Root section may also be specified in a program-specific section (named after the program itself), to create program-specific settings.
Settings in the
UART section may also be over-ridden in a program-specific section but naming the section
For example, by default SVDM emulates a UART for COM Port 1 (I/O address 0x3f8, IRQ 4), but you could change the emulated COM Port for one particular program by creating a program-specific UART section in the
AT Command Set
SVDM will recognize and respond to modem commands only when in “command mode”.
When there is no active connection, “command mode” is the current mode. When there is an active connection, the terminal can force the modem into command mode by sending the Hayes-302 escape sequence (by default, “+++”) with the minimum guard time of inactivity before and after the escape sequence. The duration of the guard time (default of one second) and the character repeated 3 times for the escape sequence are configurable via modem S-registers.
Modem commands are prefixed by “AT” (case-insensitively), which stands for “attention”, hence the name “AT Command”.
After the initial “AT” is sent to the modem, zero or more commands may be specified, followed by a final carriage-return (CR) character. The ASCII values of the carriage-return and line-feed characters are configurable via modem S-registers. The backspace character (configurable via S-register) is recognized as a destructive edit command to modify a command sequence before the command is submitted (usually with the ENTER key).
If all of the commands are valid, then the modem will respond with the “OK” response (or
0 in numeric response mode). There are exceptions (e.g.
If any of the commands are invalid, then the modem will respond with the “ERROR” response (or
4 in numeric response mode).
Any white-space characters within the AT command sequence are ignored.
Some commands (e.g.
&Zn=), must be the last command of the command sequence since they accept an arbitrary string argument that may contain otherwise-valid AT command characters and sequences.
| ||Answer an incoming call (accept an incoming TCP connection)|
| ||Dial a number string (connect to the specified TCP host)|
| || Set command echo (e.g.
| || Control ON/OFF hook (e.g.
| ||Display modem information|
| ||Control speaker volume (ignored)|
| || Enable speaker (e.g.
| ||Return online (from command mode)|
| || Display/suppress result codes (e.g.
| ||Pulse mode dialing (ignored)|
| ||Set register r to n.|
| ||Display value of S-Register r.|
| ||Tone mode dialing (ignored)|
| || Control verbal result codes (e.g.
| || Control extended result codes (e.g.
| || Initialize/re-initialize modem (e.g. re-read
| || Write modem settings to
| ||Store a dial string s into slot n (0-19)|
| ||Store last-dialed string into slot n (0-19)|
| ||Display saved dial string from slot n|
| ||Display last dialed string|
| || Control Caller ID reporting (alias:
| || Query Caller ID enabled status (alias:
S-Registers store additional/advanced modem settings as decimal-numeric values:
|0||0||Auto-answer after this number of rings|
|1||0||Counts number of phone rings|
|2||43||ASCII value of escape code character (128-255 to disable)|
|3||13||ASCII value of carriage-return character|
|4||10||ASCII value of line-feed character|
|5||8||ASCII value of backspace character|
|7||60||Number of seconds to wait for carrier (TCP connection success)|
|12||50||Guard time duration (in 20 millisecond units)|