Multi-Tech Systems MTD-EVe manual Using Linux, Shell Commands, Create a PPP Connection, Example

Page 12

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

QuickCarrierTM USB-D EV-DO MTD-EV3 User Guide

Image 12
Contents QuickCarrierTM USB-D EV-DO QuickCarrierTM USB-D EV-DO MTD-EV3 User Guide Contents EMC, Safety, and R&TTE Directive Compliance MTD-EV3 Specifications Product OverviewOverview DocumentationDimensions Link Status LED SMSPower Draw Turning the Device On or OffSafety Notices and Warnings General SafetyRadio Frequency RF Safety Sécurité relative aux appareils à radiofréquence RFDevice Maintenance Precautions for pacemaker wearersInterference with Pacemakers and Other Medical Devices Potential interferenceUser Responsibility Activation and Carrier Specific Information Account Activation for Cellular Devices Device Phone NumberCreating a Windows Dial-Up Connection Using Linux Shell CommandsTesting Serial Ports Create a PPP ConnectionQuickCarrierTM USB-D EV-DO MTD-EV3 User Guide Using Command Mode and Online Data Mode Basic OperationsInteracting with Your Device Overview Related DocumentationVerifying Signal Strength AT+CSQChecking Network Registration Reading, Writing, and Deleting MessagesReading Text Messages Sending Text MessagesDeleting Messages Send the message. Enter CTRL+ZEMC, Safety, and R&TTE Directive Compliance Regulatory StatementsCFR Part 15 Regulation Class B Devices Industry Canada Class B NoticeInternational Modem Restrictions Other CountriesEnvironmental Notices Waste Electrical and Electronic Equipment StatementWeee Directive Restriction of the Use of Hazardous Substances RoHS Reach Statement Registration of SubstancesSubstances of Very High Concern Svhc PBB 成分名称 Index Chinese hazardous substancesText messages Verify communication