Arduino Forum

Products => WiFi Shield 101 => Topic started by: Dirk67 on Oct 02, 2015, 08:41 am

Title: communication between several Wifis shields 101 without Router ?
Post by: Dirk67 on Oct 02, 2015, 08:41 am
Is it possible that one Wifi shields 101 is the access point (AP-Mode)
and several other Wifi shields 101 are WiFi-clients to this AP ?

I see that in the library --> https://github.com/arduino-libraries/WiFi101 (https://github.com/arduino-libraries/WiFi101)
there are some AP-Mode (https://github.com/arduino-libraries/WiFi101/search?utf8=%E2%9C%93&q=AP&type=Code) definitions,
and some "m2m" (machine to machine ?) (https://github.com/arduino-libraries/WiFi101/search?utf8=%E2%9C%93&q=m2m&type=Code) -functions ...

does anyone know more ?
Title: Re: communication between several Wifis shields 101 without Router ?
Post by: SurfingDude on Oct 04, 2015, 04:10 pm
The WINC1500 radio supports Wi-Fi Direct (Peer-to-Peer) Mode, and Atmel Studio has an example project for it. It also supports Wi-Fi Hotspot (Access Point Mode) and has an example project.

However, the Arduino libraries supporting the initial version of WiFi Shield 101 do not appear to flesh out these modes and have no examples of this. You could develop your own Arduino library support for this or you could immediately use these modes with Atmel Studio. If you develop the library support you might contribute it to the community.
Title: Re: communication between several Wifis shields 101 without Router ?
Post by: Dirk67 on Oct 28, 2015, 10:19 am
Quote
communication between several Wifi shields 101 without Router ?
obviously this is not possible according to Atmels FAQ:
http://atmel.force.com/support/articles/en_US/FAQ/WINC1500-supported-connection-modes-and-limitations (http://atmel.force.com/support/articles/en_US/FAQ/WINC1500-supported-connection-modes-and-limitations)
Quote
[...]
Access Point (AP) mode. acting as a soft AP basically for provisioning purposes
 - Only one associated station is supported.
[...]
Title: Re: communication between several Wifis shields 101 without Router ?
Post by: SurfingDude on Oct 28, 2015, 04:51 pm
Good catch Dirk67, but that's not exactly the case. It looks like that in access point mode, only one client AT A TIME is supported. Refer to:
http://www.atmel.com/Images/Atmel-42420-WINC1500-Software-Design-Guide_UserGuide.pdf

Page 17 is the state chart. After the AP has completed its business with one client it can take the branch m2m_wifi_disable_ap and then ready itself to listen for another client or even transition to one of the other modes. The example on page 49 uses an endless loop but it could just as well terminate after business is completed.

This is of course based on the existing Atmel Firmware version 19.3.0 but that is of course subject to modification or improvement in the future.

However, this begs the real question of whether or not the community will modify the Arduino library to support it. That could be a significant effort, and it might be better to use an off-the-shelf WiFi access point and be done with it.
Title: Re: communication between several Wifis shields 101 without Router ?
Post by: Dirk67 on Oct 30, 2015, 02:04 pm
It looks like that in access point mode, only one client AT A TIME is supported.
yes, and that's not good...
I'm not so experienced, but how can the AP make proper DHCP if only one client is connected at a time ?
I think I'll be better off with an ESP8266 maybe (?)
I'm making experiments with the wino-board today and it look promising so far ... http://wino-board.com (http://wino-board.com)