Hi,
im am trying to activate the poe passtrough on the mikrotik hAP ac aka RB962UiGS-5HacT2HnT
The poe is linked to gpio 3
so i added on /etc/config/system
uci delete system.poe_passthrough
uci set system.poe_passthrough=gpio_switch
uci set system.poe_passthrough.name="PoE Passthrough"
uci set system.poe_passthrough.gpio_pin=3
uci set system.poe_passthrough.value=1
uci commit
reload_config
and also tryied to do
echo 0 > /sys/class/gpio/gpio3/value
and
echo 1 > /sys/class/gpio/gpio3/value
I see le led change to red but the accesspoint connect still not powered
I have found this commit https://github.com/openwrt/openwrt/commit/c2140e32ce32b9cc60f7d408e20bdf45dce6a634
Not sure if that mean gpio 3 have to be low & direction out in order to switch on the poe passwtrough?
If it's the case do need to export gpio2 and to change the direction to in & statut to high?
I tryied
echo 2 > /sys/class/gpio/export
echo 1 > /sys/class/gpio/gpio3/value
echo in > /sys/class/gpio/gpio2/direction
root@mikrotik:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/ath79-gpio, ath79-gpio:
gpio-2 ( |sysfs ) in lo
gpio-3 ( |POE power ) out lo
gpio-12 ( |rb:green:user ) out hi
gpio-13 ( |USB power off ) out hi
gpio-20 ( |Reset button ) in hi
but both must be high or low, the change fail with error
root@mikrotik:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/ath79-gpio, ath79-gpio:
gpio-2 ( |sysfs ) in hi
gpio-3 ( |POE power ) out hi
gpio-12 ( |rb:green:user ) out lo
gpio-13 ( |USB power off ) out hi
gpio-20 ( |Reset button ) in hi
root@mikrotik:~# echo 1 > /sys/class/gpio/gpio3/value
root@mikrotik:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/ath79-gpio, ath79-gpio:
gpio-2 ( |sysfs ) in lo
gpio-3 ( |POE power ) out lo
gpio-12 ( |rb:green:user ) out lo
gpio-13 ( |USB power off ) out hi
gpio-20 ( |Reset button ) in hi
could you help ?