I’ve not tried to set up ad hoc on the Edison yet but I believe the procedure to do so might be similar to that of the Galileo. Take a look at this post https://communities.intel.com/message/237865#237865 and the links other users posted.
what exactly do you need to accomplish?
I am not sure whether "WiFi direct" or a WiFi ad-hoc network would work but maybe you don't really require it?
I haven't tried on Edison yet but I guess you could for instance use Edison as an access point + run a DHCP server such that other components could connect to it.
I know that's not an ad-hoc network but maybe it would be fine for what you're up for?
1 of 1 people found this helpful
Yes, it is possible.
I'm using ubilinux (Debian).
I edited /etc/network/interface, and entered the following for wlan0:
iface wlan0 inet static
Note that /etc/network/interfaces is not available in Yocto, so I'm not sure how you'd do it there, but it should be possible, although I hate saying "it should be possible" without actually testing it.
Once the above is in /etc/network/interface, I did "ifup wlan0"
and I could then use 'iwconfig' to confirm that the Edison was indeed in ad-hoc mode, I could see
wlan0 IEEE 802.11abgn ESSID:"edison"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: Not-Associated
Retry long limit:7 RTS thr:off Fragment thr:off
And I could then connect to it with my iPhone. I didn't have time to pass traffic, but I think that demonstrates it can be done.
I agree with mhahn, can you share what you're trying to accomplish. I'll try to help you figure out a how.
@David_J_Hunt, I am going to see if I can get some steps for how-to via the tools on a bare Yocto image.
I've been trying to do an ad-hoc network too, and when I ran these commands on the Edison:
ifconfig wlan0 up
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid "abc"
ifconfig wlan0 192.168.1.1 netmask 255.255.255.0
I was able to see the "abc" network on my mac and connect to it.
My mac & phone have no problem connecting to it, but I have a second edison and I can't connect them between themselves.
I'm not sure if edison # 2 should also be in ad-hoc mode or just one?
Maybe someone can shine some light on this!
I'm looking at ad-hoc networking with edisons as well.
Did you have any success with making the edisons talk to each other using ad-hoc wifi?
I had limited success as it looks like two edisons can communicate, but using more than two makes the ad-hoc network stop working. Also I have issues with broadcasts not working - I need this for DHCP to work. Setting up the yocto linux software installed on my edisons for adhoc networking (which I hope to use for a mesh network) was something of a challenge for me. If anyone is interested I could write a short howto.
I managed to setup simple ad-hoc networking on 3 edisons. I use no encryption for the wifi adhoc network.
I used ahcpd (AHCP — the Ad-Hoc Configuration Protocol) to assign IP addresses to the members of the mesh and olsrd (OLSR.org Wiki) to setup routing. I tested the routing by adding a firewall rule making it impossible to ping one host directly and noticed that olsrd added a route so that packets from the blocked host will go indirectly.
So it looks like I have a small working mesh.
I made a custom layer with the software that I use so let me know if anyone wants ahcpd/olsrd recipes.
My attempts to use wpa/wpa2 for the adhoc network failed. This is also not covered in the Intel WiFi document.