18
Configuration
GPIO1 connector configuration can be done by editing the user preferences using the
Administration console
user interface or with a configuration
script. The GPIO1 configuration part for this script is described here:
H ow to configure the J ack 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 4.13.15 002E
Page 1: ...U ser manual DMB 400 4 13 15 002E...
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 15: ...15 N Function 1 CD 2 RX D 3 TX D 4 DTR 5 GND 6 DSR 7 RTS 8 CTS 9...
Page 17: ...17...
Page 19: ...19 Part II Applicative user interface...
Page 21: ...21 Part III Administration console user interface...
Page 49: ...49 Part IV Con guration b y script...
Page 51: ...51 Part V Technical information...
Page 55: ...55 Part VI Contacts...
Page 57: ...57 Part VII Appendix...
Page 62: ...62 15 16 17...