Unique tag filter

Questions about developing the edge server core as well as applications

Moderators: Matt, kyle

Post Reply
dariush
Posts: 6
Joined: Fri Dec 03, 2010 6:17 pm

Unique tag filter

Post by dariush » Thu Mar 31, 2016 5:23 am

Hi friends,
I have a quite old rifidi instance (v 2.1) where impinj reader are used and triggered by GPI.
Is there any standard 'unique' filter to produce to my backend (integrated with rifidi through jms) only one instance of each tag read in each reading (start/stop) session?
Best regards,
Dariush.

bppause
Posts: 434
Joined: Sat Oct 03, 2009 12:30 am
Organization: Pramari

Re: Unique tag filter

Post by bppause » Thu Mar 31, 2016 8:09 pm

so if I understand you are looking for a filter that only triggers once per unique tag in between start and stop sessions? (so even if that tag departs and arrives again within the same window (start/stop session) the event would not trigger)

therefore if a session is stopped and restarted then the window would be reset?

If this is correct then one approach could be with Rifidi 2.1 (as in Rifidi 3.0 we introduce Rest services to call teh Rifidi API) is to:

1) create a custom Rifiid app via SDK
2) CReate a new Rifidi service (similar to readzone monitoring service - http://wiki.rifidi.net/index.php?title= ... di_Service) or inject custom esper (Northwind example app has some examples) or http://wiki.rifidi.net/index.php?title= ... _Jumpstart
3) construct a EQL statement that would filter for unique tags within the same data window (the use of a Rifidi service may give you more control over the EQL and better abstraction)
4) post a message to JMS when you want to stop session - the Rifidi App could subscribe to JMS , this could trigger the eql data window to be reset for a given reader/readzone - look at use of stableset I believe there is an example for how to reset a rifidi service to clear the data window - http://wiki.rifidi.net/index.php?title= ... _Jumpstart and then stop the session via Rifidi API (there is an example app on wiki on how to use the Rifidi api - http://wiki.rifidi.net/index.php?title= ... _Jumpstart also looking at the Rifidi 3.4 restlet code examples will show how to use the API across all commands including stopping and starting sessions - https://transcends.svn.cloudforge.com/r ... tImpl.java
5) Another jms message could be posted when to start the session again (with app subscribing ) - wth Rifidi 3.x one could use Rest to accomplish this - http://wiki.rifidi.net/index.php?title=Edge_Management

There could be other ways but this is my thought on how to approach if I understand your use case correctly..

bppause
Posts: 434
Joined: Sat Oct 03, 2009 12:30 am
Organization: Pramari

Re: Unique tag filter

Post by bppause » Sat Apr 02, 2016 5:06 am

Another approach could be (using similar steps)

leverage the out of the box readzone monitoring service and set the departed time to a very large duration (larger than what you believe would be the longest time between a start and stop session). this way a unique tag arrived event should only trigger once between start/stop session events.

when a stop session is triggered you could unsubscribe from the Readzone monitoring service for a given read zone and then subscriber again (essentially resetting the tag stream data window)

then when you start session again the unique tag would trigger again

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests