Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,988 Members 54,607 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] USB 3g for a500 wifi only

Tip us?
 
thor2002ro
Old
(Last edited by thor2002ro; 1st May 2011 at 07:00 PM.)
#1  
thor2002ro's Avatar
Senior Member - OP
Thanks Meter 518
Posts: 717
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
Default [DEV] USB 3g for a500 wifi only

3g kernel module found here http://forum.xda-developers.com/show....php?t=1058713

ok i got 3g to work but small problem... internet works in console and in browser... any other app doesnt see the internet... I'm a linux kind of guy so maybe I'm missing something on the android part...

How to:
Code:
disable ZERO_CD on the 3g modem

put the modules from my other post in the root of /sdcard
put chat,ppp-start.sh,ppp-stop.sh in /system/xbin and give them execution permissions
go into /etc/ppp and make a directory "peers" 
put 3g in the peers dir you just created
in console type: 
su <enter>
ppp-start.sh <enter>

and done you should see the ppp0 interface

PS: ttyUSB2 may need to be modified in 3g file depending on your modem...
Attached Files
File Type: rar 3g-dial.rar - [Click for QR Code] (9.5 KB, 8053 views)
_________________________
Dropbox! So useful for sharing files among multiple computers and ANDROID Phone get 2.30GB storage -> LINK

Samsung Galaxy Note - [glow=red]Drowned[/glow]

Samsung Galaxy Note 2(EMMC FRIED THX SAMSUNG FOR THE GREAT EMMC FW.... ALSO NOTE TO SELF KERNEL FW PATCH ... USELESS!!!)
FW: Tegraowners JB ROM
Kernel: thor-kernel

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners 4.4.4 ROM
Recovery: touch recovery 2.0b1

Asus Google Nexus 7 Wifi
FW: Tegraowners JB-MR2 ROM
The Following 13 Users Say Thank You to thor2002ro For This Useful Post: [ Click to Expand ]
 
thor2002ro
Old
#2  
thor2002ro's Avatar
Senior Member - OP
Thanks Meter 518
Posts: 717
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
added the archive i forgot to add sorry
_________________________
Dropbox! So useful for sharing files among multiple computers and ANDROID Phone get 2.30GB storage -> LINK

Samsung Galaxy Note - [glow=red]Drowned[/glow]

Samsung Galaxy Note 2(EMMC FRIED THX SAMSUNG FOR THE GREAT EMMC FW.... ALSO NOTE TO SELF KERNEL FW PATCH ... USELESS!!!)
FW: Tegraowners JB ROM
Kernel: thor-kernel

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners 4.4.4 ROM
Recovery: touch recovery 2.0b1

Asus Google Nexus 7 Wifi
FW: Tegraowners JB-MR2 ROM
 
seraphimserapis
Old
#3  
seraphimserapis's Avatar
Senior Member
Thanks Meter 419
Posts: 357
Join Date: May 2009
Location: Berlin

 
DONATE TO ME
Nice work :)
Glad to have a skilled developer here

Sent from my A500 using Tapatalk
Galaxy Nexus
Samsung Galaxy Note
LG G-Slate
Samsung Galaxy Tab 10.1N

Buy me a beer for rooting the Motorola Milestone or Galaxy TAB!

Twitter: @SeraAndroid
 
julz
Old
#4  
Senior Member
Thanks Meter 112
Posts: 350
Join Date: Mar 2007
Hi all, sorry for the noob question but how can I find out what 'ttyUSB2' should be changed to for my USB modem? I've got a Sierra Wireless USB 308 3G modem.

Cheers,

Julian

--==SONY XPERIA Z ULTRA FAN SITE==--
Current devices: Sony Xperia Z Ultra, Sony SmartWatch 2, HTC Sensation
Most recent past devices: HTC One X, Samsung Nexus S, HTC Magic
 
dju
Old
#5  
dju's Avatar
Junior Member
Thanks Meter 1
Posts: 16
Join Date: Nov 2005
Location: paris
some usefull values working for me in an other linux
SFR with HUAWEI E160E HSPDA Usb Stick

