Using a Port for both Dial-In and Dial-Out

This procedure should be used when a modem is being used for both dialing in and dialing out. It is currently restricted to COM ports for use, as most communication ports require a COM port to operate.

Configure the modem port as a dial-in port, using standard procedures. Concurrent Controls has a set of procedures for initializing the port and modem for dial-in which are available via FAX.

With version 3.05, R9 or later, of CCI Concurrent DOS and the advent of the virtualized keyboard, many more communications programs can be used under CCI Concurrent DOS. However, most communications packages tend to leave the COM port in an unknown state upon exiting. CCI Concurrent DOS has a command that resets the port to it's original boot-up configuration - CCIMODE. After exiting the communications program issue the command CCIMODE COMx (where "x" is the number of the COM port - 1 or 2) BAUD_RATE (the baud rate being used for the modem) RESET. An example of this is:

CCIMODE COM1 9600 RESET

This command should be the last line of the batch file that calls up the dial-out program, so the reset will be issued to the COM port every time the communication program is exited.

There are some communication programs that require a complete reset of the COM port parameters (such as PARITY to EVEN, DATA BITS to 7 or even a change of BAUD RATE), and these need to be changed back before dial-in capability can be re-established. The following example resets all COM port parameters, and resets the modem. These three lines that should appear at the end of the communication batch file:

CCIMODE COM1 9600 NONE 8 1 RESET
FORCE XCOM1 ATZ
PDELAY 2
CCIMODE COM1 9600 RESET