background image

 

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. 

(If any kind of unexpected error causes disconnection, reconnection is 

attempted to a certain port and a port number at constant intervals.) 

Switching    :

Multiple IPs are assigned to one port and IP changes real-time. 

 

 

 

Upon selecting a port and clicking “Stop”, the Redirector service for that port is terminated. 

 

 

Once the service is terminated, Status tab for that port will be empty. 

 

 

Information such as the COM port number, IP address and Port number is shown when the service 

is performed. Once the service is terminated, these information automatically disappears from the 

screen. 

 

 

The service for one COM port can be started by either the “Start” button or the application program 

which handles Redirector actions. Regardless of the service-activating source, it is always the last 

action performed that achieves the higher priority. 

 

 

If you click “Exit”, all the Redirector services for all ports are over, system tray icon disappears, and 

Redirector quits. 

 

 

If any COM port is on service when the “Exit” button is pressed, message box indicating that the 

port is in use pops up and the service is not terminated. 

 

 

If Redirector is restarted, the Redirector service may either be resumed automatically or not. This 

is determined by the previous configuration (the Tray icon configuration). 

 

 

 

 

                       

 

 

70 

Summary of Contents for Portbase-3010

Page 1: ......

Page 2: ...rted 20 1 Configuration using the WAN Port 20 2 Configuration using the LAN Port except PB 3010M 22 2 Configuration Using Web Browser 24 2 Network Settings 26 3 Serial Settings 32 4 Advanced Settings 41 5 Save Reboot 42 6 Change Password 42 7 Firmware Update 43 8 Factory Default 43 3 Configuration Using Telnet 44 1 View Environment Settings 44 2 Configuration Help 44 3 Save Environment Settings 44...

Page 3: ...ector 67 1 Using Redirector in Windows 98 ME 68 2 Using Redirector in Windows 2000 XP 71 4 Uninstalling Redirector 73 Management with Portview 74 1 Portview Introduction 74 1 Supported Hardware 74 2 System Requirements 74 2 Installing Portview 75 3 Using Portview 78 1 Portbase Setting 78 2 Environment Setting 80 3 Overall Portbase Management 83 4 Detailed Portbase Management 86 4 Uninstalling Port...

Page 4: ...Portbase User Guide Programming Examples 102 1 COM Port Communication Program 102 2 TTY Port Communication Program 105 3 Windows Socket Program 108 4 Linux Unix Socket Program 113 SNMP 117 4 ...

Page 5: ...the Portview program designed especially for Portbase status monitoring and error detection can be done easy and quick Applicable Fields Monitoring and controlling factory devices such as F A PLC and System Monitoring Interconnection of POS Point of Sale related devices bar code reader printer cash register credit card authorization terminal etc Data collection and distribution between host comput...

Page 6: ...es you to monitor the communication status of Portbase 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 Refer to Chapter 5 Management with Portview for details on installing and using the program Portbase CD structure ACROBAT Acrobat Reader for reading user guides Manual Portb...

Page 7: ...is ready blinks with errors SRL Green light blinks when serial data is transmitted Rear PWR Socket for DC 5V power supply LAN 10 100 Mbps Ethernet RJ 45 Secondary LAN Port WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port Reset Hardware reset button at the bottom of the device COM DB 9 Female serial port for RS232 422 485 7 ...

Page 8: ...re is ready blinks with errors SRL Modem Hook Modem Data Tx Rx Rear PWR Socket for DC 5V power supply PWR SW Power Switch Phone Line Phone port RJ 11 PSTN port WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port Reset Hardware reset button at the bottom of the device COM 1 RJ 45 serial port for RS232 8 ...

Page 9: ...inks with errors SRL Green light blinking when serial data is transmitted Rear PWR Socket for DC 5V power supply LAN 10 100 Mbps Ethernet RJ 45 Secondary LAN Port WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port Reset Hardware reset button at the bottom of the device COM 1 2 RJ 45 serial port for RS232 422 485 9 ...

