Skip to content

Change antenna of XR480 reader simultaneously in c#

madhuri Gamane

madhuri Gamane

Asked Jun 10, 2015, 12:17 AM EDT2 answers
Share
LinkedInX
i am using XR480 RFID reader, in which i need to change antenna from 1 to 2, 2 to 3 .... in looping..
when i  use (each) single antenna it works properly, but when i try for looping it does'nt work.. can anybody help me ? plz
 
this is my code for connect antenna to reader
 
Code
  byte SAAT_SCAN_TRIES = 3;
Code
 switch (SAAT_CODE_TYPE)
Code
         {
Code
 case 0://Read EPC Code
Code
return
Code
 RfidApi.SAAT_6CReadEPCCode(pHandle, sAntenna1, (byte)SAAT_READ_TYPE, SAAT_SCAN_TRIES);
Code
 case 1://Read TID Code
Code
 return
Code
 RfidApi.SAAT_6CReadTIDCode(pHandle, sAntenna1, (byte)SAAT_READ_TYPE, SAAT_SCAN_TRIES);
Code
 case 2://Read UID Code
Code
retur
Code
 RfidApi.SAAT_6BReadUIDCode(pHandle, sAntenna1, (byte)SAAT_READ_TYPE);
Code
           }
Code
 return false;
Code
Code
Code
and this is function
Code
  [DllImport("RFIDAPI.dll", EntryPoint = "SAAT_6CReadEPCCode")]
Code
    [return: MarshalAs(UnmanagedType.I1)]
C#
    public static extern bool SAAT_6CReadEPCCode(IntPtr pHandle, byte nAntenna, byte nType,             byte nTagCount);

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi Madhuri,
     
    Hope you have got the solution by now.
     
    I just started working on the RFID reader yesterday and the Sample C# code "CSharpRFIDDemo" - "RFIDAPI.dll" which I am having is not working however the "UHF System Manager Software" is working fine.
     
    bInit = RfidApi.SAAT_COMInit(out pHandle, 0x00, cbxCom.SelectedItem.ToString(), 19200);
     
    Please can you help me with some sample working code.
     
    Thanks,
    Shirish
    (M) 0 988 659 6789
    0
  • 0
    Can you please share the details of the hardware about which you wrote this code?
     What are its specifications?
    Also what type of Antenna it is about which you are talking here for change?
    0