Home > Appunti > HylaFAX e modem USR Sportster

HylaFAX e modem USR Sportster

Inserito da amedeo on December 17, 2011

Come riuscire a far funzionare HylaFAX con un popolare modem US Robotics Sportster.

Con l'evoluzione della tecnologia e dell'informatica, i modem sono finiti in cantina sostituiti dalle connessioni ADSL ma possono ancora rivelarsi utili grazie alle funzionalità FAX. Grazie a GNU/Linux ed a HylaFAX, possiamo costruirci un FAX Server senza grandi spese utilizzando un vecchio PC riciclato ed il modem che da tempo è finito in cantina.

Per parecchio tempo ho utilizzato modem USR Sportster per la connessione ad Internet, rimanendo soddisfatto per prestazioni ed affidabilità offerte da tali prodotti ma al momento di riesumarne uno per implementare un FAX Server ho scoperto che ha qualche problemino con HylaFAX.

L'installazione del sistema e di HylaFAX rimane abbastanza semplice (si trovano comunque molte informazioni utili in rete) mentre al momento di configurare il modem possono sorgere alcuni problemi: il nostro beneamato USR Sportster ci fa ricredere sulla ottima reputazione che gli abbiamo sempre attribuito !

Personalmente ho perso una giornata prima di riuscire a farlo funzionare, a differenza di altri modem assolutamente non blasonati che hanno funzionato al primo colpo, richiedendo una manciata di minuti per essere configurati. In effetti nel mondo HylaFAX i modem USR non sono particolarmente apprezzati, dato che si discostano dagli standard generalmente implementati sui modem/fax; non per questo dovrete rinunciare ad riutilizzarli: vi occorrerà solamente un po' di pazienza in più.

