Listing 1. mgetty.config
# file: /usr/local/etc/mgetty+sendfax/mgetty.config
#
# mgetty configuration for codan radio modem 9002
# dial-in radiohub server "congo"
# station address "1201"
#
# wcm, 2001.10.03 - 2001.10.03
# ===
# 1. Set maximum logging:
debug 9
# 2. Define serial device/speed:
port modem
speed 9600
# note: 9002 modem is DTE on a null modem cable:
ignore-carrier TRUE
# 3. Identify as a modem (not a direct serial line):
direct NO
autobauding NO
blocking NO
# 4. Modem is data only (not fax):
data-only YES
modem-type DATA
# 5. Define owner, group and permissions on device:
port-owner uucp
port-group dialer
port-mode 660
# 6. Define chat strings for codan 9002:
init-chat "" ATH OK AT&&FE0L0R0X0&K3S0=0&A=0&I=1201 OK
force-init-chat "" \d\d\d+++\d\d\dATH OK AT&FE0L0R0X0&K3S0=0&A=0&I=1201
OK
rings 1
# note: explicit expect RING is not needed; mgetty assumes it
answer-chat "" ATA CONNECT \c
answer-chat-timeout 80
#
# end file mgetty.config
Copyright © 1994 - 2018 Linux Journal. All rights reserved.