Subject: Re: NAT not passing all characters?
To: Roger Fischer <roger@badger1.net>
From: Bruce Anderson <brucea@spacestar.net>
List: port-mac68k
Date: 04/07/1999 20:49:00
On Tue, Apr 6, 1999 11:39 PM, Roger Fischer <mailto:roger@badger1.net>
wrote:
>>> <brucea@wavefront.com>
>>> I figured out what is wrong with my mail.
>>> The problem is with "+" ASCII 0x2B ( decimal 43) getting intercepted by
the
>>> modem as AT commands in the IO stream. Without SLIP/PPP escaping "+"
the
>>> modems enter command mode.
>>> I tested this by sending mail with a valid AT command in the body of
the
>>> message. (turned my speeker on and off)
>
>except that the pppd man page specifically says that you can not
>escape characters with hex values between 0x20 and 0x3f.
>
>Hmmm
>I tried anyway and got the following message when I tried to fire up ppp
>	(connecting...pppd: can't escape character 0x2b

You change the default escape character from 0x2B to something below 0x20

Go to the "S" Register Appendix for you modem;
look for a "S" register with the value 43 (decimal) as a default.
Change the escape value in the modem and the chat script to 14  (0x0E) 
"S2" holds the escape character for my "ZOOM" modem.
Change   +    (43)   -->   Ctrl-N    (14)
And last is to set the asyncmap to escape   Ctrl-N  (14)  0x0E

Here is the changes to  my chat script :
# /etc/ppp/chat
# change the modem default escape character from 0x2B to 0x0E
MODEM_INIT='"AT  S2=14 "' 
# get the attention of the modem,  hangup in case we were off hook.
echo '"" ^N^N^NATZ!!' >>${TMP}  


/etc/ppp/peers/<my-isp>  or  /etc/ppp/options*
asyncmap 00002000          # represents the character 0x0E or  Ctrl-N.


BA-