You are using the firmware version 2 (PICC) device? I'm only using the firmware 1 device, but the actual commands should not differ too much, only the way in which the commands are sent is different...
Everything works when you don't use PN53x chaining, i.e. only send a number of "small" messages between initiator and target a number of times?
This was my "emtpy" command to the ACS ACR122:
0xFF 0x00 0x00 0x00 0x03 0xD4 0x40 0x01
Maybe you can copy/paste a trace of all commands you send/receive to/from the ACR122?
You are writing quicker than meI was going to tell you that it is working now. I test in another desktop with XP (just cause Vista s...s) and I got to find out the problem. It claims I need more space on the array to hold the return value. I don't understand why as the first chunk is bigger than the second, and I got the first chunk without any problem.
Ok... I increased the array and now it is working. Now ... let's polish the code a little.
I forgot... just one question... When in target mode and have to send chunks you use the SetMetadata? Or the SetData with the 6 bit to one?
See you
Last edited by jlanza; 2009-05-11 at 10:33.
Hi,
I'm sorry to answer to this old post but I would know if you can share your code (or just send me if you prefer) about the communication between your reader and your device.
I have the same problem (with error 0x6f7) but I don't arrive to fix it.
Thank you
Hi, What I did with SCardControl is increasing the buffers' size up to 300 bytes or so. I have to ask for permission to sent it as we were considering to publish the whole library (despite it is not fully functionable).
HTHCode:// ResponseAPDU.MAX_LEN = 263; public ResponseAPDU TransmitControlCommand(CommandAPDU command) { byte[] rgbInBuffer = command.Buffer; // In case any problem increase response buffer size byte[] rgbResponse = new byte[ResponseAPDU.MAX_LEN + 200]; int icbResponse = TransmitControlCommand(rgbInBuffer, 0, rgbInBuffer.Length, rgbResponse, 0); return new ResponseAPDU(rgbResponse, 0, icbResponse); }
It seems we don't have the same problem. Can we talk by mail ?
I really need some informations about that to be sure I'm not in a wrong way.
I give you my mail here !