2020-09-10 3:24 PM
I have tried most of the use cases,
First use case....
int blockaddress = 0;
byte[] cmd = new byte[]{
(byte)0x02,
(byte)0xB3,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
(byte)(blockaddress & 0x0ff)
};
Array.Copy(_currentTag.GetId(), 0, cmd, 2, 8);
byte[] response = _nfcvTag.Transceive(cmd);
2nd use case
byte[] cmd = new byte[]{
(byte)0x02,
(byte)0xB3,
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00
};
byte[] response = _nfcvTag.Transceive(cmd);
Always the response i'm getting...
Reseponse [[0]=1, [1]=2],
Can you help, why it's not working in Android, The same android code works good...
But, in sample code what i have observed, Its reversing the uid and doing some other stuff..
In IOS This works good...
iso15693Tag.CustomCommand(RequestFlag.HighDataRate, 0xB3, NSData.FromArray(new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }), (result, error) =>
{
Console.WriteLine("******************PresentPWD2********************");
if(result!=null)
Console.WriteLine("result===================>{0}", result);
if (error != null)
Console.WriteLine("error===================>{0}", error);
});
Solved! Go to Solution.
2020-09-11 7:28 AM
Hi,
response = 0102 means "command not recognized".
When sending proprietary commands such as Present Password, make sure to follow the format of the command e.g. IC Mfg Code field has to contain the proper value. See ST25DV04K ST25DV16K ST25DV64K datasheet.
Rgds
BT
2020-09-10 3:26 PM
In iOS format (Xamarin iOS C#)
This works good....
iso15693Tag.CustomCommand(RequestFlag.HighDataRate, 0xB3, NSData.FromArray(new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }), (result, error) =>
{
Console.WriteLine("******************PresentPWD2********************");
if(result!=null)
Console.WriteLine("result===================>{0}", result);
if (error != null)
Console.WriteLine("error===================>{0}", error);
});
2020-09-11 7:28 AM
Hi,
response = 0102 means "command not recognized".
When sending proprietary commands such as Present Password, make sure to follow the format of the command e.g. IC Mfg Code field has to contain the proper value. See ST25DV04K ST25DV16K ST25DV64K datasheet.
Rgds
BT
2022-08-24 1:20 AM
Hi Skuma.8,
I'm trying to implement custom command on xamarin.ios but I can't. Could you share maybe some tips or example on it?
Thankyou so much,
Davide.
2022-08-25 10:18 PM
@DavidSpecter
Hi,
CoreNFC does have INFCIso15693Tag. Try making a variable using INFCIso15693Tag and use custom command format shown as example in Skuma.8 query.