[Commotion-discuss] LED programming for mesh status?

Andy Gunn andygunn at opentechinstitute.org
Tue May 13 11:28:45 EDT 2014


Hi Jon - just a quick follow up to Seamus' earlier e-mail, there is a
way to set up something close to what you want for showing when a router
is meshed. I'm not sure how to indicate that a router has a gateway
connection in a simple way, it seems like the scripts Seamus mentions
might be the only way.

If you go to the menu that you indicated, and add an LED state:
1. Select the LED you want, "ubnt:red:link:1" for instance for the red
light.
2. Select the "netdev" trigger
3. Select the device "wlan0-1" for the mesh interface
4. Select "transmit" or "receive" as the trigger mode.

Repeat for the other trigger mode, so you have both transmit and receive
tied to separate LEDs (say orange and red, or orange and another green
light).

Save and apply. You should see the light flash for traffic in the
particular direction indicated (received or transmitted), which can
indicate mesh traffic. If it isn't meshing, you will see no traffic!

I know it isn't exactly what you were looking for, but it can be helpful
for seeing the mesh in action.
-A


On 05/12/2014 02:32 PM, Seamus Tuohy wrote:
> Hey Jon,
> 
> I think all of these would require a custom led script. The
> documentation for all the available scripts can be found here.
> 
> http://wiki.openwrt.org/doc/uci/system#leds
> 
> The scripts themselves are written in C from what I can tell. Here is
> the list of all the current scripts source code before they are compiled.
> 
> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/plain/drivers/leds/trigger/
> 
> I hope this helps.
> 
> s2e
> 
> 
> On 05/11/2014 04:46 PM, john coleman wrote:
>> under "System" is an option called: "LED Configuration"
>> I have Ubiquiti picostation  m2hp units that have multiple LEDs.
>> Ive figured out how to turn the LEDs on and off but would like to have
>> one turn on only when the picostation is meshed with other stations on
>> the mesh.
>> Alternatively I'd like to have one of the LEDs turn on when there is
>> access to the internet.
>> Is there an available trigger that would do either one of these?
>> To be honest I'm pretty ignorant of network programming so the listed
>> triggers don't mean much to me.
>> thanks,
>> john
>>
>>
>> _______________________________________________
>> Commotion-discuss mailing list
>> Commotion-discuss at lists.chambana.net
>> https://lists.chambana.net/mailman/listinfo/commotion-discuss
> _______________________________________________
> Commotion-discuss mailing list
> Commotion-discuss at lists.chambana.net
> https://lists.chambana.net/mailman/listinfo/commotion-discuss
> 

-- 
Andy Gunn, Field Engineer
Open Technology Institute, New America Foundation
andygunn at opentechinstitute.org | 202-596-3484


More information about the Commotion-discuss mailing list