Wireless Module Driver User Guide For EmbeddedLinux
All Rights reserved, No Spreading abroad without Permission of ZTEWelink
8
MW3820
3
Make Data Connection Using PPPD and
CHAT
This section gives an example for how to setup a data connection using pppd and chat program. You
should have done Section 2, so that your device can be recognized by the system. This also assumes you
have already downloaded pppd and install on your current Linux distribution.
3.1
Sample script for data connect using WCDMA
modem
File 1: ppp-on
#!/bin/sh
clear
OPTION_FILE="zte_options"
DIALER_SCRIPT=$(pwd)/zte_ppp_dialer
exec /usr/sbin/pppd file $OPTION_FILE connect "/usr/sbin/chat -v -f ${DIALER_SCRIPT}"
This file is the main script using option file “zte_options” and “zte_ppp_dialer”
File 2: zte_options
/dev/ttyUSB2
115200
crtscts
modem
persist
lock
noauth
noipdefault
debug
nodetach
user Anyname
password Anypassword
ipcp-accept-local
ipcp-accept-remote
replacedefaultroute
defaultroute
usepeerdns