2 Player Adhoc Settings


BAFelton

Well-Known Member
Joined
Jun 23, 2010
Messages
1,273
Website
www.open-consoles.com
On the facebook wall of GPH, there's a vid where 2 Caanoos are linked in Wifi. http://www.facebook.com/pages/GPH-Official/127461713948354

I have 2 Caanoo and tried it but it doesn't work.

In fact the "Caanoo adhoc host setting button" that must be clicked doesn't appear.

I tried on a 1.0.6 Caanoo and a 1.5.0, with the same results.

Anybody tried it ?
 
Useing the WiFi Stick from GPH.

Server.gpu:
Code:
#!/bin/sh
# module clear
# af_packet setting
insmod /lib/modules/2.6.24/kernel/net/packet/af_packet.ko
insmod /lib/modules/2.6.24/kernel/net/ipv4/netfilter/ip_tables.ko
sleep 1
# usb setting
insmod /lib/modules/2.6.24/kernel/drivers/usb/core/usbcore.ko
sleep 1
insmod /lib/modules/2.6.24/kernel/drivers/usb/host/hcd9032.ko
sleep 1
# wireless setting
insmod /lib/modules/2.6.24/kernel/net/wireless/rt3070sta.ko
sleep 2
ifconfig ra0 up
sleep 2
# ad-hoc & ip setting
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set NetworkType=Adhoc
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set AuthMode=OPEN
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set EncrypType=NONE
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set SSID="gph-adhoc"
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set WirelessMode=4		#54Mbps 
sleep 1
ifconfig ra0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 up
#udhcpd start
#udhcpd -f

Client:
Code:
#!/bin/sh
# af_packet setting
insmod /lib/modules/2.6.24/kernel/net/packet/af_packet.ko
sleep 1
# usb-host module setting
insmod /lib/modules/2.6.24/kernel/drivers/usb/core/usbcore.ko
insmod /lib/modules/2.6.24/kernel/drivers/usb/host/hcd9032.ko
sleep 1
# wifi module setting
insmod /lib/modules/2.6.24/kernel/net/wireless/rt3070sta.ko
sleep 1
# ip & Ad-hoc setting
ifconfig ra0 up
sleep 1
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set NetworkType=Adhoc
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set AuthMode=OPEN
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set EncrypType=NONE
/lib/modules/2.6.24/kernel/net/wireless/tools/iwpriv ra0 set SSID="gph-adhoc"
sleep 1
ifconfig ra0 192.168.0.77 netmask 255.255.255.0 up
#udhcpc start
#udhcpc -i ra0 
#sleep 1
 
Ok, if I understand well :

I toggle Wifi on the Caanoos, then I copy the code in a server.gpu and client.gpu.

I launch them and it keeps loading :(

The leds on the GPH sticks blink both.

I did something wrong ?
 
its fine i just forget to add:
Code:
cd /usr/gp2x
exec ./gp2xmenu
This kick you back to menu :p and you
have an working adhoc on your caanoo :)
 
yeah you can play with this code together

Server.gpu give you host and all clients use the client.gpu

like an adhoc server but when your caanoo crash all client
lost conection but i dont must tell you that hehe, i thing
you know that.
 
Ok, I tried it on the new Mame (2.5 21/01/2011), but in the "network" section, you have only master available for the two Caanoos. One should be master, the other slave.
 
Back
Top