I'm totally lost on this one:
I have an RFID module (RC522), connected to an arduino nano, and using the library from:
https://github.com/miguelbalboa/rfid
it's working correctly, as I can read and write to the cards that came with the module using the example sketches from the library, but looking at the code, I don't understand it nearly enough to even begin modifying it to do what I need...
what I need:
take an ascii string from the serial input (serial console for now would be fine for the proof of concept), and write hex to a specific type of RFID tag, starting at a specific spot.
these specific tags are compatible with the module as I have successfully been able to read them with the sample sketches. according to those, it is:
PICC type: MIFARE Ultralight or Ultralight C
(whereas the tags that came with the module say: PICC type: MIFARE 1KB)
******
I need to input ascii text to the serial (via console or otherwise), for example:
data1,data2,data3
and write to the card:
03: 00 00 00 FF
04: xx xx xx xx
05: xx xx xx xx
06: 64 61 74 61
07: 31 2F 64 61
08: 74 61 32 2F
09: 64 61 74 61
0A: 33 xx xx xx
notes:
03 will always be "00 00 00 FF"
the commas have been replaced with forward slashes (2F)
"xx" means empty/blank/no data (00?)
the data inputted could be any length, so the data being written to the card would extend beyond 0A
THEN,
I need to verify:
read the tag and print to the serial:
03: [the contents of 03, in hex]
data1: [the contents of data1, in ascii]
data2: [the contents of data2, in ascii]
data3: [the contents of data3, in ascii]
note:
for now, "data3" will always be the same number of characters in length, in this case, 5
I've worked with Arduino before, reading inputs/sensors and outputting to motors, LEDs, LCDs, VFDs and OLEDs... but this RFID seems to be a whole other beast-- at least, this library seems to make it.
I would tremendously appreciate any help or links to info that would lead me to producing desirable results.
Thanks