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. Re : How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

First thanks for your quick reply. I have well found the code you told me about 
(OnBootReceiver).

I have one more question 'cos i as i have said before i ma programming a 
service that i want to start when Android boot.

My core class extends Service not  BroadcastReceiver. So may i extend more than 
one time. I mean to extends  Service and BroadcastReceiver. for the same class 
? 

Maybe i need to add a public class OnBootReceiver extends BroadcastReceiver 
inside my service project ? But if so how to link this second class with the 
service one ?

 Regards


Thierry GAYET
NextInnovation.org
+33(0)663.849.589




________________________________
De : Mark Murphy <mmur...@commonsware.com>
 : android-developers@googlegroups.com
Envoy le : Mercredi, 24 Juin 2009, 14h08mn 24s
Objet : [android-developers] Re: How to catch BOOT_COMPLETED_ACTION from an 
IntentReceiver





You'll see this covered as part of:

http://androidguys.com/?p=4411

Sample code implementing BroadcastReceivers for BOOT_COMPLETED can be
found at:

http://commonsware.com/AdvAndroid/

(scroll down, download the "Source Code" from the link, and look for
SysEvents/OnBoot and SysServices/Alarm projects)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_
Version 0.9 Available!



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

2. User login from mobile app

Hello,

I am planning to write a android application that logs into a remote user
database. Once logged in the user can perform multiple tasks. I need some
guidance on the technologies I need to read up to achieve it. I read up
OpenLDAP, and Unbound API's for LDAP. Soon I will prototype the LDAP way.

I was thinking of providing the OpenID way of login. So anyone with a openID
login should be able to use my services. Any guidance there ?

One last approach I had was using a MySQL database.

Its a simple task. Multiple applications I use today on my Nokia phone do
user login. So I know its possible. I just need some guidance on where to
start looking/reading.

Thanks in advance
siddha...@mcon

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

3. where is the definition of member functions in the struct audio_track_cblk_t

4. How to use Graphics.VCENTER|Graphics.HCENTER

5. Binder Thread issue.

6. How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

7. Lising of the available AT-commands on an HTC G1 ?