mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-09 15:23:50 -05:00
Support for Windows PuTTY connecting straight to a local serial port
in place of making a network connection. This has involved a couple of minor infrastructure changes: - New dlg_label_change() function in the dialog.h interface, which alters the label on a control. Only used, at present, to switch the Host Name and Port boxes into Serial Line and Speed, which means that any platform not implementing serial connections (i.e. currently all but Windows) does not need to actually do anything in this function. Yet. - New small piece of infrastructure: cfg_launchable() determines whether a Config structure describes a session ready to be launched. This was previously determined by seeing if it had a non-empty host name, but it has to check the serial line as well so there's a centralised function for it. I haven't gone through all front ends and arranged for this function to be used everywhere it needs to be; so far I've only checked Windows. - Similarly, cfg_dest() returns the destination of a connection (host name or serial line) in a text format suitable for putting into messages such as `Unable to connect to %s'. [originally from svn r6815]
This commit is contained in:
@ -491,6 +491,37 @@ protocol}\q{Raw}, from the \q{Protocol} buttons in the \q{Session}
|
||||
configuration panel. (See \k{config-hostname}.) You can then enter a
|
||||
host name and a port number, and make the connection.
|
||||
|
||||
\H{using-serial} Connecting to a local serial line
|
||||
|
||||
PuTTY can connect directly to a local serial line as an alternative
|
||||
to making a network connection. In this mode, text typed into the
|
||||
PuTTY window will be sent straight out of your computer's serial
|
||||
port, and data received through that port will be displayed in the
|
||||
PuTTY window. You might use this mode, for example, if your serial
|
||||
port is connected to another computer which has a serial connection.
|
||||
|
||||
To make a connection of this type, simply select \q{Serial} from the
|
||||
\q{Connection type} radio buttons on the \q{Session} configuration
|
||||
panel (see \k{config-hostname}). The \q{Host Name} and \q{Port}
|
||||
boxes will transform into \q{Serial line} and \q{Speed}, allowing
|
||||
you to specify which serial line to use (if your computer has more
|
||||
than one) and what speed (baud rate) to use when transferring data.
|
||||
For further configuration options (data bits, stop bits, parity,
|
||||
flow control), you can use the \q{Serial} configuration panel (see
|
||||
\k{config-serial}).
|
||||
|
||||
After you start up PuTTY in serial mode, you might find that you
|
||||
have to make the first move, by sending some data out of the serial
|
||||
line in order to notify the device at the other end that someone is
|
||||
there for it to talk to. This probably depends on the device. If you
|
||||
start up a PuTTY serial session and nothing appears in the window,
|
||||
try pressing Return a few times and see if that helps.
|
||||
|
||||
A serial line provides no well defined means for one end of the
|
||||
connection to notify the other that the connection is finished.
|
||||
Therefore, PuTTY in serial mode will remain connected until you
|
||||
close the window using the close button.
|
||||
|
||||
\H{using-cmdline} The PuTTY command line
|
||||
|
||||
PuTTY can be made to do various things without user intervention by
|
||||
|
Reference in New Issue
Block a user