[OpenWrt-Devel] Controlling POE passthrough via GPIO

John Crispin blogic at openwrt.org
Tue Jun 23 00:59:33 EDT 2015



On 23/06/2015 01:48, Lars Kruse wrote:
> Hi,
> 
> within our wireless community we are using a couple of devices with the
> following features:
> * powered via POE through their first ethernet plug
> * another device can be powered via the second ethernet plug (POE passthrough
>   switchable via GPIO)
> 
> The POE passthrough feature can be controlled via GPIO pins.
> For our most common devices (Nanostation M5 and TP-Link CPE510) these are GPIO
> pins #2, #8 or #20 (depending on the model).
> 
> Currently we are using a custom script (see attached) for these models.
> 
> I have the feeling that this kind of hardware capabilities should be available
> within openwrt (similar to the LED setup).
> 
> Is there anything related already implemented within openwrt?
> If not: where would you recommend to put it?
> 

add some generic uci-sefault functions to add poe sections to uci. then
create a /etc/init.d/poe script that will set the gpios based on what is
written in uci. finally call the new uci-defaults functions from
/etc/uci-default/$my_arch
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list