voyage:~# cat /etc/ppp/peers/sfr
# This optionfile was generated by pppconfig 2.3.2.
#
#
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/sfr.chatscript"
debug
#nodetach
/dev/ttyUSB0
#9600
#mtu 1452
defaultroute
noipdefault
# ipcp-accept-local
# ipcp-accept-remote
#user any
#password any
# remotename orange
# ipparam orange
usepeerdns
# novj
# xonxoff
# noccp
# asyncmap 0
# proxyarp

voyage:~# cat /etc/chatscripts/sfr.chatscript
# This chatfile was generated by pppconfig 2.3.2.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth chat
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIALTONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
OK-AT-OK 'AT+CGDCONT=1,"IP","websfr"'
#OK-AT-OK 'AT+CGEQREQ=3,3,64,384,0,0,2,0,"0E0","0E0",3,0,0'
#OK-AT-OK 'AT+CGATT?'
OK-AT-OK 'ATD*99***1#'
---
Nexus One CM7 / Acer a500 / Galaxy Note Asylum CM10.1 Nightlies / Galaxy Note 3 9005
dju
 
chrisvane
Old
#6  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Apr 2011
Anyone know how to disable zero cd on a ZTE MF112 the regular zte AT commands don't seem to work?
 
thor2002ro
Old
#7  
thor2002ro's Avatar
Senior Member - OP
Thanks Meter 518
Posts: 717
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
Quote:
Originally Posted by chrisvane View Post
Anyone know how to disable zero cd on a ZTE MF112 the regular zte AT commands don't seem to work?
zerocd on MF112 is disabled with AT+ZCDRUN=8
reenable zerocd with AT+ZCDRUN=9
_________________________
Dropbox! So useful for sharing files among multiple computers and ANDROID Phone get 2.30GB storage -> LINK

Samsung Galaxy Note - [glow=red]Drowned[/glow]

Samsung Galaxy Note 2(EMMC FRIED THX SAMSUNG FOR THE GREAT EMMC FW.... ALSO NOTE TO SELF KERNEL FW PATCH ... USELESS!!!)
FW: Tegraowners JB ROM
Kernel: thor-kernel

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners 4.4.4 ROM
Recovery: touch recovery 2.0b1

Asus Google Nexus 7 Wifi
FW: Tegraowners JB-MR2 ROM
The Following User Says Thank You to thor2002ro For This Useful Post: [ Click to Expand ]
 
chrisvane
Old
#8  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Apr 2011
Quote:
Originally Posted by thor2002ro View Post
zerocd on MF112 is disabled with AT+ZCDRUN=8
reenable zerocd with AT+ZCDRUN=9
Cheers,
That's what I thought it was but for some reason i was getting an error. I must've mistyped as it worked first time today doh!!
Brilliant fix incidentally my Iconia is now 3G when needed!
 
thor2002ro
Old
#9  
thor2002ro's Avatar
Senior Member - OP
Thanks Meter 518
Posts: 717
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
found some a nice ril script in /system/etc/init.goldfish.sh but little scared without recovery don't wanna mess it up...
_________________________
Dropbox! So useful for sharing files among multiple computers and ANDROID Phone get 2.30GB storage -> LINK

Samsung Galaxy Note - [glow=red]Drowned[/glow]

Samsung Galaxy Note 2(EMMC FRIED THX SAMSUNG FOR THE GREAT EMMC FW.... ALSO NOTE TO SELF KERNEL FW PATCH ... USELESS!!!)
FW: Tegraowners JB ROM
Kernel: thor-kernel

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners 4.4.4 ROM
Recovery: touch recovery 2.0b1

Asus Google Nexus 7 Wifi
FW: Tegraowners JB-MR2 ROM
 
hhairplane
Old
#10  
Senior Member
Thanks Meter 20
Posts: 224
Join Date: May 2011
Default Does this require Root?

This seems like a function that could require root, also does this work with any carriers or just certain carriers.

Amazing idea and cannot wait to see how it plays out. It would be really cool if eventually an app was made for this, unlocking this feature. Good job.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes