[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Detect Internet connection Speed
- From: Satheesh Kumar <satheeshrulzz@...>
- Date: Mon, 30 Apr 2012 17:59:27 +0530
Aah! Nice read that!
Maybe I can attempt to implement that in my free time or something :D
As of now, efficiency takes priority over accuracy.
Anyway, I just took some of your points. I let the app detect that the internet connection is too laggy by trial and error. Once this happens a few times, I use the bytes/time method, just to make sure that the connection is indeed slow.
Ugly, yes, but fairly effective.
On Mon, Apr 30, 2012 at 1:56 PM, Thijs Schreijer <email@example.com>
> On Behalf Of Satheesh Kumar
> Sent: maandag 30 april 2012 1:40
> To: firstname.lastname@example.org
> Subject: Detect Internet connection Speed
If possible, you should make it a dynamic property. Just downloading a file
> I am using Lua to develop a mobile appication.
> Is there any function ( in lua sockets or other) to determine the speed
> of the device's internet connection?
> Or should I just download a file and calculate (bytes/time)
> I need to detect if the device's internet is 2G or not..
and calculating is imprecise and wasting resources just for a test. So based
on its historic data the device should assume an initial state, from there
on monitor bytes/time, latency, errors and other proxy metrics to
This is probably not appropriate, but might give you some ideas;
Doing this from Lua is going to be a challenge, but I would be interested in
the overall result