Page 10: ...hen 10 100Mbps network connection is detected RxD Red light blinking when serial data is received TxD Green light blinking when serial data is transmitted COM DB 9 Female serial port for RS232 422 485 Rear PWR Socket for 100 220v AC 50 60Hz power supply LAN 10 100 Mbps Ethernet RJ 45 Secondary LAN Port WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port Reset Hardware reset button at the bottom of the...

Page 11: ... light when 10 100Mbps network connection is detected RxD Red light blinking when serial data is received TxD Green light blinking when serial data is transmitted COM 1 2 RJ 45 serial port for RS232 422 485 Rear PWR Socket for DC 5V power supply LAN 10 100 Mbps Ethernet RJ 45 Secondary LAN Port WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port Reset Hardware reset button at the bottom of the device ...

Page 12: ... connection is detected LAN Green light when 10 100Mbps network connection is detected Rear PWR Socket for 100 220V AC 50 60Hz power supply WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port LAN 10 100 Mbps Ethernet RJ 45 Secondary LAN Port Reset Hardware reset button COM Console serial port for environment setting Serial RJ 45 socket for serial ports RS232 422 485 12 ...

Page 13: ... connection is detected LAN Green light when 10 100Mbps network connection is detected Rear PWR Socket for 100 220V AC 50 60Hz power supply WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port LAN 10 100 Mbps Ethernet RJ 45 Secondary LAN Port Reset Hardware reset button COM Console serial port for environment setting Serial RJ 45 socket for serial ports RS232 422 485 13 ...

Page 14: ...work connection is detected LAN Green light when 10 100Mbps network connection is detected Rear PWR Socket for 100 220V AC 50 60Hz power supply WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port LAN 10 100 Mbps Ethernet RJ 45 Secondary LAN Port Reset Hardware reset button COM Console serial port for environment setting Serial 4 port RJ 45 socket for serial ports RS232 422 485 14 ...

Page 15: ...etwork connection is detected LAN Green light when 10 100Mbps network connection is detected Rear PWR Socket for 100 220V AC 50 60Hz power supply WAN 10 100 Mbps Ethernet RJ 45 Primary LAN Port LAN 10 100 Mbps Ethernet RJ 45 Secondary LAN Port Reset Hardware reset button COM Console serial port for environment setting Serial RJ 45 socket for serial ports RS232 422 485 15 ...

Page 16: ...ower Ready WAN LAN Power DC 5V Adapter 100 220 VAC Free Volt F 100 220 VAC Free Volt CPU 32 bit RISC Processor SDRAM 8 MB 32 MB Flash 4 MB WAN 10 100 Mbps Ethernet port LAN No 10 100 Mbps Ethernet port Modem 1 No Serial Port Type RS232 RS232 422 485 RS232 RS232 422 485 Serial Port Speed Max 230 4 Kbps Serial Port Signals TX RX DTR DSR CTS RTS DCD Excessive Voltage Protection Surge Protector attach...

Page 17: ...lication 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 Internet PC PC Portbase Portbase Serial Serial Internet Internet PC PC Portbase Portbase Serial Serial 17 ...

Page 18: ...AN Portbase Portbase COM1 COM2 COM3 PC Serial Devices Internet Internet Portbase PC LAN Portbase Portbase COM1 COM2 COM3 PC Serial Devices 4 Console Server Console server enables monitoring and controlling of multiple serial devices from one PC These serial devices can be connected through telnet application and these may include server router UPS etc Portbase PC LAN Servers Portbase PC LAN Server...

Page 19: ...he modem port of PB 3010M PPP Applications 1 Connect to the device when network failure occurs in Portbase 2 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 With this function Fax can be sent from the PC 19 ...

Page 20: ...address and other operation parameters with Web browser or telnet from PC using the LAN serial or console port 1 Getting Started 1 Configuration using the WAN Port This method is most often used WAN port connects Portbase to the external network Connect the WAN port of Portbase and PC to the network Direct connection Connection via HUB Adjust network settings of PC as follows 20 ...

Page 21: ...ew 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 Configuration Using Telnet in this chapter 21 ...

