Class TransponderForwarder
- Namespace
- TechnologySolutions.Rfid.AsciiOperations
- Assembly
- TechnologySolutions.Rfid.Operations.dll
Intercepts transponder events by a host calling TransponderReceived(TransponderData, bool). These calls are then collated and translated to one or more calls to RaiseTranspondersReceived
public class TransponderForwarder
- Inheritance
-
TransponderForwarder
- Inherited Members
Constructors
TransponderForwarder()
Initializes a new instance of the TransponderForwarder class
public TransponderForwarder()
Properties
RaiseTranspondersReceived
Gets or sets the action that will raise a TranspondersReceived event
public Action<IEnumerable<TransponderData>, bool> RaiseTranspondersReceived { get; set; }
Property Value
- See Also
SignalNormalize
Gets or sets an instance that will update the RSSI Percent on transponders where missing but RSSI is provided
public ISignalNormalize SignalNormalize { get; set; }
Property Value
Remarks
When using the tag find command as the tag finder the RSSI percent is populated. On readers or firmware where the tag find command is not supported we can fall back to a custom inventory command. This will only return RSSI but this will convert that to a percent.
UpdateCountLimit
Gets or sets the update count limit
public int UpdateCountLimit { get; set; }
Property Value
Remarks
To reduce the frequency of the RaiseTranspondersReceived calls and hence reduce app load transponders received within an UpdateIntervalLimit are grouped together unless UpdateCountLimit is reached at which point RaiseTranspondersReceived is called anyway
UpdateIntervalLimit
Gets or sets the update interval limit
public TimeSpan UpdateIntervalLimit { get; set; }
Property Value
Remarks
To reduce the frequency of the RaiseTranspondersReceived calls and hence reduce app load transponders received within an UpdateIntervalLimit are grouped together unless UpdateCountLimit is reached at which point RaiseTranspondersReceived is called anyway
Methods
ReceiveTranspondersFrom(IAsciiCommandSynchronousResponder)
Sets the TransponderReceived property of the Responder to TransponderReceived(TransponderData, bool)
public void ReceiveTranspondersFrom(IAsciiCommandSynchronousResponder responder)
Parameters
responder
IAsciiCommandSynchronousResponderThe responder of an ASCII Command
TransponderReceived(TransponderData, bool)
This should be called per transponder received
public void TransponderReceived(TransponderData transponder, bool moreToFollow)
Parameters
transponder
TransponderDataThe transponder that was received
moreToFollow
boolTrue if more transponders are to follow
Remarks
This class is to be used from the TransponderResponder which we know only sets moreToFollow false for OK: or ER: response headers which also indicate End Of Pass.