tty
This command selects the serial instance (TTY) for the cellular modem. Most modems provide multiple serial interfaces for diagnostic purposes, usually only one is appropriate for Internet access. TTY is the serial port used to communicate with the modem (which is typically determined automatically). However, in case the device cannot communicate with the serial modem, you can use a different serial port (according to the Linux guide provided by the manufacturer of the cellular dongle modem).
Setting “tty first” will use the first responsive serial interface. Setting “tty last” will use the highest numbered interface (default). Alternatively, a serial interface can be selected by number.
■ | The recommended setting for Sierra Wireless 308 modems is "tty 2". |
■ | The recommended setting for Huawei E160 / E182E modems is "tty 0". |
■ | The recommended setting for all other modems is the default "tty last". |
Syntax
tty <tty-value>
Command |
Description |
---|---|
<tty-value> |
Defines the “first”, “last” or a number between 0 and 11. If set to first, the first responsive serial interface is used. If set to last, the highest numbered interface is used. |
Default
The default TTY value is “last”.
Command Mode
Privileged User
Note
The command is applicable only to PPP-based cellular modems.
Example
This example sets the TTY instance:
(config-data)# interface cellular 0/0 (conf-cellular)# tty 0