Skip to content

JSC-electronics/rfid-reader

Repository files navigation

RFID reader

Arduino_CI Documentation License: Apache 2.0 GitHub release JSC electronics Donate

This is an Arduino library to support one specific RS485 RFID reader. There isn't much information about this model, so we include a complete datasheet and communication protocol specifications. You can find them here.

image

Documentation

Sync and async modes

This library supports synchronous (blocking) API and asynchronous (non-blocking) API. The main reason is that often synchronous API is easier to use and due to its simplicity, it's better while writing and debugging a test code. For production code we recommend using async API.

Switching to async mode is really easy! Just follow these steps:

  • Install TaskManagerIO library. It's also listed as an (optional) dependency of this package.
  • Modify your script accordingly:
#include <TaskManagerIO.h>

// Enable async mode. If you're using PlatformIO, you can define this as a build flag.
#define USE_ASYNC_IO

void setup() {
    ...
}

void loop() {
    # Call taskManager regularly in a loop.
    taskManager.runLoop();
}

Besides these changes, the API is identical to the synchronous one. All the heavy work is handled by the libraries behind the scenes. You can also take a look at the async example.

License

Copyright (c) JSC electronics. All rights reserved.

Licensed under the Apache-2.0 license.

Support

We hope our library helped to speed up your project development. You can support our effort to convert coffe and pizza into a code with a small donation. Any support is much appreciated.

paypal