Differences

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

Link to this comparison view

Next revision
Previous revision
en:multiple_wiegand_format_support [2017/08/25 11:54]
127.0.0.1 external edit
en:multiple_wiegand_format_support [2024/02/14 09:41] (current)
alex [2. How the multiple Wiegand format support works]
Line 25: Line 25:
 public struct BS2WiegandConfig public struct BS2WiegandConfig
 { {
- public byte inOut;+ public byte mode;
  public byte useWiegandBypass;​  public byte useWiegandBypass;​
  public byte useFailCode;​  public byte useFailCode;​
Line 45: Line 45:
   * wiegandCardMask:​ contains a bitmask that indicates the indexes of the Wiegand formats to use for the master device. When the device is working as a master device, it reads the Wiegand cards that match the Wiegand formats specified in this field. If you want to specify the first and third elements (array index: 0 and 2) of the formats array field of the BS2WiegandMultiConfig data structure, the bitmask should be set to 0000000000001010,​ because the 0th bit is reserved for the backward compatibility. This wiegandCardMask field is applicable when reading a Wiegand card (iClass or Prox) on the master device. ​   * wiegandCardMask:​ contains a bitmask that indicates the indexes of the Wiegand formats to use for the master device. When the device is working as a master device, it reads the Wiegand cards that match the Wiegand formats specified in this field. If you want to specify the first and third elements (array index: 0 and 2) of the formats array field of the BS2WiegandMultiConfig data structure, the bitmask should be set to 0000000000001010,​ because the 0th bit is reserved for the backward compatibility. This wiegandCardMask field is applicable when reading a Wiegand card (iClass or Prox) on the master device. ​
  
-  * wiegandCSNIndex:​ contains the index of the Wiegand formats used to convert the card serial number for both the master device and the slave device. When you flash a non-Wiegand card (Mifare or EM) to the device, it reads the card serial number from the card and converts it into the Wiegand format specified in this field. Only one index can be set to this field. If you want to convert a card serial number into the Wiegand format stored on the 3rd element (array index: 2) of the formats array field of the BS2WiegandMultiConfig data structure, ​it should be set to 2. This wiegandCSNIndex field is applicable when reading a non-Wiegand card (Mifare or EM) on both master and slave devices. ​+  * wiegandCSNIndex:​ contains the index of the Wiegand formats used to convert the card serial number for both the master device and the slave device. When you flash a non-Wiegand card (Mifare or EM) to the device, it reads the card serial number from the card and converts it into the Wiegand format specified in this field. Only one index can be set to this field. If you want to convert a card serial number into the Wiegand format stored on the 3rd element (array index: 2) of the formats array field of the BS2WiegandMultiConfig data structure, ​the wiegandCSNIndex ​should be set to 3. This wiegandCSNIndex field is applicable when reading a non-Wiegand card (Mifare or EM) on both master and slave devices. ​
  
 When the three mask fields above are all set to 0, the device will try to read the Wiegand cards that match the Wiegand format stored in the BS2WiegandFormat field of the BS2WiegnadConfig data structure: When the three mask fields above are all set to 0, the device will try to read the Wiegand cards that match the Wiegand format stored in the BS2WiegandFormat field of the BS2WiegnadConfig data structure:
Line 52: Line 52:
 public struct BS2WiegandConfig public struct BS2WiegandConfig
 { {
- public byte inOut;+ public byte mode;
  public byte useWiegandBypass;​  public byte useWiegandBypass;​
  public byte useFailCode;​  public byte useFailCode;​