| View previous topic :: View next topic |
| Author |
Message |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Sat May 24, 2008 9:01 am Post subject: Globally determining WIFI Download and Upload Speed |
|
|
Suddenly, I am starting to feel that one real thing is Missing -- the download speed.
Not just while Downloading a particular file but, when a webpage is loading, etc
Monitoring Rx and Tx packets per second? -- which functions?
Any ideas how this can be achieved?
Thanks. _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Sat May 31, 2008 10:54 am Post subject: |
|
|
Hello all :D
---
Is there a way to determine Wifi Speed in KB/s or bytes/sec. _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Sun Jun 01, 2008 10:34 pm Post subject: |
|
|
Like how M33 Update Downloader shows speed while downloading, but in the Netfront webbrowser.
--
Anyone please? _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Jun 02, 2008 1:36 am Post subject: |
|
|
Just upload and download a file and time it. Sheesh!
If you know the size of the file (and you should) and how long it takes to transmit, you can calculate the transfer rate... and if you can't, you aren't ready to be programming network apps. :) |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Mon Jun 02, 2008 5:31 am Post subject: |
|
|
| J.F. wrote: | Just upload and download a file and time it. Sheesh!
If you know the size of the file (and you should) and how long it takes to transmit, you can calculate the transfer rate... and if you can't, you aren't ready to be programming network apps. :) |
I already thought of such a GENERIC idea of monitoring the KB's downloaded, but it's a waste of memory stick usage. And When a webpage is loading it directly goes to RAM and not memory stick so this doesn't work
My main questions is,
Is there any sceHttp* or any network Function that shows realtime speed... _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Jun 02, 2008 5:45 am Post subject: |
|
|
| No one said the file contents had to be saved. Since many networks also do compression, a good test would be to "upload" a set of random numbers generated on the fly, then "download" that same file while throwing away the contents as you receive it. You get a good measurement of the real transfer rate while not wasting any RAM or space on the stick. |
|
| Back to top |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Mon Jun 02, 2008 12:55 pm Post subject: |
|
|
There is not likely to be a direct function, this is something usually left up to the program doing the transferring to keep track of.
You could override the sceNetInetSend/sceNetInetRecv functions and record how much traffic goes through.
Then run another thread to take the numbers once a second and throw em on the screen or something. |
|
| Back to top |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Mon Jun 02, 2008 11:07 pm Post subject: |
|
|
btw you guys what kind of updownload/upload speed do you have ?
and what kind of speed is it reasonable to expect ? _________________ --pspZorba--
NO to K1.5 ! |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Tue Jun 03, 2008 2:11 am Post subject: |
|
|
| pspZorba wrote: | btw you guys what kind of updownload/upload speed do you have ?
and what kind of speed is it reasonable to expect ? |
From local network transference with a server in the pc (the pc being connected with a lan cable), I get speeds of 250-300 KB/sec more or less, the router in B mode scores a bit better than mixed one, the psp slim scores better than phat. |
|
| Back to top |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Tue Jun 03, 2008 2:52 am Post subject: |
|
|
thanks Moonlight.
So I have a real pb because when I do tests in the same configuration PSP <=> PC (using a router) I am far from this speed.
Is there a special way to init the communication ?
I have :
| Code: |
...
sceNetInit(0x40000, 0x12, 0x4000, 0x12, 0x4000);
...
sceNetApctlInit(0x8000, 0x10);
...
|
do you have any hints? _________________ --pspZorba--
NO to K1.5 ! |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Tue Jun 03, 2008 6:06 am Post subject: |
|
|
| danzel wrote: | There is not likely to be a direct function, this is something usually left up to the program doing the transferring to keep track of.
You could override the sceNetInetSend/sceNetInetRecv functions and record how much traffic goes through.
Then run another thread to take the numbers once a second and throw em on the screen or something. |
I had this idea too,
This should do the trick. :)
-
I keep getting all these fantastic ideas once in a while and ps2dev is here for rescue :D _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Tue Jun 03, 2008 7:56 am Post subject: |
|
|
sceHttp Imports 0xCDA85C99 sceNetInetRecv
htmlviewer_plugin inturn, imports from sceHttp.
---
BUT
sceInetRecv returns 0x8002013a (Library not yet linked) ? TOTALLY IMPOSSIBLE.
Anyone know why, this behaviour seems to occur? _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
steve0
Joined: 04 May 2008 Posts: 6
|
Posted: Tue Jun 17, 2008 5:59 pm Post subject: |
|
|
| Since many networks also do compression, a good test would be to "upload" a set of random numbers generated on the fly, then "download" that same file while throwing away the contents as you receive it. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Tue Jun 17, 2008 7:46 pm Post subject: |
|
|
@kickinAezz, you may not be linking the prx library _________________
Upgrade your PSP |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Tue Jun 17, 2008 11:48 pm Post subject: |
|
|
| Pirata Nervo wrote: | | @kickinAezz, you may not be linking the prx library |
No, Not that basic. :D
Will try M33 SDKs redirect functions. _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Wed Jun 18, 2008 12:43 am Post subject: |
|
|
well that error means you have not linked the needed library lol.
maybe it can be a consequence of another error. _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Wed Jun 18, 2008 1:29 am Post subject: |
|
|
Ask team chillt (or something), they made a hb to determine download speed.
Ciao |
|
| Back to top |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Wed Jun 18, 2008 3:45 am Post subject: |
|
|
| Quote: | | sceInetRecv returns 0x8002013a (Library not yet linked) ? TOTALLY IMPOSSIBLE. |
this error can come from the fact that you didn't load the network prx, but I guess that is not the case ( =>TOTALLY IMPOSSIBLE).
But it can happen if you have allowed "WLAN power save", when I do so I have very weird behavior like the one you are describing. _________________ --pspZorba--
NO to K1.5 ! |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Wed Jun 18, 2008 6:57 am Post subject: |
|
|
@Question dev. You always tell people to ask someone lol _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Wed Jun 18, 2008 8:09 pm Post subject: |
|
|
| Pirata Nervo wrote: | | @Question dev. You always tell people to ask someone lol |
Yh :d but i can't ask team chilt, it's kickin azz' job
Cyaa |
|
| Back to top |
|
 |
|