You will need to sign up to developer.vivokey.com to get an API key before you can do anything. We had to decouple the APIs from actually having a VivoKey because… well, some developers aren’t necessarily excited about implants or having to keep a developer “demo card” in their wallet just to access developer stuff.
like i said im kind of stuck, in the iphone chipscan demo you issue an APDU command 90, 71, 00, 00, {02,00},256 but when i do that get an error “Length of command string invalid”
Yeah @Devilclarke I’d also suggest you take a look at the decompiled source. The APDU you named happens down the chain, like pretty much the last step. Before that there’s some APDU called NDEF_SEL you need to transceive.
(And maybe VKID_AID to get the type but like does Spark even have an applet?!)
This stuff is confusing even with the source.
Right so i’ve not finished but when i have ill share the c# code for what im doing as an example implementation (currently only for the spark2).
Now im getting a PCD Challenge yay, basically you issue the command and you don’t expect data back hence the le = 0x0x but the chip responds its really weird but i did find a few posts talking about commands functioning like that.
Code for PCDChallenge
using (var isoReader = new IsoReader(ctx, comboBox1.Text, SCardShareMode.Shared, SCardProtocol.Any, false))
{
var data = new byte[] { 0x02, 0x00};
var apdu = new CommandApdu(IsoCase.Case4Short, isoReader.ActiveProtocol)
{
CLA = 0x90, // Class
INS = 0x71,
P1 = 0x00, // Parameter 1
P2 = 0x00, // Parameter 2
Data = data,
Le = 0x00
};
var response = isoReader.Transmit(apdu);
return BitConverter.ToString(response.GetData()).Replace("-", string.Empty);
}
}
Now i have a different problem, no matter what i do i can’t get a response on the pcd-challenge my code structures the JSON and send it but all i ever get back is an ERROR 500.
The JSON im sending is structured exactly like this example from the dev docs.
Ok so ive tried UID, PICC challenge and, PCD challenge all in LSB and MSB and a ton of combinations of both non seem to work. i send the POST and it hangs for about 30s to 1 minute (not always but most of the time) then i get an ERROR 500.
I think the ERROR 500 is actually a time out in the http library im using as its waiting for a response it never gets.
Can anyone else get this endpoint to work?
Is there an official vivokey developer forum / support system?