17
Configuration
GPIO1 connector configuration can be done by editing the user preferences using the device configuration Web user interface or with a configuration
script. The GPIO1 configuration part for this script is described here:
How to configure the Jack 3.5 mm connector:
//Set Jack 3.5 mm mode infrared
if (aDirection == "disable")
{
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.uart_1.enabled", true);
}
else //Set Jack 3.5 mm mode GPIO
{
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.uart_1.enabled", false);
}
// Set the Jack 3.5 mm direction: input or output
if (aDirection == "out")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_1.jack35_1.*.authorized", true);
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.jack35-gpio_1.enabled", true);
}
else if (aDirection == "in")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_1.jack35_1.*.authorized", true);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.jack35-gpio_1.enabled", true);
}
else if (aDirection == "disable")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.jack35-gpio_1.enabled", false);
}
Summary of Contents for DMB400
Page 1: ...User manual DMB400 4 14 14 002D...
Page 4: ...4 Part I Description and installation...
Page 7: ...7 1 2 1 Device xture...
Page 8: ...8 1 2 2 Device dimensions...
Page 18: ...18 Part II Applicative user interface...
Page 20: ...20 Part III Administration console user interface...
Page 48: ...48 Part IV Con guration by script...
Page 50: ...50 Part V Technical information...
Page 54: ...54 Part VI Contacts...
Page 56: ...56 Part VII Appendix...