Hello, I apologize for the possible repetition of the topic.
Could you explain how to use proprietary files for transfer to NFC.
Example
(make from http://www.ti.com/lit/an/sloa208a/sloa208a.pdf
uint8_t files_example[] = {
/* NDEF Tag Application name */
0xD2, 0x76, 0x00, 0x00, 0x85, 0x01, 0x01,
/* Capability Container ID */
0xE1, 0x03, /* NDEF Id */
0x00, 0x17, /* CCLEN */
0x20, /* Map version 2.0 */
0x00, 0xF9, /* MLe */
0x00, 0xF6, /* MLc */
0x04, // T (NDEF File) TLV for NDEF File
0x06, // L
0xE1, 0x04, // File ID
0x01, 0xF4, // Max NDEF - 500 bytes
0x00, // R
0x00, // W - 0x00 (write capability available), 0xFF (read-only)
0x05, // T (Proprietary File) TLV for Proprietary File
0x06, // L
0xE1, 0x05, // File ID
0x00, 0xFF, // Max NDEF
0x00, // R
0x00, // W - 0x00 (write capability available), 0xFF (read-only)
0xE1, 0x04,
0x00, 0x2E, // These two bytes are excluded from the File Length count
// File Header
0xD1, // NDEF Header
0x01, // Length of the record name
0x2A, // Length of the payload data
0x54, // Binary Encoding of record name - 0x54 (Text RTD)
//Payload
0x02, // Status Byte - UTF-8, two byte language code
0x65, 0x6E, // Language Code - English
0x4E, 0x46, 0x43, 0x20, 0x2D, 0x20, 0x50, 0x6F, 0x77, 0x65,
0x72, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x54, 0x65, 0x78,
0x61, 0x73, 0x20, 0x49, 0x6E, 0x73, 0x74, 0x72, 0x75, 0x6D,
0x65, 0x6E, 0x74, 0x73, 0x20, 0x49, 0x6E, 0x63, 0x2E,
0xE1, 0x05,
// File Length
0x00, 0x29, // These two bytes are excluded from the File Length count.
// File Header
0xD1, // NDEF Header
0x01, // Length of record name
0x25, // Length of the payload data
0x55, // Binary encoding of record name - 0x55 (URI RTD)
// Payload
0x01, // URI Identifier code - 0x01 = http://www.
0x74, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6f, 0x6f,
0x6c, 0x2f, 0x44, 0x4c, 0x50, 0x2d, 0x37, 0x39, 0x37, 0x30,
0x41, 0x42, 0x50,
};
- I wrote the message correctly?
- Will the second file be read, or should this be taken into account when creating the application's android application?
- Or will it be better to use another type of record to transfer the byte array?