dragoip / 0xdroid

Automatically exported from code.google.com/p/0xdroid
0 stars 0 forks source link

use 3.5G data card in Android #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
in Android x86, they provide to use 3.5G data card in EeePC. They can use it 
to browse internet and receive SMS.
http://cwhuang.info/2010/03/android-x86-3g-support
Verify it with a Quanta q101 data card in beagle board and devit8000.

Original issue reported on code.google.com by erinyueh on 1 Apr 2010 at 6:33

GoogleCodeExporter commented 9 years ago
i met this problem as below today, dont know why it cannot get APN. it can get 
the 
signal strength normally from 3.5G data card. But not connect with Android. I 
also 
verified it with beagle-donut branch, still same error. 

D/GSM     (  809): [GsmDataConnectionTracker] No APN found for carrier: 46697
D/GSM     (  809): [GsmDataConnectionTracker] setState: FAILED
D/GSM     (  809): [GsmDataConnectionTracker] Clean up connection due to null
D/GSM     (  809): [GsmDataConnectionTracker] setState: DISCONNECTING
D/GSM     (  809): [PdpConnection] DataConnection.clearSettings()
D/GSM     (  809): [DataConnection] Stop poll NetStat
D/GSM     (  809): [GsmDataConnectionTracker] setState: IDLE
D/GSM     (  809): [GsmDataConnectionTracker] ***trySetupData due to simLoaded
D/GSM     (  809): [DSAC DEB] trySetupData with mIsPsRestricted=false
D/GSM     (  809): [GsmDataConnectionTracker] trySetupData: Not ready for data: 

dataState=IDLE gprsState=1 sim=true UMTS=false phoneState=IDLE dataEnabled=true 
roaming=false dataOnRoamingEnable=false ps restricted=false 
desiredPowerState=true
D/RILJ    (  809): WAKE_LOCK_TIMEOUT  mReqPending=0 mRequestList=1
D/RILJ    (  809): 0: [16] SET_NETWORK_SELECTION_AUTOMATIC
/RILJ    (  809): [0051]> SIGNAL_STRENGTH
D/RIL     ( 1078): onRequest: SIGNAL_STRENGTH
D/AT      ( 1078): AT> AT+CSQ
D/AT      ( 1078): AT< +CSQ: 13,99
D/AT      ( 1078): AT< OK
D/RILJ    (  809): [0051]< SIGNAL_STRENGTH {13, 99, 0, 0, 0, 0, 0}

Original comment by erinyueh on 2 Apr 2010 at 11:32

GoogleCodeExporter commented 9 years ago
after applying two patches from aurora, it can get network signal and display 
network 
operator in UI screen.

https://www.codeaurora.org/gitweb/quic/la/?
p=platform/frameworks/base.git;a=commit;h=7d27669631a19dc2242de7d62608d276bb79d5
cb
https://www.codeaurora.org/gitweb/quic/la/?
p=platform/frameworks/base.git;a=commit;h=f90fb1ecbadf452756367e8422b97286453574
21

but still no 3.5G network, keep working...

Original comment by erinyueh on 16 Apr 2010 at 8:12

GoogleCodeExporter commented 9 years ago
* beagle-eclair-0x4 Release Reminder *

Original comment by jserv.tw@gmail.com on 21 Apr 2010 at 6:30

GoogleCodeExporter commented 9 years ago
About 3.5G network, we need to check some support in Kernel, like PPP and 
USB_SERIAL_OPTIONS (for GSM modem). 
i can use data card to browse Internet and send SMS message.

Original comment by erinyueh on 21 Apr 2010 at 8:10

GoogleCodeExporter commented 9 years ago
I applied some patches from Android-x86 and modified few lines for 3G modem 
data card 
from TWN GSM. 

1. external/ppp
http://gitorious.org/0xdroid/external_ppp/commit/6624b6760d8fde02993f3a3f02df3ec
9db73
9e41
2. framework/base
http://gitorious.org/0xdroid/frameworks_base/commits/beagle-eclair
3. hardware/ril
http://gitorious.org/0xdroid/hardware_ril/commit/ee75708cc786531c853e9ec7ffc28dd
03658
4f5b
4. system/core
http://gitorious.org/0xdroid/system_core/commit/81b121623c3f05298b5166d03714655d
1ab2d
df8
5. vendor/0xlab/devkit8k
http://gitorious.org/0xdroid/vendor_0xlab/commit/e5a24f738bfe0f43c45af54b5611413
8870a
e908

