My printer has a PN532 NFC reader. It can't read ISO15693 vicinity cards. However I noticed Prusa's app could write to NTAG215/ISO14443 proximity cards.
I use the python nfcpy module to read the data from tags. There it could find the ndef records fine, but when sending all the tag's data (I think, I used tag.ndef.octets to get it, which looks right) to Record, Record complains about wrong magic number. It seems to assume a newer version of NDEF than the tag supports.
I then hacked Record to instead expect the payload of the right ndef records, instead of it doing it's own parsing. That seems to work fine for reading the contents. For me that's enough as I don't care about writing to the tag, spoolman keeps track of the weights for me.
I don't have the ndef spec, so I can't add proper support for parsing the ndef records right now, but I could make a version where Record takes the ndef record's payload as an alternative to the whole tag's data for read only use.
Would you be interested in a PR with that?
My printer has a PN532 NFC reader. It can't read ISO15693 vicinity cards. However I noticed Prusa's app could write to NTAG215/ISO14443 proximity cards.
I use the python nfcpy module to read the data from tags. There it could find the ndef records fine, but when sending all the tag's data (I think, I used tag.ndef.octets to get it, which looks right) to Record, Record complains about wrong magic number. It seems to assume a newer version of NDEF than the tag supports.
I then hacked Record to instead expect the payload of the right ndef records, instead of it doing it's own parsing. That seems to work fine for reading the contents. For me that's enough as I don't care about writing to the tag, spoolman keeps track of the weights for me.
I don't have the ndef spec, so I can't add proper support for parsing the ndef records right now, but I could make a version where Record takes the ndef record's payload as an alternative to the whole tag's data for read only use.
Would you be interested in a PR with that?