Test VHL file and VHL command parameters
If you're a developer using the VHL operation mode, you can test the VHL file in your configuration right on your computer with BALTECH ID-engine Explorer.
This test is helpful in 2 ways:
- You verify that the VHL file is correct.
- You verify the memory location parameters you'll later need to run the commands VHL.Read and VHL.Write in your application.
For this how-to, we'll use VHL.Read as an example.
To test the VHL file with the VHL.Read command:
Connect a test reader to your computer.
I have an Ethernet reader.
Connecting an Ethernet reader works when the reader is unconfigured or required permissions are granted in PKI Authentication and Encryption settings.
Configure the test reader with your draft configuration containing the VHL file.
Open BALTECH ID-engine Explorer.
At the bottom left, click Test VHL File.
Place a test project card on the reader.
Click Select Card.
- Reselect = False selects the next card in the field. If there's only 1 card in the field and you've already selected it, you'll get an error.
- Reselect = True ignores everything since you last clicked Select Card and starts all over again.
Learn more about the VHL.Select command and reselect options.
If you use VHL & Autoread, this step will later be performed autonomously by the reader.
You'll see the UID and card type read by the reader.
If you've added more than 1 VHL file, select the one you want to test from the drop-down.
Specify the memory location you want to read.
This can be any subsection of the memory location defined in your VHL file. To do so, specify the Address of First Byte and Number of Bytes.
These will later be the Adr and Len parameters for the VHL.Read command. To check which section of the memory location you need to access, you can analyze the card structure of certain card types.
What exactly do I need to specify here?
Card type What you've specified in the VHL file What you can specify during testing ISO 15693 Number of blocks and their size
- 5 blocks- 4 bytes per block
Any range of bytes within the combined block size (in this case 20 bytes)
- First byte 4 with number of bytes <= 16
- First byte 10 with number of bytes <=10
LEGIC Segment and address range
- Segment: 5- Start byte: 0- Length: 6
Any subrange within this address range
- First byte 1 with number of bytes <= 5
- First byte 2 with number of bytes <= 4
MIFARE Classic Sector Any range of bytes within this sector.
Bytes are numbered consecutively across blocks. Trailer blocks and block 0 will be omitted, i.e. the following block order is used: 1,2,4,5,6,8, etc. (0,3,7, etc. are omitted)
The data read from the card is shown in the right section of the window.
This test output may differ from the output in your host system
In ID-engine Explorer, the number read from the card is always displayed in ASCII decimal encoding. Your host system may use a different encoding. In this case, please order a custom host interface component that convert the number accordingly and keep in mind that the output in ID-engine Explorer won't match the output in your host system (learn more).
To keep editing the VHL file, close the Test VHL File dialog, make your changes in ConfigEditor, and transfer the updated configuration to the reader. Then you can retest the VHL file in ID-engine Explorer.