Solution: USB stick 3G-modem huawei on G Tablet (updated 2011/03/14)

Russian Beast

Member
Jan 9, 2011
24
8
0
First, I apologize for my bad English:)
(I would be grateful if you correct my language mistakes)

Managed to tie USB 3G-modem huaweu e1550/1750 from Russian operator Megaphone!
(firmware VEGAn 5, but I think it fits to the other)!


1. Turning off the modem ZERO_CD via Hyper Terminal (if running Windows)

AT ^ U2DIAG = 0 (device-only modem)
Detail to paint it will not - the network is complete instructions for this.

2. Turning off at the SIM-card control of PIN-code.

3. Set command CHAT (from the archive) you need to throw in a folder /system/bin/ or using RootExplorer

adb push chat/system/bin/
Expose the full rights rwxrwxrwx

4. We need to install GScript Lite
Create a folder on gscript sdcard and throw it in the 2 scripts and ppp-start ppp-stop (from archive)

5. The script for the Megaphone megafon (from archive) - for your ISP to change by analogy
respectively, placing megafon file in the folder/system/etc/ppp/peers, if such a folder does not exist, create it using either RootExplorer, or through the ADB

adb shell mkdir/system/etc/ppp/peers
adb push mts/system/etc/ppp/peers

If you have another provider, you must replace this line:
connect 'chat "" AT OK ATDT*99# CONNECT'
(*99# - number to dial to your ISP)
Also, you might need to add the following lines (front lines connect 'chat "" AT OK ATDT*99# CONNECT'):
user username
password ***
where "username" - the username to authenticate with your ISP
*** - The password to authenticate with your ISP

Example file Megafon without authorization:
ttyUSB0
460800
crtscts
defaultroute
modem
noauth
noipdefault
persist
updetach
usepeerdns
connect 'chat "" AT OK ATDT*99# CONNECT'

Example file MTS with authorization:
ttyUSB0
460800
crtscts
defaultroute
modem
noauth
noipdefault
persist
updetach
usepeerdns
user mts
password mts
connect 'chat "" AT OK ATDT*99# CONNECT'

6. Insert the modem into the USB, go into Gscript, starting ppp-start and we are on the Internet (the LED on the modem continuously lit in blue).
ppp-stop, respectively, terminates the session.

P.S. APN settings is not needed.
If there is time later to make update.zip ClockWork mod. If someone has done it before, I'll be very happy:)
 
Last edited:

Tester30

Senior Member
Dec 13, 2009
319
27
0
Gangtown
First, I apologize for my bad English:)
(I would be grateful if you correct my language mistakes)

Managed to tie USB 3G-modem huaweu e1550/1750 from Russian operator Megaphone!
(firmware VEGAn 5, but I think it fits to the other)!


1. Turning off the modem ZERO_CD via Hyper Terminal (if running Windows)

AT ^ U2DIAG = 0 (device-only modem)
Detail to paint it will not - the network is complete instructions for this.

2. Turning off at the SIM-card control of PIN-code.

3. Set command CHAT (from the archive) you need to throw in a folder /system/bin/ or using RootExplorer

adb push chat/system/bin/
Expose the full rights rwxrwxrwx

4. We need to install GScript Lite
Create a folder on gscript sdcard and throw it in the 2 scripts and ppp-start ppp-stop (from archive)

5. The script for the Megaphone megafon (from archive) - for your ISP to change by analogy
respectively, placing megafon file in the folder/system/etc/ppp/peers, if such a folder does not exist, create it using either RootExplorer, or through the ADB

adb shell mkdir/system/etc/ppp/peers
adb push mts/system/etc/ppp/peers

