Skip to content

This repository contains sample codes to communicate with Micro-Sensys RFID readers in SPC mode on Android

Notifications You must be signed in to change notification settings

Micro-Sensys/samples-spc_android

Repository files navigation

samples-spc_android / Android SPC sample codes

This sample code is for SPC communication (devices in SPC mode) on Android devices.

For details on SPC communication check Useful Links

Requirements

  • Android Studio
  • Android device to debug/deploy the sample code. You will need one of the following:
    • Any Android device with Bluetooth, to use one of our Bluetooth RFID reader
    • One of our supported industry Android devices, to use one of our RFID reader modules
  • Micro-Sensys RFID reader (either Bluetooth or module) with appropriate script running
  • RFID transponders

For compatible script files, check Useful Links

Implementation

This code shows how to use SpcInterfaceControl class to communicate with a device running on SPC mode. Using this class the communication port can be open/closed. It automatically handles the data received and notifies the App using a Callback, and provides a function to send trigger commands to the script.

Class information is available under API documentation. See Useful Links

Steps

Just import this project into Android Studio, connect the Android device to your computer and deploy the SampleApp. If you have a iID®PENsolid or iID®POCKETwork paired over Bluetooth to the device, it will automatically list the devices in the Spinner.

Screenshot

  1. Select the device you wish to connect to, and press CONNECT. Once the connect process finishes, the result will be shown in the EditText on the bottom side, and if the device is connected, the READ/WRITE buttons will be enabled.
  2. Received data will be automatically received on provided SpcInterfaceCallback "spcReaderHeartbeatReceived" will be called when Heartbeat is received "spcRawDataReceived" will be called when other data is received
  3. Use READ/WRITE buttons to trigger the processes built in the script

Useful Links

Contact

Authors

About

This repository contains sample codes to communicate with Micro-Sensys RFID readers in SPC mode on Android

Topics

Resources

Stars

Watchers

Forks