Page 22: ...st network settings of PC as follows Within 1 minute Portbase automatically assigns an IP Address to the PC IP address assigned to PC ranges from 10 10 1 2 to 10 10 1 254 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 23: ... 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 This address will not affect the operation of the actual WAN IP address Since PB 3010M cannot operate as a DHCP server user must manually set the IP of PC as any address between 10 10 1 2 and 10 10 1 254 23 ...

Page 24: ...ctory 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 The default Username and Password portbase 99999999 8 consecutive 9s After entering the correct Username and Password click OK to warp to the environment setting screen 24 ...

Page 25: ...d 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 Save Reboot Save the configurations and reboot Portbase Change Password Set the password for the administrator used when accessing to Portbase via Web Telnet Update Firmware Update Portbase firmware Factory Default Restore all the factory default setti...

Page 26: ...N port operation environment DHCP Server Management configures various parameters used for Portview the management program for Portbase Network Settings IP Configuration Default Static IP To achieve the IP to the WAN port from the external DHCP server set as DHCP If a pre defined IP is used for the WAN port set as Static IP IP Address Default 192 168 1 71 Set the IP address when the WAN port is to...

Page 27: ...twork connection is established through xDSL modems When PPPoE Connection is selected IP Configuration is ignored be it either DHCP or Static IP PPPoE Username Default None Username to be provided to ISP for PPPoE network connection PPPoE Password Default None Password to be provided to ISP for PPPoE network connection DNS Server Register the Domain Name Server DNS Upto 5 DNS can be registered Usi...

Page 28: ...rver 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 End Address Default 10 10 1 20 When the LAN port operates as the DHCP server set the last IP address to assign to the DHCP clients via the LAN port 28 ...

Page 29: ... 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 field Gateway Address Default 0 0 0 0 If the DHCP Gateway is set as User Defined set the external Gateway IP address Lease Time Default 1 day Set the IP address lease time for the DHCP clients 29 ...

Page 30: ... Portbase provides a Network Management System software Portview Portview provides integrated Portbase management status information for each device and the Data Scope feature Refer to Chapter 5 Management with Portview for more information Portbase Name Default None Set the name for Portbase 32 Characters at maximum Default None Location Default None Set the location name for Portbase 32 Characte...

Page 31: ... Portbase determine if SNMP Agent service will be used or not MIB II RFC 1213 System Interface IP ICMP TCP UDP MIB I RFC 1317 Serial Interface Time Server Default 0 0 0 0 Set the Time Server to provide correct time in the region and the country in which Portbase is located Portbase has a default Time Server registered Other Time Servers can be registered if needed Time Zone Default Seoul When the ...

Page 32: ...ngs 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 32 ...

Page 33: ...elected port will appear Operation Mode Default COM Win200x XP Select the operation protocol which the serial ports would use J Disable Do not use this port J COM Win2000 XP 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 33 ...

Page 34: ...ferred untouched after the socket connection is established J TCP Server M Portbase works as a server accepting upto 5 simultaneous connections from socket clients Data transmitted from Portbase is broadcast to each socket client J UDP Server Portbase works as a UDP server waiting for UDP connection from the client on the network Socket number for awaiting connections can be set in Socket Number f...

Page 35: ...arity bit check scheme None Even Odd Stop Bits Default 1 Set the number of stop bits 1 2 Flow Control Default None Set the flow control scheme None RTS Xon Local Socket Port Default 4001 4004 Set the socket number for the port Software makes use of this value for the network socket communication Port 1 4001 Port 2 4002 Port 3 4003 Port 4 4004 Device Type Default DataOnly Set the signal line check ...

Page 36: ...nd the buffering value is set to 10 Portbase waits up to 10 msec for each byte to byte interval until the entire 100 bytes 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 Host IP Address Default...

Page 37: ...n 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 Password Set the password of the user for console login 37 ...

Page 38: ...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 38 ...

Page 39: ...ect 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 39 ...

Page 40: ... 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 40 ...

