Main Site Documentation

Wifi RS21 Ad-hoc problem


#1

Hello,

I bought a Wifi RS21 module for my gadgeteer.

I use it with a FEZ Raptor.

The connection to my Wifi is working well with SID / PASSPHRASE.

But when I try to configure it as an AD-HOC spot, the network never appear in my wifi list.

Here is my code :


           if (!my_wifi_RS21.Interface.IsOpen)
            {
                my_wifi_RS21.Interface.Open();
                NetworkInterfaceExtension.AssignNetworkingStackTo(my_wifi_RS21.Interface);
            }
            my_wifi_RS21.Interface.StartAdHocHost("Gadgeteer", GHI.Premium.Net.SecurityMode.Open, "", 10);
            my_wifi_RS21.Interface.NetworkInterface.EnableStaticIP("169.254.0.200", "255.255.0.0", "169.254.0.1");

            my_wifi_RS21.UseStaticIP("169.254.0.200", "255.255.0.0", "169.254.0.1");
            my_wifi_RS21.UseThisNetworkInterface();

            my_wifi_RS21.Interface.WirelessConnectivityChanged += Interface_WirelessConnectivityChanged;

If anyone can help… :slight_smile:


#2

@ boulet - What is the client you are trying to connect with?


#3

Hi James,

I try to connect from my PC to send HTTP request to my device.

I am running on Windows 8.1.


#4

@ boulet - I was not able to see the network in Windows 8.1. However, I reverted to a Win7 machine as I know this used to work. The Windows 7 machine can see and connect. Unfortunately, according to this link: http://answers.microsoft.com/en-us/windows/forum/windows8_1-networking/windows-81-ad-hoc-not-showing/5d75d887-ff59-425e-a480-9f80ada63627 this is a known bug of Windows 8.1.

You will either need to connect via a router, use Windows 7 or wait for a bugfix to be released to Windows 8.1.


#5

Thank you for you reply James.

I have the same problem on Windows Phone 8 (HTC 8X).

Do you think it is the same bug?

Regards,


#6

@ boulet - Yes. As far as I remember (but do not quote me on this as I do not keep up with Windows Phones) WinPhone8 is a direct derivative of Windows 8 so bugs are likely shared in things like the network stack. However, it is possible that the phone simply does not support it. Most Android phones require you to root the device to enable AdHoc.