Skip to content

VHL without reader configuration (Legacy)

Use case

This mode covers the same use case as VHL & Autoread without config.

Use this mode for existing projects only. For new projects, we highly recommend VHL & Autoread without config as this mode supports latest products and features based on Autoread, e.g. Mobile ID, Wireless Upload, or similar developed in the future.

Implementation overview

What is VHL?

VHL stands for Very High Level card access. It's a simplistic macro command set that is independent of a specific card type (learn more).

How it works

This implementation is based on BALTECH Reader Protocol (BRP). To keep your effort low, we provide an SDK for the most common platforms.

  • At runtime, you temparily configure the reader via the host.
  • This configuration "translates" VHL commands into low-level commands, handles communication with the card, and returns the final results.
  • Control reader feedback (e.g. LED and beeper) and other hardware functionality directly via the host.
Diagram showing a host application interacting with a BALTECH reader via VHL commands, where the card-specific information is stored in the host application

Exceptional cases requiring a configuration

In the vast majority of cases, you won't need to configure the reader. You only need to create a configuration if one or both of the following applies:

  • Your host protocol isn't enabled in the factory settings.
  • You want to control access permissions and set up authenticated and encrypted communication. In this case, you need to configure Authentication and Encryption.

    Details
    • For non-Ethernet readers, use AES.
    • For Ethernet readers, use PKI.

Supported interfaces

  • USB HID (recommended with the SDK)
  • USB virtual COM port (recommended when not using the SDK, required for RDP)
  • RS-232/UART
  • Ethernet (host as client only)

Your workflow

Set up SDK

The easiest way to use VHL is the BALTECH SDK, available for Windows, macOS, and Linux.

My platform's not supported

If you can't use the SDK, you can create the BRP command frames yourself.
Please refer to the BRP specification and example frames.

To set up the SDK:

  1. Download the SDK from our website.
  2. Get familiar with its components. We recommend you get started by trying out the app notes.
  3. Integrate the SDK into your application.
  4. Set up a protocol stack to be able to run commands.

Run commands

Card interaction

  1. Run VHL.Select to scan for cards.

    Set AcceptConfCard = false

    Readers without a preinstalled configuration are vulnerable to attacks with tampered ConfigCards. To prevent this, set the parameter AcceptConfCard = false, so readers will ignore any ConfigCard presented to them.

  2. Run VHL.Setup.
    With this command you dynamically create a "VHL file". This is a description of the card's data structure. It's needed to configure the reader for subsequent commands.

    Use a static VHL file for testing

    We recommend you verify the memory location parameters for VHL.Setup and subsequent commands before implementing them in your code. To do so, create a static VHL file and test it in BALTECH ToolSuite.

  3. Run the VHL command(s) required for your operations. Here are the most important ones:

    • With VHL.GetSnr, you can request the UID of the selected card.

      This won't work if the card returns a random ID.

    • With VHL.Read and VHL.Write, you can read data from or write data to the card.

      Set Id = 0xFF

      VHL.Read and VHL.Write have a parameter Id to reference the VHL file you want to use. To reference the dynamic VHL file created with VHL.Setup, set Id = 0xFF.

Mixing dynamic and static VHL files

In principle, it is possible to mix dynamic VHL files (created with VHL.Setup) and static VHL files (as part of the reader configuration for the VHL & Autoread). However, please note that the dynamic VHL file is lost as soon as you run VHL.Read or VHL.Write with a static VHL file. Thus, if you later want to run VHL.Read or VHL.Write with the VHL file again (i.e. with Id = 0xFF), you first need to rerun VHL.Setup to recreate the dynamic VHL file.

Reader hardware control

There are various commands to control the reader hardware. You can control reader feedback (e.g. LED and beeper), reboot the reader, check its firmware version, etc.

What's next?

That's it for the development part. You can now install the readers (and, if necessary, deploy the configuration) as described here.

Troubleshooting & support

Got stuck somewhere along the way? Don't worry, we'll help you troubleshoot:

Title