AccelePort and RealPort UNIX device driver packages include a command, ditty, which is a superset of stty, and may be used to set and display the device options for Digi AccelePort devices.
The general command format is:
ditty [-a] [-n ttyname] [option(s)] [ttyname]
In AIX, substitute the command, stty-digi, for ditty:
/usr/lbin/tty/stty-digi [-a] [-n ttyname] [option(s)] [ttyname]
When using RealPort for AIX or DG/UX, substitute the command, stty-ncxa, for ditty:
stty-ncxa [-a] [-n ttyname] [option(s)] [ttyname]
When using RealPort for Linux, substitute the command, ditty-rp, for ditty:
ditty-rp [-a] [-n ttyname] [option(s)] [ttyname]
With no options, ditty displays all Digi special driver settings, modem signals, and all standard parameters displayed by stty(1) for the TTY device referenced by standard input.
Command options are provided to change flow control settings, set transparent print options, force modem control lines, and display all TTY settings. Any unrecognized options are passed to stty(1) for interpretation.
ditty commands may be executed from the command line, or placed in a startup script to be run whenever the system is booted.
The options are:
| -a | Display all of the unique Digi option settings, as well as all of the standard TTY settings reported by stty -a. |
| -n ttyname | Set and display options for the given TTY device, instead of standard input. This option may be specified multiple times to perform the same operation on multiple TTYs. |
| ttyname | Set and display options for the specified TTY device. Replace ttyname with the TTY pathname (such as /dev/ttya01s, /dev/term/a01 or /dev/dty/a001s, depending on your operating system). This option may be used on a modem control line when no carrier is present. |
The following options specify transient actions to be performed immediately:
| break | Send a 250 MS break signal out on the TTY line. |
| cspeed n | Set the port speed to n bps, where n is an integer value.
Available only on Xr, Xem, Xp and Digi Neo adapters. NOTE: This option is supported only in UnixWare, OpenServer, Solaris and HP-UX operating systems. Because the cspeed option is sticky and not transient on HP-UX systems, and only the AccelePort Xp and Digi Neo adapters support cspeed in HP-UX, HP-UX users should refer to the cspeed n entry under the sticky options below. |
| flush | Immediately flush (discard) TTY input and output. |
| flushin | Flush TTY input only. |
| flushout | Flush TTY output only. |
The following options specify actions which are not sticky, meaning that the changes are cancelled when the device is closed, and that the device will use the default values the next time it is opened.
| stopout | Stop output exactly as if an XOFF character were received. |
| startout | Restart stopped output exactly as if an XON character were received. |
| stopin | Activate flow control to stop input. |
| startin | Release flow control to resume stopped input. |
| [-]dtr | Raise [drop] the DTR modem control line, unless DTR hardware flow control is selected. |
| [-]rts | Raise [drop] the RTS modem control line, unless RTS hardware flow control is selected. |
The following options are sticky—the effects continue until the system is rebooted or until the options are changed.
| [-]printer | Forces the port to stay open so that non-sticky parameters such as baud rate and flow control
are not reset to default values. NOTES:
|
| [-]fastbaud | Alter the baud rate tables to permit the use of data rates that are beyond the range supported by the operating system. See Fastbaud Data Rate Mapping, at the end of this page. |
| [-]rtspace | Enable [disable] RTS hardware input flow control, so RTS drops to pause remote transmission. |
| [-]ctspace | Enable [disable] CTS hardware output flow control, so local transmission pauses when CTS drops. |
| [-]dsrpace | Enable [disable] DSR hardware output flow control, so local transmission pauses when DSR drops. |
| [-]dcdpace | Enable [disable] DCD hardware output flow control, so local transmission pauses when DCD drops. |
| [-]dtrpace | Enable [disable] DTR hardware input flow control, so DTR drops to pause remote transmission. |
| [-]forcedcd | Disable [re-enable] carrier sense, so the TTY may be opened and used even when carrier is not present. |
| cspeed n | Set the port speed to n bps, where n is an integer value. For HP-UX, this option is valid only for AccelePort Xp and Digi Neo adapters. This option is also supported in the UnixWare, OpenServer and Solaris operating systems. Because the cspeed option is transient and not sticky in these operating systems, UnixWare, OpenServer and Solaris users should refer to the cspeed n entry under the transient options above. |
Use the table below to see how setting fastbaud affects data rates for standard Digi Neo products. Select one of the links to view a table of fastbaud data rates for:
| Digi Neo | |
|---|---|
| Specified Data Rate: | Data Rate Mapped to: |
N/A | |
N/A | |