These classes provide the sensor data (Tag EPCs, GPS, IMU) when the reader performs an inventory process. TagReadInfo, GPSInfo, and IMUInfo are subclassed off of SensorInfo.
The C# GetType() method or the antennaNumber field can be used to distinguish data content so that the base SensorInfo class can properly be cast to the more specific type. Note that the antennaNumber for tag data will be 0-3, for GPS data it will be 32 and for IMU data it will be 33.
Modifier and Type | Field Name | Description |
---|---|---|
public RFIDStatus |
status |
RFIDStatus.OK indicates data is good; RFIDStatus.FAILED indicates data error; RFIDStatus.DONE indicates that the data stream is complete and no more data will be sent. |
public Byte |
antennaNumber |
For RFID tags this will have values 0 through 3 indicating the antenna the data was read on. GPS data records will return antenna #32 and IMU records will return antenna #33 |
public Byte |
sensorStatus |
In the event of an error in transmission or a sensor error this will provide extended sensor error informaion. |
public DateTime |
timeStamp |
This is a timestamp of the data either applied by the reader or by the API if the reader is not configured to timestamp the data. |
public Object |
Tag |
This is an arbitrary object that the application programmer can attach to the object to pass additional data through to other layers of their code. |
public class TagReadInfo : SensorInfo
Modifier and Type | Field Name | Description |
---|---|---|
public Byte |
epcLength |
This provides the length of the EPC in bytes. |
public String |
EPC |
This field provides the EPC formatted as a string of hex bytes separated by "-"s. E.g., 01-04-22-A3-77 |
public Double |
RSSI |
This provides RSSI in dBm |
public UInt16 |
PC |
This is the PC word of the tag inventory data. |
public Byte |
XPC1 |
First byte of the extended PC data if present. |
public Byte |
XPC2 |
Second byte of the extended PC data if present. |
Constructor | Description |
---|---|
public TagReadInfo() |
This will construct a TagReadInfo object with fields either zeroed or empty. |
Modifier and Type | Method | Description |
---|---|---|
void |
Clear() |
This method will clear the contents of the TagReadInfo object to zero or empty so the object can potentially be reused. |
public class GPSInfo : SensorInfo
Modifier and Type | Field Name | Description |
---|---|---|
public String |
unparsedGpsData |
This is the GPS data prior to being parsed into the individual data fields. |
public decimal |
latitude |
This field provides Latitude of the GPS reading. |
public decimal |
longitude |
This field provides Longitude of the GPS reading. |
public decimal |
elevation |
This field provides Elevation of the GPS reading in meters. |
public decimal |
speed |
This field provides Speed of the reader in meters/second. |
public decimal |
heading |
This field provides heading of the reader in degrees from north. |
public DateTime? |
gpsTime |
This field provides time (UTC) as obtained from the GPS sensor. If the reader is not configured to return the GPS time this value will be null. |
public class IMUInfo : SensorInfo
Modifier and Type | Field Name | Description |
---|---|---|
public String |
unparsedIMUData |
This is the IMU data prior to being parsed into the individual data fields. |
public decimal? |
accelerometerX, accelerometerY, accelerometerZ |
These three nullable fields provide the accelerometer reading in g's. If the streaming has been configured to not include the accelerometer data, these will be null. (Test for a value with the HasValue property.) |
public decimal? |
gyroscopeX, gyroscopeY, gyroscopeZ |
These nullable fields provide gyroscope readings along each of the three axes in degrees/second. If the streaming has been configured to not include the gyroscope data, these will be null. |
public decimal? |
magnetometerX, magnetometerY, magnetometerZ |
These nullable fields provide the magnetometer readings in milligauss along the three axes of the reader. If the streaming has been configured to not include the magnetometer data, these will be null. |
public double? |
temperature |
This nullable field provides temperature of the unit as measured at the IMU sensor in the reader. If the streaming has been configured to not include the temperature data, this field will be null. |