歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> Unix資訊 >> Aix操作系統串口相關知識講解

Aix操作系統串口相關知識講解

日期:2017/3/6 11:40:36   编辑:Unix資訊

Aix操作系統串行設備是什麼,什麼是Aix操作系統串口,如何使用?也許是很多人存在的問題,我們今天就來解決大家的這些疑問?首先,我們先來看看什麼是串口。

串口叫做串行接口,也稱串行通信接口,按電氣標准及協議來分包括RS-232-C、RS-422、RS485、USB等。 RS-232-C、RS-422與RS-485標准只對接口的電氣特性做出規定,不涉及接插件、電纜或協議。USB是近幾年發展起來的新型接口標准,主要應用於高速數據傳輸領域。

Aix操作系統串行設備是與Aix操作系統串口相連的設備,一般需要手工配置。

1、顯示所有已定義的TTY設備

  1. lsdev -Cctty
  2. smit tty

2、增加一個TTY設備

  1. smit tty
  2. -Add a TTY
  3. -TTY (rs232 rs422)
  4. -Parent Adapter(sa0 Available 00-00-s1 Standard I/O Serial Port1)
  5. (sa1Available 00-00-s2 Standard I/O Serial Port2)
  6. (sa2 Available 00-03-11 8 port Asynchronous Adapter)
  7. Add a TTY
  8. Type or select values in entry fields.
  9. Press Enter AFTER making all desired changes.
  10. [TOP] [Entry Fields]
  11. TTY type tty
  12. TTY interface rs232
  13. Description Asynchronous Terminal
  14. Parent adapter sa0
  15. * PORT number [] +
  16. Enable LOGIN disable +
  17. BAUD rate [9600] +
  18. PARITY [none] +
  19. BITS per character [8] +
  20. Number of STOP BITS [1] +
  21. TIME before advancing to next port setting [0] +#
  22. TERMINAL type [dumb]
  23. FLOW CONTROL to be used [xon] + [MORE...31]
  24. F1=Help F2=Refresh F3=Cancel F4=List
  25. Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
  26. Esc+9=Shell Esc+0=Exit Enter=Do

在這個對話框中,須填寫PORT number一項,使用F4鍵得到選項列表,按所需的來選出合適的PORT number。

3、與TTY有關的命令

  1. pdisable [-a] [device]命令暫時禁用一個TTY設備
  2. penable命令則解除對TTY設備的禁用
  3. stty [-a] [-g] [options]命令設置或顯示TTY設備的屬性

關於Aix操作系統串口的知識,我們就說到這裡吧,學習依舊在進行,我們好好的努力吧!

Copyright © Linux教程網 All Rights Reserved