# /etc/ppp/peers/PocketPC -*- sh -*- pppd options for direct iPAQ connection # created 08-May-2002 Michel Stempin # autodate: 08-May-2002 # autotime: 16:38 # The serial line to use. Use either "/dev/ttyS0" for "COM1" or "/dev/ttyS1" # for "COM2" PC ports. /dev/ttyS0 # Set the speed to 115200 bps. 115200 # As PocketPC considers us as a modem ;-), we have to pretend by sending # the expected answers. # For this, we use the "chat" program and "expect/send" pairs. You can specify # the "-v" option to /usr/sbin/chat if you want to debug the "modem" initial di alog. # Basically, the chat is (\r means a , i.e. a Carriage Return character): # - expect ATZ (reset modem command) # - send OK # - expect AT (expect exactly 8 commands beginning with AT # - send OK you may have to change the number of ATs) # - expect ATDT (dial using tone modulation) # - send CONNECT connect "/usr/sbin/chat -V 'ATZ\r' OK 'AT' OK 'AT' OK 'AT' OK \ 'AT' OK 'AT' OK 'AT' OK 'AT' OK 'AT' OK 'ATDT' CONNECT" # async character map -- 32-bit hex; each bit is a character # that needs to be escaped for pppd to receive it. 0x00000001 # represents '\x01', and 0x80000000 represents '\x1f'. asyncmap 0 # Do not require PocketPC to authenticate itself before allowing network # packets to be sent or received. # NOTE: This option is only available to the "root" user. noauth # No hardware flow control (i.e. RTS/CTS) to control the flow of data # on the serial port, as the iPAQ seems not to handle it. nocrtscts # Don't use the modem control lines local # Specifies that pppd should use a UUCP-style lock on the serial device # to ensure exclusive access to the device. lock # Don't fork to become a background process (otherwise pppd will do so # if a serial device is specified). -detach # Increase debugging level (same as -d). If this option is given, pppd # will log the contents of all control packets sent or received in a # readable form. The packets are logged through syslog with facility # daemon and level debug. This information can be directed to a file by # setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If # pppd is compiled with extra debugging enabled, it will log messages # using facility local2 instead of daemon). #debug # Enable debugging code in the kernel-level PPP driver. The argument n # is a number which is the sum of the following values: 1 to enable # general debug messages, 2 to request that the contents of received # packets be printed, and 4 to request that the contents of transmitted # packets be printed. #kdebug 7 # Sets the IP addresses on both side of the link. 192.168.1.100:192.168.1.101