📄 ckudia.c
字号:
"", /* wake_str (none) */ 200, /* wake_rate (msec) */ "VAL", /* wake_prompt */ "", /* dmode_str (none) */ "", /* dmode_prompt (none) */ "CRN%s\015", /* dial_str */ 200, /* dial_rate (msec) */ 0, /* No esc_time */ "", /* No esc_str */ "", /* No hup_str */ NULL /* No ok_fn */ };#ifndef MINIDIAL /* Don't include the following if -DMINIDIAL ... */staticMDMINF CERMETEK = /* Information for "Cermetek Info-Mate 212 A" modem */ { 20, /* dial_time */ "BbPpTt", /* pause_chars */ 0, /* pause_time */ /** unknown -- DS **/ " XY\016R\015", /* wake_str */ 200, /* wake_rate */ "", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "\016D '%s'\015", /* dial_str */ 200, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF DF03 = /* information for "DEC DF03-AC" modem */ { 27, /* dial_time */ "=", /* pause_chars */ /* wait for second dial tone */ 15, /* pause_time */ "\001\002", /* wake_str */ 0, /* wake_rate */ "", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "%s", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF DF100 = /* information for "DEC DF100-series" modem */ /* * The telephone "number" can include "P"s and/or "T"s * within it to indicate that subsequent digits are * to be dialed using pulse or tone dialing. The * modem defaults to pulse dialing. You may modify * the dial string below to explicitly default all * dialing to pulse or tone, but doing so prevents * the use of phone numbers that you may have stored * in the modem's memory. */ { 30, /* dial_time */ "=", /* pause_chars */ /* wait for second dial tone */ 15, /* pause_time */ "\001", /* wake_str */ 0, /* wake_rate */ "", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "%s#", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF DF200 = /* information for "DEC DF200-series" modem */ /* * The telephone "number" can include "P"s and/or "T"s * within it to indicate that subsequent digits are * to be dialed using pulse or tone dialing. The * modem defaults to pulse dialing. You may modify * the dial string below to explicitly default all * dialing to pulse or tone, but doing so prevents * the use of phone numbers that you may have stored * in the modem's memory. */ { 30, /* dial_time */ "=W", /* pause_chars */ /* =: second tone; W: 5 secs */ 15, /* pause_time */ /* worst case */ "\002", /* wake_str */ /* allow stored number usage */ 0, /* wake_rate */ "", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "%s!", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF DIGITEL = /* Digitel DT-22 CCITT variant used in Brazil *//* Attempts to adhere strictly to the V.25bis specification do not produce good results in real life. The modem for which this code was developed: (a) ignores parity; (b) sometimes terminates responses with LF CR instead of CR LF; (c) has a Hayes-like escape sequence; (d) supports a hangup ("HUP") command. Information from Fernando Cabral in Brasilia.*/ { 40, /* dial_time -- programmable -- */ ",:", /* pause_chars -- "," waits for programmable time */ /* ":" waits for dial tone */ 10, /* pause_time (seconds, just a guess) */ "HUP\015", /* wake_str (Not Standard CCITT) */ 200, /* wake_rate (msec) */ "VAL", /* wake_prompt */ "", /* dmode_str (none) */ "", /* dmode_prompt (none) */ "CRN%s\015", /* dial_str */ 200, /* dial_rate (msec) */ 1100, /* esc_time (Not Standard CCITT) */ "+++", /* esc_str (Not Standard CCITT) */ "HUP\015", /* hup_str (Not Standard CCITT) */ getok /* ok_fn */ };staticMDMINF GDC = /* information for "GeneralDataComm 212A/ED" modem */ { 32, /* dial_time */ "%", /* pause_chars */ 3, /* pause_time */ "\015\015", /* wake_str */ 500, /* wake_rate */ "$", /* wake_prompt */ "D\015", /* dmode_str */ ":", /* dmode_prompt */ "T%s\015", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };#endif /* MINIDIAL */staticMDMINF HAYES = /* Information for Hayes and Hayes-like modems */ { 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */ "ATQ0\015", /* wake_str *//* Note: Other wake_str's are possible here. For a Hayes 2400 that is to be used for both in and out calls, AT&F&D3 might be best. For out calls only, maybe AT&F&D2. See Hayes 2400 manual.*/ 0, /* wake_rate */ "", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str, note: user can supply D or T */ 0, /* dial_rate */ 1100, /* esc_time */ "+++", /* esc_str */ "ATQ0H0\015", /* hup_str */ getok /* ok_fn */ };#ifndef MINIDIALstaticMDMINF PENRIL = /* information for "Penril" modem */ { 50, /* dial_time */ "", /* pause_chars */ /** unknown -- HF **/ 0, /* pause_time */ "\015\015", /* wake_str */ 300, /* wake_rate */ ">", /* wake_prompt */ "k\015", /* dmode_str */ ":", /* dmode_prompt */ "%s\015", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF RACAL = /* information for "Racal Vadic" modem, e.g. VA4492E */ { 35, /* dial_time (manual says modem is hardwired to 60) */ "Kk", /* pause_chars */ 5, /* pause_time */ "\005\015", /* wake_str, ^E^M */ 50, /* wake_rate */ "*", /* wake_prompt */ "D\015", /* dmode_str */ "?", /* dmode_prompt */ "%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ "\003\004", /* esc_str, ^C^D (this actually hangs up) */ "\005", /* hup_str, ^E (this goes back to command mode) */ NULL /* ok_fn */ };#endif /* MINIDIAL *//* The intent of the "unknown" modem is to allow KERMIT to support unknown modems by having the user type the entire autodial sequence (possibly including control characters, etc.) as the "phone number". The protocol and other characteristics of this modem are unknown, with some "reasonable" values being chosen for some of them. The only way to detect if a connection is made is to look for carrier.*/staticMDMINF UNKNOWN = /* information for "Unknown" modem */ { 30, /* dial_time */ "", /* pause_chars */ 0, /* pause_time */ "", /* wake_str */ 0, /* wake_rate */ "", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "%s\015", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };#ifndef MINIDIALstaticMDMINF USROBOT = /* information for "US Robotics 212A" modem */ { 30, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */ "ATS2=01\015", /* wake_str */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "ATTD%s\015", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };#ifdef COMMENT/* Reportedly this does not work at all. */staticMDMINF VENTEL = /* information for "Ventel" modem */ { 20, /* dial_time */ "%", /* pause_chars */ 5, /* pause_time */ "\015\015\015", /* wake_str */ 300, /* wake_rate */ "$", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "<K\015%s\015>", /* dial_str (was "<K%s\r>") */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };#else/* and this does. */staticMDMINF VENTEL = /* information for "Ventel" modem */ { 20, /* dial_time */ "%", /* pause_chars */ 5, /* pause_time */ "\015\015\015", /* wake_str */ 300, /* wake_rate */ "$", /* wake_prompt */ "K\015", /* dmode_str (was "") */ "Number to call: ", /* dmode_prompt (was NULL) */ "%s\015", /* dial_str (was "<K%s\r>") */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };#endif /* COMMENT */staticMDMINF CONCORD = /* Info for Condor CDS 220 2400b modem */ { 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */ "\015\015", /* wake_str */ 20, /* wake_rate */ "CDS >", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "<D M%s\015>", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF ATTUPC = /* dummy information for "ATT7300/Unix PC" internal modem */ { 30, /* dial_time */ "", /* pause_chars */ 0, /* pause_time */ "", /* wake_str */ 0, /* wake_rate */ "", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "%s\015", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF ROLM = /* IBM / Siemens / Rolm 8000, 9000, 9751 CBX */ { 60, /* dial_time */ "", /* pause_chars */ 0, /* pause_time */ "\015\015", /* wake_str */ 5, /* wake_rate */ "MODIFY?", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "CALL %s\015", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF MICROCOM = /* information for "Microcom" modems in native mode */ /* (long answer only) */ { 35, /* dial_time */ ",!@", /* pause_chars (! and @ aren't pure pauses) */ 3, /* pause_time */ "\015", /* wake_str */ 100, /* wake_rate */ "!", /* wake_prompt */ "", /* dmode_str */ NULL, /* dmode_prompt */ "d%s\015", /* dial_str */ 0, /* dial_rate */ 0, /* esc_time */ "", /* esc_str */ "", /* hup_str */ NULL /* ok_fn */ };staticMDMINF HST = /* information for Courier HST modem */ { 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */ "ATQ0S2=43X7&B1&M4\015", /* wake_str */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ "+++", /* esc_str */ "ATQ0H0\015", /* hup_str */ getok /* ok_fn */ };staticMDMINF TELEBIT = /* information for Telebits */ { 60, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time *//* NOTE: The wake_string MUST contain the I command (model query), and otherwise must contain commands that work on ALL Telebit models. Here we ensure that
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -