<div dir="ltr"><div><div><div>Hi Luigi,<br><br></div>USB wifi adapter compatibility is tricky for instances where you want the radio to broadcast multiple SSIDs (i.e. adhoc signal and a local AP signal).  To date, I've only been able to get this working on TL-WN821N <b>v3</b> which uses the <b>ath9k_htc</b> driver, not v2 which uses the carl9170 driver.  Likewise for the TL-WN722N.  Even then, I had patch the ath9k_htc driver (patch for OpenWRT included) to make the radio do multiple SSIDs.<br>

<br></div>On the other hand, if you are using the commotion-mesh-applet tool under a compatible desktop GUI like GNOME or Mate, it will only start a single adhoc interface, rather than multiple SSIDs.  The caveat, at when I last tested that tool in March, was that it expected the USB wifi interface to be named "wlan0" rather something else like "wlan1."<br>

<br></div>Could you respond with the OS and kernel versions on all machines involved, i.e. your laptop and the rPI?  The USB wifi driver might also be a bit stale, too.<br><div><br></div></div><div class="gmail_extra"><br>

<br><div class="gmail_quote">On Wed, Aug 14, 2013 at 8:43 AM, LuigiScop <span dir="ltr"><<a href="mailto:luigi.scopelliti@fastwebnet.it" target="_blank">luigi.scopelliti@fastwebnet.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Dan,<br>
totally agree that main challenge is to pick up a good USB wireless.<br>
I have bought (1 month ago) theTP-Link  TL_WN821N(V.2).The V.2(I found out later) is not in the Linux kernel. I had to install the firmware carl9170. Easy to make it works in managed mode.<br>
Still not working in ad-hoc mode.Not sure if it is a problem of the firmware( it should work also in ad-hoc) or the /etc/network/interfaces  and wpa_supplicant setting.<br>
Assuming that TL_WN821N(v.2) works,could be helpful to have some info from you based on your experience.<br>
After I'll buy the TP-Link TL-WN722N<br>
Thanks.<br>
<br>
luigi<div class="HOEnZb"><div class="h5"><br>
<br>
On 13/08/2013 23:07, Dan Staples wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 08/13/2013 04:56 PM, Dan Staples wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Luigi,<br>
<br>
Glad to hear about all the successes!<br>
<br>
I have made a mesh network from Raspberry Pis before (battery-powered,<br>
even), so it's definitely possible. The main challenge is to pick a good<br>
USB wireless adapter. I recommend the TP-Link TL-WN722N [1], since its<br>
driver supports ad-hoc mode in recent Linux kernels.<br>
<br>
Then, you install your Raspberry Pi operating system (I recommend<br>
Raspbian), and configure the wireless adapter to be in ad-hoc mode with<br>
the correct SSID,BSSID,channel, etc. This is done in<br>
/etc/network/interfaces...if you need info on how to to that, I can give<br>
you resources.<br>
<br>
Then you can install and configure OLSRd on the Pi, so that it can mesh<br>
with the other devices. For an olsrd config file, you can look at<br>
/var/etc/olsrd.conf on one of your picostations for an example.<br>
<br>
Let us know how that goes!<br>
<br>
-Dan<br>
<br>
<br>
[1] <a href="http://www.tp-link.com/en/products/details/?model=TL-WN722N" target="_blank">http://www.tp-link.com/en/<u></u>products/details/?model=TL-<u></u>WN722N</a><br>
<br>
On 08/13/2013 12:04 PM, LuigiScop wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It was a pleasure to join Commotion team several  months ago.<br>
With your support I was able to implement a local mesh newtwork with<br>
two routers (picostation), my  two Linux LapTops and Iphone.<br>
I have also tested the capabiity of commotiont application portal by<br>
installing either Tidepools and MediGrid.<br>
Most of the time spent to play with the raspberry and after installing<br>
MediaGrid.<br>
Everything works.I tried to upload and share some music and the chat.<br>
<br>
Based on this experience I have some questions.<br>
a)How to make the Raspberry pi part of the Mesh?In my application I have<br>
connected it to the AP as external device.<br>
b)Is there any future for the integration of raspberry in the commotion<br>
network?<br>
<br>
Last question.<br>
c)My idea is to buy two Nanostations and to extend the range of my local<br>
mesh.<br>
Any suggestion based on your experience?<br>
To reach longer distances(1 to 2  miles)I would choose a 5Ghz (the power<br>
limit in Italy is 1 W output power at 5Ghz).Much more less for Wifi(15dbm).<br>
Thanks for your support and suggestions.<br>
<br>
Luigi<br>
<br>
Il 19/06/2013 14:00, <a href="mailto:commotion-discuss-request@lists.chambana.net" target="_blank">commotion-discuss-request@<u></u>lists.chambana.net</a> ha<br>
scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send Commotion-discuss mailing list submissions to<br>
     <a href="mailto:commotion-discuss@lists.chambana.net" target="_blank">commotion-discuss@lists.<u></u>chambana.net</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
     <a href="https://lists.chambana.net/mailman/listinfo/commotion-discuss" target="_blank">https://lists.chambana.net/<u></u>mailman/listinfo/commotion-<u></u>discuss</a><br>
or, via email, send a message with subject or body 'help' to<br>
     <a href="mailto:commotion-discuss-request@lists.chambana.net" target="_blank">commotion-discuss-request@<u></u>lists.chambana.net</a><br>
