2022-09-14 07:49 AM
After writing a NDEF message to the M24SR02-Y NFC Tag the Chip doesn't work anymore. If I scan it with a NFC app I can see that under technologies NDEF isn't listed anymore. Before the writing process it was listed. Does anybody know a reason for this?
Solved! Go to Solution.
2022-09-14 09:24 AM
Hi,
you probably try to write a bluetooth record with mine type = application/vnd.bluetooth.ep.oob but your buffer seems corrupted with a 00 every 2 bytes (it looks like a Double Byte Char String issue). So the NDEF message inside the tag memory is inconsistent. Using the ST25 NFC Tap, you can go to the MEMORY tab and see that the content of the NDEF is incorrect.
Rgds
BT
2022-09-14 08:07 AM
Hi,
can you use the ST25 NFC Tap app and provide the information returned by the app after the NDEF Write? Also, make sure to have the I2C token being released before starting an RF session (see M24SR02-Y datasheet §4.2).
Rgds
BT
2022-09-14 08:37 AM
This are the informations the app gets from the tag. To close the I2C session I just turn off the supply voltage of the tag.
The NDEF file seems to be empty, but during communication via I2C I get "command completed as response. Here is the whole writing process:
write to 0x56 ack data: 0x26 0xCA 0x15
write to 0x56 ack data: 0x02 0x00 0xA4 0x04 0x00 0x07 0xD2 0x76 0x00 0x00 0x85 0x01 0x01 0x00 0x35 0xC0
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xA4 0x00 0x0C 0x02 0x00 0x01 0x3E 0xFD
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x01 0x01 0x65 0x9C 0x03
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x02 0x02 0xD2 0x00 0x29 0xE3
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x04 0x02 0x20 0x00 0x0B 0xE7
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x06 0x02 0x61 0x00 0xC3 0x81
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x08 0x02 0x70 0x00 0xC8 0xA3
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x0A 0x02 0x69 0x00 0x37 0xD8
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x0C 0x02 0x61 0x00 0x6D 0x5D
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x0E 0x02 0x69 0x00 0xDB 0xAA
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x10 0x02 0x6E 0x00 0x30 0x8A
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x12 0x02 0x76 0x00 0x17 0xE8
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x14 0x02 0x64 0x00 0xAC 0x05
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x16 0x02 0x62 0x00 0x0A 0x68
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x18 0x02 0x75 0x00 0xD1 0x1E
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x1A 0x02 0x74 0x00 0x7F 0x3E
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x1C 0x02 0x6F 0x00 0xDC 0x04
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x1E 0x02 0x68 0x00 0xA2 0x70
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x20 0x02 0x6C 0x00 0x72 0xF5
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x22 0x02 0x2E 0x00 0xD2 0xB9
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x24 0x02 0x6F 0x00 0xF6 0xAD
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x26 0x02 0x08 0x00 0xDD 0xBC
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x28 0x02 0xA9 0x00 0xB8 0xA4
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x2A 0x02 0xD4 0x00 0x72 0xDD
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x2C 0x02 0x00 0x00 0xB3 0xAE
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x2E 0x02 0x00 0x00 0xC5 0x97
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x30 0x02 0x1C 0x00 0x17 0xC6
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x32 0x02 0x11 0x00 0x19 0x4F
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x34 0x02 0x9D 0x00 0xEF 0x21
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x36 0x02 0xB5 0x00 0x6A 0xF5
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x38 0x02 0x00 0x00 0xFE 0x1F
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x3A 0x02 0x00 0x00 0x88 0x26
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x3C 0x02 0x00 0x00 0x12 0x6D
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x3E 0x02 0x00 0x00 0x64 0x54
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x40 0x02 0x00 0x00 0x63 0xA0
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x42 0x02 0x00 0x00 0x15 0x99
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x44 0x02 0x11 0x00 0xC6 0x5E
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x46 0x02 0x6D 0x00 0xD4 0x3E
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x48 0x02 0xF6 0x00 0x63 0x6D
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x4A 0x02 0xC3 0x00 0x0F 0x9C
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x4C 0x02 0xB6 0x00 0xE9 0x59
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x4E 0x02 0x45 0x00 0xFF 0x36
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x50 0x02 0xE0 0x00 0x5B 0x8A
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x52 0x02 0xB2 0x00 0x6A 0x53
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x54 0x02 0xE8 0x00 0x77 0x36
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x56 0x02 0x03 0x00 0x30 0x02
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x58 0x02 0x00 0x00 0x1A 0x86
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x5A 0x02 0x0D 0x00 0x14 0x0F
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x5C 0x02 0x48 0x00 0x50 0x7C
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x5E 0x02 0x6C 0x00 0x75 0x01
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x60 0x02 0x6F 0x00 0xAD 0xC9
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x62 0x02 0x43 0x00 0x48 0x7A
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x64 0x02 0x69 0x00 0x91 0xEF
read to 0x56 ack data: 0x02 0x90 0x00 0xF1 0x09
write to 0x56 ack data: 0x02 0x00 0xD6 0x00 0x66 0x01 0x6E 0x07 0x34
read to 0x56 ack data: 0x03 0x90 0x00 0x2D 0x53
2022-09-14 09:24 AM
Hi,
you probably try to write a bluetooth record with mine type = application/vnd.bluetooth.ep.oob but your buffer seems corrupted with a 00 every 2 bytes (it looks like a Double Byte Char String issue). So the NDEF message inside the tag memory is inconsistent. Using the ST25 NFC Tap, you can go to the MEMORY tab and see that the content of the NDEF is incorrect.
Rgds
BT
2022-09-15 04:04 AM
Oh I see. I fixed the bug in my code and it is working now. Thank you very much for your help.