Steps to Integrate Tapkey¶
- Get the Tapkey Lock SDK.
- Integrate the Tapkey libraries into the target application, and implement the interface according to section Interface Integration.
- Define a production process that allows programming an initial firmware version.
- Define a process for injecting provisioning data, which is individual to each locking device.
- Apply for a Tapkey manufacturer ID.
- Define a versioning scheme that assigns increasing integer version numbers to firmware versions as outlined in the firmware's package structure description.
Establish a build process and tooling that allows generating firmware files (
.tkmanfw) according to section Firmware Update.
Obtain provisioning files from Tapkey for individual locks.
- Program new devices and inject provisioning data.
Steps 8 and 9 are only required once at manufacturing time.
The Tapkey Lock SDK contains - among others - a library named
TlcpLib. It acts as the SDKs central component and implements the Tapkey Lock Control Protocol (TLCP).
Integration of the Tapkey Lock SDK consists of the following steps:
TlcpLibcompiled for your platform to your project.
- Add the static library from the
- Add the include files from the
includefolder to your project's search path for include files. Try to maintain the original folder structure from the Tapkey Lock SDK to make it easy to replace the files with a newer version.
TlcpLib requires certain functionality that must be implemented by the consuming product. The functions are grouped into several APIs that need to be registered with the Tapkey interface. The APIs functionalities include:
- Get/set date and time (of the lock's clock).
- Get seed for random number generator.
- Trigger mechanical lock after authorization.
- Read measurement values like battery voltage and ambient temperature if applicable.
- Read from/write to non-volatile memory.
The APIs and function signatures are defined in the
tkExt.h header file, which is provided in the
include folder of