Black Box SW927C manual Serial Port Control Utility, Admode COMn baud, parity, databits, stopbits

Page 20

MODULAR SMART SWITCH

6.10.2CHANGING THE TIMEOUT

The timeout period can be varied from the default of 16 seconds to any value between 1 and 255 seconds, or it can be permanently off. To do so, select the TIMEOUT option and type the required value into the entry box. Press <enter> to return to the options menu. To return to the default value of

16 seconds, press <escape>.

6.10.3SELECTING A PC PORT

If the correct PC port is not shown on the main menu (G in Figure

6-1), then use the PC PORT option to select this. Highlight the PC PORT option and type <enter>. Use the <up> and <down> cursor keys to select the desired port (highlighted) and then press <enter>. The PC port you have selected will now be displayed.

NOTE

The control software defines the routing from the selected port on your PC—it does not set the port that your software will use for output.

MODULAR SMART SWITCH

7. Serial Port Control Utility

The control software allows serial ports on IBM compatible PCs to be run at the high baud rates supported by the Modular Smart Switch. The utility can be used to control COM1 or COM2 and supports a wide range of protocols. The time-saving advantages of running serial ports at higher baud rates can be quite dramatic, and the control software makes sure that the correct protocol is used regardless of the settings on the application program.

Although DOS will normally only support baud rates up to 9600, most PCs are capable of running at much higher speeds of 19,200, 38,400, or 57,600 baud. A number of high-baud-rate utilities are available that act like the DOS MODE command. But these can be of little practical use, since many application programs change the baud rate and protocol when they run.

The control software overcomes this problem by preventing application programs from changing the baud rate or protocol of the serial port being controlled. This has two major advantages. First, the user does not need to worry about setting the baud rate and protocol in the application program. Second, high baud rates can be used for plotting from packages that would normally only support lower baud rates.

To run the control software, copy the program ADMODE.COM from the utility disk to a suitable directory on your PC. At the DOS prompt, type a command in the following format.

ADMODE COMn: baud, parity, databits, stopbits

You only need to include a parameter after baud if it needs to be changed from the default values shown in Table 7-1. The minimum command syntax is:

ADMODE COMn: baud

Example

To set serial port 1 (COM1) to 38400 baud, 8 data bits, 1 stop bit, and no parity, use the following command.

ADMODE COM1:38400,N,8,1 <enter>

High-Baud-Rate Limitations

In practice, almost all modern PCs will support baud rates of 38,400. However, a number of PCs that we tested were not able to support baud rates of 57,600 because of the design of their serial ports. If you have problems with particular PCs, try reducing the baud rate.

36

 

 

 

37

 

 

 

 

 

Image 20
Contents Modular Smart Switch Modular Smart Switch Modular Smart Switch Contents Chapter Modular Smart Switch Specifications FeaturesIntroduction Product InformationInstalling Memory and Port Modules Fitting Expansion-Buffer MemoryFitting Port Modules Fitting Port ModulesConfiguring the Modular Smart Switch Setting the Global Timeout PeriodTimeout Period OFFSetting Serial-Port Protocols and Options ProtocolsHardware Handshake Software HandshakeInstalling the Modular Smart Switch Positioning the Modular Smart SwitchConnecting Devices to the Modular Smart Switch Selecting Ports for Your EquipmentSwitching On Mode LPT1=COM1Enabling Computers Computers Connected to Parallel PortsBuffer Status Indicators Using the Modular Smart SwitchPort Indicators 1 to Using the Control Software Installing the Resident SoftwareCommand-Line Options Running the Control Software from the DOS PromptRight Shift Using the Control SoftwareRunning the Control Software from within Microsoft Windows Main Menu Selecting a Destination Printer, Plotter, or ModemDirect Output of Typed Keyboard Characters File Transfer Direct Output Functions Options DestinationUsing the Functions Menu Setting the OptionsSerial Port Control Utility Admode COMn baud, parity, databits, stopbitsExample High-Baud-Rate LimitationsUsing the Control Software with Windows Version EitherUsing the Modular Smart Switch to Transfer Files Transferring Files Between IBM Compatible PCsUsing the Control Software with File-Transfer Software Transferring Data Between PCs Not Compatible with IBMGeneral Hints and Tips HotkeySoftware Commands Connect CommandIntroduction PM ConnectClear Command End-of-File CommandPM Connect 1 Timeoutoff PM ClearSending Default Start-of-Day Destination Ports Troubleshooting Appendix a Serial Ports Merged PrintoutsPrint Data Transmitted but File Transfer Fails RS-232 and RS-422 Pin AssignmentsConnecting to Computers-RS-232 Connections CTSConnecting to Printers Connecting to ModemsConnecting to Plotters Connecting to NEC SpinwriterConnecting to DEC LN03 Laser Printer RS-422 CablesAppendix B Parallel Ports Parallel Pin AssignmentsCable to 36-Pin Amphenol Connector Cable for IBM PC, PC/XT, AT, or Compatible