Skip to content

Autoread with bidirectional communication via BRP

Use case

  • You want to read a number from the card.
    (For all other read operations, use VHL & Autoread.)
  • You want to control reader feedback (e.g. LED and beeper) via the host.
  • You want to update the firmware or configuration via the host.
  • You don't mind retrieving read results from the reader (this is not time critical).

Implementation overview

What is Autoread?

The reader scans for cards and reads them autonomously (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.

  • Configure the reader for your cards type(s). You can use our GUI tools in BALTECH ToolSuite to conveniently create and deploy the configuration (including wireless deployment options).
  • The reader autonomously polls for cards and reads them.
  • Once it has read a card, the reader buffers the read result in an internal queue for 5 seconds, so the host can retrieve it. (If the host is implemented as an Ethernet server, this step requires the reader to open a connection first.)
  • Define reader feedback (e.g. LED and beeper) as part of the reader configuration. Alternatively, control the feedback (and other hardware functionality) directly via the host.
Diagram showing a BALTECH reader in Autoread mode with bidirectional communication for USB, RS-232/UART, and Ethernet - host as client

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/host as server)

Alternatives

Use Autoread unidirectional if:

  • You can't use the SDK.
  • You don't want to actively retrieve read results.

Your workflow

Configure the reader

To prepare readers for access from your application, create a configuration for the readers. Alternatively, you can order a configuration from us.

Required equipment

  • A Windows computer with BALTECH ToolSuite installed
  • A test reader you can connect to your computer.
    If the productive reader type doesn't provide a USB connection, we recommend you use an ID-engine ZB to create and test the configuration.

To configure the reader:

  1. Create a configuration.

  2. To control access permissions and set up authenticated and encrypted communication, you can additionally configure Authentication and Encryption.

    Details
    • For non-Ethernet readers, use AES.
    • For Ethernet readers, use PKI.
  3. Configure the test reader to later test your application.

Set up SDK

The easiest way to use BRP 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. You may also want to look into implementing unidirectional communication instead, as it's usually quicker to implement.

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

  • Run AR.GetMessage to poll the reader for a detected card and its number.

    Polling stops working during your tests?

    Then Autoread may have been disabled automatically. This happens when you run a VHL or low-level command, but also when you start BALTECH ID-engine Explorer (as it uses VHL internally). So if you stop receiving read results in your application, please close ID-engine Explorer. Then perform a power-on reset on the reader or run the AR.SetMode command again.

    For more tips on troubleshooting, please have a look at our troubleshooting guide.

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. The next step is to integrate the readers with your application. For the full workflow, please refer to this step-by-step guide.

If this is done by someone else, please hand them your configuration. Make sure you release the configuration first.

Troubleshooting & support

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

Title