background image

194

W&T

 

Expanded services of the Com-Server

The structure COM_ERROR
The 

COM_ERROR

 structure has a length of one WORD (16-bit 

integer) and contains all the error states of the serial port.

typedef struct _com_error

{ union

 

 

{  word error_flags;

 

 

 

struct _err_flags

 

 

 

{  word f_data   

 

: 1;  //not used/reserved

 

 

 

  word f_net  

   

: 2;  //not used/reserved

 

 

 

  word f_com  

   

: 1;  //Set when COM port error detected

 

 

 

  word f_break     

: 1;  //Reflect the break flag

 

 

 

  word f_cts_time   

: 1;  //Time out while waiting on CTS

 

 

 

  word f_dsr_time   

: 1;  //Time out while waiting on DSR

 

 

 

  word f_rlsd_time  

: 1;  //Time out while waiting on RLSD (CD)

 

 

 

  word f_overrun   

: 1;  //Overrun error

 

 

 

  word f_parity    

: 1;  //Parity error

 

 

 

  word f_frame     

: 1;  //Framing error

 

 

 

  word f_status    

: 1;  //not used/reserved

 

 

 

  word no_use_1    

: 1;  //not used

 

 

 

  word no_use_2    

: 1;  //not used

 

 

 

  word f_rx_over   

: 1;  //Ring buffer overrun after handshake

 

 

 

  word no_use_3    

: 1;  //not used

   };

  };
} COM_ERROR;

The structure COM_STAT
The 

COM_STAT

 structure has a length of three WORDS (16-bit 

integer) and contains the status of the handshake lines as well 
as the number of bytes which are in the send and receive buf-
fers of the serial port. It also allows you to directly influence 
the handshake lines and buffer.

typedef struct _com_stat