La chiave della soluzione sta nel file config.ttyS0 (per COM1, o config.ttyS1 per COM2 ecc.) che va adeguatamente personalizzato. Cercando in rete ho trovato alcune indicazioni che mi hanno permesso di raggiungere una configurazione funzionante: 

  1. #
  2. # HylaFAX Facsimile Software
  3. #
  4. # Copyright (c) 1990-1996 Sam Leffler
  5. # Copyright (c) 1991-1996 Silicon Graphics, Inc.
  6. # HylaFAX is a trademark of Silicon Graphics, Inc.
  7. #
  8. # Permission to use, copy, modify, distribute, and sell this software and
  9. # its documentation for any purpose is hereby granted without fee, provided
  10. # that (i) the above copyright notices and this permission notice appear in
  11. # all copies of the software and related documentation, and (ii) the names of
  12. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  13. # publicity relating to the software without the specific, prior written
  14. # permission of Sam Leffler and Silicon Graphics.
  15. #
  16. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  17. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  18. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  19. #
  20. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  21. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  22. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  24. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  25. # OF THIS SOFTWARE.
  26. #
  27.  
  28. #
  29. # Generic Class 1 modem configuration.
  30. #
  31. # EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP
  32. #
  33. CountryCode: 39
  34. AreaCode: 011
  35. FAXNumber: +39.011.819.12.68
  36. LongDistancePrefix: 0
  37. InternationalPrefix: 00
  38. DialStringRules: etc/dialrules
  39. ServerTracing: 1
  40. SessionTracing: 11
  41. RecvFileMode: 0666
  42. LogFileMode: 0666
  43. DeviceMode: 0666
  44. RingsBeforeAnswer: 7
  45. SpeakerVolume: off
  46. GettyArgs: "-h %l dx_%s"
  47. LocalIdentifier: InfoRisorse
  48. TagLineFont: etc/lutRS18.pcf
  49. TagLineFormat: "Da %%l|%c|Pag. %%P di %%T"
  50. MaxRecvPages: 25
  51. #
  52. #
  53. # Modem-related stuff: should reflect modem command interface
  54. # and hardware connection/cabling (e.g. flow control).
  55. #
  56. ModemType: Class1 # use this to supply a hint
  57. ModemRate: 38400 # rate for DCE-DTE communication
  58. #ModemFlowControl: xonxoff # XON/XOFF flow control assumed
  59. ModemFlowControl: rtscts # XON/XOFF flow control assumed
  60. #
  61. ModemSetupDTRCmd: ATS13=1&D2 # setup so DTR drop resets modem
  62. ModemSetupDCDCmd: AT&C1 # setup so DCD follows carrier
  63. #GettyArgs: "-h %l dx_%s" # modem must auto-detect fax/data
  64. #
  65. # We can append the "@" symbol to the dial string so that
  66. # the modem will wait 5 seconds before attempting to connect
  67. # and return result codes that distinguish between no carrier
  68. # and no answer. This makes it possible to avoid problems with
  69. # repeatedly dialing a number that doesn't have a fax machine
  70. # (kudos to Stuart Lynne for this trick.)
  71. #
  72. # NB: If you need to prefix phone numbers to get through a PBX,
  73. # put it in the ModemDialCmd; e.g. "DT9%s@".
  74. #
  75. ModemDialCmd: ATX3DT,%s # T for tone dialing
  76. #
  77. # Other possible configuration stuff. The default strings are
  78. # shown below. Only those that are different from the defaults
  79. # need to be included in the configuration file.
  80. #
  81. #ModemResetCmds: "" # stuff to do when modem is reset
  82. #ModemAnswerCmd: ATA # use this to answer phone
  83. ModemNoFlowCmd: AT&H0&I0&R1 # disable flow control cmd
  84. ModemHardFlowCmd: AT&H1&I0&R2 # hardware flow control cmd
  85. ModemSoftFlowCmd: AT&H2&I2&R1 # software flow control cmd
  86. #ModemNoAutoAnswerCmd: ATS0=0 # disable auto-answer
  87. #
  88. # Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH.
  89. # Note that we both turn the speaker on/off and set volume.
  90. #
  91. #ModemSetVolumeCmd: "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1"
  92. #ModemEchoOffCmd: ATE0 # disable command echo
  93. #ModemVerboseResultsCmd: ATV1 # enable verbose command results
  94. ModemResultCodesCmd: ATQ0X4 # enable result codes
  95. #ModemOnHookCmd: ATH0 # place phone on hook (hangup)
  96. #ModemSoftResetCmd: ATZ # do soft reset of modem
  97. #ModemSoftResetCmdDelay: 3000 # pause after soft reset
  98. #ModemWaitTimeCmd: ATS7=60 # wait 60 seconds for carrier
  99. #ModemCommaPauseTimeCmd: ATS8=2 # comma pause time is 2 seconds
  100. #ModemRecvFillOrder: LSB2MSB # bit order of received facsimile
  101. #ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit
  102. #
  103. Class1Cmd: AT+FCLASS=1 # command to enter class 1
  104. Class1PPMWaitCmd: AT+FTS=7 # command to stop and wait before PPM
  105. Class1TCFWaitCmd: AT+FTS=7 # command to stop and wait before TCF
  106. Class1EOPWaitCmd: AT+FTS=9 # command to stop and wait before EOP
  107. Class1SwitchingCmd: AT+FRS=7 # silence between HDLC recv and trans
  108. Class1RecvAbortOK: 200 # wait 200ms for abort response
  109. Class1FrameOverhead: 4 # 4 byte overhead in recvd HDLC frames
  110. Class1RecvIdentTimer: 40000 # 35+5secs waiting for ident frames
  111. Class1TCFMaxNonZero: 10 # max 10% of data may be non-zero
  112. Class1TCFMinRun: 1000 # min run is 2/3rds of TCF duration
  113. #
  114. ModemSetupAACmd: AT+FAA=1
  115. AdaptiveAnswer: yes
  116. NoAnswerVoice: on
  117.  

Comments:

Rispondi



(La tua email non sarĂ  mostrata pubblicamente)

Inserire le lettere ed i numeri mostrati nell'immagine.Codice captchaFai clic sull'immagine per vedere un altro captcha.