
4. Interfaccia RS232 (consolle)
4.1 Introduzione
L’interfaccia utente RS232 (consolle) rappresenta un modo veloce e
comodo per configurare il WebGate e sperimentarne le funzioni.
Si tratta di un’interfaccia a riga di comando a cui si accede attraverso
la porta seriale RS232, utilizzando un PC e un programma di
emulazione terminale. Il WebGate è fornito di un connettore DTE e va
quindi collegato al PC con un cavo null-modem. Sono richiesti solo i
segnali TX e RX.
4.2 Impostazioni
Per la configurazione dell’emulatore terminale sono richieste le
seguenti impostazioni:
• Selezionare la porta di comunicazione a cui il WebGate è collegato
(generalmente COM1 o COM2);
• Impostare la configurazione della porta seriale a
8 bit di dati,
nessuna parità, 1 bit di stop, nessun controllo di flusso;
• Assicurarsi che il terminale sia configurato alla stessa velocità di
comunicazione del WebGate. Il baudrate di default della porta seriale
del WebGate è
19200 baud
. Questo valore può essere modificato
utilizzando l’interfaccia HTML (vedi
Scheda di configurazione
RS232
). E’ importante assicurarsi che il terminale sia configurato
con le stesse impostazioni.
Per la configurazione dell’emulatore terminale si consigliano le
seguenti impostazioni:
• Utilizzare la modalità di emulazione TTY
• Disabilitare l’eco dei caratteri digitati localmente. I caratteri vengono
ripetuti dal WebGate in remoto.
• Abilitare l’opzione “cancella con backspace”, se disponibile, in modo
da permettere una corretta gestione del carattere di “backspace”
inviato dal WebGate
• Non aggiungere un “avanzamento riga” ad ogni ritorno a capo
trasmesso.
• Non aggiungere un “avanzamento riga” ad ogni ritorno a capo
ricevuto (eseguito automaticamente dal WebGate).
4.3 Esempio di configurazione guidata
Il paragrafo descrive in che modo un emulatore terminale può essere
utilizzato come consolle per il WebGate.
Come esempio utilizzeremo Hyperterminal®, l’emulatore di terminale
fornito con Microsoft® Windows©. Potrà comunque essere utilizzato
qualsiasi emulatore di terminale, qualora configurato correttamente.
1.
Selezionare ed eseguire Hypertrm.exe da
Start>Programmi>Accessori>Hyperterminal
;
apparirà la finestra seguente (potrebbe
anche essere in parte diversa a seconda
della lingua del sistema operativo utilizzato):
4. Interface RS 232 (Console)
4.1 Introduction
The console user interface RS232 is a fast and convenient way to
configure WebGate and to experiment with its functions.
It is basically a command line interface accessed via the RS232 port
using a PC and a terminal emulation program.
Since WebGate is provided with a DTE interface connector, it must be
connected to the PC with a null-modem cable. Only the TX and RX
signals are required.
4.2 Settings
The following settings are required when configuring the terminal
emulator:
• Select the communication port where the WebGate is connected to
(generally COM1 or COM2);
• Set the serial port configuration to
8 bit data, no parity, 1 stop bit,
no flow control;
• Make sure that the terminal is configured at the same communication
speed of the WebGate speed. The default serial port baudrate of
WebGate is
19200 baud
. This value can be changed using the HTML
interface (see
RS232 configuration tab
). However, make sure that
the terminal is configured in the same way.
The following settings are suggested when configuring the terminal
emulator:
• Use the TTY emulation mode
• Disable local characters echo. Characters are remotely echoed from
WebGate.
• enable the “delete with backspace” option when available, to allow the
correct handling of the “backspace” character sent by WebGate
• Don’t add a “LF” after transmitted lines
• Don’t’ add a “LF” after received lines (this is performed automatically
by WebGate).
4.3 A step-by-step configuration example
In this paragraph is described step-by-step how a terminal emulator
can be used as console interface for the WebGate.
For example we will use Hyperterminal®, the terminal emulator
supplied with Microsoft® Windows©. However, any terminal emulator, if
properly configured, may be used.
1.
Select and run Hypertrm.exe from
Start>Programs>Accessories>Hyperterminal
; the following window
will appear (it may be differ somewhat
depending on your operative system
language):
15
Manuale WebGate - cod. +030220230 rel. 1.0 - 16.09.2003
Fig. 4.3.1