<br>
You can reach the person managing the list at<br>
     <a href="mailto:commotion-discuss-owner@lists.chambana.net" target="_blank">commotion-discuss-owner@lists.<u></u>chambana.net</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Commotion-discuss digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
     1. Commotion installation on Linux laptop (LuigiScop)<br>
     2. Re: Commotion installation on Linux laptop (Dan Staples)<br>
     3. Material for a workshop on mesh networks (Alexander Chemeris)<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>----------<br>
<br>
Message: 1<br>
Date: Tue, 18 Jun 2013 21:37:36 +0200<br>
From: LuigiScop <<a href="mailto:luigi.scopelliti@fastwebnet.it" target="_blank">luigi.scopelliti@fastwebnet.<u></u>it</a>><br>
To: <a href="mailto:commotion-discuss@lists.chambana.net" target="_blank">commotion-discuss@lists.<u></u>chambana.net</a><br>
Subject: [Commotion-discuss] Commotion installation on Linux laptop<br>
Message-ID: <<a href="mailto:51C0B700.4000207@fastwebnet.it" target="_blank">51C0B700.4000207@fastwebnet.<u></u>it</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
<br>
Everything at home which has a wifi interface can be connected and the<br>
network(built by 2 picostations) is working as ad-hoc network.<br>
     If the fridge,the oven or the stove had a wifi interface, they would<br>
be connected to <a href="http://commotionwireless.net" target="_blank">commotionwireless.net</a> too.<br>
      The only issue I have found is that if I try to access internet with<br>
the  linux laptop  using the ad-hoc interface of the AP router,I can't.<br>
      But if I use the router AP as master ,I can.<br>
      I red somewhere that this feature is not avalable for laptop. Please<br>
confirm.<br>
      On the other end if I connect a local web server to the POE LAN port<br>
of one router, I can have access to the  web page also from the linux<br>
laptop through the  ad-hoc  interface     of the router(picostation).<br>
      As a demo to show the capabilities of commotion solution I would<br>
like to implement a Server application.<br>
      Which application  do you suggest first that can explain better the<br>
commotion solution capabilities?<br>
      I need to recruit some people on ths project.<br>
<br>
       Luigi<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<u></u>_________________<br>
Commotion-discuss mailing list<br>
<a href="mailto:Commotion-discuss@lists.chambana.net" target="_blank">Commotion-discuss@lists.<u></u>chambana.net</a><br>
<a href="https://lists.chambana.net/mailman/listinfo/commotion-discuss" target="_blank">https://lists.chambana.net/<u></u>mailman/listinfo/commotion-<u></u>discuss</a><br>
</blockquote>
When connecting your laptop to the picostation over ad-hoc, do you have<br>
olsrd running on the laptop? If so, and if the picostation has access to<br>
the internet, your laptop should get a route via olsrd to the internet<br>
as well.<br>
<br>
To troubleshoot this, try checking the output of "nc localhost 2006" (to<br>
show olsrd info), and "route -n" on the laptop to show local routes.<br>
<br>
As for applications, I would suggest either Tidepools (a local mapping<br>
application: <a href="http://www.tidepools.co/" target="_blank">http://www.tidepools.co/</a>) or MediaGrid (a secure<br>
file-sharing and webchat application:<br>
<a href="https://github.com/danstaples/MediaGrid" target="_blank">https://github.com/danstaples/<u></u>MediaGrid</a>). They both require a good bit<br>
of tinkering to work well, but could be a fun project. Or you could try<br>
for something simpler to setup, like an Apache web server.<br>
<br>
Also, when you have the server set up, try using the application portal<br>
on the picostation<br>
(<a href="https://code.commotionwireless.net/projects/commotion/wiki/Application_Portal" target="_blank">https://code.<u></u>commotionwireless.net/<u></u>projects/commotion/wiki/<u></u>Application_Portal</a>).<br>
<br>
When you "add an application", it will show up automatically on other<br>
routers nearby within a few minutes!<br>
<br>
Dan<br>
<br>
</blockquote>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Commotion-discuss mailing list<br>
<a href="mailto:Commotion-discuss@lists.chambana.net" target="_blank">Commotion-discuss@lists.<u></u>chambana.net</a><br>
<a href="https://lists.chambana.net/mailman/listinfo/commotion-discuss" target="_blank">https://lists.chambana.net/<u></u>mailman/listinfo/commotion-<u></u>discuss</a><br>
<br>
</blockquote>
<br>
</blockquote>
As for your other questions, we would like to have a Commotion image for<br>
Raspberry Pi, but it is not a top priority for now. Perhaps someone from<br>
the dev community can create one ;)<br>
<br>
And we often use Nanostations for connecting parts of a mesh network<br>
over longer distances. They work really well for that purpose, but<br>
aren't the best for providing access points since they are directional.<br>
<br>
-Dan<br>
<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
Commotion-discuss mailing list<br>
<a href="mailto:Commotion-discuss@lists.chambana.net" target="_blank">Commotion-discuss@lists.<u></u>chambana.net</a><br>
<a href="https://lists.chambana.net/mailman/listinfo/commotion-discuss" target="_blank">https://lists.chambana.net/<u></u>mailman/listinfo/commotion-<u></u>discuss</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br>

314-246-9434<br></div>
</div>