Hello;
I read RFID tags by RDM6300 module, everything went fine years ago, but recently I've got strange error. I send tag number to serial port. I use NumberFormat to format tag number in 10 digits.
the problem:
this tag number '0009040399' rounded to '0009040400'. listed some read tags with no problems;
i noticed that the tag number starts with '90' unlike others!
here is the code i use to read tags
0001467324
0005956339
0001608891
0001441980
0005920566
0003136545
0001390048
0006055974
I read RFID tags by RDM6300 module, everything went fine years ago, but recently I've got strange error. I send tag number to serial port. I use NumberFormat to format tag number in 10 digits.
the problem:
this tag number '0009040399' rounded to '0009040400'. listed some read tags with no problems;
i noticed that the tag number starts with '90' unlike others!
here is the code i use to read tags
B4X:
private Sub ReadRFID(Buffer() As Byte)
Dim tmpBuffer (8) As Byte
Dim Str_HexNumber As String
Dim Int_Number As ULong
tmpBuffer= BC.SubString2(Buffer,3,11) 'get card bytes only
Str_HexNumber = BC.StringFromBytes(tmpBuffer)
Int_Number = Bit.ParseInt(Str_HexNumber, 16) 'convert hex to decimal string
Log(NumberFormat(Int_Number,10,0)) ' rounded to 0009040400
Log(Int_Number) ' no problems 9040399
End Sub
0005956339
0001608891
0001441980
0005920566
0003136545
0001390048
0006055974