home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 July / VPR9707B.ISO / DRIVER / OMRON / 6420DSU / MAC / ARA定義 / !OMRONFW.385 next >
Text File  |  1996-09-12  |  4KB  |  261 lines

  1. !
  2. ! "OMRON FW6420 9/12/96"
  3. !
  4. @ORIGINATE
  5. @ANSWER
  6. !
  7. @LABEL 1
  8. serreset 38400, 0, 8, 1
  9. !
  10. ! first recall the factory configuration
  11. !
  12. hsreset 0 1 0 0 0 0
  13. dtrclear
  14. pause 10
  15. dtrset
  16. pause 10
  17. matchclr
  18. settries 0
  19. matchstr 1 3 "OK\13\10"
  20. @LABEL 2
  21. write "ATZ\13"
  22. matchread 30
  23. inctries
  24. iftries 2 59
  25. jump 2
  26. !
  27. ! Next, Set up the configuration: Echo off
  28. !
  29. @LABEL 3
  30. matchstr 1 4 "OK\13\10"
  31. write "ATE0\13"
  32. matchread 30
  33. jump 59
  34. !
  35. ! Set result code is long form.
  36. !
  37. @LABEL 4
  38. matchstr 1 5 "OK\13\10"
  39. write "ATQ0V1\13"
  40. matchread 30
  41. jump 59
  42. !
  43. ! Set RS-CS flow control
  44. !
  45. @LABEL 5
  46. matchstr 1 6 "OK\13\10"
  47. write "AT&K3\13"
  48. matchread 30
  49. jump 59
  50. !
  51. ! Set the format of "connect xxxx" result code
  52. !
  53. @LABEL 6
  54. matchstr 1 7 "OK\13\10"
  55. write "ATX4\13"
  56. matchread 30
  57. jump 59
  58. !
  59. ! Set the format of "RING" result code
  60. !
  61. @LABEL 7
  62. matchstr 1 8 "OK\13\10"
  63. write "ATW0\13"
  64. matchread 30
  65. jump 59 
  66. !
  67. ! Set not PPP method
  68. !
  69. @LABEL 8
  70. matchstr 1 9 "OK"
  71. write "AT$N1=0\13"
  72. matchread 30
  73. jump 59
  74. !
  75. ! The modem is ready.  So enable answering, or originate a call
  76. !
  77. @LABEL 9
  78. note "FW6420 Ready"3
  79. ifANSWER 30
  80. !
  81. ! @ORIGINATE
  82. !
  83. note "Dialing ^1" 3
  84. ! localized note "Dialing ^1" 3
  85. write "ATS0=0D^1\13"
  86. !
  87. @LABEL 10
  88. matchstr  1 18 "CONNECT 38400\13\10"
  89. matchstr  2 50 "NO CARRIER\13\10"
  90. matchstr  3 51 "ERROR\13\10"
  91. matchstr  4 53 "BUSY\13\10"
  92. matchread 700
  93. jump 59
  94. !
  95. @LABEL 11
  96. note "Communicating at 1200 bps" 3
  97. ! localized note "Communicating at 1200 bps" 3
  98. jump 20
  99. !
  100. @LABEL 12
  101. note "Communicating at 2400 bps" 3
  102. ! localized note "Communicating at 2400 bps" 3
  103. jump 20
  104. !
  105. @LABEL 13
  106. note "Communicating at 4800 bps" 3
  107. ! localized note "Communicating at 4800 bps" 3
  108. jump 20
  109. !
  110. @LABEL 14
  111. note "Communicating at 9600 bps" 3
  112. ! localized note "Communicating at 4800 bps" 3
  113. jump 20
  114. !
  115. @LABEL 15
  116. note "Communicating at 14400 bps" 3
  117. ! localized note "Communicating at 14400 bps" 3
  118. jump 20
  119. !
  120. @LABEL 16
  121. note "Communicating at 19200 bps" 3
  122. ! localized note "Communicating at 19200 bps" 3
  123. jump 20
  124. !
  125. @LABEL 17
  126. note "Communicating at 28800 bps" 3
  127. ! localized note "Communicating at 28800 bps" 3
  128. jump 20
  129. !
  130. @LABEL 18
  131. note "Communicating at 38400 bps" 3
  132. ! localized note "Communicating at 38400 bps" 3
  133. jump 20
  134. !
  135. @LABEL 19
  136. note "Communicating at 57600 bps" 3
  137. ! localized note "Communicating at 57600 bps" 3
  138. jump 20
  139. !
  140. @LABEL 20
  141. ifANSWER 21
  142. pause 30
  143. !
  144. @LABEL 21
  145. exit 0
  146. !
  147. ! @ANSWER
  148. ! Set up the modem to answer
  149. @LABEL 30
  150. matchstr 1 31 "OK\13\10"
  151. write "ATS0=1\13"
  152. matchread 30
  153. jump 59
  154. !
  155. @LABEL 31
  156. matchstr 1  32 "RING\13\10"
  157. matchstr 2  11 "CONNECT 1200\13\10"
  158. matchstr 3  12 "CONNECT 2400\13\10"
  159. matchstr 4  13 "CONNECT 4800\13\10"
  160. matchstr 5  14 "CONNECT 9600\13\10"
  161. matchstr 6  15 "CONNECT 14400\13\10"
  162. matchstr 7  17 "CONNECT 19200\13\10"
  163. matchstr 9  18 "CONNECT 38400\13\10"
  164. matchstr 10 19 "CONNECT 57600\13\10"
  165. matchstr 11 50 "NO CARRIER\13\10"
  166. matchstr 12 51 "ERROR\13\10"
  167. matchstr 13 53 "BUSY\13\10"
  168. matchread 700
  169. jump 59
  170. !
  171. @LABEL 32
  172. userhook 1
  173. note "Answering incoming call" 3
  174. ! localized note "Answering phoneノ" 2
  175. jump 31
  176. !
  177. ! 50: error messages
  178. !
  179. @LABEL 50
  180. exit -6021
  181. !
  182. @LABEL 51
  183. exit -6016
  184. !
  185. @LABEL 53
  186. exit -6022
  187. !
  188. @LABEL 59
  189. exit -6019
  190. !
  191. ! Hang up the modem
  192. !
  193. @HANGUP
  194. @LABEL 60
  195. settries 0
  196. matchclr
  197. matchstr 1 64 "OK\13\10"
  198. !
  199. @LABEL 61
  200. pause 15
  201. write "+++"
  202. pause 15
  203. matchread 15
  204. inctries
  205. ! no response, try three times
  206. iftries 3 62
  207. jump 61
  208. !
  209. ! No response from modem, toggle DTR
  210. !
  211. @LABEL 62
  212. dtrclear
  213. pause 10
  214. dtrset
  215. jump 63
  216.  
  217. @LABEL 63
  218. note "If the ACT LED of FW6420 is light,push DISC key or hang up the line." 3
  219.  
  220. @LABEL 64
  221. settries 0
  222. matchclr
  223. matchstr 1 66 "OK\13\10"
  224. write "ATH\13"
  225. matchread 15
  226. inctries
  227. iftries 3 66
  228. jump 64
  229. ! no response, try three times!
  230. !
  231. dtrclear
  232. pause 10
  233. dtrset
  234. pause 10
  235. write "AT\13"
  236. matchread 30
  237. jump 66
  238. matchstr 1 66 "OK\13\10"
  239. !
  240. @LABEL 66
  241. flush
  242. matchclr
  243. matchstr 1 68 "OK\13\10"
  244. !
  245. ! Recall the factory settings
  246. !
  247. @LABEL 67
  248. write "ATZ\13"
  249. matchread 30
  250. jump 59
  251. !
  252. @LABEL 68
  253. matchstr 1 69 "OK\13\10"
  254. write "ATS0=0\13"
  255. matchread 30
  256. jump 59
  257. !
  258. @LABEL 69
  259. exit 0
  260.