Android under debug 3G manual dialing

Source: Internet
Author: User

When the Board recognized 3G USB serial device, in/dev will see TtyUSB0, ttyUSB1, ttyUSB2, ttyUSB3 device files, you can debug. Before dialing, you need to understand the various functions of the USB serial port of the module, such as ZTE Mg3732:modem-ttyusb3, at-ttyUSB0, debug-ttyUSB2, vousb-ttyUSB1, So here ttyUSB3 is used for the dial port, with the mobile 2G card.

First, in the/etc/ppp of the board to create chat, peers folder, put the corresponding script file in the new folder.

1, CHAR/EVDO

Abort "no CARRIER" abort "no Dialtone" Abort "ERROR" Abort "no ANSWER" Abort "BUSY" TIMEOUT "" Atok atd*99***1#connect

First 5 lines: If you receive the string "No CARRIER", "No Dialtone", "ERROR", "No ANSWER","BUSY" exit execution;

Line 6th: Timeout control;

Line 7th: The modem expects an empty string, that is, the modem no matter what string received, first emit a string at;

Line 8th: expect to receive an "OK" string, and then send the string atd*99***1#;

atd*99***1#: Indicates mobile dialing (this statement needs to correspond to the type of card);

atd*99#: Express unicom Card;

atdt#777: Represents a telecom card.

Line 9th: If you receive "connect", it is no longer sent, it is considered that the data Link has established a connection.

2, PEERS/EVDO

/dev/ttyusb3115200crtsctsconnect '/system/bin/chat-v-f/system/etc/ppp/chat/ EVDO ' Nodetachipcp-accept-localipcp-accept-remotedefaultrouteusepeerdnsuser Cardpassword card


Line 1th: Specify the USB serial device used for dialing;

Line 2nd: set the control character transfer rate used by the connection;

Line 3rd: Set The PPP use modem hardware flow control;

Line 4th: Connect the CHAR/EVDO script;

Line 9th: DNS using server-side negotiation;

Last two lines: Tell the user name and password.

Second, the execution of the command to dial

1, PPPD call EVDO & after successful execution with PS command to see the following red box process appears

2. Execute necfg command to view IP, red box below, indicating successful dialing

3, Ping 202.108.22.5 (Baidu IP) appears the following red box, indicating that the network connection is normal

Android under debug 3G manual dialing

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.