Page 41: ...HTTP access Default Yes Determine whether the Client request for the Portbase HTTP server through the WAN port will be accepted or denied WAN side FTP access Default Yes Determine whether the Client request for the Portbase FTP server through the WAN port will be accepted or denied WAN side TELNET access Default Yes Determine whether the Client request for the Portbase TELNET server through the WA...

Page 42: ...changes This option can be used to rollback the changes you ve mistakenly made 6 Change Password Change the username and password for the administrator who can change environment settings of portbase The administrator uses the username and password when connecting via Web or Telnet The default username is portbase and the default password is 99999999 8 consecutive 9 s When you enter the new passwo...

Page 43: ...lected firmware will be transferred to Portbase when you click Upload After the transmission is complete Portbase will be automatically restarted to operate with the new firmware 8 Factory Default Restore all the configuration parameters to the factory default values Clicking on Factory Default button will delete all the current settings and change these settings to the initial status If you want ...

Page 44: ...er The default Username and Password portbase 99999999 8 consecutive 9s Environment parameters can be configured with SET command Don t forget to enter quotation marks in each command 1 View Environment Settings set view This command shows Portbase environment settings 2 Configuration Help set help Display configuration help for Portbase 3 Save Environment Settings set save You must run this comma...

Page 45: ...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 45 ...

Page 46: ...s command only works when Line Type is set to IP set snmp Enable Disable When standard SNMP server manages Portbase determine if SNMP Agent service will be used or not set nms Portview IP Address When Portbase management software Portview is used set server IP address on which Portview is installed Refer to Chapter 5 Management with Portview for further information set name Portbase Name Set the n...

Page 47: ...Port 1 4001 2 4002 3 4003 4 4004 set port x all x x speed 300 230400 Set the communication speed of the given serial port set port x all x x parity none odd even Set the parity check scheme of the given serial port set port x all x x char 7 8 Set the number of character bits of the given serial port set port x all x x stop 1 2 Set the number of stop bits of the given serial port set port x all x x...

Page 48: ...g for the client connection on the network Socket number for awaiting connection can be set in Socket Number field All data between the socket and the serial port is transferred untouched after the socket connection is established J tcp_client Portbase acts as a socket client in this mode It tries to connect to the server IP address and the socket number assigned when a certain server waits for co...

Page 49: ...tp www sysbas com and refer to the X Console page under Products section J ppps Only in PB 3010M Use the port as a modem port for PPP server J Modem Only in PB 3010M Use the port as a modem port for console login J Modem Only in PB 3010M Use the port as a modem port for PPP client set port x all x x keepalive 0 32767 Determine if disconnection and reconnection is required when no communication tak...

Page 50: ... is used in tcp_client mode The following commands only operate in PB 3010M set port x all x x ppps Use the modem port for PPP server set port x all x x pppl Use the modem port for console login When in this mode system commands can be used by connecting to Portbase set port x all x x pppc Use the modem port for PPP client set port x all x x pppauth none papchap Set the authentication mode set por...

Page 51: ...ress 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 modeminitstring modem init string Set the modem initialization character 51 ...

Page 52: ...ss and environment parameters 1 Connecting Portbase to the Network WAN port connects Portbase to the external network Connect the WAN port of Portbase and PC to the network as shown below This example assumes that Portbase uses the default IP address 192 168 1 71 and that PC1 and PC2 have the given network settings PC 1 PC 2 IP Address 192 168 1 10 192 168 2 10 Subnet Mask 255 255 255 0 255 255 25...

Page 53: ...d to connect to Portbase When the connection is established communication with the serial devices connected to Portbase is possible The following example describes configuration using a telnet connection The first serial port of Portbase is used in this example If you need more information about the network settings refer to Chapter 2 Configuration Related sections in that chapter are 1 Getting St...

Page 54: ...d by the telnet program is transferred to the serial device attached to the first serial port of Portbase All data transmitted by the serial device is printed on the telnet program screen If the COM port Redirector is installed and the serial ports of Portbase are used as the COM ports in PC1 or PC2 the command set port 1 protocol tcp_server listed above must be changed to set port 1 protocol com2...

