How to start pppd in froyo?

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

Sponsored Links

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 
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 
D/GSM     ( 2166): [GsmDataConnection-1] notifyConnection at 1105758 cause=No 
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>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/dalvikvm( 2237): GC_EXPLICIT freed 325 objects / 20080 bytes in 42ms
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [LCP EchoReq id=0x4 magic=0x7a9b9391]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
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





Other Threads

1. Contacts SyncAdapter issues

Hi everyone,

I've implemented a SyncAdapter correctly registered through the
application manifest which allows to sync contacts with our backend.
The sync requests are correctly sent to the SyncAdapter but actually I
have a couple of dubts:

 1) How a client (the object which calls requestSync of a specific
authority) can be notified about the current status of the sync
request, e.g. if the request has been correctly performed, is still
pending, or is aborted for any reason?

 2) I saw the addStatusChangeListener method in ContentResolver class
but there is no documentation about that. Can someone clarify the
correct usage of this? What kind of events can I listen?

3) What is the SyncContext ??

Onother issue is that after I've added my custom account to the device
I saw that when the user selects to add a contact to that account,
only the name fields are present in the "new contact" activity, no
phones emails etc. Can someone tell me if (and how) it is possible to
show all the standard fields that are actually showed to the user,
even if no accounts exist on the device?

Thanks in advance



2. Building test cases from source code.

I have built android sdk using eclairs source code. in the source code
there are few test cases. I want to know when i built sdk whether the
test cases also built and if it is so how can i make use of those test


3. Problem in installing maps application into an android device

4. TouchEvent on Chart in Android?

5. Installing a Maps app in to an android device

6. Localized UI Strings

7. No Build option in the New Android Project dialog Box in the Eclipse IDE