Settings Handheld Scanner Scripting

On this dialog you can change the script that is executed for the data processing of RFID readers, edit/create and test. By default no script is then the read UID of a RFID card is simply forwarded. will be forwarded. If you want to process the data e.g. from a Legic data block you have to do this with this VB-Script.
RFID scripting is only supported by the RFID reader Elatec RFID Reader RFID readers.

RFID Scripting

With this script you are supposed to process your data from a card in the same way as you will pass it on to the program and the program and use it as a unique identifier. used. For this you have several variables with contents, which you process accordingly. The following is a description of the available variables:

Variable name Description
eCardTypeThe identification number of the card, that was read in. The following card types are available available:

For TWN3 readers, cards with the following ID's are. recognized:

1 ISO14443A/MIFARE
2 HID Prox
3 LEGIC
4 EM4x02/CASI-RUSCO (aka IDRO_A)
5 HITAG 1/HITAG S (aka IDRW_B)
6 HITAG 2 (aka IDRW_C)
7 EM4x50 (aka IDRW_D)
8 T55x7 (aka IDRW_E)
9 ISO FDX-B (aka IDRO_G)
10 N/A (aka IDRO_H)
20 HID iCLASS
21 ISO15693
22 Indala
23 ISO14443B
24 FeliCa
25 SRX

For TWN4 readers the cards with the following ID's are recognized.

64 EM4x02/CASI-RUSCO (aka IDRO_A)
65 HITAG 1/HITAG S (aka IDRW_B)
66 HITAG 2 (aka IDRW_C)
67 EM4x50 (aka IDRW_D)
68 T55x7 (aka IDRW_E)
69 ISO FDX-B (aka IDRO_G)
70 N/A (aka IDRO_H)
71 N/A (aka IDRW_I)
72 N/A (aka IDRW_K)
73 HID Prox
74 ISO HDX/TIRIS
75 Cotag
76 ioProx
77 Indala
78 NexWatch
79 AWID
80 G-Prox
81 Pyramid
82 Keri
83 Deister
84 Cardax
85 Nedap
86 PAC
87 IDTECK
88 UltraProx
89 ICT
90 Isonas

128 ISO14443A/MIFARE
129 ISO14443B
130 ISO15693
131 LEGIC
132 HID iCLASS
133 FeliCa
134 SRX
135 NFC Peer-to-Peer
136 Bluetooth Low Energy
137 Topaz
138 CTS256 / CTS512
eLEGICTypeIf the eCardType is a LEGIC card, there are the there are the Prime and Advant subtypes. These return different return different data.

0 = Legic RF Standard (Prime)
1 = ISO 15693 (Advant)
2 = ISO 14443 A (Advant)
3 = ISO 14443 B (Advant)
strDBConnectionHere the database connection to the CodX PostOffice, if you want to do queries in the VB-Script on table data in the VB-Script.
strLegicSegment[x]This variable can occur several times with a consecutive numbering for the read data semesters of a Legiccard. Starting with 0, i.e. strLegicSegment0 to strLegicSegment99. The number of variables passed is dynamic, as many variables are passed to the script variables are passed to the script as numbered as could be read from a legicard. could be read. In a segment variable there are always all existing blocks.
The data in this variable are passed as hexadecimal values, so that we are we are independent of the character set. So always one pair form a value, example:
00057A Corresponds to the values:
00 = 0
05 = 5
7A = 122
strUIDThis is the unique UID of the card, which can be read on each card.
strReturnValueThis is the variable that will eventually be used as the value by the program. When you process the data, you write the desired value into this variable and you get this value from the RFID scan. variable and you will get this value from the RFID scan.

Example:

Dim strLegicID
Dim y, num

If eCardType = 131 or eCardType = 3 Then Card type 131 and 3 are Legic cards
If Len(strLegicSegment0) > 50 Then
strLegicID = Mid(strLegicSegment0, 21, 6)
strReturnValue = CLng("&h" & strLegicID) ' converts hexadecimal string to decimal value decimal value
elseif Len(strLegicSegment0) > 20 Then
strReturnValue = Mid(strLegicSegment0, 17, 6)
else
strReturnValue = strUID
End If
elseif eCardType = 136 Then Card type 136 is BLE (Bluetooth Low Energy)
For y = 1 To Len(strUID) Step 2
num = Mid(strUID, y, 2)
strReturnValue = strReturnValue & Chr("&h" & num)
Next
else
strReturnValue = strUID
End If

See also:



CodX Software CodX Software AG
Sinserstrasse 47
6330 Cham
Switzerland
Support
http://support.codx.ch
CxSpickel