Page 55: ...that communication with the serial devices attached to Portbase is possible The following example describes configuration using a telnet connection The first serial port of Portbase is used in this example If you need more information about the network settings refer to Chapter 2 Configuration Related sections in that chapter are 1 Getting Started 1 Configuration Using the WAN Port and 3 Configura...

Page 56: ... establish connection to socket 2000 in the server PC1 This action is defined by the commands received beforehand In the PC1 a server program waiting for the connection to socket 2000 must be running After the connection is acknowledged data input by the server program is transferred to the serial device attached to the first serial port of Portbase And of course all data sent from the serial devi...

Page 57: ... 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 COM Port Redirector for Windows 98 ME COM Port Redirector for Windows 2000 XP 2003 3 System Requirements PC system requirement for running Redirector is as follows CPU Pentium 100 MHz or higher Memory 16 Mb or more CD ROM Faster than 4X Network 10M Et...

Page 58: ...ronment 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 Select English 58 ...

Page 59: ...reen 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 59 ...

Page 60: ...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 60 ...

Page 61: ...Portbase User Guide 4 Click Next 5 Choose destination location and click Next 61 ...

Page 62: ...tion 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 and click Finish Then the port installer will start 62 ...

Page 63: ...l be connected to Finally assign the port number that the first COM port will connect to and click Next When multiple ports are installed port numbers are assigned following the first port Available port numbers are between 4001 and 4032 and port numbers can be modified after the installation as well Using the Install Wizard up to 32 COM ports can be installed at once 63 ...

Page 64: ...000 skips this process and installs automatically so skip to step 14 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 64 ...

Page 65: ...s 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 Installation process is completed when you click Next The Installation Result window shows the list of installed COM ports and the IP address and port number of Portbase 65 ...

Page 66: ...e Portbase COM Port Redirector Add or Remove Ports When the wizard detects existing ports installed the following screen shows up J When you select Remove option all virtual ports will be removed Be careful when selecting this option Choose Add Ports if you want to install additional COM ports The remaining steps are identical to installing new ports 66 ...

Page 67: ...ike 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 Serial Device Portbase PC LAN Serial Device Portbase COM3 COM4 Serial Device Portbase PC LAN Serial Device Portbase COM3 COM4 Serial Device Portbase PC LAN Serial Device Portbase COM3 COM4 67 ...

Page 68: ...rogram SystemBase Portbase Redirector 2 Register COM ports When you click Add from the main menu general information about the COM ports to install will be displayed Enter the COM Port ID COMx IP address of Portbase Port Number 1 to the maximum number of ports and the description or the port name 16 bytes maximum Multiple IP addresses and port numbers can be registered to one COM port 68 ...

Page 69: ... Redirector Manager main screen select ports to start Redirector service Selected ports will be highlighted Click one more time to unselect any selected port Only one serial port for each COM port can be selected After selecting all the ports desired click Start to activate the Redirector service Certain information will be displayed for Status tab once the service is activated for ports The list ...

Page 70: ...Status tab for that port will be empty Information such as the COM port number IP address and Port number is shown when the service is performed Once the service is terminated these information automatically disappears from the screen The service for one COM port can be started by either the Start button or the application program which handles Redirector actions Regardless of the service activati...

Page 71: ...ual COM ports are created Alternatively you can also check Ports COM and LPT in Device Manager To open the Device Manager select Start Setting Control Panel System Hardware Device Manager 4 Run the configuration program by selecting Start All Programs SystemBase Portbase COM Port Redirector Configure Installed Ports 5 If you like to change the IP address and the socket number of Portbase assigned ...

Page 72: ...ric key type block encryption algorithm 8 If the user application opens the virtual COM port registered in the system the Redirector service starts The connection is established using the IP address and the socket number designated for Portbase 9 If the user application closes the COM port the connection with Portbase is lost and the Redirector service is terminated 72 ...

Page 73: ...or 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 73 ...

