Bosch DCN Next Generation Manual do Utilizador Página 260

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 296
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 259
DCN Next Generation Open Interface Release 2.4 AT
en | 260
Bosch Communications Systems | 2007 February | SRS_ATINF | Du100902
We now have control over the attendance registration application and may change the settings,
but first the input parameter structure must be filled in:
AT_T_SETTINGS tSettings;
tSettings.bySeatAttend = AT_C_ENTRANCE_EXIT;
tSettings.bySeatAccess = AT_C_ONE_SEAT;
tSettings.byControlType = AT_C_IDCARD;
error = AT_StoreSetting (&tSettings);
if (error != AT_E_NOERROR)
{
/* do error handling */
}
Starting attendance registration and access control will be done by calling the following function:
AT_T_ACTIVATE tActivate;
tActivate.bAttendanceOn = TRUE;
tActivate.bAccessOn = TRUE;
error = AT_Activate (&tActivate);
if (error != AT_E_NOERROR)
{
/* do error handling */
}
The CCU is now running attendance registration and access control. When a delegate inserts his
ID-card into an entrance unit, the AT application on the CCU sends an “individual registration”
and “total registration” notification.
This result in the following two functions:
void AT_SendIndivRegistration (AT_T_REGISTER_INDIV *tIndivResults)
{
WORD wIndex;
/* get presence of delegates */
for (wIndex = 0; wIndex < tIndivResults->wFillLevel; wIndex++)
{
/* handle the presency of each delegate separately */
}
}
void AT_SendTotalRegistration (AT_T_REGISTER_TOTAL *tTotalResults)
{
/* update the local results with the new total present and absent
information from the CCU */
}
When the remote controller is also equipped with a card-reader, then the delegates may use that
card-reader to register themselves. In that specific case the remote controller reads the ID-card
and registers the delegate to the Attendance application by using the
AT_C_HANDLE_IDENTIFICATION remote function.
For example when two delegates with card-code 16824 and 6823 have registered themselves
using the remote controller, the remote controller performs the following actions:
AT_T_IDENTIFICATION_REC tIdentification;
tIdentification.wEvent = ACSC_EVENT_INSERT_CARD_ENTRANCE;
tIdentification.wFillLevel = 2;
tIdentification.tDelIdentification [0].dwCardCode = 16824;
tIdentification.tDelIdentification [0].wPinCode = 0; /* not used */
tIdentification.tDelIdentification [1].dwCardCode = 6823;
tIdentification.tDelIdentification [1].wPinCode = 0; /* not used */
wError = AT_HandleIdentification (&tIdentification);
if (wError != AT_E_NOERROR)
{
/* do error handling */
}
Finally, when the congress is ended, we can stop the Attendance registration and Access control
by calling:
Vista de página 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 295 296

Comentários a estes Manuais

Sem comentários