forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Globally determining WIFI Download and Upload Speed

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sat May 24, 2008 9:01 am    Post subject: Globally determining WIFI Download and Upload Speed Reply with quote

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
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sat May 31, 2008 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sun Jun 01, 2008 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Jun 02, 2008 1:36 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Mon Jun 02, 2008 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Jun 02, 2008 5:45 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
danzel



Joined: 04 Nov 2005
Posts: 182

PostPosted: Mon Jun 02, 2008 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Mon Jun 02, 2008 11:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Tue Jun 03, 2008 2:11 am    Post subject: Reply with quote

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
View user's profile Send private message
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Tue Jun 03, 2008 2:52 am    Post subject: Reply with quote

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
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Tue Jun 03, 2008 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Tue Jun 03, 2008 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message
steve0



Joined: 04 May 2008
Posts: 6

PostPosted: Tue Jun 17, 2008 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Tue Jun 17, 2008 7:46 pm    Post subject: Reply with quote

@kickinAezz, you may not be linking the prx library
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Tue Jun 17, 2008 11:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Wed Jun 18, 2008 12:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Wed Jun 18, 2008 1:29 am    Post subject: Reply with quote

Ask team chillt (or something), they made a hb to determine download speed.

Ciao
Back to top
View user's profile Send private message
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Wed Jun 18, 2008 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Wed Jun 18, 2008 6:57 am    Post subject: Reply with quote

@Question dev. You always tell people to ask someone lol
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Wed Jun 18, 2008 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group