Page 74: ... each serial port as well as the communication status of Portbase from remote PCs under the Windows environment 1 Supported Hardware Portbase 3010 3010F 3020 3020F 3040 3080 3160 3161 2 System Requirements PC system requirements for running Redirector are as follows CPU Pentium 100 MHz or higher Memory 16 Mb or more Operating System Windows 95 98 ME 2000 XP 2003 CD ROM Faster than 4X Network 10M E...

Page 75: ...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 75 ...

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 76 ...

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 77 ...

Page 78: ...ess in the address windows to access the Portbase web site via the web browser 2 Enter the user name and the password of Portbase 3 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 78 ...

Page 79: ...ss 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 5 Click on Save Restart to apply the new setting to Portbase Refer to Chapter 2 Configuration for details 79 ...

Page 80: ...rtview 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 Directory Setting You can set the default directory to save the Portbase log file and the Datascope capture file 80 ...

Page 81: ...appears as the Portbases are disconnected Select Resume Datascope if failed connections are restored from communication options menu bar if you want to set Datascope to be automatically executed when the failed Portbases are reconnected At this time to automatically display incoming outgoing data to from each Portbase port in real time select Resume PortManagement if failed connections are restore...

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 82 ...

Page 83: ... 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 83 ...

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 84 ...

Page 85: ...o the Portbase icon screen click on To update the disconnected equipment information click on View Refresh Group Tree from the menu Configuration Setting You can set configuration name location group IP mask gateway and etc of Portbase using web and telnet Refer to Chapter 2 Configuration for details To open web or telnet screen of a Portbase server select the Portbase on the icon screen or the li...

Page 86: ...1 Displays data on each Portbase s port 2 Displays errors on each Portbase s port 3 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 Initial Portbase View Screen 86 ...

Page 87: ...s Screen Port Displays port status ctive Green t active Red TxBytes se port The port is a The port is available but no The port is unavailable Gray The number of output data bytes through the Portba RxBytes The number of input data bytes through the Portbase port Rx Parity The number of parity errors during data reading Rx Framing The number of framing errors during data reading Rx Overrun The num...

Page 88: ...Port type of the Portbase RS232 422 485 Protocol Protocol of the Portbase Passive Active Telnet Com Tty Link Speed Baud rate of the Portbase port 150 300 600 1200 2400 4800 9600 19200 38400 57600 115200 230400 Length The number of bits indicating a character 5 6 7 8 Parity Error detection method of making the number of 1 s in a bit string to be odd or even by adding a test bit to the given data bi...

Page 89: ...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 In order to save the log file click on Log Start Message When saving a log file enter the file name and click on Save 89 ...

Page 90: ...Portbase User Guide Log Window 90 ...

Page 91: ... 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 window of Portbase View Demon Log Screen Demon record Records start and end date time port and status of the Demon of each port Date Year Month Date Time Hour Min Sec 91 ...

Page 92: ...emon 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 The reconnection time and settings are displayed when the connection is restored Status at reconnection is Disable 92 ...

Page 93: ...k on Or double click on the port Data Scope Window Toolbar Open Read the data scope file in cap and display it on a new window Start Start data scope of the port The button remains pressed once it is started Stop Activated while data scope is running Click this button to stop data scope Erase Initialize the window Capture Start Write the data scope content on a file If you click this button the Ca...

Page 94: ...to 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 If the data type is ASCII the data is displayed as they are If you select HEX they are displayed in hexadecimal Use scroll bar to see the rest of the data Data View Window 94 ...

Page 95: ...measures buffering status near the data exchange time to arrange the data To stop the data scope function click on File Saving If you click on Capture Start the Capturing message is displayed and saved The Capture Start button is pressed down while the message is saved on a file Click on Capture Stop The default file name is pyymmddhhmm cap and each two digit number indicates year month date hour ...

Page 96: ...pen 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 Data Scope Hex 96 ...

Page 97: ...Portbase User Guide 4 Uninstalling Portview Select Start All Programs SystemBase Portbase Portview Uninstall Portview 97 ...

