identpro / atid-at911n

ATID Repo
1 stars 0 forks source link

Set Region to 'Euro' - Region for RFID-Module #6

Open didlich opened 9 years ago

didlich commented 9 years ago

Not able to set Region with ATID API:

private void applyInitialSettings() {
    try {
      Log.d(TAG, "Region-Current: " + this.reader.getRegion());
      reader.setRegion(RegionType.Euro);
      Log.d(TAG, "Region-After: " + this.reader.getRegion());
      reader.setReportRssi(false);
      reader.setInventoryTime(400);
      reader.setOperationTime(0);
      reader.setIdleTime(0);
    } catch (ATRfidReaderException e) {
      e.printStackTrace();
    }
}

the output is:

I/ATRfidATX00S1Reader﹕ INFO. getRegion() - [Korea]
D/ReaderProxyAt911n﹕ Region-Current: Korea
I/ATRfidATX00S1Reader﹕ INFO. setRegion(Euro)
I/ATRfidATX00S1Reader﹕ INFO. getRegion() - [Korea]
I/ProtocolATX00S1﹕ INFO. Start Parse Thread
D/ReaderProxyAt911n﹕ Region-After: Korea
didlich commented 9 years ago

@Allan: "As for the RFID-Module showing “KOREA”, it is disabled now so it cannot be changed.It is shown as “KOREA” as it is set as default. But it does not mean anything."

didlich commented 9 years ago

the Spectrum Analyzer shows that the frequency is within the EUR range (865.6 - 867.6) on the image you see the frequency of an inventory and the marker (vertical line) shows a frequency of 865.666 MHz 20150819_104618

so the frequency setting is OK, but the API should also return the real setting and not just a faik