Moxa Technologies CB-108 User Manual

Moxa Technologies CB-108 User Manual

Pc/104-plus multiport serial module
Hide thumbs Also See for CB-108:

Advertisement

Quick Links

CB Series PC/104-Plus Multiport Serial Module
User's Manual
www.moxa.com/product
Fourth Edition, January 2008
© 2008 Moxa Inc., all rights reserved.
Reproduction without permission is prohibited.

Advertisement

Table of Contents
loading

Summary of Contents for Moxa Technologies CB-108

  • Page 1 CB Series PC/104-Plus Multiport Serial Module User’s Manual www.moxa.com/product Fourth Edition, January 2008 © 2008 Moxa Inc., all rights reserved. Reproduction without permission is prohibited.
  • Page 2 CB Series PC/104-Plus Multiport Serial Module User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice Copyright © 2008 Moxa Inc. All rights reserved.
  • Page 3: Table Of Contents

    Table of Contents Chapter 1 Introduction ....................1-1 Overview ..........................1-2 Package Checklist......................... 1-2 Product Features ........................1-2 Product Specifications ......................1-3 Chapter 2 Hardware Installation ................2-1 Hardware Installation ......................2-2 Block Diagrams ........................2-2 Rotary Switch ....................... 2-3 Termination Resistor ....................2-3 Serial Interface Selection......................
  • Page 4 Unloading the Driver ....................3-54 Windows CE 5.0......................... 3-54 Installing the driver..................... 3-54 Chapter 4 Serial Programming Tools................4-1 Serial Programming Library....................4-2 PComm Utilities ........................4-2 Installation ........................4-2 PComm Diagnostic....................... 4-2 PComm Monitor ......................4-3 PComm Terminal Emulator..................4-3 Chapter 5 Pin Assignments ..................5-1 Box Header Pin Assignments ....................
  • Page 5: Chapter 1 Introduction

    The device drivers make full use of the 128-byte Tx/Rx FIFO and on-chip flow control, which allows up to 921.6 Kbps data transmission. The CB Series includes the following models: CB-108: 8 ports, RS-232 CB-108-T: 8 ports, RS-232, wide temperature 4 ports, RS-232/422/485 CB-114: CB-114-T: 4 ports, RS-232/422/485, wide temperature CB-134I:...
  • Page 6: Overview

    CB Series PC104 Plus User’s Manual Introduction Overview The CB Series PC/104-Plus module is designed to be used with PC/104-Plus CPU modules or CPU cards with the PC/104-Plus expansion interface. Models are available for RS-232, RS-422, and RS-485, with 4 or 8 ports. The serial ports are accessed through a 40-pin box header connector on the module.
  • Page 7: Product Specifications

    MU860 (16C550C compatible) Connector Type 40-pin box header Interface PC/104-Plus (PCI) bus No. of Ports 4 ports (CB-114, CB-134I) 8 ports (CB-108) Max. No. of Modules Signals RS-232 TxD, RxD, RTS, CTS, DTR, DSR, DCD, GND RS-422 TxD+(B), TxD-(A), RxD+(B), RxD-(A), GND...
  • Page 8: Chapter 2 Hardware Installation

    Hardware Installation Chapter 2 This chapter explains how to install the CB Series PC/104-Plus multiport serial module. The following topics are covered: Hardware Installation Block Diagrams Rotary Switch Termination Resistor Serial Interface Selection...
  • Page 9: Hardware Installation

    Step 5: Connect the cables. Step 6: Power on the embedded PC. The BIOS will automatically set the IRQ and I/O address Step 7: Proceed with the software installation. Please refer to Chapter 3. Block Diagrams CB-108 Rotary Switch PC/104-Plus Slot Box Header Connectors...
  • Page 10: Rotary Switch

    CB Series PC104 Plus User’s Manual Hardware Installation CB-114 Rotary switch PC/104-Plus Slot JP 1 JP 2 Serial Interface JP 3 Box Header Connector JP 4 PC/104 Slot CB-134I Rotary Switch PC/104-Plus Slot JP 1 RS422/485 JP 2 2-wire/4-wire JP 3 JP 4 Box Header Connector PC/104 Slot...
  • Page 11: Serial Interface Selection

    CB Series PC104 Plus User’s Manual Hardware Installation Serial Interface Selection For the CB-114 and CB-134I, the serial interface is selecting using the onboard DIP switches. CB-114 Mode RS-232 RS-422 4-wire RS-485 2-wire RS-485 CB-134I Mode RS-422 4-wire RS-485 2-wire RS-485...
  • Page 12: Chapter 3 Software Installation

    Software Installation Chapter 3 After installing the CB Series module in your embedded computer, the next step is installing the software. Drivers for various operating systems are provided, including DOS, Windows, and Linux. This chapter explains how to install and remove the CB Series driver. The following topics are covered in this chapter: Windows NT Windows 95/98/ME...
  • Page 13: Windows Nt

    CB Series PC104 Plus User’s Manual Software Installation Windows NT Installing the Driver You will need to plug the board in an available PCI or PCI-X slot first, before installing the driver. Note that these instructions use the CB-114 as an example. The procedure for installing all models is the same.
  • Page 14 CB Series PC104 Plus User’s Manual Software Installation 4. When prompted, select your board model (Smartio/Industio Family multiport board in this example) and click OK. 5. After the files have been installed, a configuration panel will open. This is where boards are installed, configured, and removed.
  • Page 15 CB Series PC104 Plus User’s Manual Software Installation 7. The board will now appear in the configuration panel (CB-114 Series in this example). Click OK to return to the Network applet. After that, click OK again to exit the Network applet 8.
  • Page 16: Configuring The Ports

    CB Series PC104 Plus User’s Manual Software Installation Configuring the Ports 1. In Windows Control Panel, open the Network applet. In the Adapters tab, UPCI boards will appear as a type of Moxa adapter (MOXA Smartio/Industio Family Adapter in this example).
  • Page 17 CB Series PC104 Plus User’s Manual Software Installation 3. Select a port to configure and click Port Setting. Under Port Number, select a COM number to assign to the serial port. Select Auto Enumerating COM Number to map subsequent ports in numerical order. For example, if COM 3 is assigned to Port 1, then COM 4 will be automatically assigned to Port 2.
  • Page 18: Removing The Board

    CB Series PC104 Plus User’s Manual Software Installation 5. Click OK to approve the settings for the selected port. Continue in the same way to configure the other ports. When you have finished setting up the ports, click OK to close the Properties window and apply the new port settings.
  • Page 19: Removing The Driver

    CB Series PC104 Plus User’s Manual Software Installation 2. Restart the system. 3. Go through the process of installing the drivers using the new drivers. Removing the Driver 1. In Windows Control Panel, open the Network applet. In the Adapters tab, UPCI boards will appear as a type of Moxa adapter (MOXA Smartio/Industio Family Adapter in this example).
  • Page 20: Windows 95/98/Me

    CB Series PC104 Plus User’s Manual Software Installation Windows 95/98/ME Installing the Driver Windows 95 1. After the board is physically installed and the PC boots up, Windows will automatically detect the new board and the Found New Hardware Wizard window will open. Click Next to continue.
  • Page 21 CB Series PC104 Plus User’s Manual Software Installation 3. Click Browse and select the appropriate directory on the Document & Software CD for the driver. Drivers for all operating systems are located under the product folder in the \Software directory. Select the \Win9x folder and click OK to continue. 4.
  • Page 22 CB Series PC104 Plus User’s Manual Software Installation Windows 98 and ME 1. After the board is physically installed and the PC boots up, Windows will automatically detect the new board and the Found New Hardware Wizard window will open. Click Next to continue.
  • Page 23 CB Series PC104 Plus User’s Manual Software Installation 3. Select Other Devices and click Next. 4. Select Have Disk… 5. Click Browse and select the appropriate directory on the Document & Software CD for the driver. Drivers for all operating systems are located under the product folder in the \Software directory.
  • Page 24: Configuring The Ports

    CB Series PC104 Plus User’s Manual Software Installation 6. After Windows installs the drivers, click Finish. Configuring the Ports You may configure the COM ports after the board and drivers have been installed. 1. In the Windows Control Panel, open the System applet. 3-13...
  • Page 25 CB Series PC104 Plus User’s Manual Software Installation 2. In the Device Manager tab, expand the Moxa Smartio/Industio multiport board category by clicking the “+” sign next to it. Select the desired board and click Properties. 3. On the Ports Configuration tab, select a port to configure and click Port Setting. Under Port Number, select a COM number to assign to the serial port.
  • Page 26: Updating The Driver

    CB Series PC104 Plus User’s Manual Software Installation 4. Select an Rx FIFO Trigger and Tx FIFO Size. The default Rx FIFO Trigger is 120 bytes (high level). The default Tx FIFO Size is 128 bytes (high level). Select Set the change to all ports to use this setting for all serial ports on the board.
  • Page 27 CB Series PC104 Plus User’s Manual Software Installation 2. In the Device Manager tab, expand the Moxa Smartio/Industio multiport board category by clicking the “+” sign next to it. Select the desired board and click Properties. 3. In the Driver tab, click Update Driver..3-16...
  • Page 28: Removing The Driver

    CB Series PC104 Plus User’s Manual Software Installation 4. Select the appropriate model (CP-168U in this example) and click Have Disk... 5. When prompted, select the appropriate directory on the Document & Software CD for the driver. Drivers for all operating systems are located under the product folder in the \Software directory.
  • Page 29: Windows Vista (32-Bit And 64-Bit)

    CB Series PC104 Plus User’s Manual Software Installation 2. When prompted, click Yes to confirm that you want to remove the driver. 3. After the driver has been removed, click OK to return to the Add/Remove Programs applet. Windows Vista (32-bit and 64-bit) The Windows Vista (32-bit/64-bit) drivers conform to the Win32 COMM API standard and support all models in the CB Series.
  • Page 30 CB Series PC104 Plus User’s Manual Software Installation 3. When prompted to insert the disc, select I don’t have the disc. Show me other options. 4. Select Browse my computer for drier software (advanced). 3-19...
  • Page 31 CB Series PC104 Plus User’s Manual Software Installation 5. Click Browse to manually specify the folder in which to find the driver. For 32-bit (x86) platforms, select the \CB Series\Software\Windows Vista\x86 folder on the CD. For 64-bit (x64) platforms, select the \CB Series\Software\Windows Vista\x64 folder on the CD. Click Next to continue.
  • Page 32 CB Series PC104 Plus User’s Manual Software Installation 6. If you see a warning that the software has not passed Windows Logo testing, click Install this driver software anyway. 7. After the files have been installed, click Close. 3-21...
  • Page 33 CB Series PC104 Plus User’s Manual Software Installation 8. After the module is installed, you will be prompted to install the new serial ports. A Found New Hardware Wizard window will open for the first serial port, port 0. Select Locate and install driver software (recommended) to continue.
  • Page 34 CB Series PC104 Plus User’s Manual Software Installation 10. Select Browse my computer for driver software (advanced). 11. Click Browse to manually specify the folder in which to find the driver. For 32-bit (x86) platforms, select the \CB Series\Software\Windows Vista\x86 folder on the CD. For 64-bit (x64) platforms, select the \CB Series\Software\Windows Vista\x64 folder on the CD.
  • Page 35 CB Series PC104 Plus User’s Manual Software Installation 13. If you see a warning that the software has not passed Windows Logo testing, click Install this driver software anyway. 14. After the files have been installed, click Close. The remaining serial ports will automatically install in the background.
  • Page 36: Using Device Manager To Verify Installation

    CB Series PC104 Plus User’s Manual Software Installation Using Device Manager to Verify Installation You can use Windows Device Manager to verify proper installation of the CB Series module. In the following instructions, the CB-114 is used as an example. 1.
  • Page 37: Port Configuration

    CB Series PC104 Plus User’s Manual Software Installation 3. In the Device Manager window, you should see your CB Series module under Multi-port serial adapters. You should also see Moxa communication ports under Ports (COM & LPT). 4. If you see any special marks, such as a question mark or an exclamation mark, next to the Moxa items, the installation of your module or serial ports was not successful.
  • Page 38 CB Series PC104 Plus User’s Manual Software Installation 2. Under Port Number, select a COM number to assign to the serial port. Select Auto Enumerating COM Number to map subsequent ports in numerical order. For example, if COM 3 is assigned to Port 1, then COM 4 will be automatically assigned to Port 2. Tx FIFO Rx FIFO High...
  • Page 39: Windows Xp, 2003 (32-Bit And 64-Bit)

    CB Series PC104 Plus User’s Manual Software Installation 3. Click OK to approve the port settings. Click OK again to close the CB Series Properties window and apply the new port settings. Windows XP, 2003 (32-bit and 64-bit) The Windows XP and 2003 (32-bit and 64-bit) drivers conform to the Win32 COMM API standard and support all models in the CB Series.
  • Page 40 CB Series PC104 Plus User’s Manual Software Installation 4. Click Browse to manually specify the folder in which to find the driver. For 32-bit (x86) platforms, select the \CB Series\Software\Windows XP_2003\x86 folder on the CD. For 64-bit (x64) platforms, select the \CB Series\Software\Windows XP_2003\x64 folder on the CD.
  • Page 41 CB Series PC104 Plus User’s Manual Software Installation 6. Windows will install the drivers. When the installation is complete, click Finish. 7. After the module is installed, you will be prompted to install the new serial ports. A Found New Hardware Wizard window will open for the first serial port, port 0. Select No, not this time and click Next.
  • Page 42 CB Series PC104 Plus User’s Manual Software Installation 8. Select Install from a list or specific location (Advanced) and click Next. 9. Select Search for the best driver in these locations and Include this location in the search. For 32-bit (x86) platforms, select the \CB Series\Software\Windows XP_2003\x86 folder on the CD.
  • Page 43 CB Series PC104 Plus User’s Manual Software Installation 10. If you see a warning that the software has not passed Windows Logo testing, click Continue Anyway. 11. Windows will install the necessary drivers. 3-32...
  • Page 44 CB Series PC104 Plus User’s Manual Software Installation 12. After the installation is complete, click Finish. 13. Repeat the installation process for the remaining serial ports. 3-33...
  • Page 45: Using Device Manager To Verify Installation

    CB Series PC104 Plus User’s Manual Software Installation Using Device Manager to Verify Installation You can use Windows Device Manager to verify proper installation of the CB Series module. In the following instructions, the CB-114 is used as an example. 1.
  • Page 46: Port Configuration

    CB Series PC104 Plus User’s Manual Software Installation 3. In the Device Manager window, you should see your CB Series module under Multi-port serial adapters. You should also see Moxa communication ports under Ports (COM & LPT). 4. If you see any special marks, such as a question mark or an exclamation mark, next to the Moxa items, the installation of your module or serial ports was not successful.
  • Page 47 CB Series PC104 Plus User’s Manual Software Installation 2. Under Port Number, select a COM number to assign to the serial port. Select Auto Enumerating COM Number to map subsequent ports in numerical order. For example, if COM 3 is assigned to Port 1, then COM 4 will be automatically assigned to Port 2. Tx FIFO Rx FIFO High...
  • Page 48: Using Pcomm

    CB Series PC104 Plus User’s Manual Software Installation Using PComm PComm Diagnostic is a useful program for checking the module’s status. It provides internal and external testing of IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, and other items. You can use PComm Diagnostic to verify that the module and serial ports are working properly. You can download the free version of PComm at Moxa’s website (www.moxa.com).
  • Page 49: Uninstalling The Module

    CB Series PC104 Plus User’s Manual Software Installation 3. In Device Manager, right-click your module under Multi-port serial adapters and select Disable in the context menu. This will disable the module. Uninstalling the Module 1. Right-click My Computer and select Properties in the context menu. 2.
  • Page 50: Windows 2000

    CB Series PC104 Plus User’s Manual Software Installation 3. Right-click your module under Multi-port serial adapters and select Uninstall in the context menu. 4. A confirmation dialog will appear. Click OK to uninstall the device. Windows 2000 The Windows 2000 drivers conform to the Win32 COMM API standard and support all models in the CB Series.
  • Page 51 CB Series PC104 Plus User’s Manual Software Installation 3. Select Search for a suitable driver for my device (recommended) and click Next to continue. 4. Select Specify a location and click Next to continue. 3-40...
  • Page 52 CB Series PC104 Plus User’s Manual Software Installation 5. Click Browse to manually specify the folder in which to find the driver. Select the \CB Series\Software\Windows 2K folder on the CD and click Next to continue. 6. To begin installing the module, click Next. 7.
  • Page 53 CB Series PC104 Plus User’s Manual Software Installation 8. Windows will install the drivers. When the installation is complete, click Finish. 9. After the module is installed, you will be prompted to install the new serial ports. A Found New Hardware Wizard window will open for the first serial port, port 0. Click Next to proceed.
  • Page 54 CB Series PC104 Plus User’s Manual Software Installation 10. Select Search for a suitable driver for my device [recommended] and click Next. 11. Select Specify a location and click Next. 12. Select the \CB Series\Software\Windows 2K folder on the CD and click Next. 3-43...
  • Page 55 CB Series PC104 Plus User’s Manual Software Installation 13. When the driver has been found, click Next to proceed. 14. Windows will install the necessary drivers. After the installation is complete, click Finish. The remaining serial ports will be installed automatically in the background. 3-44...
  • Page 56: Using Device Manager To Verify Installation

    CB Series PC104 Plus User’s Manual Software Installation Using Device Manager to Verify Installation You can use Windows Device Manager to verify proper installation of the CB Series module. In the following instructions, the CB-114 is used as an example. 1.
  • Page 57: Port Configuration

    CB Series PC104 Plus User’s Manual Software Installation 4. If you see any special marks, such as a question mark or an exclamation mark, next to the Moxa items, the installation of your module or serial ports was not successful. You can check the Windows event log for details.
  • Page 58: Using Pcomm

    CB Series PC104 Plus User’s Manual Software Installation 2. Under Port Number, select a COM number to assign to the serial port. Select Auto Enumerating COM Number to map subsequent ports in numerical order. For example, if COM 3 is assigned to Port 1, then COM 4 will be automatically assigned to Port 2. Tx FIFO Rx FIFO High...
  • Page 59: Using Event Log

    CB Series PC104 Plus User’s Manual Software Installation The free version of PComm is available at Moxa’s website (www.moxa.com). Using Event Log You may refer to the Windows event log to verify operation of the module. To view the event log, open Event Viewer, which is located under Administrative Tools in the Control Panel.
  • Page 60: Uninstalling The Module

    CB Series PC104 Plus User’s Manual Software Installation 3. In Device Manager, right-click your module under Multi-port serial adapters and select Disable in the context menu. This will disable the module. Uninstalling the Module 1. Right-click My Computer and select Properties in the context menu. 2.
  • Page 61 CB Series PC104 Plus User’s Manual Software Installation 3. Right-click your module under Multi-port serial adapters and select Uninstall in the context menu. 4. A confirmation dialog will appear. Click OK to uninstall the device. 3-50...
  • Page 62: Linux (32-Bit And 64-Bit)

    CB Series PC104 Plus User’s Manual Software Installation Linux (32-bit and 64-bit) Execute the following commands from the Linux prompt: #mount /dev/cdrom /mnt/cdrom #cd / #mkdir moxa #cd moxa #cp /mnt/cdrom/<driver directory>/mxser.tgz . #tar xvfz mxser.tgz #cd mxser # make clean; make install #cd /moxa/mxser/driver #./msmknod #modprobe mxser...
  • Page 63: Driver Setup

    CB Series PC104 Plus User’s Manual Software Installation After installation is complete, you will be prompted to set up the board and driver initial values. We strongly recommended that you do so. Driver Setup The following instructions are not intended to illustrate every function of the setup program. For more detailed information, please refer to the help files by pressing F1 in the setup program.
  • Page 64 CB Series PC104 Plus User’s Manual Software Installation This is the port ID of each port. Application software will refer to a port Port number: by its port number (ID). Port numbers must be unique; duplicate port numbers are not allowed. The port ID can range from 0 to 127 as long as it does not overlap with another port.
  • Page 65: Loading The Driver

    The WinCE 5.0 driver for the Moxa CB Series PC/104-Plus Multiport Serial Module supports the following products:  CB Series: CB-108, CB-114, CB-134I The CB-114 board is used to illustrate the installation procedure. Installing the driver The following procedure explains how to install the CB-114 multiport serial module driver under WinCE.
  • Page 66 CB Series PC104 Plus User’s Manual Software Installation 2. Start WinCE Platform Builder, select File, and open New Platform. 3. Enter a Name for Workspace and press Next. 3-55...
  • Page 67 CB Series PC104 Plus User’s Manual Software Installation 4. When you see Board Support Packages, Design Template, Applications & Media, Networking & Communications, OBEX Server, select what you need to build your own environment. The Completing the New Platform Wizard window will open to indicate that it has finished creating a new platform.
  • Page 68 CB Series PC104 Plus User’s Manual Software Installation 3-57...
  • Page 69 CB Series PC104 Plus User’s Manual Software Installation 5. Open Manage Catalog Items (File Manage Catalog Items). In the Catalog (View Catalog), browse to \Third Party\Device Drivers\ MOXA Smartio/Industio-PCI, PC/104-Plus. Right-click on the driver Prefix COM or Prefix MXU you would like to include and choose Add to OS Design.
  • Page 70 CB Series PC104 Plus User’s Manual Software Installation 6. After adding Moxa Tech drivers into your OS Design, a new project is automatically added to your workspace. The project name is mxserce5. The project can be accessed from File View (View File View).
  • Page 71 CB Series PC104 Plus User’s Manual Software Installation 8. Finally, copy your image file to the target Host. Note: If you have created a Windows CE Platform Builder in the development environment, you can skip steps 2, 3, and 4. 3-60...
  • Page 72: Serial Programming Tools

    Serial Programming Tools Chapter 4 Moxa provides Windows serial programming libraries and troubleshooting utilities that are easy to use and powerful. You can use these tools to reduce software development time. The serial communication library is useful for developing applications for data communications, remote access, data acquisition, and industrial control.
  • Page 73: Serial Programming Library

    CB Series PC104 Plus User’s Manual Serial Programming Tools Serial Programming Library The serial programming library assists you in developing serial communications programs for any COM port that complies with the Microsoft Win32 API. It facilitates the implementation of multi-process and multi-thread serial communication programs and can remarkably reduce development time.
  • Page 74: Pcomm Monitor

    CB Series PC104 Plus User’s Manual Serial Programming Tools PComm Monitor PComm Monitor is designed for Moxa board in Windows NT only. It allows you to monitor data transmission of selected MOXA COM ports. It monitors data transmission, throughput, and line status at regular intervals.
  • Page 75 CB Series PC104 Plus User’s Manual Serial Programming Tools...
  • Page 76: Pin Assignments

    Box Header Pin Assignments RS-232 These pin assignments apply to the CB-108 and CB-114. Note that there are two 40-pin box header connectors on the CB-108, each of which connects to 4 serial ports. Pin Signal Pin Signal Pin Signal Pin Signal...
  • Page 77: 2-Wire Rs-485

    CB Series PC104 Plus User’s Manual Pin Assignments 2-wire RS-485 These pin assignments apply to the CB-114 and CB134I. Signal Signal Signal Signal Data0+(B) 15 Data1+(B) 25 Data2+(B) 35 Data3+(B) Data0-(A) 17 Data1-(A) 27 Data2-(A) 37 Data3-(A) GND0 GND1 GND2 GND3 Serial Cable Pin Assignments DB9(M) Connectors...
  • Page 78: Db25(M) Connectors

    CB Series PC104 Plus User’s Manual Pin Assignments DB25(M) Connectors The CBL-F40M25x4-50 and CBL-F20M25x4-50 cables provide DB25 (M) connectors for each serial port, with pin assignments as follows: RS-422 Pin RS-232 4-wire RS-485 2-wire RS-485 RxD+(B) Data+(B) TxD+(B) TxD-(A) RxD-(A) Data-(A)

This manual is also suitable for:

Cb-114Cb-108-tCb seriesCb-134i-tCb-134iCb-114-t

Table of Contents