DOS
DEVICE DRIVER DIAGNOSTIC TEST SOFTWARE PC COM V2

RUN TIME SUPPORT

4.1 How To Use Device

After device driver is installed, you may use device name as a file to perform I/O operations.

To send file to the COM4 port, the command is shown in the following.

A>copy filename COM4

To receive file from the COM5 port, the command is shown as

A>copy COM5 filename

4.2 Communication Parameters Set up

You may set up communication parameters by hardware configuration file, which will be executed when system is booted. However, you can set up communication parameters at run time by use SETUP command. The syntax specification of SETUP is

SETUP [/v,]portno,[baud,parity,data,stop][,MC=ms][,FC=fs]

The default parameters are baud=9600, parity=N, data=8, stop=1, no MODEM control and flow control.

/v

Verbose. List all setting parameters. After serial ports are setup, system will check whether the specified port is good, if the corresponding port is bad, system will prompt ???? to notice user.

portno

Specifies which port is control by PCCOM device driver.

baud

Baud rate. You may key in any baud rate, the device driver will adjust your baud rate to desire baud rate that the serial port can accept. If you key in 65535 baud, this means 115200. According to our test, The PCCOM device driver can accept up to 115200 baud under 8m cable.

parity

Parity bit. N : none parity,

E : even parity,

O : odd parity.

data

Data bits. 5 : five data bits,

6 : six data bits,

7 : seven data bits,

8 : eight data bits.

stop

Stop bits. 1 : one stop bit,

2 : two stop bits.

MC=ms

Select Modem Control Register. Multiple protocol will be selected, which are DTR, RTS, OUT1, OUT2. NONE means ignore.

FC=fs

Select hardware or software handshaking. Multiple protocol are selected which are DTR, RTS, and XON. NONE means ignore.

The following examples are provided to help clarify the use of the SETUP command.

EXAMPLE 4.2.1

A> SETUP 1,MC=DTR+RTS+OUT2

To setup I/O port 1. It set DTR, RTS, and OUT2 bits of modem control register, the default parameters are baud rate=9600, parity=N, data bits=8, stop bits=1, flow control is none.

EXAMPLE 4.2.2

A> SETUP /v,2,9600,E,8,2,MC=DTR+RTS,

FC=XON

To setup I/O port 2. Its handshaking protocol is XON/XOFF, baud rate is 9600, parity check is even, data bits is 8, stop bits is 2, modem control register is DTR+RTS. After I/O ports are setup, system lists all setting parameters.

EXAMPLE 4.2.3

A> SETUP 0,FC=XON

To setup I/O port 0. Its handshaking protocol is XON/XOFF. Baud rate =9600, parity check is none, data bits is 8, stop bits is 1, MC is none.

4.3 Setup and Status Report

You may change communication parameters, reset some communication flags or check the status of serial port by execute MODESET program, which is used interactively. When you execute the MODESET program, you only need to specify device name which you need, then modify communication parameters by arrow key to select the corresponding field.




HOME