Categories: Personal

MF 622 with U mobile network in centos 5.

hmm..

create a rule file into the /etc/udev/rules.d/

with following content.

######### Start #################

ACTION!=”add”, GOTO=”ZTE_End”

# Is this the ZeroCD device?
SUBSYSTEM==”usb”, SYSFS{idProduct}==”2000″,
SYSFS{idVendor}==”19d2″, GOTO=”ZTE_ZeroCD”

# Is this the actual modem?
SUBSYSTEM==”usb”, SYSFS{idProduct}==”0001″,
SYSFS{idVendor}==”19d2″, GOTO=”ZTE_Modem”

LABEL=”ZTE_ZeroCD”
# This is the ZeroCD part of the card, remove
# the usb_storage kernel module so
# it does not get treated like a storage device
RUN+=”/sbin/rmmod usb_storage”

LABEL=”ZTE_Modem”
# This is the Modem part of the card, let’s
# load usbserial with the correct vendor
# and product ID’s so we get our usb serial devices
RUN+=”/sbin/modprobe usbserial vendor=0x19d2 product=0x0001″,
# Make users belonging to the dialout group
# able to use the usb serial devices.
MODE=”660″, GROUP=”dialout”

################# end ##################

create shell script into /usr/local/bin/go_u.sh
as below..

#################### start
#! /bin/sh

if [ $# -lt 2 ] ; then
echo “go_u “
exit
fi

echo port $1
echo speed $2
echo apn $3

/usr/sbin/pppd /dev/$1 $2 nodetach debug crtscts linkname “$1.link” connect “chat -v ECHO OFF TIMEOUT 15 ” AT OK ‘AT+CGDCONT=1,\”IP\”,\”$3\”‘ OK ATE0V1 OK ATDT*99# CONNECT” novj asyncmap 0 lcp-echo-interval 20 lcp-echo-failure 3 usepeerdns defaultroute

######### end

to connect

just need to type.

/usr/local/bin/go_u.sh ttyUSB0 115200 my3g

or you may alias this command to another shorter form..

such as.

touch /usr/local/bin/my3g

vi /usr/local/bin/my3g

##
#!/bin/sh

/usr/local/bin/go_u.sh ttyUSB0 115200 my3g &
exit 0

Namran Hussin

Leave a Comment

View Comments

Share
Published by
Namran Hussin

Recent Posts

How you can speak with clarity and influence

Here are five key communication skills that help you speak with clarity and influence: Speak…

7 months ago

? Man360 Academy Q&A Session Video Access – Empower Your Masculine Growth Journey

Are you ready to unlock your full potential as a man?Discover powerful insights, real-life transformations,…

1 year ago

A note to remember

One day we will set aside one whole day to review the whole lesson we…

1 year ago

Dev Fest KL 2024

Last weekend, 07/12/2024 I managed to join Dev Fest Kuala Lumpur 2024, organized by Google…

1 year ago

TIPS BACAAN AL-QURAN

TIPS BACAAN AL-QURANOleh: Dr. Muhd al-Muhaysni.1. Jangan engkau berikan (fokus membaca) al-Quran pada lebihan waktumu…

2 years ago

Selawat 300 ribu kali

Selawat yang ringkas, yang mana apabila kamu membacanya satu kali sebanding 100 ribu kali, jadi…

2 years ago