[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

anybody good at working with RFID? Please Help

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 1
Thread images: 1

File: Massimo_post.png (32KB, 550x400px) Image search: [Google]
Massimo_post.png
32KB, 550x400px
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

No replies in the DB for this post!
Thread posts: 1
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.