Hallo,
Can anyone provide me an example of how to send APDU command using I2C from Arduino UNO?
Please read the sticky topics in the category where you posted (Uncategorized - Arduino Forum).
Topic moved.
I’m trying to figure out what APDU is… but Immguessing you want to send a text message witnbyte packed PDU formatting.
A good start would include what modems you’re using, and other details.
Have you read the midem reference guides for text messaging.
Hallo,
I want to send APDU command to check out of reading card is ID-card. The APDU command is:
uint8_t SELECT_APDU[] = {
0x00, /* CLA */
0xA4, /* INS */
0x04, /* P1 */
0x00, /* P2 */
0x07, /* Length of AID */
0xA0, 0x00, 0x00, 0x02, 0x47, 0x10, 0x01, /* AID - ID card*/
0x00 /* Le */
};
For SPI i can use:
bool success = nfc.inDataExchange(SELECT_APDU, sizeof(SELECT_APDU), response, &responseLength);
But I want de the same with I2C en the PN532.
just iterate through your array and write byte by byte
something like
for (size_t i = 0; i < sizeof(SELECT_APDU); i++){
Wire.write(SELECT_APDU[i]);
}
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.