If you have another provider, you must replace this line:
connect 'chat "" AT OK ATDT*99# CONNECT'
(*99# - number to dial to your ISP)
Also, you might need to add the following lines (front lines connect 'chat "" AT OK ATDT*99# CONNECT'):
user username
password ***
where "username" - the username to authenticate with your ISP
*** - The password to authenticate with your ISP

Example file Megafon without authorization:
ttyUSB0
460800
crtscts
defaultroute
modem
noauth
noipdefault
persist
updetach
usepeerdns
connect 'chat "" AT OK ATDT*99# CONNECT'

Example file MTS with authorization:
ttyUSB0
460800
crtscts
defaultroute
modem
noauth
noipdefault
persist
updetach
usepeerdns
user mts
password mts
connect 'chat "" AT OK ATDT*99# CONNECT'

6. Insert the modem into the USB, go into Gscript, zapustkaem ppp-start and we are on the Internet (the LED on the modem continuously lit in blue).
ppp-stop, respectively, terminates the session.

P.S. APN settings is not needed.
If there is time later to make update.zip ClockWork mod. If someone has done it before, I'll be very happy:)
Starting

Not bad otherwise. Good instructions!

Take care.
 

astratus

New member
Mar 14, 2011
2
0
0
what if it dose not appears as ttyusb0
when i connect my dongle only usbdev1.8 and 1-1.1 appears in my /dev/
короче как сериал он его не видит

here is dmesg
<6>[ 1484.787491] usb 1-1.1: new high speed USB device using tegra-ehci and address 11
<6>[ 1484.844123] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=1001
<6>[ 1484.851037] usb 1-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
<6>[ 1484.858599] usb 1-1.1: Product: HUAWEI Mobile
<6>[ 1484.863074] usb 1-1.1: Manufacturer: HUAWEI Technology
<6>[ 1484.872795] usb 1-1.1: configuration #1 chosen from 1 choice
 

APV_Ion

Member
Apr 2, 2011
10
0
0
Example file MTS with authorization:
ttyUSB0
460800
crtscts
defaultroute
modem
noauth
noipdefault
persist
updetach
usepeerdns
user mts
password mts
connect 'chat "" AT OK ATDT*99# CONNECT'
Are you sure in your example with authorization?
I thing this option "noauth" is uncorrect in this case.
 

APV_Ion

Member
Apr 2, 2011
10
0
0
Are you sure in your example with authorization?
I thing this option "noauth" is uncorrect in this case.
Or what i'm doing wrong?
1. I had switched 3G modem to modem mode by (echo -e "AT^U2DIAG=0\r" > /dev/ttyUSB0) command.
2. Then i placed all files fom 3G USB.rar to:
/system/bin/Chat
sdcard/gscript/ppp-start.sh
sdcard/gscript/ppp-stop.sh
/systme/etc/ppp/peers/megafon
 

hga89

Senior Member
Jan 4, 2011
341
38
0
Has anyone gotten Huawei E220 modem to work under Cyanogenmod using Russian Beast's instructions?

First, I apologize for my bad English:)
(I would be grateful if you correct my language mistakes)

Managed to tie USB 3G-modem huaweu e1550/1750 from Russian operator Megaphone!
(firmware VEGAn 5, but I think it fits to the other)!


1. Turning off the modem ZERO_CD via Hyper Terminal (if running Windows)

AT ^ U2DIAG = 0 (device-only modem)
Detail to paint it will not - the network is complete instructions for this.

2. Turning off at the SIM-card control of PIN-code.

3. Set command CHAT (from the archive) you need to throw in a folder /system/bin/ or using RootExplorer

adb push chat/system/bin/
Expose the full rights rwxrwxrwx

4. We need to install GScript Lite
Create a folder on gscript sdcard and throw it in the 2 scripts and ppp-start ppp-stop (from archive)

5. The script for the Megaphone megafon (from archive) - for your ISP to change by analogy
respectively, placing megafon file in the folder/system/etc/ppp/peers, if such a folder does not exist, create it using either RootExplorer, or through the ADB

adb shell mkdir/system/etc/ppp/peers
adb push mts/system/etc/ppp/peers

