Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-18 Thread Long Pu
We only see this issue on Boost phones on WIMAX actually. Pure Sprint
phones work fine.

The minimal required period is a crazy value like 3~5 seconds.   Hope this
info can help.
Our guess is that maybe Boost rents other company's WIMAX network, so they
would like to try their best to clean up idle connections.


Thanks.

Cheers.
Long


On Thu, Apr 18, 2013 at 1:03 AM, Robert Greenwalt rgreenw...@google.comwrote:

 Thanks Long Pu for the reasoning for not using GCM.

 You only have this problem on sprint wimax, correct?  Have to tried very
 frequent keep-alives?  Figuring out roughly what the required period is may
 help us find the cause.  We can talk with Sprint and Samsung about it, but
 the timeout info would be useful before that.

 R


 On Wed, Apr 17, 2013 at 7:28 AM, Long Pu long...@gmail.com wrote:

 We have to consider multiple platforms(iOS, Android, Blackberry). On iOS,
 push notification
 is not an option for our application.  If use GCM, we need  another extra
 special design especially for android.


 On Mon, Apr 15, 2013 at 11:23 PM, Robert Greenwalt rgreenw...@google.com
  wrote:

 Could you use GCM http://developer.android.com/google/gcm/index.html 
 instead
 of rolling your own long-lived connection with independent keepalive?
  It'll be better for the users battery and better for the carriers network
 and you won't have to figure out issues like these.


 On Sat, Apr 13, 2013 at 3:35 AM, Long long...@gmail.com wrote:

 Hi Developers,
 I have an background service which connects my server with a TCP
 connection.
 My background service sends a ping packet to my server every
 4minutes to keep the socket alive.
The problem is that the device can not get the packet from the
 server after a short time(3 seconds from my test) after the ping is sent.
This app works fine on other networks(ATT, verizon).

The strange thing is that if I force the device to connect to
 3G(EVDO revision A), it works fine.

It seems to me that, on Sprint 4G network, when an app sends a
 packet through a tcp socket, and then the socket is idle for
 several seconds, then the app will never be able to receive packets
 from this socket.

I don't think it's related to the 4G signal, since this issue can be
 reproduced every time.

Any suggestions?







 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/3FvPZp5n2K0/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.






 --
 Things don' happen. Things are made to happen.

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-18 Thread Long Pu
It's galaxy S2.

I believe the GCM works on this phone. I am wondering what GCM does to keep
his socket alive.
It would not seed keep alive packets in short period like several seconds,
this would burn
out battery very quickly.

My guess is that the carrier can recognize the GCM tcp connection and only
keep it alive.

Cheers.
Long


On Fri, Apr 19, 2013 at 12:00 AM, Robert Greenwalt rgreenw...@google.comwrote:

 What phone hardware?


 On Thu, Apr 18, 2013 at 3:27 AM, Long Pu long...@gmail.com wrote:

 We only see this issue on Boost phones on WIMAX actually. Pure Sprint
 phones work fine.

 The minimal required period is a crazy value like 3~5 seconds.   Hope
 this info can help.
 Our guess is that maybe Boost rents other company's WIMAX network, so
 they would like to try their best to clean up idle connections.


 Thanks.

 Cheers.
 Long



 On Thu, Apr 18, 2013 at 1:03 AM, Robert Greenwalt 
 rgreenw...@google.comwrote:

 Thanks Long Pu for the reasoning for not using GCM.

 You only have this problem on sprint wimax, correct?  Have to tried very
 frequent keep-alives?  Figuring out roughly what the required period is may
 help us find the cause.  We can talk with Sprint and Samsung about it, but
 the timeout info would be useful before that.

 R


 On Wed, Apr 17, 2013 at 7:28 AM, Long Pu long...@gmail.com wrote:

 We have to consider multiple platforms(iOS, Android, Blackberry). On
 iOS, push notification
 is not an option for our application.  If use GCM, we need  another
 extra special design especially for android.


 On Mon, Apr 15, 2013 at 11:23 PM, Robert Greenwalt 
 rgreenw...@google.com wrote:

 Could you use GCM http://developer.android.com/google/gcm/index.html 
 instead
 of rolling your own long-lived connection with independent keepalive?
  It'll be better for the users battery and better for the carriers network
 and you won't have to figure out issues like these.


 On Sat, Apr 13, 2013 at 3:35 AM, Long long...@gmail.com wrote:

 Hi Developers,
 I have an background service which connects my server with a TCP
 connection.
 My background service sends a ping packet to my server every
 4minutes to keep the socket alive.
The problem is that the device can not get the packet from the
 server after a short time(3 seconds from my test) after the ping is sent.
This app works fine on other networks(ATT, verizon).

The strange thing is that if I force the device to connect to
 3G(EVDO revision A), it works fine.

It seems to me that, on Sprint 4G network, when an app sends a
 packet through a tcp socket, and then the socket is idle for
 several seconds, then the app will never be able to receive packets
 from this socket.

I don't think it's related to the 4G signal, since this issue can
 be reproduced every time.

Any suggestions?







 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/3FvPZp5n2K0/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.






 --
 Things don' happen. Things are made to happen.

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr

Re: [android-developers] Re: Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread Long Pu
I am connecting to tcp port 5222 which provides xmpp service


On Tue, Apr 16, 2013 at 12:00 AM, bob b...@coolfone.comze.com wrote:

 What port number are you using on the server?


 Maybe use *port* *80* as it is more open?


 Thanks.



 On Saturday, April 13, 2013 5:35:13 AM UTC-5, Long wrote:

 Hi Developers,
 I have an background service which connects my server with a TCP
 connection.
 My background service sends a ping packet to my server every 4minutes
 to keep the socket alive.
The problem is that the device can not get the packet from the server
 after a short time(3 seconds from my test) after the ping is sent.
This app works fine on other networks(ATT, verizon).

The strange thing is that if I force the device to connect to 3G(EVDO
 revision A), it works fine.

It seems to me that, on Sprint 4G network, when an app sends a packet
 through a tcp socket, and then the socket is idle for
 several seconds, then the app will never be able to receive packets from
 this socket.

I don't think it's related to the 4G signal, since this issue can be
 reproduced every time.

Any suggestions?







  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/3FvPZp5n2K0/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Things don' happen. Things are made to happen.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-17 Thread Long Pu
We have to consider multiple platforms(iOS, Android, Blackberry). On iOS,
push notification
is not an option for our application.  If use GCM, we need  another extra
special design especially for android.


On Mon, Apr 15, 2013 at 11:23 PM, Robert Greenwalt rgreenw...@google.comwrote:

 Could you use GCM http://developer.android.com/google/gcm/index.html instead
 of rolling your own long-lived connection with independent keepalive?
  It'll be better for the users battery and better for the carriers network
 and you won't have to figure out issues like these.


 On Sat, Apr 13, 2013 at 3:35 AM, Long long...@gmail.com wrote:

 Hi Developers,
 I have an background service which connects my server with a TCP
 connection.
 My background service sends a ping packet to my server every 4minutes
 to keep the socket alive.
The problem is that the device can not get the packet from the server
 after a short time(3 seconds from my test) after the ping is sent.
This app works fine on other networks(ATT, verizon).

The strange thing is that if I force the device to connect to 3G(EVDO
 revision A), it works fine.

It seems to me that, on Sprint 4G network, when an app sends a packet
 through a tcp socket, and then the socket is idle for
 several seconds, then the app will never be able to receive packets from
 this socket.

I don't think it's related to the 4G signal, since this issue can be
 reproduced every time.

Any suggestions?







 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/3FvPZp5n2K0/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Things don' happen. Things are made to happen.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.