faxmodem.1m
上传用户:weiyuanprp
上传日期:2020-05-20
资源大小:1169k
文件大小:6k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. ." $Id: faxmodem.1m,v 1.1.1.1 2005/11/11 21:32:03 faxguy Exp $
  2. ."
  3. ." HylaFAX Facsimile Software
  4. ."
  5. ." Copyright (c) 1995 Sam Leffler
  6. ." Copyright (c) 1995 Silicon Graphics, Inc.
  7. ." HylaFAX is a trademark of Silicon Graphics
  8. ." 
  9. ." Permission to use, copy, modify, distribute, and sell this software and 
  10. ." its documentation for any purpose is hereby granted without fee, provided
  11. ." that (i) the above copyright notices and this permission notice appear in
  12. ." all copies of the software and related documentation, and (ii) the names of
  13. ." Sam Leffler and Silicon Graphics may not be used in any advertising or
  14. ." publicity relating to the software without the specific, prior written
  15. ." permission of Sam Leffler and Silicon Graphics.
  16. ." 
  17. ." THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  18. ." EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  19. ." WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  20. ." 
  21. ." IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  22. ." ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  23. ." OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. ." WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  25. ." LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  26. ." OF THIS SOFTWARE.
  27. ."
  28. .if n .po 0
  29. .ds Fx fIHylas-1FAXs+1fP
  30. .TH FAXMODEM ${MANNUM1_8} "Oct 27, 1995"
  31. .SH NAME
  32. faxmodem - dynamically add a modem to a *(Fx server system
  33. .SH SYNOPSIS
  34. .B ${SBIN}/faxmodem
  35. [
  36. .B -q
  37. .I queue-dir
  38. ] [
  39. .B -c
  40. .I capabilities
  41. ] [
  42. .B -p
  43. ] [
  44. .B -P
  45. ] [
  46. .B -u
  47. .I priority
  48. ]
  49. .I modem
  50. .SH DESCRIPTION
  51. .I faxmodem
  52. sends a message to the *(Fx queuer process
  53. .IR faxq (${MANNUM1_8})
  54. telling it that the specified modem is ready for use and
  55. informing it about its fax-related capabilities.
  56. This is the mechanism by which modems are added in a send-only
  57. configuration.
  58. Once a modem has been configured its status can be reconfigured
  59. using the
  60. .IR faxstate (${MANNUM1_8})
  61. program.
  62. .I faxmodem
  63. can also be used to alter the capabilities and usage priority
  64. of a previously configured modem.
  65. .PP
  66. The specified
  67. .I modem
  68. is either the terminal device name where the modem is
  69. attached or a *(Fx device identifier (see
  70. .IR hylafax-config (${MANNUM4_5})
  71. for information on device identifiers).
  72. Device names may be given without
  73. a leading directory pathname; e.g. ttyf2 instead of /dev/ttyf2.
  74. .PP
  75. To figure out the capabilities of a modem either use the
  76. .IR probemodem (${MANNUM1_8})
  77. script or manually communicate with the modem.
  78. For a Class 2 modem the capabilities are given in the response to
  79. the ``AT+FDCC=?'' query command and
  80. for a Class 2.0 modem the ``AT+FCC=?'' command.
  81. To check if a modem is capable of polled retrieval of documents
  82. use ``AT+FSP=?'' for a Class 2.0 modem or ``AT+FSPL=?'' for a Class 2 modem;
  83. if ``1'' is indicated in the response then the modem supports polling.
  84. For example,
  85. .RS
  86. .sp .5
  87. .nf
  88. hyla% fBcu -l ttyf2fP
  89. Connected
  90. fBat+fclass=2.0fP
  91. OK
  92. fBat+fcc=?fP
  93. (0,1),(0-5),(0-2),(0-2),0,0,0,(0-7)
  94. OK
  95. fBat+fsp=?fP
  96. (0,1)
  97. OK
  98. .RE
  99. .fi
  100. .PP
  101. In this case the modem would be added using the command:
  102. .RS
  103. .sp .5
  104. .nf
  105. ${SBIN}/faxmodem -c '(0,1),(0-5),(0-2),(0-2),0,0,0,(0-7)' ttyf2
  106. .RE
  107. .fi
  108. .LP
  109. (by default polling is assumed to be supported).
  110. .PP
  111. Class 1 modems require a different technique.
  112. The host implements most of the fax protocol so all that is needed is
  113. to identify the possible signalling rates the modem supports for
  114. transmitting; this
  115. is done with the ``AT+FTM=?'' command.
  116. For example,
  117. .RS
  118. .sp .5
  119. .nf
  120. hyla% fBcu -l ttyf2fP
  121. Connected
  122. fBat+fclass=1fP
  123. OK
  124. fBat+ftm=?fP
  125. 24,48,72,73,74,96,97,98,121,122,145,146
  126. OK
  127. .RE
  128. .fi
  129. .PP
  130. In this case the modem supports 2400, 4800, 7200, 9600, 12200, and 14400
  131. bps signalling rates so the modem would be added using:
  132. .RS
  133. .nf
  134. .sp .5
  135. ${SBIN}/faxmodem -c '(0,1),(0-5),(0-2),(0-2),(0,1),0,0,(0-7)' ttyf2
  136. .RE
  137. .fi
  138. .SH OPTIONS
  139. The following options are available:
  140. .TP 10
  141. .B -c
  142. Specify the fax capabilities using the syntax defined by
  143. the ``Class 2'' specification:
  144. ``(fIvrfP),(fIbrfP),(fIwdfP),(fIlnfP),(fIdffP),(fIecfP),(fIbffP),(fIstfP)''.
  145. where,
  146. fIvrfP specifies vertical resolution,
  147. fIbrfP specifies bit rate,
  148. fIwdfP specifies page width,
  149. fIlnfP specifies page length,
  150. fIdffP specifies data compression,
  151. fIecfP specifies error correction,
  152. fIbffP specifies binary file transfer,
  153. and
  154. fIstfP specifies scan time/line;
  155. and each of the above specifications is a range or list
  156. of numbers that defines the exact capabilities of the modem.
  157. For example, the default capabilities are
  158. ``(0,1),(0-3),(0-4),(0-2),(0),(0),(0),(0-7)''
  159. which specifies the modem is capable of sending and receiving
  160. both low and high resolution facsimile with a variety of page
  161. sizes; supports signalling rates 0-3 (2400 bps through 9600 bps);
  162. supports only 1D-encoded data compression; and does not support
  163. error correction or binary file transfer.
  164. A modem's ability to support polled retrieval of facsimile is
  165. specified separately with the
  166. .B -p
  167. and
  168. .B -P
  169. options.
  170. .TP 10
  171. .B -p
  172. Specify the modem is fBnotfP capable of polling for remote documents.
  173. .TP 10
  174. .B -P
  175. Specify the modem is capable of polling for remote documents (default).
  176. .TP 10
  177. .BI -q " dir"
  178. Use a spooling area other than
  179. .IR ${SPOOL} .
  180. .TP 10
  181. .BI -u " priority"
  182. Assign the specified priority to the modem when scheduling
  183. it for outbound use.
  184. Modem priorities are numbers in the range [0..255] with lower
  185. numbers meaning higher priority.
  186. Modems are initially assigned priority 255.
  187. .SH FILES
  188. .nf
  189. .ta w'${SPOOL}/FIFO.<devid>    'u
  190. ${SPOOL} default spooling area
  191. ${SPOOL}/FIFO fifo for contacting fIfaxqfP
  192. .fi
  193. .PP
  194. Consult
  195. .IR hylafax-server (${MANNUM4_5})
  196. for a complete discussion of the structure and
  197. content of the spooling area.
  198. .SH "SEE ALSO"
  199. .IR hylafax-server (${MANNUM4_5}),
  200. .IR faxgetty (${MANNUM1_8}),
  201. .IR faxq (${MANNUM1_8}).