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:configuration_api [2025/06/13 09:02]
mwkim [BS2CardConfig]
en:configuration_api [2025/06/13 10:43] (current)
Line 1093: Line 1093:
 Input mask for the wiegand input of the master device. \\ \\ Input mask for the wiegand input of the master device. \\ \\
 **16. //​wiegandCSNIndex//​** \\ **16. //​wiegandCSNIndex//​** \\
-Index that determines in which format the device will send out a wiegand ouput after the card has been read. This field is used only for Mifare and EM devices. Please check the //​useWiegandFormat//​ field of the [[configuration api#​BS2CardConfig]] structure before configuring. \\ \\+Index that determines in which format the device will send out a wiegand ouput after the card has been read. This field is used only for Mifare and EM devices. Please check the //​useWiegandFormat//​ field of the [[configuration api#​BS2CardConfig]] structure before configuring. ​Only one index can be set to this field. 
 + \\ \\
 **17. //​useWiegandUserID//​** \\ **17. //​useWiegandUserID//​** \\
 The flag you can select whether card ID or user ID to be sent via Wiegand output. \\ The flag you can select whether card ID or user ID to be sent via Wiegand output. \\
Line 3453: Line 3454:
 3. //​BS2FacilityCode//​ \\ 3. //​BS2FacilityCode//​ \\
 Used as an authentication code when the OSDP connection between the Door Interface (DI-24) and the master device is lost. \\ \\ Used as an authentication code when the OSDP connection between the Door Interface (DI-24) and the master device is lost. \\ \\
-4. //reserved0// \\+4. //reserved1// \\
 Reserved space. \\ \\ Reserved space. \\ \\
  
Line 3459: Line 3460:
 <code cpp> <code cpp>
 typedef struct { typedef struct {
-    ​BS2_DEVICE_ID ​  deviceID; ​      ///<​  +    ​uint32_t ​       ​deviceID; ​      ///<​  
-    ​BS2_DEVICE_TYPE ​deviceType; ​    ///<​ 2 bytes +    ​uint16_t ​       ​deviceType; ​    ///<​ 2 bytes 
-    ​BS2_BOOL ​       ​enableOSDP; ​    ///<​ 1 byte +    ​uint8_t ​        enableOSDP; ​    ///<​ 1 byte 
-    ​BS2_BOOL ​       ​connected; ​     ///< 1 bytes (packing)+    ​uint8_t ​        connected; ​     ///< 1 bytes (packing)
  
     union {     union {
             uint8_t ​        ​channelInfo;​             uint8_t ​        ​channelInfo;​
-            ​BS2_DEVICE_ID ​  parentID;+            ​uint32_t ​       ​parentID;
     };     };
 } BS2Rs485SlaveDeviceEX;​ } BS2Rs485SlaveDeviceEX;​
Line 3475: Line 3476:
     uint8_t ​                ​useRegistance;​     uint8_t ​                ​useRegistance;​
     uint8_t ​                ​numOfDevices;​     uint8_t ​                ​numOfDevices;​
-    ​BS2_OSDP_CHANNEL_TYPE ​  channelType;​+    ​uint8_t ​                channelType;​
     BS2Rs485SlaveDeviceEX ​ *slaveDevices;​     BS2Rs485SlaveDeviceEX ​ *slaveDevices;​
 } BS2Rs485ChannelEXDynamic;​ } BS2Rs485ChannelEXDynamic;​
Line 3507: Line 3508:
 4. //​numOfDevices//​ \\  4. //​numOfDevices//​ \\ 
 Number of slave devices. \\ \\ Number of slave devices. \\ \\
-5. //​slaveDevices//​ \\ +5. //​channelType//​ \\ 
 +Type of slave device connected to the port. \\ 
 +<WRAP group 50%> 
 +^Value ​ ^Description ​ ^ 
 +|0  |No connection ​ | 
 +|1  |Suprema device ​ | 
 +|2  |OSDP standard device ​ | 
 +|3  |Cannot connect anymore ​ | 
 +</​WRAP>​ 
 +6. //​slaveDevices//​ \\ 
 List of slave devices connected to the device. \\ List of slave devices connected to the device. \\
 <WRAP group 50%> <WRAP group 50%>
Line 3515: Line 3525:
 |Port 1  |2  | |Port 1  |2  |
 </​WRAP>​ </​WRAP>​
-6. //slaveDevices// \\ +7. //mode// \\ 
 This flag determines the operating mode on the RS485 network. \\ This flag determines the operating mode on the RS485 network. \\
 <WRAP group 50%> <WRAP group 50%>
Line 3526: Line 3536:
 CoreStation can only be used as a Master. Other values cannot be configured. CoreStation can only be used as a Master. Other values cannot be configured.
 </​WRAP>​ </​WRAP>​
-7. //​numOfChannels//​ \\ +8. //​numOfChannels//​ \\ 
 Number of RS485 channel. \\ \\  Number of RS485 channel. \\ \\ 
-8. //​reserved//​ \\ +9. //​reserved//​ \\ 
 Reserved space. \\ \\  Reserved space. \\ \\ 
-9. //​reserved1//​ \\ +10. //​reserved1//​ \\ 
 Reserved space. \\ \\ Reserved space. \\ \\
-10. //​channels//​ \\ +11. //​channels//​ \\ 
 List of RS-485 channels, which can be configured up to 8 channels. \\ \\  List of RS-485 channels, which can be configured up to 8 channels. \\ \\