Open ghost opened 6 years ago
Hi @iamyourabu,
thank you for posting your issue here. 🙂
I've noticed that you are trying to run the main example using npm run example
, right?
That example works like this:
I think, you are using a different tag/card or your tag/card is not writable (e.g. locked). So you have to make some changes in the code in order to read you tag/card (change page address, page size, data length, ...).
In order we can identify the problem more specifically, could you please provide more details?
❗️ Check out my answer on Discord, as well. According to the infomation you provided, you don't need to read/write cards, you can use just card uids.
btw Sorry for my late reply. I am extremely busy now and I must have somehow missed the notification. Usually if someone mentions me, or send me a DM, I'll go online.
So if you need more help, feel free to contact me. 🙂
PS Don't forget to star ⭐️ my library, if you find it useful. 😃 Thanks.
Hey @pokusew!
Thanks for responding. Yes, I ran the example to test out the library. In response to your questions:
I looked at your Discord response, and you are spot on with what I am trying to do. I can just the UID of the cards, but the only reason I don't want to is because on my backend, students have IDs and I'd rather have those on my cards instead. I can just end up using IDs, but just want to try and see if I can figure this out.
Would appreciate the help! Thanks
p.s i star'd ur library 👍
Push Please. Have the Same error. What was the Solution for this?
Hi @kkornwinkel,
are you trying to to run the main example using npm run example
or yarn run example
?
What card (which type – Mifare Classic, Ultralight, DESFire, NTAG or something else?) are you trying to read/write?
In case, you use Mifare Classic, you have to authenticate to do read/write and you have to pass the blockSize argument to the reader.read
and reader.write
– you should uncomment appropriate lines in the main example https://github.com/pokusew/nfc-pcsc/blob/master/examples/index.js#L63.
Hope it helps. 🙂
If you encounter any problems, feel free to drop me a line. 😉
Hey there!
I recently found this library and have been trying to get the example to read/write to my card but it keeps erroring. The errors aren't really help as you can see:
I did join your Discord but I have yet to see you on. Would appreciate some assistance. Thanks!