![Caen RFID easy2read qID R1240IE Technical Information Manual Download Page 17](http://html1.mh-extra.com/html/caen-rfid/easy2read-qid-r1240ie/easy2read-qid-r1240ie_technical-information-manual_3278491017.webp)
CONFIGURATION
- qID Technical Information Manual
17
Scripting capability
All available scripts provided by CAEN RFID are located in the SCRIPTS directory:
bcdinv.tcl
DESCRIPTION
A very simple script to read BARCODE labels.
This code makes the qID device read a barcode label and save the barcode data into the barcode.txt file
located in the /DATA directory.
RETURN VALUES
The inventory BARCODE procedure returns the BARCODE read. Each ASCII character is converted in its ASCII
hex representation (for example the '0' (0x30) ASCII character is converted into the two ASCII characters
'3''0').
bcdtoepc.tcl
DESCRIPTION
A very simple script to copy a BARCODE into a tag's EPC memory. After the scan button is pressed, this script
starts scanning for a barcode label. Upon successful scan operation the reader waits again for another scan
button press and finally copies the acquired barcode id into the tag's EPC memory .
RETURN VALUES
The programIdEPCC1G2 procedure returns 0 if successful or 1 otherwise
c1g2inv.tcl
DESCRIPTION
A very simple script to inventory epc c1g2 tags. This code executes one inventory cycle each time the scan
button is pressed and save the epc code read into the c1g2epc.txt file located in the /DATA directory.
RETURN VALUES
The inventoryEPCC1G2 procedure returns the epc code (in ASCII format) of all the epc c1g2 tags read.
hid_emu.tcl
DESCRIPTION
A very simple script to show how to emulate an HID device with Bluetooth or USB connection. When the scan
button is pressed, an Inventory cycle is performed by the reader and the tags read are transmitted via
Bluetooth or USB depending on which communication channel is currently active.
RETURN VALUES
None.
By default the
c1g2inv.tcl
script is active. If you want to test a different CAEN RFID script, simply assign its name to the
tcl_script
variable defined in the
qID.cfg
file (see
Configuration file
page 15). To refresh the new script, unplug the
cable, power off the reader and power it on again: the new
qID.cfg
file is active.
To execute the script, press the scan button (see §
Fig. 1.3: qID R1240IE/IU Front
Panel pag. 6) and for example, if the
tcl_script = c1g2inv.tcl
in the
qID.cfg
file, the reader will first perform an inventory cycle and then will save all the tags
read into the
c1g2epc.txt
file located in the DATA directory.
You can create your own script in .tcl language, save it in the SCRIPT directory and simply assign its name to the
tcl_script
variable defined in the
qID.cfg
file. To refresh the new script, unplug the cable, power off the reader and
power it on again: the new
qID.cfg
file is active.
Note:
If you need to restore the original SCRIPTS directory, go to the
qID R1240IE/IU
web page,
download section
and
download the
R1240IE/IU qID MSC directories
that contents the CONFIG.zip and the SCRIPT.zip files.