Debugging of Huawei/ZTE 3G Module

Source: Internet
Author: User

1. Check/etc/init. d/pppd. "Enable automatic online registration in red color (if there is no statement in red color), add 』

#! /Bin/sh
#
Daemon =/usr/sbin/pppd
Pidfile =/var/run/pp1_pid

# Define the interface used for the connection
# Daemon_opts = ppp0
Daemon_opts = call WCDMA

Case "$ {1}" in
Start)
If [-e $ pidfile]; then
Echo "pppd already running"
Exit 1
Fi
Echo "modprobe kernel modules ..."
Modprobe option. Ko
Echo "Starting pppd ..."
Pppd call WCDMA &
;;

Stop)
If [! -E $ pidfile]; then
Echo "pppd not running"
Exit 1
Fi
Echo "Stopping pppd ..."
Kill-s sigterm 'cat $ pidfile' | echo "failed"
;;

Restart)
If [! -E $ pidfile]; then
Echo "pppd not running"
Exit 1
Fi
Echo "Restarting pppd ..."
Kill-s sigterm 'cat $ pidfile' | echo "failed"
Sleep 1
$ Daemon $ daemon_opts | echo "failed"
;;

Status)
If [-e $ pidfile]; then
Echo "pppd running"
Else
Echo "pppd not running"
Fi
;;

Hangup)
If [! -E $ pidfile]; then
Echo "pppd not running"
Exit 1
Fi
Echo "pppd hanging up"
Kill-s sighup 'cat $ pidfile' | echo "failed"
;;

*)
Echo "Usage: $ {0} {START | stop | restart | status | hangup }"
Exit 1
;;
Esac

2. If you do not want the 3G module to automatically access the Internet after power-on-hand registration, comment out the red statements, and enter the following command in the console terminal (do not forget to press enter to wrap the line ):

Pppd call WCDMA &

3. We recommend that you manually dial the phone number first, and then enable automatic registration upon power-on:

Primary dsn xxx. XXX

Secondary dsn xxx. XXX

VI/etc/resolv. conf, add content (primary dsn xxx. XXX, secondary dsn xxx. XXX ):

Nameserver XXX. XXX

Nameserver XXX. XXX

4. Use ifconfig-a to check whether ppp0 network devices exist;

5

Finally, test whether the ppp0 network device can be used.

Ping-I ppp0 www.baidu.com

If the device can be pinged, the driver is successfully transplanted to the 3G card.

 

Debugging of Huawei/ZTE 3G Module

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.