Globally determining WIFI Download and Upload Speed
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
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.
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.
Use it more for Development than for Gaming.
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
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 workJ.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. :)
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.
Use it more for Development than for Gaming.
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.
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.
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.
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.pspZorba wrote:btw you guys what kind of updownload/upload speed do you have ?
and what kind of speed is it reasonable to expect ?
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 :
do you have any hints?
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: Select all
...
sceNetInit(0x40000, 0x12, 0x4000, 0x12, 0x4000);
...
sceNetApctlInit(0x8000, 0x10);
...
do you have any hints?
--pspZorba--
NO to K1.5 !
NO to K1.5 !
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
I had this idea too,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.
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.
Use it more for Development than for Gaming.
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
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?
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.
Use it more for Development than for Gaming.
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
-
- Posts: 88
- Joined: Fri Aug 24, 2007 8:23 pm
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).sceInetRecv returns 0x8002013a (Library not yet linked) ? 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 !
NO to K1.5 !
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
-
- Posts: 88
- Joined: Fri Aug 24, 2007 8:23 pm