SystemBase Portbase-3010 User Manual

SystemBase Portbase-3010 User Manual

Serial-to-ethernet device server

Advertisement

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Portbase-3010 and is the answer not in the manual?

Questions and answers

Summary of Contents for SystemBase Portbase-3010

  • Page 2: Table Of Contents

    Portbase User Guide Contents Overview 1. Package Components 2. Product Description 3. Technical Specifications 4. Applications Network Serial Communication Serial Communication Tunneling Serial Port Redirection Console Server Standalone RAS server(PB-3010M) Configuration 1. Getting Started Configuration using the WAN Port Configuration using the LAN Port (except PB-3010M) 2.
  • Page 3 2. Installing Portview 3. Using Portview Portbase Setting Environment Setting Overall Portbase Management Detailed Portbase Management 4. Uninstalling Portview Cable Pinouts 1. Portbase-3010 Serial Cable Pinouts 2. Portbase-3020/3040 Serial Cable Pinouts 3. Serial Loopback Cable Pinouts 4. LAN Cable Pinouts...
  • Page 4 Portbase User Guide Programming Examples 1. COM Port Communication Program 2. TTY Port Communication Program 3. Windows Socket Program 4. Linux/Unix Socket Program SNMP...
  • Page 5: Overview

    Portbase User Guide Overview Portbase-3010/3020/3040/3080/3160/3161 series (Hereinafter referred as Portbase) is a multi-functional device server which connects RS232/422/485 devices (serial devices) such as printers, modems and other peripheral devices to the network. Main Features Portbase transforms RS232/422/485 signals to Ethernet signals, and transmits them to the remote site.
  • Page 6: Package Components

    Portbase User Guide 1. Package Components The Portbase package consists of Portbase unit Power cable(for 3010F/3020F/3040/3080/3160/3161) or DC adapter(for 3010/3020) Direct LAN Cable Portbase CD including software and documents Redirector: It is a network COM port driver which enables serial ports of Portbase to operate in the same way as the local COM port of the PC.
  • Page 7: Product Description

    Portbase User Guide 2. Product Description 3010 Models Front Red light when power is on Green light when firmware is ready (blinks with errors) Green light blinks when serial data is transmitted Rear Socket for DC 5V power supply. 10/100 Mbps Ethernet RJ-45 (Secondary LAN Port) 10/100 Mbps Ethernet RJ-45 (Primary LAN Port) Reset Hardware reset button (at the bottom of the device)
  • Page 8 Portbase User Guide 3010M Models Front Red light when power is on Green light when firmware is ready (blinks with errors) Modem Hook, Modem Data Tx/Rx Rear Socket for DC 5V power supply PWR SW Power Switch Phone/Line Phone port /RJ-11 PSTN port 10/100 Mbps Ethernet RJ-45 (Primary LAN Port) Reset Hardware reset button (at the bottom of the device)
  • Page 9 Portbase User Guide 3020 Models Front Red light when power is on Green light when firmware is ready (blinks with errors) Green light blinking when serial data is transmitted Rear Socket for DC 5V power supply 10/100 Mbps Ethernet RJ-45 (Secondary LAN Port) 10/100 Mbps Ethernet RJ-45 (Primary LAN Port) Reset Hardware reset button (at the bottom of the device)
  • Page 10 Portbase User Guide 3010F Models Front Red light when power is on Green light when firmware is ready (blinks with errors) Green light when 10/100Mbps network connection is detected. Green light when 10/100Mbps network connection is detected. Red light blinking when serial data is received. Green light blinking when serial data is transmitted.
  • Page 11 Portbase User Guide 3020F Models Front Red light when power is on Green light when firmware is ready (blinks with errors) Green light when 10/100Mbps network connection is detected. Green light when 10/100Mbps network connection is detected. Red light blinking when serial data is received. Green light blinking when serial data is transmitted.
  • Page 12 Portbase User Guide 3040 Models Front Red light when power is on Green light when firmware is ready (blinks with errors) Green light when 10/100Mbps network connection is detected. Green light when 10/100Mbps network connection is detected. Rear Socket for 100-220V AC, 50-60Hz power supply 10/100 Mbps Ethernet RJ-45 (Primary LAN Port) 10/100 Mbps Ethernet RJ-45 (Secondary LAN Port) Reset...
  • Page 13 Portbase User Guide 3080 Models Front Red light when power is on Green light when firmware is ready (blinks with errors) Green light when 10/100Mbps network connection is detected. Green light when 10/100Mbps network connection is detected. Rear Socket for 100-220V AC, 50-60Hz power supply 10/100 Mbps Ethernet RJ-45 (Primary LAN Port) 10/100 Mbps Ethernet RJ-45 (Secondary LAN Port) Reset...
  • Page 14 Portbase User Guide 3160 Models (Expansion type) Front Red light when power is on Green light when firmware is ready (blinks with errors) Green light when 10/100Mbps network connection is detected. Green light when 10/100Mbps network connection is detected. Rear Socket for 100-220V AC, 50-60Hz power supply 10/100 Mbps Ethernet RJ-45 (Primary LAN Port) 10/100 Mbps Ethernet RJ-45 (Secondary LAN Port)
  • Page 15 Portbase User Guide 3161 Models (Fixed type) Front Red light when power is on Green light when firmware is ready (blinks with errors) Green light when 10/100Mbps network connection is detected. Green light when 10/100Mbps network connection is detected. Rear Socket for 100-220V AC, 50-60Hz power supply 10/100 Mbps Ethernet RJ-45 (Primary LAN Port) 10/100 Mbps Ethernet RJ-45 (Secondary LAN Port)
  • Page 16: Technical Specifications

    Portbase User Guide 3. Technical Specifications Portbase- Portbase- Portbase- Portbase- Portbase- Portbase- Portbase- 3010M 3010(F) 3020(F) 3040 3080 3160 3161 Number of 4 * 4 Serial Ports 160g 160g Weight 1.15Kg 1.26Kg 3.52g 2.59Kg (300g) (310g) Dimensions 105 * 113 * 32 240 * 150* 50 439 * 234 * 63 (W*L*H) mm...
  • Page 17: Applications

    Portbase User Guide 4. Applications Portbase is applicable to various situations 1) Network Serial Communication This is is the most common application of Portbase. By connecting a PC and a Portbase to a network, you can use serial equipments connected to the Portbase from remote PCs. 2) Serial Communication Tunneling You can use the network as if it is a serial cable from your PC.
  • Page 18: Serial Port Redirection

    Portbase User Guide 3) Serial Port Redirection By exploiting redirection feature, serial ports of Portbase connected to the network can be used in the PC as if they belong to the PC. COM3 COM3 Internet Internet Internet Portbase Portbase COM1 COM1 COM2 COM2...
  • Page 19: Standalone Ras Server(Pb-3010M)

    Portbase User Guide 5) Standalone RAS server(PB-3010M) IP address can be assigned with PPP connection on the modem port of PB-3010M. PPP Applications Connect to the device when network failure occurs in Portbase. Use Portbase as RAS server to get internet access with modem connection. 6) Network Fax Modem Modem port of Portbase can be used as local modem of PC.
  • Page 20: Configuration

    Portbase User Guide Configuration Portbase’s IP address is initially set to a default address, so it has to be reconfigured appropriately before the first use. You can set the IP address and other operation parameters with Web browser or telnet from PC, using the LAN, serial, or console port.
  • Page 21 Portbase User Guide If you want to modify or view other settings of Portbase using a Web browser, refer to 2. Configuration Using Web Browser in this chapter. If you want to modify or view other settings of Portbase using a telnet connection, refer to 3.
  • Page 22: Configuration Using The Lan Port (Except Pb-3010M)

    Portbase User Guide 2) Configuration using the LAN Port (except PB-3010M) LAN port connects Portbase to the internal network, operating as a DHCP server. Connect the LAN port of Portbase and PC to the network. Direct connection Connection via HUB Adjust network settings of PC as follows: Within 1 minute, Portbase automatically assigns an IP Address to the PC.
  • Page 23 Portbase User Guide * Configuring PB-3010M - There is only WAN port in PB-3010M. If a user doesn’t know the IP address, there is no way to configure via web through the WAN port. To solve this problem, PB-3010M is assigned an IP 10.10.1.1 as an alias of the WAN port.
  • Page 24: Configuration Using Web Browser

    Portbase User Guide 2. Configuration Using Web Browser Run your Web browser and enter the IP address of either WAN or LAN port of Portbase to connect to Portbase. Factory Default IP Addresses of Portbase WAN Port IP Address : 192.168.1.71 LAN Port IP Address : 10.10.1.1 (DHCP Server) When you are connected to Portbase, the following initialization window appears.
  • Page 25 Portbase User Guide Overview : Display product version and the current network status. (shown above) Network Settings : Configure network connection settings. Serial Settings : Configure communication environment and the detailed operation parameters for the serial ports. Advanced Settings : Decide whether or not to allow HTTP, FTP, or TELNET service on the WAN / LAN.
  • Page 26: Network Settings

    Portbase User Guide 2) Network Settings Configure the external network environment for Portbase. There are three sub-sections for the Network Settings page : Network, NAT, and Management. Network configures the WAN port connection environment. NAT configures the LAN port operation environment (DHCP Server). Management configures various parameters used for Portview, the management program for Portbase.
  • Page 27 Portbase User Guide Subnet Mask (Default: 255.255.255.0) Set the Subnet mask. (When WAN port is used with static IP) Gateway (Default: 192.168.1.1) Set the Gateway address. (When WAN port is used with static IP) PPPoE Connection (Default None) Set this option when network connection is established through xDSL modems. When PPPoE Connection is selected, IP Configuration is ignored, be it either DHCP or Static IP.
  • Page 28 Portbase User Guide ② NAT (except PB-3010M) IP Address (Default: 10.10.1.1) Set the IP address of the LAN port. Subnet Mask (Default; 255.255.255.0) Set the Subnet Mask for the LAN port. DHCP Server (Default: Enabled) Determine if the LAN port would operate as the DHCP server. Start Address (Default: 10.10.1.2) When the LAN port operates as the DHCP server, set the starting IP address to assign to the DHCP clients via the LAN port.
  • Page 29 Portbase User Guide DHCP Gateway (Default: System) Determine if the gateway for the DHCP clients will be Portbase itself or the external Gateway. If this option is set as ‘System’, the LAN port would operate as the Gateway. If this option is set as ‘User Defined’, enter the Gateway Address for the DHCP clients to the ‘Gateway Address’...
  • Page 30 Portbase User Guide ③ Management If multiple devices are installed and managed together, integration in management is necessary. Also, it is the case the when the device reports an erroneous status, figuring out the reason for the failure becomes a time-consuming job. To solve this inefficiency and provide better solution, Portbase provides a Network Management System software, Portview.
  • Page 31 Portbase User Guide PortView IP Address (Default: 0.0.0.0 / 4000) When Portbase management software Portview is used, Set IP address and the socket number of the server PC on which Portview is installed. (Refer to Chapter 5. Management with Portview for further information.) SNMP (Default : Disable) When standard SNMP server manages Portbase,...
  • Page 32: Serial Settings

    Portbase User Guide 3) Serial Settings Set the communication and operation environment for each serial port. First, current settings of all ports are shown on the screen. Settings of all serial ports available for individual Portbase model (3010 to 3161) will be displayed.
  • Page 33 Portbase User Guide If you want to configure each port, click on the port number button at the bottom of the page. Then the setting page for the selected port will appear. Operation Mode (Default: COM(Win200x/XP)) Select the operation protocol which the serial ports would use. Disable Do not use this port.
  • Page 34 When the data is input to the serial port, UDP packets are sent using the preset IP address and the socket number of the server. X-Console X-Console is a console management server provided by SystemBase. This mode is used when X-Console is linked to Portbase for better management and performance.
  • Page 35 Portbase User Guide This protocol only works with the X-Console software. All data is encrypted by the SEED method during communication. For more information, visit the company website, http://www.sysbas.com/ and refer to the X-Console page under Products section. Internal Modem (Only in PB-3010M) Use the port as the modem port for PPP connection or console login Baud Rate (Default: 9600) Set communication speed.
  • Page 36 Portbase User Guide After a certain amount of time passes without any communication after the socket connection between the given serial port and the server is established, automatically disconnect the socket connection. If the value is set to 0, this function is disabled. (Only applies to TCP Client, TCP Server, TCP Server(M) operation modes.) Buffering Check Time (Default: 0 msec) This option needs to be set when consecutive data from the given serial port needs to be...
  • Page 37 Portbase User Guide Modem Port Settings (Only in PB-3010M) Use the modem port as an incoming port. Baud Rate Set the speed of the modem port. Modem Init String Set the modem initialization character. Enable PPP Connections Use the modem port for the PPP connection Username Set the username for console login.
  • Page 38 Portbase User Guide Use the modem port as an outgoing port. With this mode, user can control the modem via network. User have to select other network modes (COM/TCP/UDP) of his choice by selecting different operation modes.
  • Page 39 Portbase User Guide Use the modem port as a PPP Server port. Authentication Select an authentication type. Username Set the username for PPP connection. Password Set the password of the user for PPP connection. Local IP Address Set a local IP address to be assigned by PPP connection. Remote iP Address Set a remote IP address to be assigned by PPP connection.
  • Page 40 Portbase User Guide Session Timeout Set a timeout value for PPP connection termination. Use the modem port as a PPP Client port. Authentication Select an authentication type. Username Set the username for PPP connection. Password Set the password of the user for PPP connection. Phone Number Set the phone number of the PPP server.
  • Page 41: Advanced Settings

    Portbase User Guide 4) Advanced Settings Set the operation modes and the connection restriction for the server (FTP, HTTP, TELNET) running in Portbase FTP server (Default: Enabled) Determine if the FTP server will be used in Portbase. WAN side HTTP access (Default: Yes) Determine whether the Client request for the Portbase HTTP server through the WAN port will be accepted or denied.
  • Page 42: Save & Reboot

    Portbase User Guide 5) Save & Reboot This option saves changes to the Flash memory and restarts the system to let the changes to take place in the operation. ‘Save & Reboot’ reboots Portbase after saving changes to Flash memory. ‘Reboot Only’...
  • Page 43: Firmware Update

    7) Firmware Update Firmware is an operating system embedded in Flash memory of Portbase. The recent firmware for Portbase can be found and downloaded in the website of SystemBase, http://www.sysbas.com/. Set the location of the firmware file to update, using the ‘Browse…‘ button.
  • Page 44: Configuration Using Telnet

    Portbase User Guide 3. Configuration Using Telnet Run the telnet application and enter the IP address of either WAN or LAN port of Portbase to connect to Portbase. Factory Default IP Addresses of Portbase WAN Port IP Address : 192.168.1.71 LAN Port IP Address : 10.10.1.1 (DHCP Server) The default Username and Password :...
  • Page 45: Network Environment Configuration

    Portbase User Guide 5) Network Environment Configuration Configure detailed network environment parameters of Portbase. Don’t forget to enter set “save” command to save current configurations.
  • Page 46 Portbase User Guide set “line <Line Type>” Portbase supports two types of network connection types (IP and DHCP). Set IP type: set “line IP” Set DHCP type : set “line dhcp” Set PPPoE type : set “line pppoe” set “ip <IP Address>” Set IP address of Portbase.
  • Page 47: Serial Port Environment Configuration

    Portbase User Guide 6) Serial Port Environment Configuration Operation environment for each serial port can be configured. In order for changes to take place, the command set “save” must be given after the configuration is finished. The notation <X, / ALL/ X-X> to be mentioned below designates the port that certain configuration is to be applied to.
  • Page 48 Portbase User Guide set “port <x/ all/ x-x> protocol <disable/com2kxp/com98/tcp_server/tcp_client/tcp_mserver/udp_server/udp_client/xconsole>” Set operation mode of the given serial port. disable Do not use this port. com2kxp Use the serial ports of Portbase as the COM ports of Windows 2000/XP/2003 operated PC. (Both the data and the signal line information of the serial port can be controlled.) com98 Use the serial ports of Portbase as the COM ports of Windows 98/ME operated PC.
  • Page 49 X-Console is a console management server provided by SystemBase. This mode is used when X-Console is linked to Portbase for better management and performance. This protocol only works with the X-Console software. All data is encrypted by the SEED method during communication.
  • Page 50 Portbase User Guide are received. After the 100 bytes are entirely received, it transmits this data to the server as one packet, using the socket. If the buffering value is set to ‘0’, however, data transmission is done in received byte-scale as multiple packets sent to the server. set “port <x/ all/ x-x>...
  • Page 51 Portbase User Guide set “port <x/ all/ x-x> ppplocalip <IP Address>” Set the local IP address to be assigned by PPP connection. set “port <x/ all/ x-x> pppremoteip <IP Address>” Set the remote IP address to be assigned by PPP connection. set “port <x/ all/ x-x>...
  • Page 52: Setup And Connections

    Portbase User Guide Setup and Connections This chapter is an easy and simple guide for Portbase setup and connections. As mentioned earlier, Portbase has factory default IP addresses. So before the first use, the user should customize the IP address and environment parameters. 1.
  • Page 53: Connecting Pc To Portbase

    Portbase User Guide 2. Connecting PC to Portbase This type of connection is used when the PC needs to collect data from the open socket of Portbase directly. When the connection is established, full-duplex communication is possible. From either PC1 or PC2, telnet application, serial communication program, or socket program can be used to connect to Portbase.
  • Page 54 Portbase User Guide All environment settings are completed by the set of commands above. With the command set “view”, you can view new settings, and with the command set “reboot”, Portbase is restarted so that new settings are affected. From a telnet program in PC1 or PC2, you can connect to the serial device attached to the first serial port of Portbase by the following telnet command.
  • Page 55: Connecting Portbase To Pc

    Portbase User Guide 3. Connecting Portbase to PC This method is used when Portbase needs to transmit data to the server PC. When the connection is acknowledged, full-duplex communication is possible. Portbase needs to be connected to the server program of either PC1 or PC2, so that communication with the serial devices attached to Portbase is possible.
  • Page 56 Portbase User Guide All environment settings are completed by the set of commands shown. With the command set “view”, you can view new settings, and with the command set “reboot”, Portbase is restarted so that new settings are affected. When Portbase is restarted, the first serial port of Portbase tries to establish connection to socket 2000 in the server, PC1.
  • Page 57: Com Port Redirector

    Portbase User Guide COM Port Redirector 1. Redirector Introduction Redirector is a network COM port driver, enabling serial ports of Portbase to operate the same way as the local COM ports of PC. Upto 255 COM ports can be registered in one PC if Redirector is used. 1) Supported Hardware Portbase 3010 / 3010F / 3020 / 3020F / 3040 / 3080 / 3160 / 3161 2) Supported Operating Systems...
  • Page 58: Installing Redirector

    Portbase User Guide 2. Installing Redirector Before installing Redirector, operation environment setting needs to be done for Portbase. Refer to Chapter 2. Configuration if you want to configure operating environment. 1) Installing under Windows 98/ME 1) Insert the Portbase CD into the PC to install Redirector in. 2) Upon insertion, the setup program will auto-start.
  • Page 59 Portbase User Guide 3) On the option screen, select “Install Redirector (WIN98/ME)”. Then Redirector installer will be started automatically. 4) Follow the instructions from the installer. When Redirector is run after installation, Redirector Manager icon will appear in the system tray.
  • Page 60: Installing Under Windows 2000/Xp

    Portbase User Guide 2) Installing under Windows 2000/XP 1) Insert the Portbase CD into the PC to install Redirector in. 2) Upon insertion, the setup program will auto-start. Select “English”. 3) If you select “Install Redirector for WIN2K/XP”, the Install Wizard for COM Port Redirector will appear on the screen automatically.
  • Page 61 Portbase User Guide 4) Click “Next” 5) Choose destination location and click “Next”.
  • Page 62 Portbase User Guide 6) Click “Install” to begin the installation. 7) When the installation is complete, you can either add virtual COM ports right away or later. If you want to add ports right away, check the option “I’d like to add virtual COM ports on my computer now”...
  • Page 63 Portbase User Guide 8) When the Install Wizard runs, click “Next” 9) Select how many COM ports you’d like to install and insert the IP address of Portbase that virtual ports will be connected to. Finally, assign the port number that the first COM port will connect to, and click “Next”.
  • Page 64 11) Select “Search for the best driver in these locations.” and check “Include this location in the search:” Click “Browse” to assign the location of your COM Port Redirector. The default location is “C:₩Program Files₩SystemBase Portbase₩COM Port Redirector”. Click “Next”.
  • Page 65 Portbase User Guide 12) Warning on the Windows compatibility test might be displayed. Just click “Continue” for installation. Your system will not be affected by any means. 13) Click “Finish” to complete port installation, and this process will repeat until all ports are installed. 14) After the installation of the last port, the Installation Result window is displayed.
  • Page 66 If you want to install additional COM ports later on, you need to run the installation wizard again. Run ‘Start’ ‘All Programs’ ‘SystemBase Portbase’ ‘COM Port Redirector’ ‘Add or Remove Ports’. When the wizard detects existing ports installed, the following screen shows up.
  • Page 67: Using Redirector

    Portbase User Guide 3. Using Redirector With COM Port Redirector, you can use serial ports in Portbase from the remote site as if they belong to your own PC. These ports operate just like COMx console ports in your PC. The following figure describes how the communication between the PC with Redirector installed and the serial devices attached to Portbase is done via network.
  • Page 68: Using Redirector In Windows 98/Me

    To run the Redirector Manager, double-click the Redirector Manager icon from the system tray, or select Start Program SystemBase Portbase Redirector. 2) Register COM ports. When you click “Add” from the main menu, general information about the COM ports to install...
  • Page 69 Portbase User Guide When all the information is provided, you can click “OK” to add a new port, shown in the next figure. Nothing is displayed under the Status tab if the Redirector service did not start for each port. By repeating the steps shown above, multiple serial ports can be registered as a candidate for connecting to one COM port.
  • Page 70 Portbase User Guide Connected The connection between Portbase and the virtual serial port set by Redirector on the PC is established. Disconnected : The connection between Portbase and the serial port in the PC is lost. COM Opened : Portbase doesn’t operate even though the serial port in the PC is open. Reconnecting : The virtual serial port set by Redirector on the PC is reconnecting to Portbase.
  • Page 71: Using Redirector In Windows 2000/Xp

    Hardware Device Manager) 4) Run the configuration program by selecting Start All Programs SystemBase Portbase Port Redirector Configure Installed Ports 5) If you like to change the IP address and the socket number of Portbase assigned to the virtual COM port, click “Edit”.
  • Page 72 Portbase User Guide 7) If you want to enable data encryption for your communication, check “Data Encryption”. (Encryption mechanism used in this option is SEED, a 128-bit symmetric key type block encryption algorithm.) 8) If the user application opens the virtual COM port registered in the system, the Redirector service starts.
  • Page 73: Uninstalling Redirector

    Uninstall process for Redirector is the same for all Windows versions. From Windows, select Start All Programs SystemBase Portbase COM Port Redirector Uninstall COM Port Redirector”. Uninstall wizard will guide through the process. All pre-installed virtual COM ports are removed when Redirector is uninstalled.
  • Page 74: Management With Portview

    Portbase User Guide Management with Portview 1. Portview Introduction Portview is the program that enables you to monitor the Portbase communication sutatus in real time. Portview displays the data input/output through each serial port as well as the communication status of Portbase from remote PCs under the Windows environment.
  • Page 75: Installing Portview

    Portbase User Guide 2. Installing Portview 1) Installation 1) Insert the Portbase setup CD to the CD-ROM drive. 2) Run Setup.exe. (The program is started automatically when you insert the CD.) 3) Select “English”, and then “Install Portview”.
  • Page 76 Portbase User Guide 4) Portview install wizard starts. Click “Next” to proceed. 5) Choose destination location, and click “Next”. Default path is C:₩Program Files₩SystemBase Portbase₩Portview...
  • Page 77 Portbase User Guide 6) Click “Install” to begin installation. 7) Click “Finish” to complete the installation. To run the program, select ‘Start’ ‘All Programs’ ‘SystemBase Portbase’ ‘Portview’ ’Launch Portview’.
  • Page 78: Using Portview

    Portbase User Guide 3. Using Portview 1) Portbase Setting Type the Portbase IP address in the address windows to access the Portbase web site via the web browser. Enter the user name and the password of Portbase. Click on ‘Network Setting’, and click on ‘Management’ button from the page that shows up, among the three button menus available (Network, NAT, and Management).
  • Page 79 Portbase User Guide Enter the IP address of the PC to execute Portview on, the name of Portbase, the Location that Portbase is in, and the Group in which Portbase belongs to. Click on “Save & Restart” to apply the new setting to Portbase. (Refer to Chapter 2.
  • Page 80: Environment Setting

    Portbase User Guide 2) Environment Setting Password Setting In order to prevent unauthorized access to Portview, click on ‘Settings’ ‘Password Setting’ from the menubar. Mark “Use Password” box and enter the password, and click on “OK”. Afterward, the password window will appear to execute the the Portview.
  • Page 81 Portbase User Guide Communication Setting Select whether Portview should keep displaying Portbase after it is disconnected, and set the external connection port. ① If you select ‘Remove nodes automatically, if connections are failed’, the Portbase information disappears as the Portbases are disconnected. ②...
  • Page 82 Portbase User Guide ③ Type the socket number for Portbase connection. The default port number is 4000. Datascope Screen Setting You can change settings of the data input/output monitoring screen.
  • Page 83: Overall Portbase Management

    Portbase User Guide 3) Overall Portbase Management You can manage all the Portbases connected to Portview. The Portbases with different group names are displayed as different groups. To close the group tree screen, click on from the toolbar.
  • Page 84 Portbase User Guide Click on to display Portbases of a group. To display icon screen of a Portbase, click on Because you selected sysbas, the tile becomes “Portview – [sysbas]”.
  • Page 85 Portbase User Guide In order to display detailed information of a Portbase, click on Detailed information of Portbase is as below. Name Portbase name Location Portbase location IP Address Portbase IP address MAC Address Portbase MAC address Starting Time Portbase starting time Model Portbase model Active Ports...
  • Page 86: Detailed Portbase Management

    Portbase User Guide 4) Detailed Portbase Management Portbase View Port View screen: Displays data on each Portbase’s port.. Displays errors on each Portbase’s port. Displays environment configuration for each Portbase’s port. ① Starting To run Portbase View, double-click on an equipment on the Group List View or the Portbase List View.
  • Page 87 Portbase User Guide ② Statistics You can display input/.output data si zes a nd errors of all ports of the equipment being monitored. To see this screen, click on from the toolbar. The Ststistics screen is the same as th e in itial screen.
  • Page 88 Portbase User Guide ③ Settings You can display settings of all ports. Click from the toolbar. <Settings Screen> Port : Port number and status of a Portbase The port is active (Green) The port is available but not active (Red) The port is unavailable.
  • Page 89 Portbase User Guide ④ Log file saving You can make log files for port status and execution of program in Portbase. On the Portbase View window, click on to display the log start message. The port operation status is recorded on the log.
  • Page 90 Portbase User Guide <Log Window>...
  • Page 91 Portbase User Guide ⑤ Log File A log file is configured as below. <Initial System Configuration> Initial system setting The red dotted part on the above screen. It contains the default settings. Port setting The below “Port Configuration” part. The port status at the time of log start. It has the same items of the “Settings”...
  • Page 92 Portbase User Guide Port : The port where the Demon event has occurred Demon : Type of Demon Status : Demon starts - Started Demon ends - Terminated Connection error and reconnection <Connection End Message and Reconnection Message> The red dotted part shows the disconnecton time and indicates that all the programs are terminated.
  • Page 93 Portbase User Guide Data Scope View Datascope window: Displays input/output data on a port in ASCII. Displays input/output data on a port in HEX. Saves input/output data on a port. ① Starting data scope view Select the port you want to see data scope of in the Portbase View window and click on Or, double-click on the port.
  • Page 94 Portbase User Guide Hexa Code Display the data scope content in Hexa code. If the button remains pressed, ASCII data is changed into two-digit Hexa code. Back Close the window. (If Capture is active, the file saving window is displayed.) Data View Input/output data on the port is displayed.
  • Page 95 Portbase User Guide ② Operation Data Scope Starting If you click on and the remote Tx/Rx data is displayed on the screen. <Data Scope - Ascii> Tx data is displayed on the upper line and Rx data is displayed on the lower line. The function measures buffering status near the data exchange time to arrange the data.
  • Page 96 Portbase User Guide To open a saved file, click on and select a file. The data is displayed on a new window. Data in Hexa code In order to view data in hexadecimal format on Data View, click on Use scroll bar to see the rest of the data.
  • Page 97: Uninstalling Portview

    Portbase User Guide 4. Uninstalling Portview Select ‘Start’ ‘All Programs’ ‘SystemBase Portbase’ ‘Portview’ ‘Uninstall Portview’.
  • Page 98: Cable Pinouts

    Portbase User Guide Cable Pinouts 1. Portbase-3010 Serial Cable Pinouts RS232 Cross Cable RS232 MODEM Cable Portbase Device Portbase MODEM CTS 8 CTS 8 7(4) RTS 8(5) CTS RTS 7 RTS 7 8(5) CTS 7(4) RTS DSR 6 DSR 6...
  • Page 99: Portbase-3020/3040 Serial Cable Pinouts

    Portbase User Guide 2. Portbase-3020/3040 Serial Cable Pinouts RJ-45 Pin Alignment RS232 Cross Cable RS232 MODEM Cable Portbase Device Portbase MODEM CTS 8 CTS 8 7(4) RTS 8(5) CTS DCD 7 DCD 7 1(8) DCD 1(8) DCD GND 6 GND 6 5(7) GND 5(7) GND TXD 5...
  • Page 100: Serial Loopback Cable Pinouts

    The loopback connector can be used to verify if the Portbase hardware is all right by performing an external loopback test. The loopback connector is plugged in the Portbase’s RJ45 serial port to make sure that the Portbase serial port operates normally. Portbase-3010 (RS232/422) Portbase-3020/3040(RS232/422) Loopback...
  • Page 101 Portbase User Guide ※ Cables are not supplied additionally. You need to make cables manually with pinout specifications above.
  • Page 102 Portbase User Guide Programming Examples This chapter provides application program examples that communicate through COM ports, TTY ports and sockets to help the user develop a PC based application using Portbase 1. COM Port Communication Program COM port communication is most generally used serial communication way in the Windows environment.
  • Page 103 Portbase User Guide displayed on the edit box at 3 second Intervals. 4) Source Code BOOL CExample1Dlg::OnInitDialog() // Opens the COM3 port. hComm = CreateFile(“\\\\.\\COM3”, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); If(hComm == INVALID_HANDLE_VALUE) { // In case the port is not valid AfxMessageBox("...
  • Page 104 Portbase User Guide SetCommState(hComm, &dcb); // Sets a timer for transmission. SetTimer(1, 3000, NULL); // Sets a timer for reception. SetTimer(2, 1, NULL); void CExample1Dlg::OnTimer(UINT nIDEvent) CEdit * pEdt = (CEdit *)GetDlgItem(IDC_edtWINDOW); char WriteData[30] = "This is LoopBack Data !"; DWORD Writed;...
  • Page 105 Portbase User Guide 2. TTY Port Communication Program TTYxx port communication is most generally used serial communication method under the Linux/Unix environment. 1) Function Description open() -------------- Open a communication port. read(), write() --- Read or write data from the open communication port. close() ------------- Close the open communication port.
  • Page 106 Portbase User Guide void SendData(void); void GetData(void); //Creates the main function and calls the function. main (int argc, char *argv[]) time_t tti; struct tm *ttm; int gettime; int gettime2; OpenSerial(); time(&tti); ttm = localtime(&tti); gettime = ttm->tm_sec; gettime2 = ttm->tm_sec; while(1){ time(&tti);...
  • Page 107 Portbase User Guide char readbuff[255]; // Reads data. readval = read(porthandle, readbuff, sizeof(readbuff)); if (readval < 1) return; readbuff[readval] = 0; printf("%s",readbuff); //Opens the ttys0 port of RTCP connected to Portbase. void OpenSerial(void) int i; // Opens the ttys0 port. porthandle = open(“/dev/ttys0”, O_RDWR | O_NOCTTY |O_NONBLOCK);...
  • Page 108 Portbase User Guide 3. Windows Socket Program Basically, the Portbase operates network communication through the socket. The socket is an effective way to communicate on a network between the client and server. Programming steps for the socket communication are as follows. The initial handshaking to support socket communication consists of two methods, Passive and Active.
  • Page 109 Portbase User Guide Connection Request Order from client to server CAsyncSocket() – --- Create a socket object. Connect() ------- Request for connection to server. Send()- –-------- Send a HTML file and others in response to the request from server. Receive()------- Wait until the server requests a sendto. 3) Operation Environment O/S : Windows 95/98/2000/XP Tool : Microsoft Visual C++ 5.0 or higher...
  • Page 110 Portbase User Guide Enter the Portbase IP address you want to connect to and click “Connect”. If the connection is successfully completed, the message “Connected “will be displayed. “This is LoopBack Data!“ is repeatedly displayed at 3 sec. intervals on the edit box. 6) Source Code Declare the client socket to be connected to the server and the variable to save the IP address entered by the user in SockExamDlg.h as follows.
  • Page 111 Portbase User Guide pEdt= (CEdit *)GetDlgItem(IDC_edtIPAddress); pEdt->GetWindowText(m_ipaddr); // Creates the socket. p = new CAsyncSocket; p->Create(); // Requests a connection by the socket number 4001. if(p->Connect((LPCSTR)m_ipaddr, 4001) == 0) { AfxMessageBox("Connection fail"); return; else AfxMessageBox("Connection success"); // Sets a timer for transmission. SetTimer(1, 3000, NULL);...
  • Page 112 Portbase User Guide // Outputs data to the edit box. rbuff[nBytesRead] = 0; pEdt->ReplaceSel(temp); CDialog::OnTimer(nIDEvent); //Closes the socket when the program is shut down. BOOL CSockExamDlg::DestroyWindow() if(!p) p->Close (); KillTimer(1); KillTimer(2); return CDialog::DestroyWindow();...
  • Page 113 Portbase User Guide 4. Linux/Unix Socket Program 1) Passive Programming Set the handshaking method to passive in the Webpage Connection Setting. Passive handshaking makes the Portbase socket to be on the server side waiting for a connection request from the outside. Portbase’s sockets 4001 to 400x are firmly connected to serial ports 1 to x respectively.
  • Page 114 Portbase User Guide write()- –-- Send a HTML file and others in response to the request from server. read()----Wait until the server requests a sendto. 3) Operation Environment O/S : Linux or Unix Tool : Linux or Unix Compiler 4) Result (Active Programming) If the user designates the IP address of a specific Portbase and starts the program, “This is LoopBack Data!”...
  • Page 115 Portbase User Guide //Creates the main function and calls the function. int main(int argc, char *argv[]) char buff[1024]; int count = 0; pid_t pid; int ff; struct sockaddr_in server_addr; if (argc != 2)//Outputs a message if it is not the input format. printf("How to run : %s Porter IP \n", argv[0]);...
  • Page 116 Portbase User Guide GetData(); close(sock); //Creates the data packet to transmit it to the server. void SendData(void) int i; char temp[30] = "This is LoopBack Data !"; // Outputs data with the socket number 4001 of Porter. write(sock, temp, sizeof(temp)); //Outputs received data on the screen.
  • Page 117 Portbase User Guide SNMP SNMP(Simple Network Management Protocol) is used by the administrator (SNMP Manager) to monitor and control the operation status of TCP/IP-based network devices (SNMP Agents) from the remote site. To establish communication using SNMP, MIB (Management Information Base) between the Manager and the Agent is necessary.
  • Page 118 Portbase User Guide Device Management Error history for each serial port, such as framing error, overrun error, parity error, etc. can be identified. Also, signal line information (DCD, RTS/CTS and DTR/DSR) can be configured and confirmed.

Table of Contents