While implementing an RFIDScanner JavaPOS Device Service we have encountered a problem in bit related constants. The following yellow marked constants are ambiguous:
However, this is the intention as we understood from the capability defining these constants:
Even, we would prefer the term “bitwise or“ instead of “bitwise sum” being mentioned in the standard as the last one would imply a bit carrying operation which was not intended here, we guess.
If we understood right and the committee agrees, we would suggest the following change of the constants in JavaPOS (I just checked: OPOS has the same issue):
public static final int RFID_PR_ISO14443A = 0x00001000;
public static final int RFID_PR_ISO14443B = 0x00002000;
public static final int RFID_PR_ISO15693 = 0x00008000; <== '3' changed to '8'
public static final int RFID_PR_ISO180006B = 0x00004000;
In that way we change the constant RFID_PR_ISO15693 only to hold the changes as small as possible.
While implementing an RFIDScanner JavaPOS Device Service we have encountered a problem in bit related constants. The following yellow marked constants are ambiguous:![rfidscanner issue - wrong constants](https://cloud.githubusercontent.com/assets/1107971/16294683/5a59228c-3922-11e6-8a09-b04f7c46b731.png)
As they are not bitwise exclusive:
However, this is the intention as we understood from the capability defining these constants:![rfidscanner issue - cap definition](https://cloud.githubusercontent.com/assets/1107971/16294692/6ceb37fa-3922-11e6-9f86-762613de3a94.png)
Even, we would prefer the term “bitwise or“ instead of “bitwise sum” being mentioned in the standard as the last one would imply a bit carrying operation which was not intended here, we guess.
If we understood right and the committee agrees, we would suggest the following change of the constants in JavaPOS (I just checked: OPOS has the same issue):
In that way we change the constant RFID_PR_ISO15693 only to hold the changes as small as possible.