Bosch DCN Next Generation Bedienungsanleitung Seite 259

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 296
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 258
DCN Next Generation Open Interface Release 2.4 AT
en | 259
Bosch Communications Systems | 2007 February | SRS_ATINF | Du100902
APPENDIX C. EXAMPLES
In the examples below the remote functions and update notifications, that are defined in this
document as constant values for the wFnId parameter of the message (see [SRS_INF]), are
presented as functions described in a ‘C’ syntax. The parameter structures of these functions are
according the input, output or notify structures described in the appropriate section.
For every function is assumed that the function will create the required input parameter structure,
transport the parameters to the CCU and waits for the result information coming from the CCU.
For both the remote functions as the update notifications the same names are used as their
identifier, but without the constant mark “C”, some “_” and using mixed case names.
For example remote function AT_C_STORE_SETTING shall be referenced as function:
AT_StoreSetting (&tSettings);
C.1. 0.1 Using Attendance Registration and Access Control
This example shows how the remote controller can perform attendance registration with the
entrance- and exit units by using ID Cards.
For this example we have defined the following DCN NG system:
A conference hall equipped with delegate units without ID-card readers
Entrance and Exit units are present.
The seat-assignment has been done by the remote controller.
A delegate database is downloaded into the CCU.
Using this system we like to use the ID-cards for registration and access control for all delegates.
Because the system does not have an ID-card reader in the units, we use card-readers in the
entrance- and exit units to register the delegates.
First the remote controller must register himself to the AT application.
error = AT_StartATApp (AT_C_APP_CONTROL);
switch (error)
{
case AT_E_INCONTROL_THIS_CHANNEL:
/* I have the attendance registration app already under control */
/* Is that correct? Is the remote controller restarted? */
/* For the moment assume to be correct and continue */
.........
break;
case AT_E_INCONTROL_OTHER_CHANNEL:
/* Another remote controller has control over the attendance registration
app */
/* report error and terminate */
.........
return;
case AT_E_INMONITOR_THIS_CHANNEL:
/* I tried to open the application for control, but it seems that I have the
*/
/* attendance registration application already opened for Monitoring
attendance. */
/* report error and terminate */
.........
return;
case AT_E_NOERROR:
/* function ended succesful, continue */
break;
default:
/* some unexpected error occurred. */
/* report the error */
.........
break;
}
Seitenansicht 258
1 2 ... 254 255 256 257 258 259 260 261 262 263 264 ... 295 296

Kommentare zu diesen Handbüchern

Keine Kommentare