Page 98: ...R 4 TXD 3 RXD 2 DCD 1 7 4 RTS 8 5 CTS 4 20 DTR 5 7 GND 6 6 DSR 2 3 RXD 3 2 TXD 1 8 DCD CTS 8 RTS 7 DSR 6 GND 5 DTR 4 TXD 3 RXD 2 DCD 1 8 5 CTS 7 4 RTS 6 6 DSR 5 7 GND 4 20 DTR 3 2 TXD 2 3 RXD 1 8 DCD 7 15 RX 8 14 TX 5 7 GND 2 3 RX 3 2 TX 8 14 TRX 5 7 GND 3 2 TRX 6 TRX 8 GND 5 TRX 3 TX 8 RX 7 GND 5 TX 3 RX 2 Cables are not supplied additionally You need to make cables manually with pinout specifica...

Page 99: ... 45 DB 9 25 CTS 8 DCD 7 GND 6 TXD 5 DSR 4 RXD 3 DTR 2 RTS 1 7 4 RTS 1 8 DCD 5 7 GND 2 3 RXD 4 20 DTR 3 2 TXD 6 6 DSR 8 5 CTS CTS 8 DCD 7 GND 6 TXD 5 DSR 4 RXD 3 DTR 2 RTS 1 8 5 CTS 1 8 DCD 5 7 GND 3 2 TXD 6 6 DSR 2 3 RXD 4 20 DTR 7 4 RTS 5 7 GND 2 3 RX 7 15 RX 3 2 TX 8 14 TX 5 7 GND 3 2 TRX 8 14 TRX GND 6 TRX 5 TRX 4 GND 6 TX 5 TX 4 RX 3 RX 2 Cables are not supplied additionally You need to make c...

Page 100: ...45 serial port to make sure that the Portbase serial port operates normally Portbase 3010 RS232 422 Loopback Portbase DB 9 Portbase 3020 3040 RS232 422 Loopback Portbase RJ 45 4 LAN Cable Pinouts LAN Cross Cable Portbase PC RJ 45 RJ 45 LAN Direct Cable Portbase HUB RJ 45 RJ 45 TX 1 TX 2 RX 3 4 5 RX 6 7 8 TX 1 TX 2 RX 3 4 5 RX 6 7 8 CTS 8 DCD 7 GND 6 TXD 5 DSR 4 RXD 3 DTR 2 RTS 1 TX 1 TX 2 RX 3 4 5...

Page 101: ...Portbase User Guide Cables are not supplied additionally You need to make cables manually with pinout specifications above 101 ...

Page 102: ...of the open communication port SetCommState Set the speed spec of the open communication port ReadFile WriteFile Read or write data from the open communication port CloseHandle Close the open communication port 2 Result Application repeatedly transmits This is LoopBack Data through the COM3 port at 3 second intervals and displays data from COM3 on screen 3 How to Run Plug the loopback connector to...

Page 103: ..._EXISTING 0 NULL If hComm INVALID_HANDLE_VALUE In case the port is not valid AfxMessageBox Failed Open return Sets the input time COMMTIMEOUTS cto cto ReadIntervalTimeout 0 SetCommTimeouts hComm cto Obtains the existing communication specifications GetCommState hComm dcb Decides the communication Spec of the port dcb BaudRate 9600 dcb ByteSize 8 dcb Parity NOPARITY dcb StopBits ONESTOPBIT 103 ...

Page 104: ... DWORD Writed if nIDEvent 1 In case data is output to the port Outputs data to the port WriteFile hComm WriteData strlen WriteData Writed NULL if nIDEvent 2 In case data is inputted to the port COMSTAT c char rbuff 1000 DWORD nBytesRead 0 Error Clears an error obtains the length of data to be read ClearCommError hComm Error c if c cbInQue ReadFile hComm rbuff c cbInQue nBytesRead NULL Outputs data...

Page 105: ...3 second intervals and displays data from ttyS0 on screen 3 How to Run Plug the loopback connector to the first serial port of Portbase Run Redirector and select Portbase to register the first serial port as ttyS0 If you run the program the following screen appears and This is LoopBack Data is repeatedly displayed on the edit box at 3 sec Intervals 4 Source Code Inserts the necessary header files ...

