Eurotech ZEUS Manual de usuario Pagina 14

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 72
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 13
Arcom Embedded Linux Technical Manual Configuring AEL
Configuring serial ports using setserial
You can configure serial ports using the setserial tool. This section provides a brief
overview of the setserial tool. For more detailed information, refer to the setserial(8)
man page on your host system, or see setserial.sourceforge.net/setserial-man.html
.
You can view the current configuration of a serial port by passing the device to
setserial. For example, use the following command to view the configuration of COM1,
which is /dev/ttyS0:
# setserial /dev/ttyS0
You can obtain more detailed information by passing the –a flag, as follows:
# setserial –a /dev/ttyS0
Passing additional options to setserial configures the serial port. The following table
outlines the common options:
Option Description
port port_number
Sets the I/O port used by this serial port.
irq irq_number
Sets the IRQ used by this serial port.
uart uart_type
Sets the UART type. Permitted types are none, 8250, 16450,
16550, 16550A, 16650, 16650V2, 16654, 16750, 16850, 16950
and 16954.
autoconfig
Causes the kernel to attempt to automatically detect the UART
type. If the auto_irq option has been given, it also attempts to
determine the IRQ.
This option must be given after the port and irq (or auto_irq)
options.
auto_irq
Causes the kernel to attempt to automatically determine the IRQ
to use when performing automatic configuration.
It is much safer, however, to explicitly configure the IRQ using the
irq option. You can disable this option by prefixing it with a
carat (^).
baud_base
Sets the base baud rate. This is the clock frequency divided by
16.
The default base baud rate is normally either 115200 or the
maximum baud base the port is capable of. In some cases,
however, the default is 0. If so, you cannot set any other options
until you have set a suitable baud_base. You can do this by
passing baud_base as the first option.
Further options are described in the setserial (8) man page.
© 2006 Arcom Issue G 14
Vista de pagina 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 71 72

Comentarios a estos manuales

Sin comentarios