Error codes in the SDK

All SDK error codes are documented in our C API documentationcall_made. The following overview shows you how to find what you're looking for.

Error handling

There are 2 groups of errors you should cover:

Device errors

These are errors that the reader may return when executing a BRP command. For a full list, see the device error overviewcall_made. Here, you can look for the errors related to the command you're executing.

The command group name is included in the error name:
BRP_<command group>_ErrXXX

Communication errors

These are errors that occur during the communication between the application and the reader or when calling a function of the BRP communication library with an invalid parameter.

For a full list, see the communication error overviewcall_made, section BRP_ERR_XXX.


To investigate an error thrown by the SDK, you have 2 options:

Map error code to name

Use the function brp_map_errcode()call_made to retrieve the error name. You can then search for the name in the C API documentationcall_made.

You'll need SDK version 3.05 or above to use brp_map_errcode().

Search by numeric code

The first 16 bits of the numeric error code represent the error group: