Martin,

below you'll find a SET_READER_CONFIG message in LTK-XML that sets the 
transmitter power (see <llrp:RFTransmitter>). In your c code, you'd need 
to load this LTK-XML message, convert it to the binary LLRP format and 
then send it to the reader. Alternatively, you can also the LLRP 
Commander (www.fosstrak.org/llrp) to communicate with the LLRP reader.

If you want to change the transmit power dynamically, here is some 
sample LTKJava code:

//load message
LLRPMessage m = Util.loadXMLLLRPMessage(new File("SET_READER_CONFIG.xml"));

SET_READER_CONFIG myReaderConfig = (SET_READER_CONFIG) m;

// change transmit power to "power"
myReaderConfig.getAntennaConfigurationList().get(0).getRFTransmitter().setTransmitPower(new
 
UnsignedShort((short)power));
                
// send it off
myReaderConnection.transact((LLRPMessage)myReaderConfig,1000);
                

Hope this helps,

Christian

<?xml version="1.0" encoding="UTF-8"?>
<llrp:SET_READER_CONFIG 
xmlns:llrp="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0"; 
Version="1" MessageID="3">
   <llrp:ResetToFactoryDefault>0</llrp:ResetToFactoryDefault>
   <llrp:ReaderEventNotificationSpec>
     <llrp:EventNotificationState>
       <llrp:EventType>Upon_Hopping_To_Next_Channel</llrp:EventType>
       <llrp:NotificationState>0</llrp:NotificationState>
     </llrp:EventNotificationState>
     <llrp:EventNotificationState>
       <llrp:EventType>GPI_Event</llrp:EventType>
       <llrp:NotificationState>0</llrp:NotificationState>
     </llrp:EventNotificationState>
     <llrp:EventNotificationState>
       <llrp:EventType>ROSpec_Event</llrp:EventType>
       <llrp:NotificationState>1</llrp:NotificationState>
     </llrp:EventNotificationState>
     <llrp:EventNotificationState>
       <llrp:EventType>Report_Buffer_Fill_Warning</llrp:EventType>
       <llrp:NotificationState>0</llrp:NotificationState>
     </llrp:EventNotificationState>
     <llrp:EventNotificationState>
       <llrp:EventType>Reader_Exception_Event</llrp:EventType>
       <llrp:NotificationState>0</llrp:NotificationState>
     </llrp:EventNotificationState>
     <llrp:EventNotificationState>
       <llrp:EventType>RFSurvey_Event</llrp:EventType>
       <llrp:NotificationState>0</llrp:NotificationState>
     </llrp:EventNotificationState>
     <llrp:EventNotificationState>
       <llrp:EventType>AISpec_Event</llrp:EventType>
       <llrp:NotificationState>1</llrp:NotificationState>
     </llrp:EventNotificationState>
     <llrp:EventNotificationState>
       <llrp:EventType>AISpec_Event_With_Details</llrp:EventType>
       <llrp:NotificationState>0</llrp:NotificationState>
     </llrp:EventNotificationState>
     <llrp:EventNotificationState>
       <llrp:EventType>Antenna_Event</llrp:EventType>
       <llrp:NotificationState>0</llrp:NotificationState>
     </llrp:EventNotificationState>
   </llrp:ReaderEventNotificationSpec>
   <llrp:AntennaConfiguration>
     <llrp:AntennaID>1</llrp:AntennaID>
     <llrp:RFTransmitter>
       <llrp:HopTableID>1</llrp:HopTableID>
       <llrp:ChannelIndex>1</llrp:ChannelIndex>
       <llrp:TransmitPower>65</llrp:TransmitPower>
     </llrp:RFTransmitter>
   </llrp:AntennaConfiguration>
   <llrp:ROReportSpec>
 
<llrp:ROReportTrigger>Upon_N_Tags_Or_End_Of_ROSpec</llrp:ROReportTrigger>
     <llrp:N>100</llrp:N>
     <llrp:TagReportContentSelector>
       <llrp:EnableROSpecID>1</llrp:EnableROSpecID>
       <llrp:EnableSpecIndex>1</llrp:EnableSpecIndex>
 
<llrp:EnableInventoryParameterSpecID>1</llrp:EnableInventoryParameterSpecID>
       <llrp:EnableAntennaID>1</llrp:EnableAntennaID>
       <llrp:EnableChannelIndex>1</llrp:EnableChannelIndex>
       <llrp:EnablePeakRSSI>1</llrp:EnablePeakRSSI>
       <llrp:EnableFirstSeenTimestamp>1</llrp:EnableFirstSeenTimestamp>
       <llrp:EnableLastSeenTimestamp>1</llrp:EnableLastSeenTimestamp>
       <llrp:EnableTagSeenCount>1</llrp:EnableTagSeenCount>
       <llrp:EnableAccessSpecID>1</llrp:EnableAccessSpecID>
     </llrp:TagReportContentSelector>
   </llrp:ROReportSpec>
   <llrp:AccessReportSpec>
     <llrp:AccessReportTrigger>End_Of_AccessSpec</llrp:AccessReportTrigger>
   </llrp:AccessReportSpec>
   <llrp:KeepaliveSpec>
     <llrp:KeepaliveTriggerType>Periodic</llrp:KeepaliveTriggerType>
     <llrp:PeriodicTriggerValue>5000</llrp:PeriodicTriggerValue>
   </llrp:KeepaliveSpec>
   <llrp:EventsAndReports>
 
<llrp:HoldEventsAndReportsUponReconnect>1</llrp:HoldEventsAndReportsUponReconnect>
   </llrp:EventsAndReports>
</llrp:SET_READER_CONFIG>






Martin Li Causi wrote:
> Hi! my name is Martin Li Causi,  I work at a food company in Argentina.
> We implemented a control system with RFID , and bought two reader impinj 
> speedway.
> I'm working on the software and I am having a problem. I'm putting my 
> software in C, and draw from the program that is in www.llpr.org 
> (llpr_toolkit for language c)
> I want to change the power of the reader equipment, but I can“t do it.
> I wondered if you could help me do this or have any sample program??
> thank you very much!!!
> 
> Yours sincerely
> Martin Li Causi
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> llrp-toolkit-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

------------------------------------------------------------------------------
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to