How to start pppd in froyo?

by lnxarm » Tue, 01 Feb 2011 09:00:28 GMT


Sponsored Links
 Hi,

Google removed PPPD in froyo. So how to start pppd?
I know one way is pppd + chat, is this regular way?

When I ported reference-ril.c,  i can see all the AT commands are executed.
And the last one is "ATD*99***1" and return "Connect 384000"
Here is the logcat:
D/AT      ( 2487): AT> ATD*99***1#
D/AT      ( 2487): AT< CONNECT 384000
D/RILJ    ( 2166): [0063]< SETUP_DATA_CALL {1, /dev/ppp0}
D/GSM     ( 2166): [GsmDataConnection-1] DcActivatingState 
msg.what=EVENT_SETUP_DATA_CONNECTION_DONE
D/GSM     ( 2166): [GsmDataConnection-1] DataConnection setup result='SUCCESS' 
on cid=1
D/GSM     ( 2166): [GsmDataConnection-1] DcInactiveState: 
setEnterNoticationParams cp,cause
D/GSM     ( 2166): [GsmDataConnection-1] DcActiveState: enter 
notifyConnectCompleted
D/GSM     ( 2166): [GsmDataConnection-1] notifyConnection at 1105758 cause=No 
Error
D/GSM     ( 2166): GSMDataConnTrack handleMessage { what=1 when=1105759 arg1=1 
obj=android.os.AsyncResult@43fb52d0 }
D/GSM     ( 2166): [GsmDataConnectionTracker] setState: CONNECTED
D/GSM     ( 2166): [DataConnection] Start poll NetStat

I also can see the GPRS Logo from the UI, but I can not go to internet.

Here is the logcat for pppd:

D/ConnectivityService( 2057): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/Tethering( 2057): Tethering got CONNECTIVITY_ACTION
D/Tethering( 2057): MasterInitialState.processMessage what=3
E/HierarchicalStateMachine( 2057): TetherMaster - unhandledMessage: msg.what=3
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr 0.0.0.0>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr 0.0.0.0>]
D/dalvikvm( 2237): GC_EXPLICIT freed 325 objects / 20080 bytes in 42ms
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr 0.0.0.0>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr 0.0.0.0>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr 0.0.0.0>]
D/pppd    ( 2609): sent [LCP EchoReq id=0x4 magic=0x7a9b9391]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr 0.0.0.0>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr 0.0.0.0>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr 0.0.0.0>]
W/pppd    ( 2609): IPCP: timeout sending Config-Requests
D/pppd    ( 2609): sent [LCP TermReq id=0x2 "No network protocols running"]
D/pppd    ( 2609): sent [LCP TermReq id=0x3 "No network protocols running"]
I/pppd    ( 2609): Connection terminated.
E/Tethering( 2057): attempting to remove unknown iface (ppp0), ignoring
I/pppd    ( 2609): Serial link disconnected.
I/pppd    ( 2609): Modem hangup



Regards,



2011-01-31 



lnxarm 

-- 



Other Threads

1. Few random question about the android mechanics.

Hi All,

I'm trying to figure out few, perhaps easy!, things -

1) How do I figure out what event(s) triggered invocation of onDraw()
method of a view?. I've a canvas with a button, std. app menu, and I
seem to get 3 calls to onDraw() without even touching ( meaning
clicking the mouse) on emulator's screen. My guess is that it is
dependent on the number of elements ( like control, txt etc. i.e
probably the number of child widgets) on the view !!

2) If I touch the screen with my fat finger, what x,y coordinate I
will get in touch event?. It seems like that it is no longer a point
event, but a whole bunch of pixel points?

thanks
-pro

--~--~---------~--~----~------------~-------~--~----~

2. EclipseIDE for Java Developers galileo install plug in problem

The 2 problems are completely unrelated.

Yes, the plug-ins are not signed. Just install them anyway.

Sometimes, when you create a project, the java builder doesn't see the
new gen folder. Either clean your project or do a minor edit in the
java source code. It should recompile your project without errors.

Xav






-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

--~--~---------~--~----~------------~-------~--~----~

3. Stepping Through Video/Animation Frames

4. Location doesn't have a bundle with satellite count any more?

5. Updating permissions for apps that modify sharedUserId

6. ADC2 Round One Judging Complete

7. Emulator file transfer