Original comment by erinyueh on 22 Apr 2010 at 9:48

GoogleCodeExporter commented 9 years ago

Original comment by erinyueh on 25 Apr 2010 at 12:01

GoogleCodeExporter commented 9 years ago
Add some features in Kernel 
erin@midnight:~/work/eclair/beagle-eclair/kernel$ cat .config | grep PPP
CONFIG_PPP=y
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_FILTER is not set
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
# CONFIG_PPP_DEFLATE is not set
# CONFIG_PPP_BSDCOMP is not set
# CONFIG_PPP_MPPE is not set
CONFIG_PPPOE=y
CONFIG_PPPOL2TP=y
# CONFIG_PPPOLAC is not set
# CONFIG_PPPOPNS is not set

erin@midnight:~/work/eclair/beagle-eclair/kernel$ cat .config | grep USB_SERIAL
CONFIG_USB_SERIAL=y
# CONFIG_USB_SERIAL_CONSOLE is not set
# CONFIG_USB_SERIAL_GENERIC is not set
# CONFIG_USB_SERIAL_AIRCABLE is not set
# CONFIG_USB_SERIAL_ARK3116 is not set
# CONFIG_USB_SERIAL_BELKIN is not set
# CONFIG_USB_SERIAL_CH341 is not set
# CONFIG_USB_SERIAL_WHITEHEAT is not set
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
# CONFIG_USB_SERIAL_CP2101 is not set
# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
# CONFIG_USB_SERIAL_EMPEG is not set
# CONFIG_USB_SERIAL_FTDI_SIO is not set
# CONFIG_USB_SERIAL_FUNSOFT is not set
# CONFIG_USB_SERIAL_VISOR is not set
# CONFIG_USB_SERIAL_IPAQ is not set
# CONFIG_USB_SERIAL_IR is not set
# CONFIG_USB_SERIAL_EDGEPORT is not set
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
# CONFIG_USB_SERIAL_GARMIN is not set
# CONFIG_USB_SERIAL_IPW is not set
# CONFIG_USB_SERIAL_IUU is not set
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
# CONFIG_USB_SERIAL_KEYSPAN is not set
# CONFIG_USB_SERIAL_KLSI is not set
# CONFIG_USB_SERIAL_KOBIL_SCT is not set
# CONFIG_USB_SERIAL_MCT_U232 is not set
# CONFIG_USB_SERIAL_MOS7720 is not set
# CONFIG_USB_SERIAL_MOS7840 is not set
# CONFIG_USB_SERIAL_MOTOROLA is not set
# CONFIG_USB_SERIAL_NAVMAN is not set
# CONFIG_USB_SERIAL_PL2303 is not set
# CONFIG_USB_SERIAL_OTI6858 is not set
# CONFIG_USB_SERIAL_SPCP8X5 is not set
# CONFIG_USB_SERIAL_HP4X is not set
# CONFIG_USB_SERIAL_SAFE is not set
# CONFIG_USB_SERIAL_SIEMENS_MPI is not set
# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set
# CONFIG_USB_SERIAL_TI is not set
# CONFIG_USB_SERIAL_CYBERJACK is not set
# CONFIG_USB_SERIAL_XIRCOM is not set
CONFIG_USB_SERIAL_OPTION=y
# CONFIG_USB_SERIAL_OMNINET is not set
# CONFIG_USB_SERIAL_OPTICON is not set
# CONFIG_USB_SERIAL_DEBUG is not set

Original comment by erinyueh on 30 Apr 2010 at 8:36

GoogleCodeExporter commented 9 years ago
# see USB_STORAGE Help for more information
CONFIG_USB_STORAGE=y

Original comment by erinyueh on 30 Apr 2010 at 8:39

GoogleCodeExporter commented 9 years ago
Hi erin,

 I configured the kernel like what you had done, but when I plugged the HuaWei e220 
