Hi guys,
I'm porting part of libnfc to a micro-controller, however despite using settings from this project to configure my PN532:
http://code.google.com/p/ismb-npp-java/ … 122ToPhone
Android doesn't appear to be spitting out a valid LLCP connection request, here's my code:
byte pbuffer[46] = { PN532_TGINITASTARGET,
0x00, //
0x00, 0x00, //
0x00, 0x00, 0x00, //NFCID1
0x00, //SEL_RES
0x01, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // POL_RES
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00,
0x01, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //NFCID3t: Change this to desired value
0x06, 0x46, //Length of general and historical bytes,
0x66, 0x6D, 0x01, 0x01, 0x10, 0x00
};
I'm also then performing a second read command after this and receiving the following:
Reading: 0x0 0x0 0xFF 0x21 0xDF 0xD5 0x8D 0x25 0x1E 0xD4 0x0 0x39 0x43 0x50 0x2A 0xAC 0xF9 0xEB 0xE8 0xB6 0xD5 0x0 0x0 0x0
- Which I expect, but then the following, when isn't a valid Connection command which I was expecting:
Reading: 0x0 0x0 0xFF 0x5 0xFB 0xD5 0x87 0x0 0x0 0x0 0xA4 0x0 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA 0xAA
I'm receiving 00s where I would be expecting to see the connection request.
Any idea, I'm completely stumped!
Many thanks