Background

The Lantronix terminal server is a device which coordinates communication among the various controllers in DEIMOS. The first indication of a problem with the Lantronix terminal server on DEIMOS might be problems commanding motors. Other symptoms may exist as well but this problem can be confirmed by running testAll on polo.

If testAll reports that Bekins/Uhaul/Monitor/Clock are not operational, the problem may be that the port connecting to the Galil motor controller is hung (stage chart for Galil controllers). The following procedure should be followed to reset the port.

Procedure

Follow these steps to reset the Lantronix terminal server by logging into the Lantronix unit, enabling privieged mode, and terminating the spurious connections on the hung ports.

Determine Lantronix Port

First, determine the port number you wish to reset. The output from testAll should indicate which dispatcher is having trouble; refer to the following table to get the correponding port.

Lantronix Unit Controller Number dispatcher Number Lantronix port number Lantronix port address
deits3 1 2.1 5 192.168.6.4 3005
deits3 2 2.2 6 192.168.6.4 3006

Reset Lantronix Port

  1. Log into deimosserver2 as user kics.
  2. The dispatcher process must be halted or else it will prevent communication with the Lantronix unit. Stop the appropriate dispatcher using one of these commands:
    	deimos stop dispatcher2.1
    	deimos stop dispatcher2.2
  3. Connect directly into the IP address of the Lantronix, but without specifying any port number:
    	telnet 192.168.6.4
    In response, you should see:
    	Trying 192.168.6.4...
    	Connected to 192.168.6.4.
    	Escape character is '^]'.
    
    
    	Lantronix ETS8P Version V3.5/1(970325)
    
    	Type HELP at the 'Local_10> ' prompt for assistance.
    
    	Username>
  4. Enter the user name system and press the Return key. The Lantronix should respond with the prompt
    	Local_10>
  5. To display the status of the relevant port (i.e., the one that connects to the main serial port of the Galil controller), type:
    	show port 5
    It should respond with something like this:
    Port 5 : Username:                     Physical Port 5 (Job Service)
    
       Char Size/Stop Bits:         8/1    Input Speed:                19200
       Flow Ctrl:               Cts/Rts    Output Speed:               19200
       Parity:                     None    Modem Control:               None
    
       Access:                   Remote    Local Switch:                None
       Backward:                   None    Port Name:                 Port_5
       Break Ctrl:                Local    Session Limit:                  4
       Forward:                    None    Terminal Type:             Soft()
    
       Preferred Services:        (Lat)   
                               (Telnet) 
    
       Authorized Groups : 0
       (Current)  Groups : 0
    
       Characteristics:  Autoprompt  Broadcast  Loss Notify  Verify  
                         Remote Conf  Telnet Pad  
    In this case, the fact that the port status is shown as Job Service indicates that either:
    • the dispatcher is still running, or
    • someone else is logged into the port, or
    • the port is hung.
    Assuming that the first two conditions are false, proceed with resetting the port as described below. If instead the status is shown as Idle then the port should be accessible and you can proceed with the procedure for resetting the Galil.
  6. Obtain authorization for terminating the port connection by issuing the command
    	set priv
    followed by hitting the RETURN key. The Lantronix will respond with the prompt:
    	Password>
    Enter the priviledge password, which can be found in the instrument password file.
  7. If you entered the correct password, the Lantronix should respond with a slightly different prompt:
    	Local_10>>
    The second ">" character confirms that you have put the Lantronix into privileged mode.
  8. To terminate the hung connection type the appropriate command:
    	logout port 5
    to terminate the connection used by dispatcher2.1, or
    	logout port 6
    to tmerinate the connection used by dispatcher2.2.
  9. The port should now be in the Idle state. Confirm this by issuing the command
    	show port 5
    which should respond with
    Port 5 : Username:                     Physical Port 5 (Idle)
    
       Char Size/Stop Bits:         8/1    Input Speed:                19200
       Flow Ctrl:               Cts/Rts    Output Speed:               19200
       Parity:                     None    Modem Control:               None
    
       Access:                   Remote    Local Switch:                None
       Backward:                   None    Port Name:                 Port_5
       Break Ctrl:                Local    Session Limit:                  4
       Forward:                    None    Terminal Type:             Soft()
    
       Preferred Services:        (Lat)   
                               (Telnet) 
    
       Authorized Groups : 0
       (Current)  Groups : 0
    
       Characteristics:  Autoprompt  Broadcast  Loss Notify  Verify  
                         Remote Conf  Telnet Pad  
  10. Issue the telnet escape sequence (Ctrl-]) to get the telnet> prompt, and issue the quit command to terminate the telnet session to the Lantronix terminal server.
  11. Proceed with the Galil Reset Procedure.

See Also