3G USB modem into the usb host, there isn't any responce at all, the modem 
wasn't 
even enumerated. I think maybe the usb host really sucks very so I plugged it 
into 
the usb host cable connected out from usb device port of devkit8k, this time 
the 
board recoginzed the modem, but no /dev/ttyUSB* was created. 

  Should I use udev or something others to do the extra things to make the modem 
work?

  Btw, do we have a modem UI on eclair available now?

Great thanks,
Michael

Original comment by michael.leo.wang2010 on 30 Apr 2010 at 9:21

GoogleCodeExporter commented 9 years ago
Hi Michael, 

Actually, I only use this Quanta q101 modem card and not sure about other 
cards. How
about you try this HuaWei e220 modem card in your working machine first? then 
check
dmesg, whether it appears few ports or not. If it appears to /dev/ttyUSB* 
ports, then
you plug-in to the Beagle board. Also, you will need a USB hub and it's using 
power
charger.

Original comment by erinyueh on 30 Apr 2010 at 10:07

GoogleCodeExporter commented 9 years ago
Hi erin,

  Thanks a lot!

  I will have a test.

  BTW, have a good holiday!

Br,
Michael

Original comment by michael.leo.wang2010 on 30 Apr 2010 at 10:25

GoogleCodeExporter commented 9 years ago
Hi erin,

Are you using the usb device plus usb hub or the usb host in the devkit8k or 
beagle 
board for the 3G modem?

Could you show the final ppp and usb configuration here again?

Thanks,
Michael

Original comment by michael.leo.wang2010 on 5 May 2010 at 9:03

GoogleCodeExporter commented 9 years ago
I am using a USB hub in devkit8k. When I plug-in Quanta q101 data card to usb 
hub, it 
would appear 4 devices in kernel. /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2, 
/dev/ttyUSB3

/dev/ttyUSB0 is for ppp, /dev/ttyUSB2 is for RIL. 

ppp script is here
http://gitorious.org/0xdroid/system_core/commit/81b121623c3f05298b5166d03714655d
1ab2d

Original comment by erinyueh on 5 May 2010 at 9:16

GoogleCodeExporter commented 9 years ago
Hi erin,

  I modified the kernel and platform as described in the thread, and now when I plug
in the modem, ttyUSB0 and ttyUSB1 could be created, but not ttyUSB2.

  Well there is not a file called system.prop, and I found those lines are in file
/system/build.prop, and I modified the rild related lines there. I don't know 
if it
is right doing so?

Thanks,
Michael Wang

Original comment by michael.leo.wang2010 on 11 May 2010 at 8:39

GoogleCodeExporter commented 9 years ago
Hi Machael, 

About USB devices numbers depends on ur modem card. For my quanta q101 is 4 
ports. You 
may check your modem card configuration first. 

yup, system.prop is fine. 

Original comment by erinyueh on 11 May 2010 at 9:55

GoogleCodeExporter commented 9 years ago
Dear erin,

  When I plug in the 3G modem in Ubuntu, there are also the two nodes -- ttyUSB0,
ttyUSB1 -- created. And then I can switch network to the 3G net and it works 
fine.

  The log below shows the info when I plug in the modem:

