Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 2.33 KB

README.md

File metadata and controls

43 lines (30 loc) · 2.33 KB

SPC sample for UWP

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

For details on SPC communication check Useful Links

Requirements

  • IDE Visual Studio 2017
  • Micro-Sensys RFID reader 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 EventHandlers, and provides a function to send trigger commands to the script.

Steps

Import the project into your IDE and check the communication port name for the RFID reader and fill the name into the code. For some samples the available devices are automatically detected.

Screenshot

  1. Select the device you wish to connect to, and press OPEN PORT. 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 forwarded to the UI using the following Events
    • ReaderHeartbeatReceived will be called when Heartbeat is received
    • RawDataReceived 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