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 

psppet: I want to help with adhoc connections.

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



Joined: 04 Jul 2005
Posts: 49

PostPosted: Tue Jul 05, 2005 5:36 pm    Post subject: psppet: I want to help with adhoc connections. Reply with quote

psppet, how far did you go in your research on ad hoc connection ?

Is it possible now to make a ftp client on one psp (ftp server on the other) and communicate directly ?

DHCP is not a priority.

How can i help ?
Back to top
View user's profile Send private message
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Wed Jul 06, 2005 3:58 am    Post subject: "Infrastructure Mode" can work without Access Poin Reply with quote

> psppet, how far did you go in your research on ad hoc connection ?
General rule: if a question specific to me, please send email. However this topic may be interesting to many people.

=====
> Is it possible now to make a ftp client on one psp (ftp server on the other) and communicate directly ?
Yes,

"Infrastructure Mode" can work without an Access Point!

In this context "ad hoc" means two things. I'm going to invent a new term called "game-sharing-adhoc" to distinguish it from the regular WiFi peer-to-peer adhoc connection.

The PSP network functions support two variants: Infrastructure/Access Point "sceNetApctl", and game-sharing-adhoc "sceNetAdhoc"/"sceNetAdhocctl". The Network configuration options are separate under "Network Settings".

My current released samples use the first one (sceNetApctl). In general that's what most FTP-like programs will use (using standard sockets interface).
FWIW: I do have the basic init for game-sharing-adhoc working - but I stopped working on it when I found out it was the wrong one I needed. May get back to it later.

=====================
Now the confusing (and enlightening) part:

The PSP "Infrastructure Mode" can be configured to work in a WiFi adhoc network ! (aka peer-to-peer) - ie. if you don't own a WiFi "Access Point"

Create an "Infrastructure Mode" configuration on your PSP under "Network Settings". Fill everything in manually (the SSID, WEP, Manual IP address and range, give it a fake Router/DNS). Scanning for networks won't work. When you test it it should pass if there is another peer-to-peer WiFi device in the room with compatible settings. It takes a little longer to test and should report "Internet Connection: Failed" at the bottom. Everything else is working.

Now use it with any of the WiFi samples out there, and it should work.
Of course any program that needs to go to the Internet will fail (but there are internet sharing options for that which I won't go into here)

BTW: the next version of my wifi sample will have a connection picker to make this easier. For now having this as the one and *only* connection is the way to go (BTW: it will filter out the DHCP connections - since I haven't fixed that problem yet)
----
Finally, having two battery powered devices talking peer-to-peer WiFi can be tricky. Sometimes it helps to have a PC also acting as an additional peer (even if not used). In the specific case of PSP talking to an AIBO it can be trickier (AIBO must find the WiFi radio signal at startup, otherwise it gives up to save battery)

Overall having an access point in the room makes the radio arbitrartion much better (it doesn't have to be attached to the Internet)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pspkrazy



Joined: 04 Jul 2005
Posts: 49

PostPosted: Wed Jul 06, 2005 5:55 am    Post subject: Thanks for the reply. Reply with quote

OK so "adhoc mode" was a trap.

I will try with my computer acting as a peer (with routing enabled).

:-) i can't wait for your sample.

Bye
Back to top
View user's profile Send private message
Romz



Joined: 19 Dec 2005
Posts: 2
Location: Paris

PostPosted: Mon Dec 19, 2005 9:05 am    Post subject: Re: "Infrastructure Mode" can work without Access Reply with quote

PspPet wrote:

The PSP "Infrastructure Mode" can be configured to work in a WiFi adhoc network ! (aka peer-to-peer) - ie. if you don't own a WiFi "Access Point"

Create an "Infrastructure Mode" configuration on your PSP under "Network Settings". Fill everything in manually (the SSID, WEP, Manual IP address and range, give it a fake Router/DNS). Scanning for networks won't work. When you test it it should pass if there is another peer-to-peer WiFi device in the room with compatible settings. It takes a little longer to test and should report "Internet Connection: Failed" at the bottom. Everything else is working.


What SSID are you talking about ? For exemple my laptop is configured to work in ad hoc mode, now when i Test the connection, it says "No access point detected".

Thank you.
Back to top
View user's profile Send private message Visit poster's website
weak



Joined: 13 Jan 2005
Posts: 114
Location: Vienna, Austria

PostPosted: Mon Dec 19, 2005 9:24 am    Post subject: Reply with quote

Chris Swindle has recently released a version of his sms emulator that includes adhoc mode. take a look here.
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Mon Dec 19, 2005 10:34 am    Post subject: Reply with quote

weak wrote:
Chris Swindle has recently released a version of his sms emulator that includes adhoc mode. take a look here.


That's great and source is included! I'll take a look at it, to add this feature to Lua Player. Perhaps a PSPSDK sample would be nice, too, if someone has more time than me :-)
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