michael@ubuntu:~/git/loader$ dmesg | tail
[249509.008852] usb 2-1: USB disconnect, address 5
[249511.741204] usb 2-1: new full speed USB device using uhci_hcd and address 6
[249511.972110] usb 2-1: configuration #1 chosen from 1 choice
[249512.116327] option 2-1:1.0: GSM modem (1-port) converter detected
[249512.116387] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[249512.133977] option 2-1:1.1: GSM modem (1-port) converter detected
[249512.133977] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[249512.173006] scsi85 : SCSI emulation for USB Mass Storage devices
[249512.173104] usb-storage: device found at 6
[249512.173105] usb-storage: waiting for device to settle before scanning
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ dmesg | tail
[249512.133977] option 2-1:1.1: GSM modem (1-port) converter detected
[249512.133977] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[249512.173006] scsi85 : SCSI emulation for USB Mass Storage devices
[249512.173104] usb-storage: device found at 6
[249512.173105] usb-storage: waiting for device to settle before scanning
[249517.176142] usb-storage: device scan complete
[249517.188474] scsi 85:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 
PQ: 0
ANSI: 2
[249517.383743] sr1: scsi-1 drive
[249517.383865] sr 85:0:0:0: Attached scsi CD-ROM sr1
[249517.383921] sr 85:0:0:0: Attached scsi generic sg3 type 5
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ dmesg | tail
[249512.133977] option 2-1:1.1: GSM modem (1-port) converter detected
[249512.133977] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[249512.173006] scsi85 : SCSI emulation for USB Mass Storage devices
[249512.173104] usb-storage: device found at 6
[249512.173105] usb-storage: waiting for device to settle before scanning
[249517.176142] usb-storage: device scan complete
[249517.188474] scsi 85:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 
PQ: 0
ANSI: 2
[249517.383743] sr1: scsi-1 drive
[249517.383865] sr 85:0:0:0: Attached scsi CD-ROM sr1
[249517.383921] sr 85:0:0:0: Attached scsi generic sg3 type 5
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ 
michael@ubuntu:~/git/loader$ lsusb
Bus 002 Device 006: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem 
/
E270 HSDPA/HSUPA Modem
Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 081: ID 18d1:0002  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
michael@ubuntu:~/git/loader$ ls

  Now when I plug it in the devkit8k board, also the two nodes -- ttyUSB0, ttyUSB1 --
are created. Is it enough for me to use the modem to surf the net and 
send/recieve
text messages?

  If it is not good enough, what should I do to make the modem run properly here?
I mean use it to surf and SMS.

Thanks,
Michael Wang

Original comment by michael.leo.wang2010 on 13 May 2010 at 6:21

GoogleCodeExporter commented 9 years ago
Dear Erin,

  Now after I restart rild(using ttyUSB0) and run "pppd call gprs", the signal
strength shows well and I can send text out, but it can't recieve text yet and 
can't
surf the net also.

  What should I do to make it be able to recieve text and surf the net?

  Should I use ttyUSB1 for being able to surfing the net?

  BTW, run "pppd call gprs" didn't fini well and the modem didn't be connected
showing log as below:

/sys/devices/platform/ehci-omap.0/usb1/1-1/1-1.3/1-1.3:1.1 # pppd call gprs
timeout set to 15 seconds
abort on (DELAYED)
abort on (BUSY)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (NO CARRIER)
timeout set to 40 seconds
send (^MAT^M)
expect (OK)
E/browser ( 1923): onReceivedError -2
http://www.google.com/m?client=ms-android-google&source=android-home The URL 
could
not be found.
W/InputManagerService(  858): Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@43d23190 (uid=10013 
pid=1923)
D/SearchDialog(  858): launching Intent { act=android.intent.action.VIEW
dat=http://www.google.com/ flg=0x10000000 
cmp=com.android.browser/.BrowserActivity
(has extras) }
I/SearchDialog(  858): Starting (as ourselves)
http://www.google.com/#Intent;action=android.intent.action.VIEW;launchFlags=0x10
000000;component=com.android.browser/.BrowserActivity;S.query=http%3A%2F%2Fwww.g
oogle.com%2F;S.user_query=;end
I/ActivityManager(  858): Starting activity: Intent { 
act=android.intent.action.VIEW
dat=http://www.google.com/ flg=0x10000000 
cmp=com.android.browser/.BrowserActivity
(has extras) }
E/browser ( 1923): onReceivedError -2 http://www.google.com/ The URL could not 
be found.
alarm
Failed
E/pppd    ( 2708): Connect script failed
/sys/devices/platform/ehci-omap.0/usb1/1-1/1-1.3/1-1.3:1.1 # 

Thanks,
Michael

Original comment by michael.leo.wang2010 on 13 May 2010 at 8:07

GoogleCodeExporter commented 9 years ago
To make this issue tracked transparently, should we re-open this issue?

Original comment by jserv.tw@gmail.com on 13 May 2010 at 8:48

GoogleCodeExporter commented 9 years ago
hi,

  It is surely OK for me!

  Thank you guys very much!

Br,
Michael

Original comment by michael.leo.wang2010 on 13 May 2010 at 9:03

GoogleCodeExporter commented 9 years ago
hi guys,

  Now I use ttyUSB1 for both pppd and rild, and I can send and receive text messages
well.

  One thing I still can't do is to surf the internet using 3G modem.

  Does someone have any suggestions?

Thanks,
Michael Wang

Original comment by michael.leo.wang2010 on 14 May 2010 at 3:07

GoogleCodeExporter commented 9 years ago
Use pppd script to get the network. Have you tried to use your modem card in a 
Ubuntu machine? try it first, then you will know the procedure. Also, you 
should 
know what AT commands to send for your GSM network operator.

Original comment by erinyueh on 14 May 2010 at 10:04

GoogleCodeExporter commented 9 years ago
I am trying to get a USB 3.5G model working on devkit8000, but it still not 
working.
I am working this version 
"http://downloads.0xlab.org/release/devkit8k-eclair-0x4/".
I am not sure I shall follow which steps in this discussing loop. Canc anyone 
guide me? thanks!

Dennis

Original comment by sinocgtc...@gmail.com on 21 Jun 2010 at 6:16

GoogleCodeExporter commented 9 years ago
Hi Dennis, 

Can you see your modem in Devkit8000? If yes, make sure the device port is 
correct. You could read my blog for reference. 
http://i-miss-erin.blogspot.com/2010/04/use-3g-modem-data-card-in-android.html

Original comment by erinyueh on 22 Jun 2010 at 7:21

GoogleCodeExporter commented 9 years ago
Hi Erin,

Thanks, I will check your blog. I list my console message as below. 

 :
 :
BIFS:   recovery    needed

UBIFS:  recovery    completed

UBIFS:  mounted UBI device  0,  volume  0,  name    "rootfs"

UBIFS:  file    system  size:   253145088   bytes   (247212 KiB,    241 MiB,    1962    LEBs)

UBIFS:  journal size:   9033728 bytes   (8822   KiB,    8   MiB,    71  LEBs)

UBIFS:  media   format: 4   (latest is  4)

UBIFS:  default compressor: lzo

UBIFS:  reserved    for root:   0   bytes   (0  KiB)

VFS:    Mounted root    (ubifs  filesystem) on  device  253:1.

Freeing init    memory: 148K

#   enabling    adb

adb_open

warning:    `rild'  uses    32-bit  capabilities    (legacy support in  use)

eth0:   link    down

usb 1-1:    new high    speed   USB device  using   ehci-omap   and address 2

usb 1-1:    New USB device  found,  idVendor=19d2,  idProduct=2000

usb 1-1:    New USB device  strings:    Mfr=2,  Product=1,  SerialNumber=3

usb 1-1:    Product:    ZTE WCDMA   Technologies    MSM

usb 1-1:    Manufacturer:   ZTE,Incorporated

usb 1-1:    SerialNumber:   1234567890ABCDEF

usb 1-1:    configuration   #1  chosen  from    1   choice

scsi0   :   SCSI    emulation   for USB Mass    Storage devices

scsi    0:0:0:0:    CD-ROM  ZTE USB SCSI    CD-ROM  2.31    PQ: 0   ANSI:   2

---------------------------------------------------------

From the messages, the system detected extra a device CD ROM. I also tried to 
plug this 3g dongle into my PC Ubuntu system, it detected extra CD ROM too, but 
I eject this CD ROM, the 3G data connection is working well. did you have any 
ideas for this?

Original comment by sinocgtc...@gmail.com on 22 Jun 2010 at 10:55

GoogleCodeExporter commented 9 years ago
i have no idea about your hardware, how it comes with a CD ROM? just a virtual 
one? I was using a Quanta q101 3G data card, it would appear like a USB storage 
device, not modem. i have to write '1' to a file. then it becomes a modem 
device.

Original comment by erinyueh on 23 Jun 2010 at 9:45

GoogleCodeExporter commented 9 years ago
Hi, 

Thank you for all of your previous hints and comments, they have really helped 
me. However, I am now facing this problem where pppd is unable to open the 
/dev/ppp device. It's asking me to use mknod /dev/ppp c 108 0 to create this 
node. Do you have idea of how this happens and any solution to this problem? 
Thanks a lot.

BR
DK

Original comment by shallowr...@gmail.com on 16 Jul 2010 at 7:24

GoogleCodeExporter commented 9 years ago
Hi DK, 

I met the similar problem in the beginning. You probably forgot to ENABLE ppp 
in Android kernel. Enable PPP from kernel config, use new kernel image, it 
would register a /dev/ppp device when you boot the device.

Original comment by erinyueh on 16 Jul 2010 at 7:30

GoogleCodeExporter commented 9 years ago
Hey Erin,

Thank you for your swift response. I have checked my kernel config file, and 
CONFIG_PPP is enabled just like in your settings. Do you know any other cause 
that might lead to this problem? Thank you very much.

BR
DK

Original comment by shallowr...@gmail.com on 16 Jul 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Hi DK, 
you enable those 5 config for PPP, right? can you see ppp device?
# adb shell ls -l /dev/ppp
crw-rw---- radio vpn 108, 0 2010-04-27 15:36 ppp

Original comment by erinyueh on 16 Jul 2010 at 9:58

GoogleCodeExporter commented 9 years ago
Hey Erin,

Yeah, I enabled all 5 settings, but it still says no such file or directory.

BR
DK

Original comment by shallowr...@gmail.com on 16 Jul 2010 at 10:42

GoogleCodeExporter commented 9 years ago
Hi DK, 
umm....i dont know why you cannot see /dev/ppp device either, since it works 
for me on Android emulator, Qualcomm platform, and Devkit 8000. Have you tried 
other Android device?

Original comment by erinyueh on 19 Jul 2010 at 2:30

GoogleCodeExporter commented 9 years ago
Hi Erin,
  I met the some problems for the ppp. When it started, I got the message:
......
[    2.613035] usb 1-1: configuration #1 chosen from 1 choice
[    2.624587] usb-storage: probe of 1-1:1.0 failed with error -5
[    2.624871] option 1-1:1.0: GSM modem (1-port) converter detected
[    2.637284] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[    2.651132] usb-storage: probe of 1-1:1.1 failed with error -5
[    2.651426] option 1-1:1.1: GSM modem (1-port) converter detected
[    2.663976] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[    2.674602] usb-storage: probe of 1-1:1.2 failed with error -5
[    2.674896] option 1-1:1.2: GSM modem (1-port) converter detected
[    2.686562] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[    2.697432] usb-storage: probe of 1-1:1.3 failed with error -5
[    2.697725] option 1-1:1.3: GSM modem (1-port) converter detected
[    2.710824] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
......

then use pppd script to get the network, I got:
......
I/GSM     ( 2013): Preferred APN:46002:46002:CMCC, 4, 46002, cmnet, null, null, 
null, null, null, -1, *
I/GSM     ( 2013): Waiting APN set to preferred APN
D/GSM     ( 2013): [GsmDataConnectionTracker] Create from allApns : [CMCC, 4, 
46002, cmnet, null, null, null, null, null, -1, *][CHINA MOBILE, 6, 46002, 
cmnet, null, null, null, nul]
D/GSM     ( 2013): [GsmDataConnectionTracker] Setup waitngApns : [CMCC, 4, 
46002, cmnet, null, null, null, null, null, -1, *]
D/GSM     ( 2013): [PdpConnection] DataConnection.getState()
D/GSM     ( 2013): [GsmDataConnectionTracker] setState: INITING
D/GSM     ( 2013): [PdpConnection] Connecting to carrier: 'CMCC' APN: 'cmnet' 
proxy: 'null' port: 'null
D/RILJ    ( 2013): [0047]> SETUP_DATA_CALL 1 0 cmnet * * 3
D/RIL     ( 1929): onRequest: SETUP_DATA_CALL
D/RIL     ( 1929): requesting data connection to APN 'cmnet'
D/RIL     ( 1929): ........try to use pppd call gprs.......
D/RILJ    ( 2013): [0047]< SETUP_DATA_CALL {1, /dev/ppp0}
D/GSM     ( 2013): [PdpConnection] DataConnection.handleMessage()
D/GSM     ( 2013): [PdpConnection] Notify PDP success at 1282028527101
D/GSM     ( 2013): [PdpConnection] PDP setup on cid = 1
D/GSM     ( 2013): GSMDataConnTrack handleMessage { what=1 when=147885 arg1=1 
obj=android.os.AsyncResult@43c65d88 }
D/GSM     ( 2013): [GsmDataConnectionTracker] setState: CONNECTED
D/GSM     ( 2013): [DataConnection] Start poll NetStat
D/RILJ    ( 2013): [0048]> SIGNAL_STRENGTH
D/RIL     ( 1929): onRequest: SIGNAL_STRENGTH
D/AT      ( 1929): AT< +CSQ: 31,99
D/AT      ( 1929): AT< OK
D/RILJ    ( 2013): [0049]< SIGNAL_STRENGTH {31, 99, 0, 0, 0, 0, 0}
OK
 -- got it

send (ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0^M)
expect (OK)
^M
ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0^M^M
OK
 -- got it

send (AT+CGDCONT=1,"IP","cmnet"^M)
expect (OK)
^M
^M
OK
 -- got it

send (ATDT*99#^M)
expect (CONNECT)
^M
^M
CONNECT
 -- got it

send (^M)
D/AT      ( 1929): AT< ^BOOT:20287153,0,0,0,29
......

But I didn't surf the net. I have no idea. Do you have any suggestion? Thank 
you very much!

Original comment by huanyufe...@gmail.com on 17 Aug 2010 at 3:57

GoogleCodeExporter commented 9 years ago
Reply to comment#32
when you run pppd script, it would create ppp connection automatically. If you 
don't want to surf the internet, just dont run pppd script. Or you want to surf 
internet? then you could try 'netcfg'. can you see ppp0? if you cannot see it, 
then it means the pppd script is failed.

#netcfg
ppp0     UP    115.82.23.238   255.255.255.255 0x000010d1

Original comment by erinyueh on 17 Aug 2010 at 4:13

GoogleCodeExporter commented 9 years ago
Thank you! 
Erin, I had get the ppp0.
......
/ # netcfg
lo       UP    127.0.0.1       255.0.0.0       0x00000049
eth0     DOWN  0.0.0.0         0.0.0.0         0x00001002
ppp0     UP    10.134.76.60    255.255.255.255 0x000010d1
......
But I also didn't surf the internet. Why?

Original comment by huanyufe...@gmail.com on 17 Aug 2010 at 5:47

GoogleCodeExporter commented 9 years ago
reply to comment#34
if you still cannot surf the internet, I guess Android device doesn't know it 
should use ppp0 for browsing internet. You can check 'getprop' to check some 
properties. And, you can use ping to check any website you know. If you can use 
ping successfully, it means you have network connection. Then check dns 
settings.....etc.

Also, have you ever used your SIM card to browse Internet in other device, i 
mean you're sure that you opened this service from your network provider?!

Original comment by erinyueh on 17 Aug 2010 at 6:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
reply to #36
you could try ping sina by IP address "218.30.108.65".

erin@midnight:~/Desktop$ ping www.sina.com.cn
PING hydra.sina.com.cn (218.30.108.65) 56(84) bytes of data.
64 bytes from 218.30.108.65: icmp_seq=2 ttl=47 time=409 ms

From your android properties, it seems like miss something. Below it's from my 
log, yours is no dns name.

[gsm.network.type]: [HSDPA]
[net.gprs.http-proxy]: []
[net.rmnet0.dns1]: [61.31.233.1]
[net.rmnet0.dns2]: [168.95.1.1]
[net.rmnet0.gw]: [115.82.29.33]
[gsm.defaultpdpcontext.active]: [true]
[net.dns1]: [61.31.233.1]
[net.dns2]: [168.95.1.1]
[net.dnschange]: [1]

Original comment by erinyueh on 17 Aug 2010 at 8:07

GoogleCodeExporter commented 9 years ago
Erin:
   Is the "[init.svc.ppp]: [stopped]" OK?
   How to set the DNS? I didn't get any useful information about it after googling.

Original comment by huanyufe...@gmail.com on 17 Aug 2010 at 10:18

GoogleCodeExporter commented 9 years ago
Please note that issue tracking is task oriented instead of discussions.  
Please use mailing-list for data card usage since we regarded this issue was 
closed.

Thanks for your understanding.

Original comment by jserv.tw@gmail.com on 17 Aug 2010 at 10:30