Thanks for your reply Robert. Yes I can access the IP interface from
Linux as it's IP address is 10.0.0.5 and so when I ping 10.0.0.4, I
can see the packets are received inside telephony stack. Now, how
should I hit a simple site (that is, IP other than 10.0.0.x)?

How should I set the default route?

In the android debug logs I can see that MobileDataStateTracker is
reporting that it is in connected state as in the following logs:

D/MobileDataStateTracker(   69): default Received state= CONNECTING,
old= DISCONNECTED, reason= simLoaded, apnTypeList= *
D/NetworkStateTracker(   69): setDetailed state, old =IDLE and new
state=CONNECTING
D/ConnectivityService(   69): ConnectivityChange for mobile:
CONNECTING/CONNECTING
D/MobileDataStateTracker(   69): replacing old mInterfaceName (null)
with /dev/omap_csmi_tty1 for hipri
D/MobileDataStateTracker(   69): replacing old mInterfaceName (null)
with /dev/omap_csmi_tty1 for supl
D/MobileDataStateTracker(   69): replacing old mInterfaceName (null)
with /dev/omap_csmi_tty1 for mms
D/MobileDataStateTracker(   69): default Received state= CONNECTED,
old= CONNECTING, reason= simLoaded, apnTypeList= *
D/NetworkStateTracker(   69): setDetailed state, old =CONNECTING and
new state=CONNECTED
D/ConnectivityService(   69): ConnectivityChange for mobile: CONNECTED/
CONNECTED


On Nov 24, 11:29 pm, Robert Greenwalt <[email protected]> wrote:
> If you have a network interface up and can access it from linux, the
> framework should also be able to access it.  You may not have DNS hooked up,
> but you can try hitting a simple site using its ip address instead of
> hostname to check that.
>
> Another potential problem is routing - do you have a default route set for
> this new interface?
>
> If you have a RIL communicating with framework telephony code it should be
> reporting the connection is established.  Does your MobileDataStateTracker
> receive broadcasts that Telephony is connected?  I'd start there  and either
> move up into telephony if it isn't sending this broadcast or down into
> connectivityService if it is
>
> R
> .
>
> On Wed, Nov 24, 2010 at 1:42 AM, mshahbazansari
> <[email protected]>wrote:
>
>
>
> > Hi all,
>
> > Hope you are doing fine. I wanted to get some of you guys help here. I
> > have telephony stack which is in software and I am bringing it up with
> > Android Froyo. The setup is that I run Android on a Linux machine and
> > also the telephony stack on the same machine. Android RIL is
> > communicating to the telephony stack for AT commands on a socket-
> > interface between Android and the telephony stack. I have brought up
> > the telephony stack and a PDP context is also established. Telephony
> > stack is attached to a Network and we can feed IP packets to the
> > telephony stack now. Telephony stack provides me an IP interface and I
> > need Android to forward packets to the IP interface of telephony
> > stack. How can I setup android to send/receive IP packets to/from IP
> > interface of the telephony stack so that I can browse internet traffic
> > on Android browser. I have read all
>
> >http://groups.google.com/group/android-porting/browse_thread/thread/b...
>
> > and see that it's for modem devices and a PPP link is used but for my
> > scenario how should I do this? I will appreciate your kind feedback.
>
> > Warm Regards,
> > Shahbaz
>
> > --
> > unsubscribe: 
> > [email protected]<android-porting%2bunsubscr...@­googlegroups.com>
> > website:http://groups.google.com/group/android-porting- Hide quoted text -
>
> - Show quoted text -

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to