moxa-smartio.rst 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. =============================================================
  2. MOXA Smartio/Industio Family Device Driver Installation Guide
  3. =============================================================
  4. Copyright (C) 2008, Moxa Inc.
  5. Copyright (C) 2021, Jiri Slaby
  6. .. Content
  7. 1. Introduction
  8. 2. System Requirement
  9. 3. Installation
  10. 3.1 Hardware installation
  11. 3.2 Device naming convention
  12. 4. Utilities
  13. 5. Setserial
  14. 6. Troubleshooting
  15. 1. Introduction
  16. ^^^^^^^^^^^^^^^
  17. The Smartio/Industio/UPCI family Linux driver supports following multiport
  18. boards:
  19. - 2 ports multiport board
  20. CP-102U, CP-102UL, CP-102UF
  21. CP-132U-I, CP-132UL,
  22. CP-132, CP-132I, CP132S, CP-132IS,
  23. (CP-102, CP-102S)
  24. - 4 ports multiport board
  25. CP-104EL,
  26. CP-104UL, CP-104JU,
  27. CP-134U, CP-134U-I,
  28. C104H/PCI, C104HS/PCI,
  29. CP-114, CP-114I, CP-114S, CP-114IS, CP-114UL,
  30. (C114HI, CT-114I),
  31. POS-104UL,
  32. CB-114,
  33. CB-134I
  34. - 8 ports multiport board
  35. CP-118EL, CP-168EL,
  36. CP-118U, CP-168U,
  37. C168H/PCI,
  38. CB-108
  39. If a compatibility problem occurs, please contact Moxa at
  40. [email protected].
  41. In addition to device driver, useful utilities are also provided in this
  42. version. They are:
  43. - msdiag
  44. Diagnostic program for displaying installed Moxa
  45. Smartio/Industio boards.
  46. - msmon
  47. Monitor program to observe data count and line status signals.
  48. - msterm A simple terminal program which is useful in testing serial
  49. ports.
  50. All the drivers and utilities are published in form of source code under
  51. GNU General Public License in this version. Please refer to GNU General
  52. Public License announcement in each source code file for more detail.
  53. In Moxa's Web sites, you may always find the latest driver at
  54. https://www.moxa.com/.
  55. This version of driver can be installed as a Loadable Module (Module driver)
  56. or built-in into kernel (Static driver). Before you install the driver,
  57. please refer to hardware installation procedure in the User's Manual.
  58. We assume the user should be familiar with following documents:
  59. - Serial-HOWTO
  60. - Kernel-HOWTO
  61. 2. System Requirement
  62. ^^^^^^^^^^^^^^^^^^^^^
  63. - Maximum 4 boards can be installed in combination
  64. 3. Installation
  65. ^^^^^^^^^^^^^^^
  66. 3.1 Hardware installation
  67. =========================
  68. PCI/UPCI board
  69. --------------
  70. You may need to adjust IRQ usage in BIOS to avoid IRQ conflict with other
  71. ISA devices. Please refer to hardware installation procedure in User's
  72. Manual in advance.
  73. PCI IRQ Sharing
  74. ---------------
  75. Each port within the same multiport board shares the same IRQ. Up to
  76. 4 Moxa Smartio/Industio PCI Family multiport boards can be installed
  77. together on one system and they can share the same IRQ.
  78. 3.2 Device naming convention
  79. ============================
  80. The device node is named "ttyMxx".
  81. Device naming when more than 2 boards installed
  82. -----------------------------------------------
  83. Naming convention for each Smartio/Industio multiport board is
  84. pre-defined as below.
  85. ============ ===============
  86. Board Num. Device node
  87. 1st board ttyM0 - ttyM7
  88. 2nd board ttyM8 - ttyM15
  89. 3rd board ttyM16 - ttyM23
  90. 4th board ttyM24 - ttyM31
  91. ============ ===============
  92. 4. Utilities
  93. ^^^^^^^^^^^^
  94. There are 3 utilities contained in this driver. They are msdiag, msmon and
  95. msterm. These 3 utilities are released in form of source code. They should
  96. be compiled into executable file and copied into /usr/bin.
  97. msdiag - Diagnostic
  98. ===================
  99. This utility provides the function to display what Moxa Smartio/Industio
  100. board was found by the driver in the system.
  101. msmon - Port Monitoring
  102. =======================
  103. This utility gives the user a quick view about all the MOXA ports'
  104. activities. One can easily learn each port's total received/transmitted
  105. (Rx/Tx) character count since the time when the monitoring is started.
  106. Rx/Tx throughputs per second are also reported in interval basis (e.g.
  107. the last 5 seconds) and in average basis (since the time the monitoring
  108. is started). You can reset all ports' count by <HOME> key. <+> <->
  109. (plus/minus) keys to change the displaying time interval. Press <ENTER>
  110. on the port, that cursor stay, to view the port's communication
  111. parameters, signal status, and input/output queue.
  112. msterm - Terminal Emulation
  113. ===========================
  114. This utility provides data sending and receiving ability of all tty ports,
  115. especially for MOXA ports. It is quite useful for testing simple
  116. application, for example, sending AT command to a modem connected to the
  117. port or used as a terminal for login purpose. Note that this is only a
  118. dumb terminal emulation without handling full screen operation.
  119. 5. Setserial
  120. ^^^^^^^^^^^^
  121. Supported Setserial parameters are listed as below.
  122. ============== =============================================================
  123. uart set UART type(16450 --> disable FIFO, 16550A --> enable FIFO)
  124. close_delay set the amount of time (in 1/100 of a second) that DTR
  125. should be kept low while being closed.
  126. closing_wait set the amount of time (in 1/100 of a second) that the
  127. serial port should wait for data to be drained while
  128. being closed, before the receiver is disabled.
  129. spd_hi Use 57.6kb when the application requests 38.4kb.
  130. spd_vhi Use 115.2kb when the application requests 38.4kb.
  131. spd_shi Use 230.4kb when the application requests 38.4kb.
  132. spd_warp Use 460.8kb when the application requests 38.4kb.
  133. spd_normal Use 38.4kb when the application requests 38.4kb.
  134. spd_cust Use the custom divisor to set the speed when the
  135. application requests 38.4kb.
  136. divisor This option sets the custom division.
  137. baud_base This option sets the base baud rate.
  138. ============== =============================================================
  139. 6. Troubleshooting
  140. ^^^^^^^^^^^^^^^^^^
  141. The boot time error messages and solutions are stated as clearly as
  142. possible. If all the possible solutions fail, please contact our technical
  143. support team to get more help.
  144. Error msg:
  145. More than 4 Moxa Smartio/Industio family boards found. Fifth board
  146. and after are ignored.
  147. Solution:
  148. To avoid this problem, please unplug fifth and after board, because Moxa
  149. driver supports up to 4 boards.