If you have another provider, you must replace this line:
connect 'chat "" AT OK ATDT*99# CONNECT'
(*99# - number to dial to your ISP)
Also, you might need to add the following lines (front lines connect 'chat "" AT OK ATDT*99# CONNECT'):
user username
password ***
where "username" - the username to authenticate with your ISP
*** - The password to authenticate with your ISP

Example file Megafon without authorization:
ttyUSB0
460800
crtscts
defaultroute
modem
noauth
noipdefault
persist
updetach
usepeerdns
connect 'chat "" AT OK ATDT*99# CONNECT'

Example file MTS with authorization:
ttyUSB0
460800
crtscts
defaultroute
modem
noauth
noipdefault
persist
updetach
usepeerdns
user mts
password mts
connect 'chat "" AT OK ATDT*99# CONNECT'

6. Insert the modem into the USB, go into Gscript, starting ppp-start and we are on the Internet (the LED on the modem continuously lit in blue).
ppp-stop, respectively, terminates the session.

P.S. APN settings is not needed.
If there is time later to make update.zip ClockWork mod. If someone has done it before, I'll be very happy:)
 

APV_Ion

Member
Apr 2, 2011
10
0
0
I think there is no difference which ROM u have use 'cause those scripts from 3G_modem.rar are based on linux/android core scripting, but i might be wrong.
 

Russian Beast

Member
Jan 9, 2011
24
8
0
Or what i'm doing wrong?
1. I had switched 3G modem to modem mode by (echo -e "AT^U2DIAG=0\r" > /dev/ttyUSB0) command.
2. Then i placed all files fom 3G USB.rar to:
/system/bin/Chat
sdcard/gscript/ppp-start.sh
sdcard/gscript/ppp-stop.sh
/systme/etc/ppp/peers/megafon
Chat have full rights? (rwxrwxrwx)
What messages are displayed when running a script?
 

shakshak1

Member
Mar 12, 2011
19
3
0
I would like to thank you for this important post.
I tried all the step and got nothing (after a loop of waiting ttyUSB0).
I don't know if there is anything else to be done!
Appreciate your support,
Rgds.

NB: I have VEGAn.1.00.beta5.11 installed, CHAT has full permission
 
Last edited:

Russian Beast

Member
Jan 9, 2011
24
8
0
check your file / systme / etc / apns-сonf.hml
If there are no settings of your cell provider, add them manually
I have the following lines:

- <!-- Russia
-->
<apn carrier="BeeLine" mcc="250" mnc="99" apn="internet.beeline.ru" user="" server="" password="" mmsc="null" type="default" />
<apn carrier="BeeLine" mcc="250" mnc="28" apn="internet.beeline.ru" user="" server="" password="" mmsc="null" type="default" />
<apn carrier="Megafon" mcc="250" mnc="02" apn="internet" user="" server="" password="" mmsc="null" type="default" />
<apn carrier="MTS" mcc="250" mnc="01" apn="internet.mts.ru" user="" server="" password="" mmsc="null" type="default" />



Also^
connect 'chat "" AT OK ATDT*99# CONNECT'

"*99#" - this number provider, over which the dial. Perhaps in your case there must be other character

Field user and passvord replaced in accordance with the requirements of your cell provider?
 
Last edited:

APV_Ion

Member
Apr 2, 2011
10
0
0
check your file / systme / etc / apns-сonf.hml

Also^
connect 'chat "" AT OK ATDT*99# CONNECT'

"*99#" - this number provider, over which the dial. Perhaps in your case there must be other character

Field user and passvord replaced in accordance with the requirements of your cell provider?
My cell provider is MTS so defualt configs are suitable for me.
 
Last edited:

shakshak1

Member
Mar 12, 2011
19
3
0
Something is missing

I tried all the steps and got nothing?
I don't know if the gtab sense the USB modem or no?
I think the script needs debugging to know exactly where it is interrupted and can show error messages?
Pls advise