Multi-Tech Systems MTD-EV3 User Manual

Page of 26
USING LINUX
Using Linux
Shell Commands
Testing Serial Ports
To test the serial ports created by the driver, type in a shell:
cat /dev/ttyUSBx &
# echo –en "ATE0\r" > /dev/ttyUSBx
# echo –en "AT\r" > /dev/ttyUSBx
Note:
Sending ATE0 is required, to avoid issues in the terminal output. It prevents the sending/receiving
spurious characters to/from the modem when used with the Linux commands “echo” and “cat”
Create a PPP Connection
Most recent Linux distributions have GUI tools for creating PPP connections; the following instructions are for
creating a PPP connection through command line interface.
PPP support must be compiled into the kernel; pppd and chat programs are also required.
pppd needs two scripts: the first script performs the environment setting and calls the second script, which is used
by the chat program. For creating a PPP connection type:
# pppd file /etc/pppd_script &
Example
# Debug info from pppd
debug
#kdebug 4
# Most phones don't reply to LCP echos
lcp-echo-failure 3
lcp-echo-interval 3
# Keep pppd attached to the terminal
# Comment this to get daemon mode pppd
nodetach
# The chat script (be sure to edit that file, too!)
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs_connect/etc/chatscripts/evdo_connect"
# Serial Device to which the modem is connected
/dev/ttyUSBttyACM
# Serial port line speed
115200
dump
# The phone is not required to authenticate
#noauth
user <insert here the correct username for authentication>
name <insert here the name of the connection>
password <insert here the correct password for authentication>
# If you want to use the GPRSEV-DO link as your gateway
defaultroute
12
QuickCarrier
TM
USB-D EV-DO MTD-EV3 User Guide