GPRS Modem Internet access

Source: Internet
Author: User

Modem has three nodes: ttyusb0, ttyusb1, and ttyusb2.

Ttyusb1 is the AT command node and ttyusb2 is the data node (which is the data node? Ask the vendor)

 

First, set the modem through ttyusb1 as follows:

1. At + cgdcont = 1, "ip", "cmnet"

2. At + cgatt = 1

3. ATD * 99 *** 1 # (my SIM card is from China Mobile)

 

After logging on to the GPRS network, create a PPP connection.

Modify/etc/PPP/peers/cmnet as follows, only the first and second items need special processing:

---------------------------------------------

/Dev/ttyusb2 # Set this parameter based on the data node of your modem.

115200 # Can I use at + IPR? View modem speed

Nocrtscts

Nocdtrcts

Local

Usepeerdns

Defaultroute

Noipdefault

Ipcp-Accept-Local

Lock

Nodetach

Persist

User card

Password card

-----------------------------------------------------------------

 

# Pppd call cment

 

# Busybox ifconfig-A: You can see the newly created network node and the IP address has been assigned.

# Ping news.sina.com.cn.

 

 

Note:

1. There are a lot of AT commands. The three commands are actually used for accessing the Internet. Maybe they are related to my modem.

2. Many people use the AT command automatically executed by chat. My device does not have the chat, so I will first execute the AT command on the Internet through the command line, the effect is the same

3. I added an antenna, at + CSQ? The test signal is good, so you don't need to consider the problem of poor signal.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.