📄 ckudia.c
字号:
"", /* vol1_str */ "", /* vol2_str */ "", /* vol3_str */ "", /* ignoredt */ "", /* ini2 */ 0L, /* max_speed */ 0, /* capas */ 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.*/ { "Digitel DT-22 CCITT dialer", "", /* pulse command */ "", /* tone command */ 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) */ 43, /* esc_char (Not Standard CCITT) */ "HUP\015", /* hup_str (Not Standard CCITT) */ "", /* hwfc_str */ "", /* swfc_str */ "", /* nofc_str */ "", /* ec_on_str */ "", /* ec_off_str */ "", /* dc_on_str */ "", /* dc_off_str */ "CIC\015", /* aa_on_str */ "DIC\015", /* aa_off_str */ "", /* sb_on_str */ "", /* sb_off_str */ "", /* sp_off_str */ "", /* sp_on_str */ "", /* vol1_str */ "", /* vol2_str */ "", /* vol3_str */ "", /* ignoredt */ "", /* ini2 */ 0L, /* max_speed */ CKD_V25, /* capas */ getok /* ok_fn */};staticMDMINF H_1200 = /* Hayes 1200 and compatible modems */ { "Hayes Smartmodem 1200 and compatibles", "ATP\015", /* pulse command */ "ATT\015", /* tone command */ 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */#ifdef OS2 "ATE1Q0V1\015", /* wake_str */#else "ATQ0\015", /* wake_str */#endif /* OS2 */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ 43, /* esc_char */ "ATQ0H0\015", /* hup_str */ "", /* hwfc_str */ "", /* swfc_str */ "", /* nofc_str */ "", /* ec_on_str */ "", /* ec_off_str */ "", /* dc_on_str */ "", /* dc_off_str */ "ATS0=1\015", /* aa_on_str */ "ATS0=0\015", /* aa_off_str */ "", /* sb_on_str */ "", /* sb_off_str */ "ATM1\015", /* sp_on_str */ "ATM0\015", /* sp_off_str */ "ATL1\015", /* vol1_str */ "ATL2\015", /* vol2_str */ "ATL3\015", /* vol3_str */ "", /* ignoredt */ "", /* ini2 */ 1200L, /* max_speed */ CKD_AT, /* capas */ getok /* ok_fn */};staticMDMINF H_ULTRA = /* Hayes high-speed */ { "Hayes Ultra/Optima/Accura 96/144/288", /* U,O,A */ "ATP\015", /* pulse command */ "ATT\015", /* tone command */ 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */#ifdef OS2 "ATE1Q0V1X4N1Y0&S0&C1&D2S37=0S82=128\015", /* wake_str */#else#ifdef VMS "ATQ0X4N1Y0&S1S37=0S82=128\015", /* wake_str */#else "ATQ0X4N1Y0S37=0S82=128\015", /* wake_str */#endif /* VMS */#endif /* OS2 */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ 43, /* esc_char */ "ATQ0H0\015", /* hup_str */ "AT&K3\015", /* hwfc_str */ /* OK for U,O */ "AT&K4\015", /* swfc_str */ /* OK for U,O */ "AT&K0\015", /* nofc_str */ /* OK for U,O */ "AT&Q5S36=7S48=7\015", /* ec_on_str */ /* OK for U,O */ "AT&Q0\015", /* ec_off_str */ /* OK for U,O */ "ATS46=2\015", /* dc_on_str */ "ATS46=0\015", /* dc_off_str */ "ATS0=1\015", /* aa_on_str */ "ATS0=0\015", /* aa_off_str */ "", /* sb_on_str */ "", /* sb_off_str */ "ATM1\015", /* sp_on_str */ "ATM0\015", /* sp_off_str */ "ATL1\015", /* vol1_str */ "ATL2\015", /* vol2_str */ "ATL3\015", /* vol3_str */ "ATX3\015", /* ignoredt */ "", /* ini2 */ 115200L, /* max_speed */ /* (varies) */ CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */ getok /* ok_fn */};staticMDMINF H_ACCURA = /* Hayes Accura */ { /* GUESSING IT'S LIKE ULTRA & OPTIMA */ "Hayes Accura", "ATP\015", /* pulse command */ "ATT\015", /* tone command */ 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */#ifdef OS2 "ATE1Q0V1X4N1Y0&S0&C1&D2S37=0\015", /* wake_str */#else#ifdef VMS "ATQ0X4N1Y0&S1S37=0\015", /* wake_str */#else "ATQ0X4N1Y0S37=0\015", /* wake_str */#endif /* VMS */#endif /* OS2 */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ 43, /* esc_char */ "ATQ0H0\015", /* hup_str */ "AT&K3\015", /* hwfc_str */ "AT&K4\015", /* swfc_str */ "AT&K0\015", /* nofc_str */ "AT&Q5S36=7S48=7\015", /* ec_on_str */ "AT&Q0\015", /* ec_off_str */ "ATS46=2\015", /* dc_on_str */ "ATS46=0\015", /* dc_off_str */ "ATS0=1\015", /* aa_on_str */ "ATS0=0\015", /* aa_off_str */ "", /* sb_on_str */ "", /* sb_off_str */ "ATM1\015", /* sp_on_str */ "ATM0\015", /* sp_off_str */ "ATL1\015", /* vol1_str */ "ATL2\015", /* vol2_str */ "ATL3\015", /* vol3_str */ "ATX3\015", /* ignoredt */ "", /* ini2 */ 115200L, /* max_speed */ /* (varies) */ CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */ getok /* ok_fn */};staticMDMINF PPI = /* Practical Peripherals */ { "Practical Peripherals V.22bis or higher with V.42 and V.42bis", "ATP\015", /* pulse command */ "ATT\015", /* tone command */ 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */#ifdef COMMENT/* In newer models S82 (BREAK handling) was eliminated, causing an error. */#ifdef OS2 "ATQ0X4N1&S0&C1&D2S37=0S82=128\015", /* wake_str */#else "ATQ0X4N1S37=0S82=128\015", /* wake_str */#endif /* OS2 */#else /* So now we use Y0 instead */#ifdef OS2 "ATE1Q0V1X4N1&S0&C1&D2Y0S37=0\015", /* wake_str */#else#ifdef VMS "ATQ0X4N1Y0&S1S37=0\015", /* wake_str */#else "ATQ0X4N1Y0S37=0\015", /* wake_str */#endif /* VMS */#endif /* OS2 */#endif /* COMMENT */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ 43, /* esc_char */ "ATQ0H0\015", /* hup_str */ "AT&K3\015", /* hwfc_str */ "AT&K4\015", /* swfc_str */ "AT&K0\015", /* nofc_str */ "AT&Q5S36=7S48=7\015", /* ec_on_str */ "AT&Q0S36=0S48=128\015", /* ec_off_str */ "ATS46=2\015", /* dc_on_str */ "ATS46=0\015", /* dc_off_str */ "ATS0=1\015", /* aa_on_str */ "ATS0=0\015", /* aa_off_str */ "", /* sb_on_str */ "", /* sb_off_str */ "ATM1\015", /* sp_on_str */ "ATM0\015", /* sp_off_str */ "ATL1\015", /* vol1_str */ "ATL2\015", /* vol2_str */ "ATL3\015", /* vol3_str */ "ATX3\015", /* ignoredt */ "", /* ini2 */ 115200L, /* max_speed */ CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */ getok /* ok_fn */};staticMDMINF DATAPORT = /* AT&T Dataport */ { "AT&T / Paradyne DataPort V.32 or higher", "ATP\015", /* pulse command */ "ATT\015", /* tone command */ 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */ /* Note: S41=0 (use highest modulation) omitted, since it is not supported on the V.32 and lower models. So let's not touch it. */#ifdef OS2 "ATQ0E1V1X6&S0&C1&D2&Q0Y0\\K5S78=0\015", /* wake_str */#else#ifdef VMS "ATQ0E1X6&S1&Q0Y0\\K5S78=0\015", /* wake_str */#else "ATQ0E1X6&Q0Y0\\K5S78=0\015", /* wake_str */#endif /* VMS */#endif /* OS2 */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ 43, /* esc_char */ "ATQ0H0\015", /* hup_str */ "AT\\Q3\015", /* hwfc_str */ "AT\\Q1\\X0\015", /* swfc_str */ "AT\\Q0\015", /* nofc_str */ "AT\\N7\015", /* ec_on_str */ "AT\\N0\015", /* ec_off_str */ "AT%C1\015", /* dc_on_str */ "AT%C0\015", /* dc_off_str */ "ATS0=1\015", /* aa_on_str */ "ATS0=0\015", /* aa_off_str */ "", /* sb_on_str */ "", /* sb_off_str */ "ATM1\015", /* sp_on_str */ "ATM0\015", /* sp_off_str */ "ATL1\015", /* vol1_str */ "ATL2\015", /* vol2_str */ "ATL3\015", /* vol3_str */ "ATX3\015", /* ignoredt */ "", /* ini2 */ 57600L, /* max_speed */ CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */ getok /* ok_fn */};staticMDMINF UCOM_AT = /* Microcom DeskPorte FAST ES 28.8 */ { "Microcom DeskPorte FAST 28.8", "ATP\015", /* pulse command */ "ATT\015", /* tone command */ 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */#ifdef OS2 "ATE1Q0V1X4\\N0F0&S0&C1&D2\\K5\015", /* wake_str */#else#ifdef VMS "ATQ0X4F0&S1\\K5\015", /* wake_str */#else "ATQ0X4F0\\K5\015", /* wake_str */#endif /* VMS */#endif /* OS2 */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ 43, /* esc_char */ "ATQ0H0\015", /* hup_str */ "AT\\Q3\015", /* hwfc_str */ "AT\\Q1\015", /* swfc_str */ "AT\\H0\\Q0\015", /* nofc_str */ "AT\\N3\015", /* ec_on_str */ "AT\\N0\015", /* ec_off_str */ "AT%C3\015", /* dc_on_str */ "AT%C0\015", /* dc_off_str */ "ATS0=1\015", /* aa_on_str */ "ATS0=0\015", /* aa_off_str */ "AT-J0\015", /* sb_on_str */ "AT-J1\015", /* sb_off_str */ "ATM1\015", /* sp_on_str */ "ATM0\015", /* sp_off_str */ "ATL1\015", /* vol1_str */ "ATL2\015", /* vol2_str */ "ATL3\015", /* vol3_str */ "ATX3\015", /* ignoredt */ "", /* ini2 */ 115200L, /* max_speed */ CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */ getok /* ok_fn */};staticMDMINF ZOOM = /* Zoom Telephonics V.32bis */ { "Zoom Telephonics V.32bis", "ATP\015", /* pulse command */ "ATT\015", /* tone command */ 35, /* dial_time */ ",", /* pause_chars */ 2, /* pause_time */#ifdef OS2 "ATE1Q0V1N1W1X4&S0&C1&D2S82=128S95=47\015", /* wake_str */#else#ifdef VMS "ATQ0E1N1W1X4&S1S82=128S95=47\015", /* wake_str */#else "ATQ0E1N1W1X4S82=128S95=47\015", /* wake_str */#endif /* VMS */#endif /* OS2 */ 0, /* wake_rate */ "OK\015", /* wake_prompt */ "", /* dmode_str */ "", /* dmode_prompt */ "ATD%s\015", /* dial_str */ 0, /* dial_rate */ 1100, /* esc_time */ 43, /* esc_char */ "ATQ0H0\015", /* hup_str */ "AT&K3\015", /* hwfc_str */ "AT&K4\015", /* swfc_str */ "AT&K0\015", /* nofc_str */ "AT&Q5S36=7S48=7\015", /* ec_on_str */ "AT&Q0\015", /* ec_off_str */ "ATS46=138\015", /* dc_on_str */ "ATS46=136\015", /* dc_off_str */ "ATS0=1\015", /* aa_on_str */ "ATS0=0\015", /* aa_off_str */ "", /* sb_on_str */ "", /* sb_off_str */ "ATM1\015", /* sp_on_str */ "ATM0\015", /* sp_off_str */ "ATL1\015", /* vol1_str */ "ATL2\015", /* vol2_str */ "ATL3\015", /* vol3_str */ "ATX3\015", /* ignoredt */ "", /* ini2 */ 57600L, /* max_speed */ CKD_AT|CKD_SB|CKD_EC|CKD_DC|CKD_HW|CKD_SW, /* capas */ getok /* ok_fn */};staticMDMINF ZYXEL = /* ZyXEL U-Series */ { "ZyXEL U-Series V.32bis or higher",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -