An open API service indexing awesome lists of open source software.

https://github.com/adoconnection/feig.net

Pure C# client for FEIG LRU readers
https://github.com/adoconnection/feig.net

Last synced: 8 months ago
JSON representation

Pure C# client for FEIG LRU readers

Awesome Lists containing this project

README

          

# FEIG.NET
Pure C# client for FEIG LRU readers

Inventory sample:

```cs
using (FeigReaderTcpConnection connection = new FeigReaderTcpConnection("192.168.1.125", 10001))
{
LRU1002Reader reader = new LRU1002Reader(connection);

IList tags = reader.Inventory(FeigReaderAntenna.Antenna1, FeigReaderAntenna.Antenna2);

foreach (FeigTag tag in tags)
{
// process
// tag.Antenna
// tag.SerialNumber
// tag.RSSI
}
}

```

Change tag serial number:

```cs
using (FeigReaderTcpConnection connection = new FeigReaderTcpConnection("192.168.1.125", 10001))
{
LRU1002Reader reader = new LRU1002Reader(connection);

byte[] oldSerialNumber = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x12 };
byte[] newSerialNumber = { 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x1F };

bool isSuccess = reader.UpdateTagSerialNumber(oldSerialNumber, newSerialNumber);
}
```

Discovery sample:

```cs
FeigReaderDiscovery discovery = new FeigReaderDiscovery();

IList networkInterfaces = discovery.ListNetworkInterfaces();
IDictionary> pairs = discovery.FindReaders(networkInterfaces);

foreach (KeyValuePair> pair in pairs)
{
Console.WriteLine("Network interface name: " + pair.Key.Name);

foreach (FeigReaderInfo readerInfo in pair.Value)
{
Console.WriteLine(" - " + readerInfo.Type + " - " + ArrayToString(readerInfo.DeviceID) + " - " + readerInfo.IPAddress);
}
}
```

Configuration sample:

```cs
using (FeigReaderTcpConnection connection = new FeigReaderTcpConnection("192.168.1.125", 10001))
{
LRU1002Reader reader = new LRU1002Reader(connection);

reader.InterfaceMode.ReaderMode = FeigReaderMode.HostMode;
reader.RFInterface.Antenna1Power = 1.1;
reader.RFInterface.Antenna2Power = 1.2;
reader.RFInterface.Antenna3Power = 1.3;
reader.RFInterface.Antenna4Power = 1.4;

reader.ApplyConfigurationChanges();
}

```