Applications | Products | Support | Partners | News & Events | About Us | Careers | Blog

 

 

Reading Tags over TCP/IP Socket Using Speedway Connect Software

Speedway Connect software offers the ability to collect tag data from the Impinj Speedway Revolution RFID reader regardless of operating system or development platform.

By running Speedway Connect on the reader and configuring it to export tag reads over TCP/IP, any device which supports opening TCP/IP connections, or sockets, can import tag data.

Here is a video in which Speedway Connect software is configured to export tag data from the Speedway Revolution reader over a TCP/IP port. A simple Ruby script is then created to open a socket and import tag data.

Here is some C# sample code which would allow you to do the same in a .NET application:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
 
namespace RshellScripting
{   
class Program  
{
static Socket socket;       
static void Main(string[] args)       
{           
int count;
string str;           
byte[] buffer = new byte[1024];
// Replace READER_HOSTNAME with your reader's host name or IP address
const string READER_HOSTNAME = "SpeedwayR-10-54-f9.local";           
 
try           
{               
// Create a new socket               
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
// Get the IP address of the reader by hostname
IPAddress[] ip = Dns.GetHostAddresses(READER_HOSTNAME);
// Create an IP endpoint using the IP address
IPEndPoint ep = new IPEndPoint(ip[0], 23);
// Connect to the telnet socket on the reader
socket.Connect(ep);
count = socket.Receive(buffer);
//Ouput socket buffer to console
Console.WriteLine(System.Text.Encoding.ASCII.GetString(buffer,0,count));
 
}           
catch (SocketException ex)
{               
Console.WriteLine("A socket exception occurred : " + ex.Message);
}            
Console.WriteLine("Press enter to exit");
Console.ReadLine();
}   
}
}

Feedback

 

Was this article helpful?


   

Your feedback is appreciated.

Please tell us how we can make this article more useful.

Characters Remaining: 255