Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:configuration_api [2022/04/11 11:14] 127.0.0.1 external edit |
en:configuration_api [2022/08/11 21:34] 127.0.0.1 external edit |
||
---|---|---|---|
Line 2420: | Line 2420: | ||
uint8_t useBarcode; | uint8_t useBarcode; | ||
uint8_t scanTimeout; | uint8_t scanTimeout; | ||
- | uint8_t reserved[14]; | + | uint8_t bypassData; |
+ | uint8_t treatAsCSN; | ||
+ | |||
+ | uint8_t reserved[12]; | ||
} BS2BarcodeConfig; | } BS2BarcodeConfig; | ||
</code> | </code> | ||
1. //useBarcode// \\ | 1. //useBarcode// \\ | ||
- | This is the flag for enabling Barcode or disabling Barcode. \\ \\ | + | Barcode usage flag. \\ \\ |
2. //scanTimeout// \\ | 2. //scanTimeout// \\ | ||
- | This is Timeout(second) setting for scanning Barcode. \\ | + | Set the Barcode scan time. The unit is in seconds. \\ |
- | Default second is 4 seconds. The time out can be set from 4 to 10 seconds. \\ \\ | + | The default is 4 seconds, and can be entered within a range of 4 to 10 seconds.\\ \\ |
- | 3. //reserved// \\ | + | 3. //bypassData// \\ |
- | Reserved space. \\ | + | [+2.8.2] Used to send read barcode information to the server, not processed by the device. \\ |
+ | If the barcode value is stored in the user information structure for user authentication, \\ | ||
+ | There is a size constraint of 32 bytes ([[smartcard_api#BS2CSNCard|BS2CSNCard data]]), \\ | ||
+ | Call the [[BS2_SetBarcodeScanListener]], use this option to send barcodes up to 512 bytes of size to the server. \\ \\ | ||
+ | 4. //treatAsCSN// \\ | ||
+ | [+2.8.2] Indicates whether the Barcode should be treated the same as a regular CSN card. \\ | ||
+ | It is applied from XS2-QR 1.1.3 and in the case of false, it is treated the same as before. \\ | ||
+ | This allows you to freely specify character sets that can be treated as barcodes from ASCII codes 32 to 126. (See description in [[qr_code_api#BS2_WriteQRCode|BS2_WriteQRCode]]) \\ | ||
+ | If set to true, the barcode is treated like a number just like the existing CSN. \\ | ||
+ | Therefore, if you want to set the bar code card data with special characters and English characters. \\ | ||
+ | In this case, only the card type may be different, and the CSN card and barcode data may be used in the same value. \\ | ||
+ | 5. //reserved// \\ | ||
+ | Reserved space. \\ | ||
==== BS2InputConfigEx ==== | ==== BS2InputConfigEx ==== |