ex_io_ant.rb

Path: ex_io_ant.rb
Last Update: Thu Sep 11 16:16:03 -0700 2014

Alien Ruby RFID Library Examples

ex_io_ant.rb

An example program to control the active antennas used by an Alien RFID reader in response to changes on the Reader‘s GPIO input lines.

  • Connect to an Alien RFID Reader and login
  • Grab the Readername and display
  • Repeatedly read the digital input port and change the active antenna sequence based on the value.

If no lines are active, turn off automode.

Copyright 2014, Alien Technology Corporation. All rights reserved.

Required files

alienreader   alienconfig  

Methods

Public Instance methods

This builds an antenna sequence string from a number representing a digital input value. Bits (pins) on the input are used to flag active antennas.

[Validate]