Page 106: ...ti gettime ttm tm_sec Obtains the present time if gettime2 gettime gettime gettime 60 if gettime gettime2 2 Calls the SendData function every 3 second SendData gettime2 ttm tm_sec GetData Transmits a data packet to the opened socket by creating the data packet Calls it in the main function every 3 seconds void SendData void int i char temp 30 This is LoopBack Data Outputs data to the ttys0 write p...

Page 107: ...adval 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 Outputs an error if the socket port is not valid if porthandle 0 printf Can not Open s n ComName 107 ...

Page 108: ...onnected to serial ports 1 to x respectively For instance socket 4002 is conncted to serial port 2 The server s waiting sequence for connection requests from client CAsyncSocket Create a socket object Bind Announce the program is ready for communication Listen Wait for connection request from client Receive Wait until the client requests a sendto Send Send a HTML file and others in response to the...

Page 109: ...eration Environment O S Windows 95 98 2000 XP Tool Microsoft Visual C 5 0 or higher 4 Result Active programming If the user enters the IP address of a specific Portbase and clicks Connect the message This is LoopBack Data is transmitted at 3 second intervals and the received data will be displayed 5 How to Run Plug the loopback connector to the first serial port of Portbase The port is connected t...

Page 110: ...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 class CSockExamDlg public CDialog Construction public CSockExamDlg CWnd pParent NULL standard constructor CAsyncSocket p CString m_ipaddr Add the Connect button event in the class Wizard and code as follows void CSockExamDlg Onbt...

Page 111: ... transmission SetTimer 1 3000 NULL Sets a timer for transmission SetTimer 2 1 NULL Adds a coding for transmitting and receiving data in the timer event routine void CSockExamDlg OnTimer UINT nIDEvent CEdit pEdt CEdit GetDlgItem IDC_edtWINDOW char WriteData 30 This is LoopBack Data if nIDEvent 1 In case data is output to the socket p Send WriteData strlen WriteData if nIDEvent 2 In case data is inp...

Page 112: ...a 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 112 ...

Page 113: ...eady for communication listen Wait for connection request from client read Wait until the client requests a sendto write Send a HTML file and others in response to the request from client 2 Active Programming If you set the handshaking method to active in the Webpage Connection Setting the socket acts in Active mode Active handshaking makes the Portbase serial ports to be on the client side trying...

Page 114: ...ted at 3 second intervals and received data will be displayed on screen 5 How to Run Plug the first Portbase serial port to the loopback connector The port is connected to socket 4001 If you run the program message This is LoopBack Data returns and is repeatedly displayed on screen 6 Source Code Inserts the necessary header files include stdio h include stdlib h include time h include sys un h inc...

Page 115: ...un s Porter IP n argv 0 exit 0 Creates the socket if sock socket PF_INET SOCK_STREAM 0 0 printf cant open socket n exit 0 bzero char server_addr sizeof server_addr Fills the structure server_addr sin_family AF_INET server_addr sin_addr s_addr inet_addr argv 1 server_addr sin_port htons 4001 Connects to the server if connect sock struct sockaddr server_addr sizeof server_addr 0 printf cant connect ...

Page 116: ...is is LoopBack Data Outputs data with the socket number 4001 of Porter write sock temp sizeof temp Outputs received data on the screen void GetData void int readval char readbuff 255 Reads data by the socket number 4001 of Porter readval read sock readbuff sizeof readbuff if readval 1 return readbuff readval 0 printf s readbuff 116 ...

Page 117: ...System Interface Address Translation IP ICMP TCP and UDP MIB I RFC 1317 Serial Interface Portbase status information is managed by the SNMP Manager using Get Set messages stored in MIB MIB of Portbase to be registered for the SNMP Manager is stored under the folder SNMP in the Portbase CD The following functions can be performed with the SNMP applied Network Architecture Management Achieving a map...

Page 118: ...uide 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 118 ...

Reviews: