windows nt supports up to 256 serial ports, from com1 to com256. to fully utilize windows nt’s multi-process and multi-thread advanced features, pure 32-bit windows nt device drivers were developed for the smartio cp-168u board and other moxa multiport boards. the drivers conform to the win32 comm api standard.
installing the driver
first time driver installation
the following procedure shows how to install the smartio cp-168u driver for the first time. first make sure the board or boards are already plugged into the system’s pci slot(s).
1. log into nt as administrator.
2. copy the folder windows.nt located under software\winnt\v5.7 on the software cd, to your computer’s hard disk (under the c: drive, for example).
3. open the [control panel], click the [network] icon, and then select the [adapters] tab.
4. click the [add] button, and then the [have disk...] button in the [select network adapter] dialog box.
5. specify the exact path of the driver diskette, c:\windows.nt in the example shown here, and then click [ok] to proceed.

6. select moxa smartio/industio family multiport board in select oem option dialog box, and then click [ok] to start installing the driver.

7. the moxa smartio/industio configuration panel dialog box appears. click the [add] button to open the property dialog box to change port settings and advanced fifo configuration done automatically by the system.

8. select the just installed cp-168u board from the board type pull-down list, click on a specific port item, and then click on the [port setting] button to open the port x window.

9. select a com number for the specific port from port number pull-down list.
10. check the auto enumerating com number check-box to have subsequent ports mapped to continuous com numbers. for example, if com3 is assigned to port 1, then com4 will be automatically assigned to port 2.
11. select an rx fifo trigger from the rx fifo trigger pull-down list. rx fifo trigger levels of from 1 to 62 are available, with a default value of 56 bytes. check the set the change to all ports check-box to apply the just defined rx fifo trigger to all ports.
12. select a tx fifo size from the tx fifo size pull-down list. tx fifo sizes are available from 1 to 64 bytes, with a default value of 64 bytes. check the set the change to all ports check-box to apply the just defined tx fifo size to all ports.

13. click [ok] in the port x dialog box to confirm the port settings, and then click [ok] in the property dialog box to complete the port settings and return to the moxa smartio/industio configuration panel dialog box. the configured cp-168u board will now appear in the moxa smartio/industio configuration panel dialog box, as shown below.

14. click [ok] in the moxa smartio/industio configuration panel to return to the network dialog box, and then click [ok] to exit the network dialog box.
15. restart the pc.
the driver configuration will not take effect until you restart the pc.
double check that all smartio cp-168u board components—the control board—are connected and fastened tightly to make sure that the system and the driver can start up successfully.
once the system restarts, you may check the event log issued by the moxa driver to see if the board’s ports have been initialized successfully.
enter the [administrative] group, click the [event viewer] icon, and then select [log] and [system] to check a message similar to “moxa cp-168u board, with first serial port com3, has been enabled” for each newly configured board.
if an error message similar to “cannot find any configured moxa smartio/industio series board!” pops up, refer to the troubleshooting chapter for possible solutions.
once the board and the driver are installed and the driver restarts successfully, you can start to develop applications with the pcomm library (see “serial programming tools”) or the microsoft win32 api. you can also use applications such as terminal emulator (see “serial programming tools”), a pcomm utility, or hyperterminal, to transmit/receive data, as well as remote access service to provide dial-up networking capabilities.
configuring the board and ports
re-configuring port settings
if the driver is already installed, and you only wish to re-configure the ports, refer to the following procedures. in addition to the procedures listed below, you may also click on [start] → [programs] → [moxa utility] → [moxa smartio/industio configuration panel] → [property], and then refer to the instructions in the previous section, “first time driver installation.”
1. open the [control panel], click on the [network] icon, and select the [adapters] tab.
2. click on moxa smartio/industio family adapter from the network adapters list to highlight it, and then click on [properties] to open the moxa smartio/industio configuration panel dialog box to change port settings and advanced fifo configuration.

3. click on [property] from the moxa smartio/industio configuration panel to open the property window.

4. next, refer to the instructions given in the previous section, “first time driver installation” from the “windows nt” section.

configuring another cp-168u board
in this section, we explain how to configure another moxa cp-168u board that is already installed. up to four cp-168u boards can be installed in one system under windows nt, provided sufficient system resources are available.
in addition to the procedures listed below, you may also click on [start] → [program] → [moxa utility] → [moxa smartio/industio configuration panel] → [add], and then refer to the instructions from the previous section, “installing the driver.”
1. open the [control panel], click on the [network] icon, and select the [adapters] tab.
2. click on moxa smartio/industio family adapter from the network adapters list.
3. click the [properties] button to open the moxa smartio/industio configuration panel dialog box.

4. next, refer to the instructions from the “first time driver installation” subsection.

removing an existing cp-168u board configuration
first shut down your pc, and then physically remove the cp-168u board from the pci slot. the next time you start up the pc, the system will automatically remove the configuration. there is no need to click the remove button in the moxa smartio/industio configuration panel dialog box.
updating the driver
take the following steps to update the smartio cp-168u board driver.
1. open [control panel], click on the [network] icon, and select the [adapters] tab.
2. click on moxa smartio/industio family adapter from the network adapter list.
3. click the [remove] button in the network dialog box.
4. click the [close] button in the network dialog box.
5. restart the system.
6. refer to the instructions given in the “first time driver installation” section to install the new driver.
removing the driver
to remove the smartio cp-168u board driver:
1. open the [control panel], click on the [network] icon, and select the [adapters] tab.
2. click on moxa smartio/industio family adapter from the network adapters list.
3. click the [remove] button in the network dialog box.

4. click the [close] button to exit the network dialog box.
5. restart the system to activate the new configuration.