Hi,
I try to read UID from a tag RFID, type MIFARE Ultralight, with "Ultrareader" sample that I've found in this site.
The result of two reads are:
TAG RFID 'Ultralight'
#1
Out: 04F62F55026D3F84D448000000000000
UID: 026D3F84
#2
Out: 0454D20ACA6C3F801948000000000000
UID: CA6C3F80
The UID variable contains value of identifier that I wont convert into a number.
I had reach to parse UID of sample #1 into 'i' variable, and I obtain '40714116'.
I using this routine:
Try
Dim i As Int
i = Bit.ParseInt(strData, 16)
Log(i)
Catch
Log("Failed ParseInt: " & LastException)
End Try
The #2 case raise an exception: java.lang.NumberFormatException: Invalid int: "CA6C3F80".
I suppouse that the value of second sample return a number more big then 'int'.
Can I convert (or parse) the value on Long? Is there a function?
Thanks in advance
I try to read UID from a tag RFID, type MIFARE Ultralight, with "Ultrareader" sample that I've found in this site.
The result of two reads are:
TAG RFID 'Ultralight'
#1
Out: 04F62F55026D3F84D448000000000000
UID: 026D3F84
#2
Out: 0454D20ACA6C3F801948000000000000
UID: CA6C3F80
The UID variable contains value of identifier that I wont convert into a number.
I had reach to parse UID of sample #1 into 'i' variable, and I obtain '40714116'.
I using this routine:
Try
Dim i As Int
i = Bit.ParseInt(strData, 16)
Log(i)
Catch
Log("Failed ParseInt: " & LastException)
End Try
The #2 case raise an exception: java.lang.NumberFormatException: Invalid int: "CA6C3F80".
I suppouse that the value of second sample return a number more big then 'int'.
Can I convert (or parse) the value on Long? Is there a function?
Thanks in advance