{ union

   

{  word com_flags;

   

  struct _com_flags

   { 

word 

cts_hold 

  :1; 

//CTS 

line 

   -LowByte

    word 

dsr_hold 

  :1; 

//DSR 

line 

   |

   

    word ri_hold     

:1; //not used/reserved  |is set with every

   

    word rlsd_hold   

:1; //reserved/reserved  |received packet

    word 

dtr_hold 

  :1; 

//DTR 

line 

   |

    word 

rts_hold 

  :1; 

//RTS 

line 

   |

    word 

x_receive  :1; 

//XOFF 

received 

 |

   

    word x_send     

:1; //XOFF was send   

-

Summary of Contents for Com-Server++

Page 1: ...Manual Com Server Com Server 3x Isolated Release 2 08 November 2015 Typ 58665 58662 Firmware 1 35 or higher SN 2283238 or higher W T...

Page 2: ...we make mistakes you mustn t use any of our statements without verification Please inform us of any error or misunderstanding you come about so we can identify and eliminate it as soon as possible Car...

Page 3: ...nt tunneling of serial data e g through vir tual COM ports are implemented The Com Server includes additional protocols and modes e g UDP TCP client FTP cli ent server etc as well as expanded function...

Page 4: ...e 27 3 1 Supply voltage 58665 28 3 1 1 Power over Ethernet 28 3 1 2 External supply 28 3 1 Supply voltage 58662 29 4 Network interface 31 4 1 Ethernet interface 32 5 The serial combi port 35 5 1 Overv...

Page 5: ...FO Send Rec only Com Server 3x Isolated 75 9 2 TCP UDP port numbers Menu TCP IP Mode 77 10 Packetizing serial datagrams 79 10 1 Packet Options 80 10 1 1 Startsequence Endsequence 81 10 1 2 Startsequen...

Page 6: ...ting Box to Box Mode 136 17 Mode FTP Server 139 17 1 The Com Server as FTP server 140 17 1 1 Activating FTP Server mode 140 17 1 2 Supported FTP commands and functiuons 141 17 1 3 Optional settings 14...

Page 7: ...181 23 Mode InQueueCopy 183 23 1 InQueue Copy 184 23 1 2 Configuring InQueueCopy 185 24 Status and error messages 187 24 1 Menu Setup Port x r Port State 188 25 Expanded services of the Com Server 191...

Page 8: ...W T...

Page 9: ...Already experienced users of Com Servers will find on the two following pages a flow chart with the essential steps for start up as well as a comple te overview of the configuration menu Detailed info...

Page 10: ...ct device in inventory list Enter IP address subnet mask gateway Finish Button IP address Start WuTility Install WuTility with product CD WuTility installed Windows PC with TCP IP Select site Connect...

Page 11: ...Error State Clear Port Mode Baud Data Bits Stopbit Handshake Standard Baudrates Special Baud Divisor 153 6k 115 2k 57600 38400 19200 9600 4800 2400 1200 600 300 150 110 75 7200 50 8 7 None Hardware So...

Page 12: ...negotiating IP address 0 0 0 0 Gateway address 0 0 0 0 Subnet mask 255 0 0 0 DHCP Active 1To prevent unintended address assignments or changes we recommend deactivating the DHCP protocol if it is not...

Page 13: ...Com Server you need to specify an IP address that is valid for your network Your system administrator will provide you with this The IP address must be unique within the network using management tool...

Page 14: ...le clicking on the file wutility_ msi Start WuTility using Start r All Programs r W T Software Toolkit r WuTility 2 2 1 Applications and prerequisites IP assignment using WuTility works regardless of...

Page 15: ...t the assignment dialog WuTility automatically searches the local network for connec ted W T network devices and creates an inventory list This search process can be repeated manually as often as desi...

Page 16: ...information If the remaining configuration of the Com Server is done using a Web browser activate the option Web Based Manage ment WBM If you are not using the standard HTTP port 80 change the port n...

Page 17: ...tically deactivated when using all other methods for assigning the IP parameters The follo wing methods are then available for later activation of DHCP Management Tool WuTility Select the desired Com...

Page 18: ...time has expired the Com Server attempts to extend the time for the assigned DHCP server and up up date the address If this is not possible by the time the lease time expires for example because the D...

Page 19: ...Server which can be found on the sticker attached to the housing EN 00c0 3d01 0203 5xxxx TB number and or model name OK 0123456789 Ethernet address 2 4 5 Dynamic IP addresses Fully dynamic address ass...

Page 20: ...ross networks e g through routers This means the PC and Com Server used for assi gning must be connected to the same physical network seg ment Only IP addresses whose Net ID is identical to that of th...

Page 21: ...assigned to the Com Server In Windows Vista and newer the prompt cmd exe necessary for invoking the ARP command must be started using Administrator rights Step 2 Use the following command line to ping...

Page 22: ...22 W T Assigning the IP address separate Telnet configuration session see section Basic Confi guration of the Com Server...

Page 23: ...d RS232 cable Null modem cable see RS232 mode Any serial terminal program can be used for assigning The following transmission parameters must be set regardless of any other settings in the Com Server...

Page 24: ...n use either Telnet protocol or an Internet browser although only Telnet is an option in the Com Server as shipped from the factory You can activate Web Based Management as part of the serial IP assig...

Page 25: ...5227 IPv4 Address Conflict Detection Indication of an address conflict The Com Server indicates a detected address conflict by rapid flashing approx 3x s of the Error LED In addition a message includi...

Page 26: ...26 W T Assigning the IP address...

Page 27: ...27 W T Subject to error and alteration 3 Supply voltage Com Server Com Server3x Isolated...

Page 28: ...feed using the unused wire pairs 4 5 and 7 8 The model 58665 is a device in PoE Power Class 1 power con sumption 0 44 to 3 84W 3 1 2 External supply As an alternative to PoE power supply the Com Serve...

Page 29: ...powered using the plug in screw terminal located on the lower section of the housing The input is reverse polarity protected and may be used with AC or DC voltages having the following specifications...

Page 30: ...30 W T Supply voltage...

Page 31: ...31 W T Subject to error and alteration 4 Network interface Ethernet interface 10 100BaseT autonegotiating Power over Ethernet...

Page 32: ...pin assignments shown below correspond to an Auto MDI X interface so that the connection to the hub or switch is made using a max 100m long shielded patch cable Speed Link Activity 1 2 3 4 5 6 7 8 The...

Page 33: ...re operated in Auto Negotiation mode Both parties are configured for the same fixed transmissi on speeds and duplex mode Use menu sequence Setup System r Link Speed to switch between Auto Negotiation...

Page 34: ...34 W T Network interface...

Page 35: ...35 W T Subject to error and alteration 5 The serial combi port Mode selection RS232 mode RS422 485 mode...

Page 36: ...l port After tightening the two mounting screws pull on the DB9 plug to remove the circuit board from the housing 5 1 2 Mode selection Switching between the modes is accomplished using the inter nal D...

Page 37: ...significant increase in the current draw and may cause the RS232 driver to fail Pin assignment and function RS232 D9 male Pin Direction Signal Description Default Function 1 IN DCD Data Carrier Detec...

Page 38: ...RS422 485 Isolator Type 66201 DIP switch settings Mode SW1 SW2 SW3 SW4 SW5 SW6 SW7 SW8 RS422 RS485 4 wire bus master OFF OFF OFF OFF ON Term OFF RS485 4 wire automatic control OFF ON OFF OFF ON Term...

Page 39: ...channel is available in each direction The RS485 driver chip is automatically activated each time data is sent out and then disabled when data is finished sending The receive channel is deactivated wh...

Page 40: ...RTS B 1 6 2 7 3 8 4 9 RS485 connection 4 wire bus master Com Server RS422 485 Data Out A Data Out B Data In A Data In B Handshake Out A Handshake Out B Handshake In A Handshake In B 1 6 2 7 3 8 4 9 Rx...

Page 41: ...41 W T Subject to error and alteration 6 LED displays Power Status Error LED Network LEDs...

Page 42: ...of the serial port can also be read out using WBM or the Com Server s Telnet configuration tool Error LED Power Status Error Power Status Error A B C The Error LED uses various flashing patterns to in...

Page 43: ...e device as well as the wiring of the connection cable All LEDs on Self test error The self test performed after each start or reset of the Com Server could not be correctly finished This error can oc...

Page 44: ...Com Server is not detecting a Link pulse from a hub or switch Check the cable or the hub port ON The Com Server has a valid link to a hub or switch The Speed LED indicates the data rate in this case F...

Page 45: ...ing the hardware installation and assigning the IP address the remaining Com Server configuration takes place over the network Here either a Telnet client or after it has been activated an Internet br...

Page 46: ...access and an installed TCP IP protocol A detailed description of both configuration access types their conditions as well as the respective navigation within the menu tree can be found in the followi...

Page 47: ...ver IP URL Special Options Error State Clear Port Mode Baud Data Bits Stopbit Handshake Standard Baudrates Special Baud Divisor 153 6k 115 2k 57600 38400 19200 9600 4800 2400 1200 600 300 150 110 75 7...

Page 48: ...client must be explicitly in stalled together or after the fact Here we recommend starting using the WuTility inventorying and management tool If the telnet client is not installed on the respective s...

Page 49: ...hanges the new value will appear at this point the next time the menu is opened It only becomes effective in the Com Server itself however if you have saved it using SAVE Setup As long as you do not o...

Page 50: ...er As a rule HTTP standard port 80 should be used If use of port 80 is not possible or desired then the deviating port number must be explicitly specified in the address line of the browser when openi...

Page 51: ...99 w80 Com Server 172 17 231 99 1 Com Server Example 2 In this example the Com Server gets an IP address subnet mask and gateway In addition w8585 is entered to activate WBM on TCP port 8585 xxx Com...

Page 52: ...ser and enter the IP address of the Com Server and the configured port number in the address line http IP Adresse Portnummer If the HTTP standard port 80 was configured for WBM you do not need to expl...

Page 53: ...desired during a configura tion session Pressing the Send button in the respective pages pastes them to a clipboard Once all the settings have been made always exit the configuration session using Lin...

Page 54: ...ts a firmware update via TFTP pro tocol see section Firmware Update of the Com Server Update mode can be exited only by complete transmission of a valid firmware or by interrupting the supply voltage...

Page 55: ...s configuration of the Com Server Here follows the explanation of all the configuration possibilities related to the Com Server operating system and which are not directly related to the serial ports...

Page 56: ...Server saves all the settings you made in its non volatile memory Once the data have been saved they are activated each time the Com Server is turned on or reset Entering anything other than y or sim...

Page 57: ...e connection to the hub switch is using 10BaseT or 100BaseTX The duplex procedure is also indicated Full or Half Duplex n MAC address Shows the Ethernet address of the Com Server This num ber is facto...

Page 58: ...ted e g 255 255 255 0 n Gateways Default 0 0 0 0 In this menu branch the IP address of the standard gate way or router can be configured If you have not confi gured fixed routes the standard gateway i...

Page 59: ...n the menu item Setup Port x r Port State r Connection State n MTU Maximum Transfer Unit Default 560 This value determines the maximum size of a TCP IP pac ket It refers to the number of bytes excludi...

Page 60: ...via Telnet SNMP Default UDP 161 Chapter SNMP management Device Reset Port Default TCP 8888 Chapter Reset of the Com Server Init Flash Update Port Default TCP 8002 Chapter Firmware update of the Com S...

Page 61: ...is deletes any data still contained in the serial in and output buffers Example A TCP client has opened a connection to TCP server port 8000 of the Com Server and the network con nection is interrupte...

Page 62: ...resets the IP address and waits for assign ment of a corrected IP address 1IP address conflicts generally lead to communication problems which are difficult to diagnose Please the refore inform the re...

Page 63: ...UP System r System Name The freely configurable system name consisting of max 31 characters is used to identify the Com Server This name is displayed as an opening message in the client for all Telnet...

Page 64: ...non volatile memory of the Com Server 1Saving the Logfile has an influence on the latencies of the serial data transmission We re commending configuring the Save Interval only as low as absolutely nec...

Page 65: ...ly performing the update or by means of a re set i e turning off the power 8 3 6 Menu SETUP System r Factory Defaults Enter a y to restore the factory default settings 1Resetting the non volatile memo...

Page 66: ...binations are permitted Both parties switch and Com Server are operated in Auto Negotiation mode recommended Both parties are configured for the same fixed transmissi on speeds and duplex mode 1Changi...

Page 67: ...d to optimize the network load There is also the advantage that the serial blocks are transmitted within a network packets so that they arrive at the receiver bundled Example You are using serial data...

Page 68: ...e buffer by deactivating the switch In this way multiple connections can be opened one after the other on the network side and the data are accumulated in the buffer until they are sent n Packet Optio...

Page 69: ...serial transmission parameters In addition to the usual settings for baud rate data bits parity and stop bits the various handshake procedures and available special functions of the individual contro...

Page 70: ...ve on the Logout page 9 1 1 Baud rate Data bits Stop bits Parity The desired transmission parameters can be selected by en tering the corresponding designation in the respective branch of the menu tre...

Page 71: ...edefined handshake profiles you can use the Special submenu to specify the func tion of each control signal individually Details on the control line functions are contained in the description of the s...

Page 72: ...n that uses a serial protocol for data integrity or flow control Function control signal RTS NO Default HIGH DTR NO Default HIGH CTS NO DSR NO n Special Here it is possible to configure the function o...

Page 73: ...terminal device 2 OPEN CLOSE Connection This option for TCP connection building and ending can be used to control connection building and ending in all Com Server client operating modes If the IP add...

Page 74: ...data traffic If the Send Filter option is turnd off all the data including the XON and XOFF characters are sent unfiltered on the RS232 interface This mode only makes sense if the connected terminal d...

Page 75: ...emphasis is on maximum data throughput so we recommend not changing the maximum value of 4094 It does however make sense to reduce the value when working with serial protocols together with unre liab...

Page 76: ...d on to reduce the system load especially when sending large data quantities at high baud rates above 57600 If for example you need a short delay in sending data as possible when working with serial p...

Page 77: ...exchange with the serial con nected device is possible The default values can be restored by resetting the Com Server to its factory default settings Local Port TCP Default 8000 Port A 8100 Port B 820...

Page 78: ...Default 7000 Port A 7100 Port B 7200 Port C The FTP port enables access to the serially connected device with a standard FTP client The port is always required for FTP Server mode For detailed informa...

Page 79: ...character delay time When this timeout between two characters is ex ceeded the associated datagram is rejected or evaluated as a transmission error In such environments it may be necessary to send ser...

Page 80: ...erial protocols which emphasize the greatest possible latency free transmission and shortest possible acknow ledgement delay time Packet Options should not be used By factory default the Com Server op...

Page 81: ...in bytes The max length is 3 A value of 0 deactivates monitoring of the Start Sequence n Start Sequence 1 2 Hexadecimal space delimited byte sequence of the re spective Start Sequence The input field...

Page 82: ...gram is indicated by the character string CRLF 0x0d 0x0a As soon as the Com Server has received the character 0x3a it collects more data until the End Sequence 0x0d 0x0a is recei ved and then passes t...

Page 83: ...quence CRLF or LFCR and then passes the datagram to the network Example 3 The block end of a serial protocol is followed by the character ETX 0x03 followed by a 16 bit checksum The Com Server collects...

Page 84: ...Server n Length Field Offset Start position of the length field within the serial datagram in bytes Counting method beginning with 0 n Size Length of the length field in bytes In the protocol field de...

Page 85: ...i tional Bytes option Example The serial protocol shown in the following always starts with the character STX 0x02 In the Length field the length of the following data field serial data is specified w...

Page 86: ...ion n Interpacket Delay Enter the desired Interpacket Delay in ms The permissible minimum value is 3ms The tolerance is approx 1 charac ter length as results from the serial parameters which are set 1...

Page 87: ...he selected option for serial data reception n Fixed Packet Length Enter the desired number of characters 1The value set under Fixed Packet Length is limited to the size of the MTU The factory default...

Page 88: ...88 W T Packetizing serial datagrams...

Page 89: ...especially useful in cases where communication needs to be integrated into your own programs Compa rable to traditional telephony TCP connections always consist of an active calling side Client and a...

Page 90: ...ess It must be noted that only one TCP client at a time can be connected to the serial port of the Com Server If there is already a connection any attempt from another client is re jected until this f...

Page 91: ...number 8000 is pre configured at the factory 11 1 2 Optional settings Serial transmission parameters SETUP Port x UART Setup Baud Parity Data Bits Stopbits Handshake Baud rate data bits parity and ha...

Page 92: ...Buffer 0 Details can be found in the section Basic configuration of the Com Server Packeting options for serial receive data SETUP Port x TCP IP Mode TCP Server Activ Packet Options System Options Pac...

Page 93: ...p TCP IP r System Options allows an artificial delay in transmission for this purpose De tails can be found in section Menu Setup TCP IP r System Options Keep Alive Time SETUP System Setup TCP IP Keep...

Page 94: ...94 W T Mode TCP server...

Page 95: ...Triggered by serial data reception or a serial control line the Com Server opens the connection to a TCP server in TCP Client mode as needed TCP Client mode with static addressing TCP Client mode with...

Page 96: ...ed on a time basis or when a particular serial character is received If there is no connection to the TCP server currently active the portitself can also be a TCP server and accept connections from cl...

Page 97: ...used is not allowed to contain space characters 0x20 nor can the first cha racter be a decimal 0x2E A server IP or URL is deleted by entering 0 0 0 0 For additional information refer to the section M...

Page 98: ...ify the value for a timer When the specified time expires the Com Server port closes the connection The timer is reset if there is an active network connection when data are being exchanged If no data...

Page 99: ...m Server tries to send any still existing unsent user data for the duration of the Connection Timeout If it receives no reply from the TCP server within this time you may assume the connection is hang...

Page 100: ...servers The address of the TCP server need not be permanently configured rather it is send as an AS CII string in front on the user data on the serial port The string for addressing is not included i...

Page 101: ...on refer to the section Menu Setup SYSTEM r Setup TCP IP r DNS Server Opening the TCP connection If serial addressing is used the Com Server waits to receive a valid address string Any data arriving p...

Page 102: ...serial terminal device by the output of special characters This function is only available in TCP client mode The following messages are output on the serial port C connected The connection was succe...

Page 103: ...he serial receive buffer is automatically cleared when a con nection is opened or any existing older data are sent to the application is determined by the Flush Buffer option Details can be found in t...

Page 104: ...Network Delay in Setup Setup Port x r Setup TCP IP r System Options allows an artificial delay in transmission for this purpose De tails can be found in section Menu Setup TCP IP r System Options Kee...

Page 105: ...ata on the serial port After the data has been send the connection is closed either by the Inactivity Timeout or the Disconnect Character When the clients have changing IP addresses for example in the...

Page 106: ...Addr deactive Com Server B Server Port 0000 Server IP 0 0 0 0 Client C Addr deactive Example 2 A control program polls a measuring device the measuring devicve can actively send data to the control p...

Page 107: ...ram C B A Intranet Internet Configuration menu r TCP IP Mode r TCP Client Com Server A Server Port 8000 Server IP IP address Com Server B Client C Addr deactive Com Server B C Server Port 8000 Server...

Page 108: ...108 W T Mode TCP client...

Page 109: ...UDP Instead of TCP communication with the serially connected devices can also take place via UDP This method offers several advantages over TCP when the data are secured already within a serial protoc...

Page 110: ...ing up a static destination host or by activating serial addressing using the option Client C address If the Com Server is configured in this way as a UDP client all UDP datagrams which are addressed...

Page 111: ...P port num ber on which the data are received Access to the serial port on the Com Server per UDP takes place through the port spe cified in the above menu branch The factory default setting is 8000 T...

Page 112: ...contain space characters 0x20 nor can the first cha racter be a decimal 0x2E A server IP or URL is deleted by entering 0 0 0 0 For additional information refer to the section Menu Setup SYSTEM r Setu...

Page 113: ...er need not be permanently configured rather it is send as an ASCII string in front on the user data on the serial port The string for addressing is not included in the send There are two possibilitie...

Page 114: ...TCP IP r DNS Server n Disconnect Char Default 0 This parameter is only processed if the parameter Client C Addr is activated If the Com Server receives the cha racter configured here at its serial po...

Page 115: ...ender address in ASCII format before outputting the data for a UDP datagram to the serial port The string always contains 22 characters C IP Addresse Portnummer z B C172 016 231 101 04800 Serial trans...

Page 116: ...lengths and to activate their processing for the respective mode Details can be found in the section Packeting of serial datagrams 13 1 5 Deactivating UDP mode Set the following parameters in the menu...

Page 117: ...protocol on to the network Polling of the serial master is sent via broad cast to the Com Server which is configured as a slave The reply from the contacted slave is then addressed or likewise sent ba...

Page 118: ...er slaves this data direction also needs to be handled as a broadcast When using UDP Bus Mode the following prerequisites and peculiarities need to be taken into account UDP Bus Mode replaces the IP B...

Page 119: ...e Port List Local Port TCP UDP 14 1 2 Configuring the destination parameters SETUP Port x TCP IP Mode UDP Client Server Port Server IP URL Configuration on the UDP bus master n Server port Port number...

Page 120: ...he connected serial device For details see section Configuration of the Serial Port Packeting options for serial receive data SETUP Port x TCP IP Mode UDP Client Special Options System Options Packet...

Page 121: ...in the menu branch SETUP Port x r TCP IP Mode r UDP Client to a value of 0 and save this change r Server Port r Special Options r Client C Addr Alternately you may use the function SETUP Port x r Port...

Page 122: ...122 W T UDP bus mode...

Page 123: ...stalled in the respective system These behave in a serial application exactly like normal local ports but are actually located on Com Servers located in the network In this way serially communicating...

Page 124: ...m the Windows start menu With older versions you find a corresponding applet in the control panel The COM Port Redirector supports all serial W T COM Servers as well as W T LAN modems In addition the...

Page 125: ...nd not subject to any licensing requirements 15 2 1 Installation of the W T COM port redirector System requirements for installing the W T Com Port Redi rector Operating system Windows NT 2000 XP Vist...

Page 126: ...irector is created 15 2 2 Uninstalling the W T COM Port Redirector The W T COM Port Redirector is uninstalled using Windows software administration Start the Software applet in the control panel and t...

Page 127: ...he pre configured value 8000 In addition to the indicated TCP port for user data transport the COM Port Redirector uses an additional TCP connection for exchanging configuration and status information...

Page 128: ...always calculated using the formula Data Port 1094 Packeting options for serial receive data SETUP Port x TCP IP Mode TCP Server Activ Packet Options System Options Packet Options When sending serial...

Page 129: ...x r Setup TCP IP r System Options allows an artificial delay in transmission for this purpose De tails can be found in section Menu Setup TCP IP r System Options Keep Alive Time SETUP System Setup TC...

Page 130: ...130 W T The Windows COM port redirector...

Page 131: ...each other over the network The two connected serial terminal devices are in constant online contact in this mode Optionally communica tion can be encrypted via TLS SSL for protected transmission of...

Page 132: ...ion can be encrypted via TLS As a consequence of the permanent connection both Com Servers in a Box to Box connection must have fixed IP addres ses It is not possible to operate using host names and U...

Page 133: ...re pre configured at the factory Port A 8000 all models with only one serial port Port B 8100 Port C 8200 Port D 8300 n Slave IP Address set only for master port IP address of the Com Server in which...

Page 134: ...ction Configuration of the Serial Port Serial receive buffer SETUP Port x UART Setup Receive Buffer The Com Server has a variable serial receive buffer of approx 4kB The menu item allows this value to...

Page 135: ...s start end sequences datagram lengths and to activate their processing for the respective mode Details can be found in the section Packeting of serial datagrams Network Delay SETUP Port x TCP IP Mode...

Page 136: ...to Box master Set the following parameters in the menu path SETUP Port x r TCP IP Mode r Box to Box to a value of 0 and save this change r Slave Port Without the associated Box to Box Master Box to B...

Page 137: ...231 5 Port number of Port A 8000 Intranet Internet UART Setup Baud Parity Data Bits Stopbit Handshake UART Setup Baud Parity Data Bits Stopbit Handshake Serial connection tunneled through the network...

Page 138: ...138 W T Box to Box mode...

Page 139: ...d protocol for file transmissi on In the mode as FTP server an FTP client can send files to the Com Ser ver whose contents are sent to the serially connected device In the other direction serial data...

Page 140: ...th Windows the invoking looks like this ftp IP Number oder ftp Host name After entering the FTP command you can acknowledge the polling of the login name using ENTER 17 1 1 Activating FTP Server mode...

Page 141: ...ermination criterion for data transfer A maximum 3 digit number can be entered for this purpose whereby one tock equals one second If remote file does not contain a value in the valid range the GET co...

Page 142: ...ng the set time interval to see whether the connected network application can be reached If there is no reply for example due to a break in the network infrastructure the Com Server resets the connect...

Page 143: ...l If the Com Server is configured as an FTP client the connection to an FTP server is automatically opened triggered by serial data reception It is possible both to automatically write serial data to...

Page 144: ...the infor mation such as user name password file command etc are permanently stored in the setup of the Com Server or they are sent serially using a special control string in front of the actual user...

Page 145: ...in this submenu n Server Port Port number that the FTP server addresses Standard FTP Port 21 Format decimal n Server IP URL IP address or URL of the TCP IP computer on which the FTP Server is active...

Page 146: ...ial port Closing the FTP session and TCP connection is time based or optionally by using a reserved character Protocol Char Activation and configuration SETUP Port x TCP IP Mode FTP Client Special Opt...

Page 147: ...rt The connection is closed when no serial data have arrived during the time period specified under Inacti vity Timeout or when the Protocol Char was received 1A maximum of 80 characters are available...

Page 148: ...be used if there is no active connection to the FTP server The sequence of the FTP commands is given to the Com Server port on the serial interface The Com Server gets the command sequence opens the...

Page 149: ...ing the individual com mands are separated from each other by a linefeed 0x0a The character configured under Protocol Char must be sent as a terminator This results in the 3 following formats for the...

Page 150: ...are received the FTP client closes the connection to the FTP server 0 deactiva tes the timeout and corresponds to a setting of infinite In this case you must configure the parameter Protocol Char Form...

Page 151: ...ive any reply from the FTP server it assumes a hung connection The data are rejected and the connec tion reset To prevent unintended data loss set this value accordingly high A value of 0 deactivates...

Page 152: ...server sends the error code Protocol Char Protocol Char 5 The connection is automatically closed in either case and you receive the end code Protocol Char from the FTP server Example 2 User egon havin...

Page 153: ...221 Goodbye Ctrl C Example 4 User egon having the password happy would like to view the file usr private and transfer the data in ASCII The file does not exist however The protocol would look as follo...

Page 154: ...154 W T Mode FTP client...

Page 155: ...et Server Telnet is a terminal emulation protocol Data transmission is character oriented Telnet allows bi directional character exchange between the TCP IP computer and the serial terminal device con...

Page 156: ...ions from telnet clients are accepted on the configured port number 19 1 1 Activating Telnet Server mode SETUP Port x TCP IP Mode Port List Telnet Port TCP Telnet Server Activate yes no n Telnet Port...

Page 157: ...ollows Telnet Echo active default The Com Server negotiates a remote echo with the client application and the local echo is turned off In this case the device serially connected to the Com Server must...

Page 158: ...er This option determines whether when a network side connec tion is opened to the Com Server the serial receive buffer is cleared Flush Buffer 1 or any existing data are sent to the client applicatio...

Page 159: ...Client Telnet is a protocol for terminal emulation Data transmission is character oriented In Telnet Client mode the Com Server opens the connection to the configured telnet server starting with the r...

Page 160: ...rt x TCP IP Mode Telnet Client Server Port Server IP URL n Server Port 23 Port number that the Telnet server addresses Standard Telnet Port 23 Format decimal n Server IP URL IP address or URL of the T...

Page 161: ...s the connection The timer is reset if there is an active network connection when data are being exchanged If no data are set within the specified time the Com Server port closes the connection to the...

Page 162: ...must conform to the connected serial device For details see section Configuration of the Serial Port Special Options r Serial 0D 0D00 SETUP Port x TCP IP Mode Telnet Client Special Options Serial 0D 0...

Page 163: ...ing parameters in the menu branch SETUP Port x r TCP IP Mode r Telnet Client to a value of 0 and save this change r Server Port r Server IP URL Alternately you may use the function SETUP Port x r Port...

Page 164: ...164 W T Mode Telnet Client...

Page 165: ...er mode enables serial devices with their own TCP IP stack to be incorporated into an Ethernet When the Com Servers are used in pairs remote Ethernet segments can also be integrated into the main netw...

Page 166: ...IP All arriving serial SLIP packets are passed along to the local Ethernet network Application examples for the Com Server as SLIP Router A Com Server in SLIP mode can be used as a network in terface...

Page 167: ...ant to route to via SLIP n SLIP Net Routing Default active If this parameter has a value of 1 the Com Server func tions as described like a router for the subnet specified under Net Address If the par...

Page 168: ...rnet IP datagram 192 1 1 12 172 16 231 1 Destination IP Source IP ping 192 1 1 2 This IP address is not routed r SLIP Router r Net Address 192 1 1 0 SLIP Net Routing 1 r SLIP Router r Net Address 192...

Page 169: ...l in SLIP mode since it cannot be precluded that the Xon and Xoff characters used for this will not occur within the SLIP packets Instead use the hardware handshake settings or for small data quantiti...

Page 170: ...al transmission parameters for both Com Servers must be identical Only hardware handshake may be used for flow control The use of software handshake is not possible due to the Xon and Xoff characters...

Page 171: ...cifies the packet type followed by the LEN field which specifies the length of the configuration data in bytes Next follows a list of parameters having any length whose content and length is indicated...

Page 172: ...t by the SLIP computer to the Com Server The Com Server sends a response type TYPE 3 with the contents of the requested parameters The packet contains the fields TYPE and LEN and a list of the desired...

Page 173: ...zati on and SCADA systems Regardless of whether in process automation or building technology the W T OPC Server takes care of TCP IP communi cation with the Com Server Both data directions for the ser...

Page 174: ...Digital and Digital E A Com Server Web IO Analog Web IO Climate The OLE server name which needs to be specified for the OPC clients in order to connect to the server is Wiesemann Theis Network IO for...

Page 175: ...y licensing requirements 22 2 1 Installation of the W T OPC server System requirements for installing the W T OPC Server Operating system Windows NT inkl 64bit and server editions Login als administra...

Page 176: ...ntation and help A context specific start can also be done by pressing the F1 key within the confi guration tool 22 2 2 Deinstallation of the OPC server The W T OPC Server is uninstalled using Windows...

Page 177: ...d name in the Windows standard directory for common application data It is automa tically read when the configuration program is started and as log as it it open the title line shows Active configurat...

Page 178: ...always calculated from the formula Data Port 1094 Keep Alive Time SETUP System Setup TCP IP Keep Alive Time The factory default setting for the keep alive check is 30 se conds I e if there is no data...

Page 179: ...New serial device button to start the dialog for integrating a Com Server The required connection data for the Com Server consisting of the IP address TCP port and system password are entered into the...

Page 180: ...PC as string variables the data must first be broken down into packets Packet limits are recognized here either based on pauses or by the occurrence of special character se quences Character sequences...

Page 181: ...ed OPC server DA 3 0 Wiesemann Theis Network IO OPC server A E Wiesemann Theis Network Events Serial communication for each installed Com Server takes place using the following variables In contrast t...

Page 182: ...182 W T OPC data transfer...

Page 183: ...183 W T Subject to error and alteration 23 Mode InQueueCopy Distribution of serial data streams to multiple stations...

Page 184: ...r etc All TCP packets to be sent on this main connection are also sent to the clients connected to whichever Local Copy Port is set Data received within the slave connections are ignored and rejected...

Page 185: ...ocket applications connect directly to this port number Serially communicating programs can also be used for receiving in conjunction with the W T COM Port Redirector In this case the Local Copy Port...

Page 186: ...186 W T Mode InQueueCopy...

Page 187: ...187 W T Subject to error and alteration 24 Status and error messages Status messages of the menu Port State Resetting a fixed mode Clear Port Mode...

Page 188: ...ult The port is configured for the indicated mode but has no active connection The port is configured for the indicated mode and has an active connection to the configured server The Com Server wants...

Page 189: ...data The result may be overwriting of the serial ring buffer and loss of data Please check to be sure the handshake configurations for the devices agree and the connection cable is properly wired Ove...

Page 190: ...e n Clear Port Mode Use this command to simply and easily revert the port to standard TCP IP mode The previously configured TCP IP mode TCP UDP Telnet FTP Client Box to Box Bus IP Mode is deleted 1The...

Page 191: ...ibilities for the Com Server Implementati on of more complex scenarios often requires however that the software be individually adapted For users who make use of socket programming the Com Server offe...

Page 192: ...he control port is stored in the menu branch Setup Port x r TCP IP Mode r Control port The following port numbers are pre configured at the factory Port A 9094 Port B 9194 Port C 9294 1The control con...

Page 193: ...e Com Server expects the complete structure 30 bytes in a TCP packet If no allocatable data e g just half of a structure pass through the contro port the reply is still an info struc ture The declarat...

Page 194: ...1 Framing error word f_status 1 not used reserved word no_use_1 1 not used word no_use_2 1 not used word f_rx_over 1 Ring buffer overrun after handshake word no_use_3 1 not used COM_ERROR The structur...

Page 195: ...e of the COM_ STAT structure 2 All commands whose flags have the value 1 are executed If you set the flag set_rts_dtr be sure that you also set the flags rts_hold and dtr_hold in the LowByte correspon...

Page 196: ...s char fifo_aktiv 1 ignored by models 58661 58665 char fifo 2 ignored by models 58661 58665 char bits word RLS_time_out Timer before f_rlsd_time will be set word CTS_time_out Timer before f_cts_time w...

Page 197: ...while receiv word f_outx_cts 1 Enable hardware handshake on CTS word f_outx_dsr 1 Enable hardware handshake on DSR word f_inx_dtr 1 Enable hardware handshake on DTR word f_inx_rts 1 Enable hardware ha...

Page 198: ...nal an active connection between the serial port and a client in the network If the Com Server itself is configured as a TCP client a constant enable level is output regardless of whether there is an...

Page 199: ...password has been configured see section Basic Configuration of the Com Server this must be null termi nated password 0x00 and sent to the Com Server via the Control Port within 2s after a connection...

Page 200: ...guration of the Com Server this must be null termi nated password 0x00 and sent to the Com Server via the Control Port within 2s after a connection has been suc cessfully opened If the Com Server does...

Page 201: ...igured see section Basic Configuration of the Com Server this must be null termi nated password 0x00 and sent to the Com Server via the Control Port within 2s after a connection has been suc cessfully...

Page 202: ...et to fully configure a Com Server with the desired parameters and use Port 8003 to read the non volatile memory out The file thus created can now be uploaded to the remaining Com Servers 1The procedu...

Page 203: ...er and its firmware status The structure BOX_DESCRIPT pro vides the network relevant data such as MAC and IP address The 3 6 structure PORT_DESCRIPT provides information about the configured mode and...

Page 204: ...Box2Box bus system Slave box 0x0040 Box2Box bus system Master box unsigned long remote_IP if state CONNECT else 0 unsigned int remote_port if state CONNECT else 0 PORT_DESCRIPT typedef struct _WT_INTE...

Page 205: ...ivate branch with associated MIB which provides read and write access to all the configuration parameters of the Com Server is in preparation 1The factory default port number under which this service...

Page 206: ...206 W T Expanded services of the Com Server...

Page 207: ...of the Com Server Since the operating software is under constant develpoment this device also allows you to perform a firmware update The available upload variati ons are described here Where do I get...

Page 208: ...ated selection box and click on the Go button This takes you directly to the page with the most up to date firmware for your Com Server model If you do not know the model number you can find it on the...

Page 209: ...a control and configuration connections 1The factory default port number under which the services required for firmware update can be reached are configured and deactivated in the menu branch SETUP Sy...

Page 210: ...requires that any security components firewalls routers used between WuTility and the Com Server allow transparent communication via these services The TFTP port is required for actual sending of the...

Page 211: ...58662 enter the value 9 2 Manual initializing of the update process For security reasons the Com Server must first be initialized for receiving new firmware This initializing is done using Tel net or...

Page 212: ...rupted firmware transmission caused for example by a power or network failure and after a restart automatically re sumes update mode The update can in this case be restarted under the previous IP addr...

Page 213: ...213 W T Subject to error and alteration Appendix Overview of the port numbers Example Serial assignment of the IP address under Windows Technical Data...

Page 214: ...9284 TCP Reset port status port C yes yes 8888 TCP Reset Com Server yes yes 8002 TCP 17 Initialize firmware update yes yes 8003 TCP Read configuration data yes yes 8004 TCP Write configuration data y...

Page 215: ...med here that the original W T firmware without any customer modifications is being used Additional details can be found in the respective sections of this manual The authorization concept of the Com...

Page 216: ...Inventorytool see section on Inventorying via UDP Like all intelligent components from W T the Com Servers can be accessed through the WuTility tool Information is read from UDP port 8513 No writing c...

Page 217: ...ng the Com Ser ver All the ports are not configurable and are protected by the system password Controlport see section on The Control Port The TCP control ports factory defaults 9094 9194 9294 for por...

Page 218: ...perterminal as described here Easyterm The most current version of the tool can be downloaded from our Web site at http www wut de The simplest way to navigate from there is by using the pro duct over...

Page 219: ...by the Com Server Each separated by a comma this method can also be used to assign subnet mask and gateway address Example 1 Assigning only the IP address 172 15 222 5 ENTER Example 2 Assigning IP add...

Page 220: ...s r Accessories r Hyperterminal 1 In the first window you assign a name for the connection you wish to build this allows you to directly start Hyper terminal with the correct transmission parameters t...

Page 221: ...down the x key lower case no Caps Lock After about 2 3 seconds the prompt IP no EN TER will appear in Hyperterminal 5 Now enter the IP address you want to assign in the usual dot notation e g 172 17...

Page 222: ...ssigning the IP address even if the currently set address does not fit in the local network o Copying of entire configuration blocks from one Com Server to any other o Creating and archiving configura...

Page 223: ...lows Power off the Com Server and open the enclosure Close the jumper and reconnect the supply voltage An internal self test will be performed during which messages will be issued on serial port A The...

Page 224: ...elative humidity 0 95 not condensing Network 10 100BaseT RJ45 for STP cables Galvanic Isolation Network 1 5kV rms Dimensions approx 105 x 75 x 22mm Weight approx 150g Serial ports 1 x RS232 422 485 co...

Page 225: ...relative humidity 0 95 not condensing Network 10 100BaseT RJ45 for STP cables Galvanic Isolation Network 1 5kV rms Dimensions approx 105 x 75 x 45mm Weight approx 190g Serial ports 3 x RS232 422 485...

Page 226: ...Char 98 114 161 DNS 59 DNS Server 59 DNS Server 59 DNS status 188 DSR 71 73 DTR 71 72 198 E Easyterm 218 Encryption 134 Endsequence 81 Error State 189 F Factory Defaults 65 firmware update 209 Fixed P...

Page 227: ...OPC server 175 OPC Server 175 OPC variables 181 P parity 70 196 parity error 43 Pin assignment 37 Port State 188 PUT 141 Q QUIT 141 R Receive Filter 74 Reset Com Server 60 Reset Port Status 78 Reset...

Page 228: ...em Name 18 63 System Options 67 System Password 62 System Port List 60 T Technical data 224 Telnet Client 160 Telnet configuration 60 Terminating 39 TLS 131 134 TYPE A 146 TYPE I 146 W Wake on LAN 61...

Reviews: