[Android Software/Hacking General [Developers Only]] cme100:
Hi gurus,

maybe you can help me out.

I'm running a shell script to create a 3G connection using my 2 USB modems. One is the Huawei E220 the other is Huawei K3565.

The script works fine for the E220 but not for the K3565. Using the K3565 can't get DNS from the provider and connection aborts.:confused:

Please take a look.

#pppd call filename

debug
ttyUSB0
460800
modem
noipdefault
defaultroute
ipcp-accept-local
lcp-echo-interval 60
lcp-echo-failure 5
usepeerdns
nopcomp
noauth
noaccomp
nodetach
user "internetuser"
password "internetuser"
connect "chat -s -S -v -f /system/etc/ppp/network.chat"

chat file:

'ATZ'
'OK-AT-OK' 'ATI'
'OK' 'ATZ'
'OK-AT-OK' 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0'
'OK-AT-OK' 'AT+CGDCONT=1,"IP","net.operator.com"'
'OK' 'ATDT*99#'
'CONNECT'

i get the following log from android:

08-26 15:13:03.824 I/chat ( 2762): send (ATZ^M)

08-26 15:13:03.870 I/chat ( 2762): expect (OK)

08-26 15:13:03.879 I/chat ( 2762): ATZ^M^M

08-26 15:13:03.879 I/chat ( 2762): OK

08-26 15:13:03.879 I/chat ( 2762): -- got it

08-26 15:13:03.879 I/chat ( 2762): send (ATI^M)

08-26 15:13:03.918 I/chat ( 2762): expect (OK)

08-26 15:13:03.921 I/chat ( 2762): ^M

08-26 15:13:03.925 I/chat ( 2762): ATI^M^M

08-26 15:13:03.925 I/chat ( 2762): Manufacturer: huawei^M

08-26 15:13:03.925 I/chat ( 2762): Model: K3565^M

08-26 15:13:03.929 I/chat ( 2762): Revision: 11^M

08-26 15:13:03.933 I/chat ( 2762): IMEI: <hidden>^M

08-26 15:13:03.933 I/chat ( 2762): +GCAP: +CGSM,+DS,+ES^M

08-26 15:13:03.933 I/chat ( 2762): ^M

08-26 15:13:03.933 I/chat ( 2762): OK

08-26 15:13:03.933 I/chat ( 2762): -- got it

08-26 15:13:03.933 I/chat ( 2762): send (ATZ^M)

08-26 15:13:03.978 I/chat ( 2762): expect (OK)

08-26 15:13:03.978 I/chat ( 2762): ^M

08-26 15:13:03.988 I/chat ( 2762): ATZ^M^M

08-26 15:13:03.988 I/chat ( 2762): OK

08-26 15:13:03.988 I/chat ( 2762): -- got it

08-26 15:13:03.988 I/chat ( 2762): send (ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M)

08-26 15:13:04.352 I/chat ( 2762): expect (OK)

08-26 15:13:04.352 I/chat ( 2762): ^M

08-26 15:13:04.363 I/chat ( 2762): ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M^M

08-26 15:13:04.363 I/chat ( 2762): OK

08-26 15:13:04.363 I/chat ( 2762): -- got it

08-26 15:13:04.363 I/chat ( 2762): send (AT+CGDCONT=1,"IP","net.operator.com"^M)

08-26 15:13:04.941 I/chat ( 2762): expect (OK)

08-26 15:13:04.941 I/chat ( 2762): ^M

08-26 15:13:04.957 I/chat ( 2762): AT+CGDCONT=1,"IP","net.operator.com"^M^M

08-26 15:13:04.957 I/chat ( 2762): OK

08-26 15:13:04.957 I/chat ( 2762): -- got it

