psppet: I want to help with adhoc connections.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
pspkrazy
Posts: 49
Joined: Mon Jul 04, 2005 1:31 am

psppet: I want to help with adhoc connections.

Post by pspkrazy »

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 ?
PspPet
Posts: 210
Joined: Wed Mar 30, 2005 2:13 am
Contact:

"Infrastructure Mode" can work without Access Poin

Post by PspPet »

> 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)
pspkrazy
Posts: 49
Joined: Mon Jul 04, 2005 1:31 am

Thanks for the reply.

Post by pspkrazy »

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
Romz
Posts: 2
Joined: Mon Dec 19, 2005 2:56 am
Location: Paris
Contact:

Re: "Infrastructure Mode" can work without Access

Post by Romz »

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.
weak
Posts: 114
Joined: Thu Jan 13, 2005 8:31 pm
Location: Vienna, Austria

Post by weak »

Chris Swindle has recently released a version of his sms emulator that includes adhoc mode. take a look here.
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

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 :-)
Post Reply