16
It is recommended to plug the freewheel diode very close to the strike.
Phoenix connector GPIOs configura on
The GPIOs configura on can be done by edi ng the user preferences in the device configura on Web interface or with a configura on script. The part related to the GPIO
configura on is explained below:
// Set Phoenix direction: input or output
if (aDirection == "out")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.phoenix-gpio_1.phoenix_1." + aPort + ".authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.phoenix-gpio_1.phoenix_1." + aPort + ".authorized", true);
Services.prefs.setBoolPref("system.connector.phoenix_1." + aPort + ".io.phoenix-gpio_1.enabled", true);
}
else if (aDirection == "in")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.phoenix-gpio_1.phoenix_1." + aPort + ".authorized", true);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.phoenix-gpio_1.phoenix_1." + aPort + ".authorized", false);
Services.prefs.setBoolPref("system.connector.phoenix_1." + aPort + ".io.phoenix-gpio_1.enabled", true);
}
else if (aDirection == "disable")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.phoenix-gpio_1.phoenix_1." + aPort + ".authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.phoenix-gpio_1.phoenix_1." + aPort + ".authorized", false);
Services.prefs.setBoolPref("system.connector.phoenix_1." + aPort + ".io.phoenix-gpio_1.enabled", false);
}
+
-
Freewheel
diode
Strike