08-26 15:13:04.957 I/chat ( 2762): send (ATDT*99#^M)

08-26 15:13:05.050 I/chat ( 2762): expect (CONNECT)

08-26 15:13:05.050 I/chat ( 2762): ^M

08-26 15:13:05.054 I/chat ( 2762): ATDT*99#^M^M

08-26 15:13:05.054 I/chat ( 2762): CONNECT

08-26 15:13:05.058 I/chat ( 2762): -- got it

08-26 15:13:05.062 I/pppd ( 2760): Serial connection established.

08-26 15:13:05.066 D/pppd ( 2760): using channel 2

08-26 15:13:05.074 D/Tethering( 2162): ppp0 is not a tetherable iface, ignoring

08-26 15:13:05.089 I/pppd ( 2760): Using interface ppp0

08-26 15:13:05.089 I/pppd ( 2760): Connect: ppp0 <--> /dev/ttyUSB0

08-26 15:13:06.093 D/pppd ( 2760): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2579ffac>]

08-26 15:13:06.097 D/pppd ( 2760): rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xe38029> <pcomp> <accomp>]

08-26 15:13:06.097 D/pppd ( 2760): sent [LCP ConfRej id=0x0 <pcomp> <accomp>]

08-26 15:13:06.097 D/pppd ( 2760): rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2579ffac>]

08-26 15:13:06.101 D/pppd ( 2760): rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xe38029>]

08-26 15:13:06.101 D/pppd ( 2760): sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xe38029>]

08-26 15:13:06.101 D/pppd ( 2760): sent [LCP EchoReq id=0x0 magic=0x2579ffac]

08-26 15:13:06.105 D/pppd ( 2760): rcvd [LCP DiscReq id=0x2 magic=0xe38029]

08-26 15:13:06.109 D/pppd ( 2760): rcvd [CHAP Challenge id=0x1 <ce59dde2be573332b094c5c8ca15a523>, name = "UMTS_CHAP_SRVR"]

08-26 15:13:06.109 D/pppd ( 2760): sent [CHAP Response id=0x1 <ee249df30187561f0a45dc4edd8707a6>, name = "operator"]

08-26 15:13:06.109 D/pppd ( 2760): rcvd [LCP EchoRep id=0x0 magic=0xe38029 32 b0 94 c5]

08-26 15:13:06.113 D/pppd ( 2760): rcvd [CHAP Success id=0x1 ""]

08-26 15:13:06.113 I/pppd ( 2760): CHAP authentication succeeded

08-26 15:13:06.113 D/pppd ( 2760): sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]

08-26 15:13:07.117 D/pppd ( 2760): rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]

08-26 15:13:07.117 D/pppd ( 2760): sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:08.125 D/pppd ( 2760): rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]

08-26 15:13:08.125 D/pppd ( 2760): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:11.128 D/pppd ( 2760): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:14.132 D/pppd ( 2760): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:17.136 D/pppd ( 2760): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:20.136 D/pppd ( 2760): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:23.141 D/pppd ( 2760): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:26.144 D/pppd ( 2760): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:29.146 D/pppd ( 2760): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

08-26 15:13:29.644 W/vending ( 2349): [22] CarrierService.performRequest(): IOException while performing request: java.io.IOException: Start network failed - 2

08-26 15:13:29.644 D/ConnectivityService( 2162): startUsingNetworkFeature for net 0: enableHIPRI

08-26 15:13:29.644 D/ConnectivityService( 2162): getMobileDataEnabled returning true

08-26 15:13:29.644 D/ConnectivityService( 2162): special network not available

08-26 15:13:29.644 D/ConnectivityService( 2162): ignoring stopUsingNetworkFeature - not a live request

08-26 15:13:29.707 W/vending ( 2349): [25] RequestDispatcher.performRequestsOverNetwork(): IOException while performing API request: android.clients.google.com

08-26 15:13:29.711 E/vending ( 2349): [25] RequestRunnable.run(): Got IOException from async request: android.clients.google.com

08-26 15:13:30.859 I/pppd ( 2760): Modem hangup

08-26 15:13:30.859 I/pppd ( 2760): Connection terminated.

Why is it failing with the K3565 and not with the E220?

Thank you very much in advance.