Hello All
I am trying to write a code to read data written into a passive tag at block 0x00. I programmed it using the TRF GUI and can read it back using the GUI. I tried to print the data written into the tag on the Hyperterminal which i couldnt do. Please find the below code and tell me where am i going wrong. Below attached is the C code's ISO15693.c modified file which i modified to read single block 0x00.
Please help in finding the solution
8306.iso15693.txt
Thanks in Advance
Nanda -
with ISO15693 you must be very careful to avoid ISO Control Register setting and Request Flags (in the command string being transmitted out to the tag) byte mis-matches. This is most common thing for folks to overlook - luckily it is easy to fix.
For example: if you have set the ISO Control register on the TRF79xx device to a 0x02 (default), then you have set it up for expecting the tag to operate at: single subcarrier, high data rate etc. and you must use a 0x02 for the request flags byte in this command going out, too. I saw in there you are using 0x00, and this is common thing for folks to do, but i have no idea what you have set the ISO control register for. Would recommend that you start using the default settings until you are comfortable with options, etc. before branching out to other settings.
then your command string going out to the tag should be:
0x8F (Reset FIFO)
0x91 (Send with CRC)
0x3D (Write Continuous to FIFO)
0x00 (Sending three bytes, see lower nibble, next byte)
0x30 (Sending 3 bytes out to tag)
0x02 (Tag Request Flags - always needs to match what you have set reader up for)
0x20 (ISO15693 Optional Command Code, Read Single Block)
0x00 (Block # to read)
BR-
Josh
---------------------------------------------------------------------------------------------------------Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------------------------------