Difference between revisions of "LLRP XML Messages"
From RifidiWiki
(→ADD_ROSPEC) |
(→Message 1) |
||
Line 45: | Line 45: | ||
==Message 1== | ==Message 1== | ||
===Description=== | ===Description=== | ||
+ | This is a SET_READER_CONFIG message that sets up Event Reporting and defines what the ROReports should look like using a ROReportSpec parameter. The ROReports can be set up in ROSpec parameter itself. If a ROReportSpec is defined both globally (using a SET_READER_CONFIG message) and in a particular rospec, the one defined in the ROSpec will shadow the global one. | ||
===Message=== | ===Message=== | ||
+ | <pre> | ||
+ | <Message from_ip="127.0.0.1" from_port="39640" to_ip="127.0.0.1" to_port="5084"> | ||
+ | <SET_READER_CONFIG Version="1" MessageID="0"> | ||
+ | <ResetToFactoryDefault>false</ResetToFactoryDefault> | ||
+ | <ReaderEventNotificationSpec> | ||
+ | <EventNotificationState> | ||
+ | <EventType>Upon_Hopping_To_Next_Channel</EventType> | ||
+ | <NotificationState>false</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | <EventNotificationState> | ||
+ | <EventType>GPI_Event</EventType> | ||
+ | <NotificationState>true</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | <EventNotificationState> | ||
+ | <EventType>ROSpec_Event</EventType> | ||
+ | <NotificationState>true</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | <EventNotificationState> | ||
+ | <EventType>Report_Buffer_Fill_Warning</EventType> | ||
+ | <NotificationState>false</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | <EventNotificationState> | ||
+ | <EventType>Reader_Exception_Event</EventType> | ||
+ | <NotificationState>false</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | <EventNotificationState> | ||
+ | <EventType>RFSurvey_Event</EventType> | ||
+ | <NotificationState>false</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | <EventNotificationState> | ||
+ | <EventType>AISpec_Event</EventType> | ||
+ | <NotificationState>true</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | <EventNotificationState> | ||
+ | <EventType>AISpec_Event_With_Details</EventType> | ||
+ | <NotificationState>false</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | <EventNotificationState> | ||
+ | <EventType>Antenna_Event</EventType> | ||
+ | <NotificationState>false</NotificationState> | ||
+ | </EventNotificationState> | ||
+ | </ReaderEventNotificationSpec> | ||
+ | <ROReportSpec> | ||
+ | <ROReportTrigger>Upon_N_Tags_Or_End_Of_ROSpec</ROReportTrigger> | ||
+ | <N>0</N> | ||
+ | <TagReportContentSelector> | ||
+ | <EnableROSpecID>false</EnableROSpecID> | ||
+ | <EnableSpecIndex>false</EnableSpecIndex> | ||
+ | <EnableInventoryParameterSpecID>false</EnableInventoryParameterSpecID> | ||
+ | <EnableAntennaID>true</EnableAntennaID> | ||
+ | <EnableChannelIndex>false</EnableChannelIndex> | ||
+ | <EnablePeakRSSI>false</EnablePeakRSSI> | ||
+ | <EnableFirstSeenTimestamp>false</EnableFirstSeenTimestamp> | ||
+ | <EnableLastSeenTimestamp>false</EnableLastSeenTimestamp> | ||
+ | <EnableTagSeenCount>true</EnableTagSeenCount> | ||
+ | <EnableAccessSpecID>true</EnableAccessSpecID> | ||
+ | <C1G2EPCMemorySelector> | ||
+ | <EnableCRC>false</EnableCRC> | ||
+ | <EnablePCBits>false</EnablePCBits> | ||
+ | </C1G2EPCMemorySelector> | ||
+ | </TagReportContentSelector> | ||
+ | </ROReportSpec> | ||
+ | <AccessReportSpec> | ||
+ | <AccessReportTrigger>Whenever_ROReport_Is_Generated</AccessReportTrigger> | ||
+ | </AccessReportSpec> | ||
+ | </SET_READER_CONFIG> | ||
+ | </Message> | ||
+ | </pre> |
Revision as of 18:34, 6 December 2007
This page contains a collection of example XML Messages that can be sent to an LLRP Reader.
Contents
ADD_ROSPEC
The ROSpec (Reader Operation Specification) defines how a reader should read tags.
Message 1
Description
This is a simple rospec with a null start and stop triggers. It has one AISpec with a null stop trigger. In order to execute this rospec, you will need to send an ENABLE_ROSPEC, and a START_ROSPC. In addition, you will need to set up reporting parameters using a SET_READER_CONFIG
Message
<Message from_ip="127.0.0.1" from_port="39640" to_ip="127.0.0.1" to_port="5084"> <ADD_ROSPEC Version="1" MessageID="0"> <ROSpec> <ROSpecID>1</ROSpecID> <Priority>0</Priority> <CurrentState>Disabled</CurrentState> <ROBoundarySpec> <ROSpecStartTrigger> <ROSpecStartTriggerType>Null</ROSpecStartTriggerType> </ROSpecStartTrigger> <ROSpecStopTrigger> <ROSpecStopTriggerType>Null</ROSpecStopTriggerType> <DurationTriggerValue>1000</DurationTriggerValue> </ROSpecStopTrigger> </ROBoundarySpec> <AISpec> <AntennaIDs>1</AntennaIDs> <AISpecStopTrigger> <AISpecStopTriggerType>Null</AISpecStopTriggerType> <DurationTrigger>1000</DurationTrigger> </AISpecStopTrigger> <InventoryParameterSpec> <InventoryParameterSpecID>2</InventoryParameterSpecID> <ProtocolID>EPCGlobalClass1Gen2</ProtocolID> </InventoryParameterSpec> </AISpec> </ROSpec> </ADD_ROSPEC> </Message>
Message 2
Description
Message
SET_READER_CONFIG
Message 1
Description
This is a SET_READER_CONFIG message that sets up Event Reporting and defines what the ROReports should look like using a ROReportSpec parameter. The ROReports can be set up in ROSpec parameter itself. If a ROReportSpec is defined both globally (using a SET_READER_CONFIG message) and in a particular rospec, the one defined in the ROSpec will shadow the global one.
Message
<Message from_ip="127.0.0.1" from_port="39640" to_ip="127.0.0.1" to_port="5084"> <SET_READER_CONFIG Version="1" MessageID="0"> <ResetToFactoryDefault>false</ResetToFactoryDefault> <ReaderEventNotificationSpec> <EventNotificationState> <EventType>Upon_Hopping_To_Next_Channel</EventType> <NotificationState>false</NotificationState> </EventNotificationState> <EventNotificationState> <EventType>GPI_Event</EventType> <NotificationState>true</NotificationState> </EventNotificationState> <EventNotificationState> <EventType>ROSpec_Event</EventType> <NotificationState>true</NotificationState> </EventNotificationState> <EventNotificationState> <EventType>Report_Buffer_Fill_Warning</EventType> <NotificationState>false</NotificationState> </EventNotificationState> <EventNotificationState> <EventType>Reader_Exception_Event</EventType> <NotificationState>false</NotificationState> </EventNotificationState> <EventNotificationState> <EventType>RFSurvey_Event</EventType> <NotificationState>false</NotificationState> </EventNotificationState> <EventNotificationState> <EventType>AISpec_Event</EventType> <NotificationState>true</NotificationState> </EventNotificationState> <EventNotificationState> <EventType>AISpec_Event_With_Details</EventType> <NotificationState>false</NotificationState> </EventNotificationState> <EventNotificationState> <EventType>Antenna_Event</EventType> <NotificationState>false</NotificationState> </EventNotificationState> </ReaderEventNotificationSpec> <ROReportSpec> <ROReportTrigger>Upon_N_Tags_Or_End_Of_ROSpec</ROReportTrigger> <N>0</N> <TagReportContentSelector> <EnableROSpecID>false</EnableROSpecID> <EnableSpecIndex>false</EnableSpecIndex> <EnableInventoryParameterSpecID>false</EnableInventoryParameterSpecID> <EnableAntennaID>true</EnableAntennaID> <EnableChannelIndex>false</EnableChannelIndex> <EnablePeakRSSI>false</EnablePeakRSSI> <EnableFirstSeenTimestamp>false</EnableFirstSeenTimestamp> <EnableLastSeenTimestamp>false</EnableLastSeenTimestamp> <EnableTagSeenCount>true</EnableTagSeenCount> <EnableAccessSpecID>true</EnableAccessSpecID> <C1G2EPCMemorySelector> <EnableCRC>false</EnableCRC> <EnablePCBits>false</EnablePCBits> </C1G2EPCMemorySelector> </TagReportContentSelector> </ROReportSpec> <AccessReportSpec> <AccessReportTrigger>Whenever_ROReport_Is_Generated</AccessReportTrigger> </AccessReportSpec> </SET_READER_CONFIG> </Message>