Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:zone_control_api [2021/03/29 16:01]
yjjung [Ethernet Zone]
en:zone_control_api [2024/06/05 14:42] (current)
alex GlobalAPBViolationByDoor description update
Line 18: Line 18:
   * [[BS2_SetCheckGlobalAPBViolationHandler]]:​​ Registers callback function for global determination when an APB violation alarm occurs.   * [[BS2_SetCheckGlobalAPBViolationHandler]]:​​ Registers callback function for global determination when an APB violation alarm occurs.
   * [[BS2_CheckGlobalAPBViolation]]:​​ Transfers Global APB results to the device.   * [[BS2_CheckGlobalAPBViolation]]:​​ Transfers Global APB results to the device.
 +  * [[BS2_SetGlobalAPBViolationByDoorOpenHandler]]:​ [+ 2.7.0] Registers callback function for global determination when an APB violation by door alarm occurs.
 +  * [[BS2_CheckGlobalAPBViolationByDoorOpen]]:​ [+ 2.7.0] Transfers Global APB by door open results to the device.
 +
 +----
 ==== Timed Anti Passback Zone ==== ==== Timed Anti Passback Zone ====
 To prevent a user from re-entering in a certain time, a Timed Anti Passback zone can be used. This zone offers two options(soft,​ hard) as same as the Anti Passback zone.  To prevent a user from re-entering in a certain time, a Timed Anti Passback zone can be used. This zone offers two options(soft,​ hard) as same as the Anti Passback zone. 
Line 135: Line 139:
 Indicates whether to Dual authentication. ​ \\ \\  Indicates whether to Dual authentication. ​ \\ \\ 
  
 +==== OnCheckGlobalAPBViolationByDoorOpen ====
 +1st Callback function for requesting global determination based on authentication information when an APB violation by door alarm occurs.
 +<code cpp>
 +typedef void (*OnCheckGlobalAPBViolationByDoorOpen)(uint32_t deviceId, uint16_t seq, const char* userID_1, const char* userID_2, bool isDualAuth);​
 +</​code>​
 +\\
 +
 +1. //​deviceId//​ \\ 
 +Device ID  \\ \\ 
 +2. //seq// \\ 
 +Packet sequence number \\ \\ 
 +3. //​userID_1//​ \\ 
 +User ID 1  \\ \\ 
 +4. //​userID_2//​ \\ 
 +User ID 2  \\ \\ 
 +5. //​isDualAuth//​ \\ 
 +Indicates whether to Dual authentication. ​ \\ \\
 +
 +==== OnUpdateGlobalAPBViolationByDoorOpen ====
 +2nd Callback function for requesting the update of the final user access status when an APB violation by door alarm occurs.
 +<code cpp>
 +typedef void (*OnUpdateGlobalAPBViolationByDoorOpen)(uint32_t deviceId, uint16_t seq, const char* userID_1, const char* userID_2, bool isDualAuth);​
 +</​code>​
 +\\
 +
 +1. //​deviceId//​ \\ 
 +Device ID  \\ \\ 
 +2. //seq// \\ 
 +Packet sequence number \\ \\ 
 +3. //​userID_1//​ \\ 
 +User ID 1  \\ \\ 
 +4. //​userID_2//​ \\ 
 +User ID 2  \\ \\ 
 +5. //​isDualAuth//​ \\ 
 +Indicates whether to Dual authentication. ​ \\ \\
 +----
 ===== Structure ====== ===== Structure ======
 ==== BS2ZoneStatus ==== ==== BS2ZoneStatus ====
Line 151: Line 191:
 <WRAP group 50%> <WRAP group 50%>
 ^Value ​ ^Description ​ ^ ^Value ​ ^Description ​ ^
-|0 |Normal ​ |+|0 |Normal, Disarm ​ |
 |1 |Alarm triggered ​ | |1 |Alarm triggered ​ |
-|2 |Scheduled ​lock  | +|2 |Scheduled ​locked, Lift locked ​ | 
-|4 |Scheduled ​unlock ​ |+|4 |Scheduled ​unlocked, Lift unlocked ​ | 
 +|8 |Arm  |
 </​WRAP> ​ </​WRAP> ​