author | josef <josef> | 2002-10-20 09:48:21 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-20 09:48:21 (UTC) |
commit | 940ba90ed4375f79b6a4934d290abf83980b77ad (patch) (side-by-side diff) | |
tree | c455e88ce9fe99ef79048e3f228b7f4551652537 /noncore/apps/opie-console/io_modem.h | |
parent | e2694c5aedb3697a373e363cebe72cddb3114a8f (diff) | |
download | opie-940ba90ed4375f79b6a4934d290abf83980b77ad.zip opie-940ba90ed4375f79b6a4934d290abf83980b77ad.tar.gz opie-940ba90ed4375f79b6a4934d290abf83980b77ad.tar.bz2 |
Please review!
- change modem default commands because we don't interpret ~ and friends
(minicom does AFAIK)
- disable unused AT settings for now
- when cancelling dialing, and we didn't yet get a single byte from the modem,
don't hangup
Diffstat (limited to 'noncore/apps/opie-console/io_modem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/io_modem.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/noncore/apps/opie-console/io_modem.h b/noncore/apps/opie-console/io_modem.h index 8453b95..1328706 100644 --- a/noncore/apps/opie-console/io_modem.h +++ b/noncore/apps/opie-console/io_modem.h @@ -10,23 +10,23 @@ #define MODEM_DEFAULT_BAUD 9600 #define MODEM_DEFAULT_PARITY 0 #define MODEM_DEFAULT_DBITS 8 #define MODEM_DEFAULT_SBITS 1 #define MODEM_DEFAULT_FLOW 0 -#define MODEM_DEFAULT_INIT_STRING "~^M~ATZ^M~" -#define MODEM_DEFAULT_RESET_STRING "~^M~ATZ^M~" +#define MODEM_DEFAULT_INIT_STRING "ATZ" +#define MODEM_DEFAULT_RESET_STRING "ATZ~" #define MODEM_DEFAULT_DIAL_PREFIX1 "ATDT" -#define MODEM_DEFAULT_DIAL_SUFFIX1 "^M" -#define MODEM_DEFAULT_DIAL_PREFIX2 "ATDP" -#define MODEM_DEFAULT_DIAL_SUFFIX2 "^M" -#define MODEM_DEFAULT_DIAL_PREFIX3 "ATX1DT" -#define MODEM_DEFAULT_DIAL_SUFFIX3 ";X4D^M" +#define MODEM_DEFAULT_DIAL_SUFFIX1 "" +#define MODEM_DEFAULT_DIAL_PREFIX2 "" +#define MODEM_DEFAULT_DIAL_SUFFIX2 "" +#define MODEM_DEFAULT_DIAL_PREFIX3 "" +#define MODEM_DEFAULT_DIAL_SUFFIX3 "" #define MODEM_DEFAULT_CONNECT_STRING "CONNECT" -#define MODEM_DEFAULT_HANGUP_STRING "~~+++~~ATH^M" -#define MODEM_DEFAULT_CANCEL_STRING "^M" +#define MODEM_DEFAULT_HANGUP_STRING "+++ATH" +#define MODEM_DEFAULT_CANCEL_STRING "" #define MODEM_DEFAULT_DIAL_TIME 45 #define MODEM_DEFAULT_DELAY_REDIAL 2 #define MODEM_DEFAULT_NUMBER_TRIES 10 #define MODEM_DEFAULT_DTR_DROP_TIME 1 #define MODEM_DEFAULT_BPS_DETECT 0 // bool #define MODEM_DEFAULT_DCD_LINES 1 //bool |