|
|
1.1 ! root 1: ! 2: ! 3: modemcap Technical Information modemcap ! 4: ! 5: ! 6: ! 7: ! 8: Modem description language ! 9: ! 10: ! 11: modemcap is a language for describing modems to your system. It ! 12: resembles the termcap language in its syntax, although the two ! 13: are by no means identical. With modemcap, you can describe your ! 14: modem to any program that automatically dials out on your modem; ! 15: this should spare you the tedium of continually describing your ! 16: modem to one program after another. ! 17: ! 18: The copy of /etc/modemcap included with your release of COHERENT ! 19: already contains descriptions of many popular modems; the chances ! 20: are good that yours has already been described for you. ! 21: ! 22: Each modemcap command is one of three types: flag, string, or ! 23: number. A flag command signals that your modem is performs a ! 24: particular action or has a particular feature. A string command ! 25: gives the command that your modem recognizes to perform a par- ! 26: ticular action. For example, many modems recognize that the ! 27: string at means that you want to gain its attention. Finally, a ! 28: number command sets a value or parameter for your modem, such as ! 29: the highest baud rate it recognizes. ! 30: ! 31: The following table describes each modemcap command: ! 32: ! 33: _N_a_m_e _T_y_p_e _M_e_a_n_i_n_g ! 34: ! 35: aadd number Delay after aass ! 36: aass flag Numbers are in ASCII, not binary ! 37: aatt string Attention string, forces model into command mode ! 38: from online mode ! 39: bbdd number Highest online baud rate ! 40: bbll number Alternate lower baud rate ! 41: ccee string Command end string (required if CS is present) ! 42: ccll string String from modem on remote connection at BL baud rate ! 43: ccoo string String from modem on remote connection at BD baud rate ! 44: ccss string Command start string ! 45: ddee string End dial command string (required if DS is present) ! 46: ddii flag Modem has a dialer ! 47: ddss string Start dial command string ! 48: iidd number Delay after IS ! 49: iiss string Initialization string, resets modem to offline, ! 50: ready to dial ! 51: hhcc flag Modem hangs up when DTR drops ! 52: hhuu string Hangup command ! 53: tttt flag Modem dials touchtone by default (or DS is set ! 54: that way) ! 55: ! 56: All commands, such as ddss (dial command) and hu (hang up) will be ! 57: prefixed by cs and ended with ce. If there is a common prefix ! 58: and suffix, use this feature. Otherwise, each command will have ! 59: to have the entire string built in. ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66: ! 67: ! 68: ! 69: modemcap Technical Information modemcap ! 70: ! 71: ! 72: ! 73: ***** Example Entry ***** ! 74: ! 75: The following gives the entry in /etc/modemcap for the Hayes ! 76: Smartmodem 1200: ! 77: ! 78: ! 79: hy|hayes|Hayes Smartmodem 1200:\ ! 80: :as:at=+++:ad#3:bd#1200:bl#300:cs=AT:ce=\r:co=CONNECT:\ ! 81: :cl=CONNECT:di:ds=DT :de=:is=ATQ0 V1 E1\r:id#2:\ ! 82: :hc:hu=H0 V0 E0 Q1:tt: ! 83: ! 84: ! 85: Each field is separated by a colon. A backslash `\' character at ! 86: the end of each line but the last lets the description extend ! 87: over more than one line. ! 88: ! 89: The three fields gives three versions of the modem's name, ! 90: separated by vertical bars `|'. The first version of the name is ! 91: a two-character mnemonic; this must be unique. The other two ! 92: versions give fuller versions of the name; these are optional. ! 93: ! 94: The following explains each field in detail: ! 95: ! 96: aass Numbers are in binary mode. ! 97: ! 98: aatt=+++ To gain the attention of the modem, type +++. ! 99: ! 100: aadd#33 Delay three milliseconds after a number. ! 101: ! 102: bbdd#11220000 Maximum baud rate is 1200. ! 103: ! 104: bbll#330000 Minimum baud rate is 300. ! 105: ! 106: ccss=AATT To initiate a command string, type AATT. ! 107: ! 108: ccee=\rr A command string is ended by a carriage-return ! 109: character. ! 110: ! 111: ccoo=CCOONNNNEECCTT Modem returns the string CCOONNNNEECCTT when it makes a ! 112: connection at 1200 baud. ! 113: ! 114: ccll=CCOONNNNEECCTT Modem returns the string CCOONNNNEECCTT when it makes a ! 115: connection at 300 baud. ! 116: ! 117: ddii The modem can dial a telephone number. ! 118: ! 119: ddss=DDTT Begin dialing, touch-tone mode. ! 120: ! 121: ddee= No special string is needed to end the dial ! 122: string. ! 123: ! 124: iiss=AATTQQ00 To initialize the modem, type AATTQQ00 VV11 EE11<rreettuurrnn>. ! 125: ! 126: iidd#22 ! 127: Delay two seconds after entering the initializa- ! 128: ! 129: ! 130: COHERENT Lexicon Page 2 ! 131: ! 132: ! 133: ! 134: ! 135: modemcap Technical Information modemcap ! 136: ! 137: ! 138: ! 139: tion string. ! 140: ! 141: hhcc The modem hangs up when DTR drops (i.e., it hangs ! 142: up when the program requests a hangup). ! 143: ! 144: hhuu=HH00 To hang up, type HH00 VV00 EE00 QQ11. ! 145: ! 146: tttt The modem dials touch-tone by default. ! 147: ! 148: ***** Currently Recognized Modems ***** ! 149: ! 150: The file /etc/modemcap includes descriptions of the following ! 151: modems: ! 152: ! 153: ! 154: Trailblazer, 9600 baud ! 155: Trailblazer, 2400 baud ! 156: Hayes Smartmodem 1200 ! 157: Avatex 2400 (clone of Hayes Smartmodem 2400) ! 158: Prometheus Promodem 1200 ! 159: Signalman Mark XII ! 160: Radio Shack Direct-Connect 300 Modem ! 161: ! 162: ! 163: ***** See Also ***** ! 164: ! 165: technical information, termcap ! 166: ! 167: ! 168: ! 169: ! 170: ! 171: ! 172: ! 173: ! 174: ! 175: ! 176: ! 177: ! 178: ! 179: ! 180: ! 181: ! 182: ! 183: ! 184: ! 185: ! 186: ! 187: ! 188: ! 189: ! 190: ! 191: ! 192: ! 193: ! 194: ! 195: ! 196: COHERENT Lexicon Page 3 ! 197: ! 198:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.