Getting Started with LLRP in RIFIDI

From RifidiWiki

Revision as of 15:17, 24 November 2013 by Bppause (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The LLRP standards doc has a good overview of how they work: http://www.gs1.org/gsmp/kc/epcglobal/llrp

The LLRP commander project for eclipse is a good way to configure LLRP rospecs without having to go through Rifidi: https://code.google.com/p/fosstrak/wiki/LlrpMain


The file "default.llrp" in the "config" folder of rifidi is a good starting ROSpec to build off of, as the antennas are already configured there. Attached is a version of that with the regular start/stop triggers replaced with GPI ones. It may serve for what you need, though you might have to adjust the "GPIEvent" and "GPIPortNum" values (and the timeout on the stop trigger).

With PGIO

Basically, you will need to use the LLRP "from file" command instead of the regular LLRP-Configure command in order to use the GPIO triggers (the rifidi user doc will show how to use this command). The triggers themselves will look like this:

<llrp:ROSpecStartTrigger>

       <llrp:ROSpecStartTriggerType>GPI</llrp:ROSpecStartTriggerType> 
       <llrp:GPITriggerValue> 
         <llrp:GPIPortNum>1</llrp:GPIPortNum> 
         <llrp:GPIEvent>1</llrp:GPIEvent> 
         <llrp:Timeout>0</llrp:Timeout> 
       </llrp:GPITriggerValue> 
     </llrp:ROSpecStartTrigger> 
     <llrp:ROSpecStopTrigger> 
       <llrp:ROSpecStopTriggerType>GPI_With_Timeout</llrp:ROSpecStopTriggerType> 
       <llrp:DurationTriggerValue>0</llrp:DurationTriggerValue> 
       <llrp:GPITriggerValue> 
         <llrp:GPIPortNum>1</llrp:GPIPortNum> 
         <llrp:GPIEvent>0</llrp:GPIEvent> 
         <llrp:Timeout>0</llrp:Timeout> 
       </llrp:GPITriggerValue> 

</llrp:ROSpecStopTrigger>

Personal tools