gotthardp / python-mercuryapi

Python wrapper for the ThingMagic Mercury API
MIT License
123 stars 63 forks source link

Writing data to tags #68

Closed NicolasE124 closed 5 years ago

NicolasE124 commented 5 years ago

Hello,

I would like to write data on my tags. From what I see the reader.write function only allows to change the EPC. Is there a way to write on a different bank of the tag or is it not implemented in the wrapper yet? Kind regards

gotthardp commented 5 years ago

Hello. I am afraid that only the EPC can be written at this moment.

NicolasE124 commented 5 years ago

Thanks for your quick answer! Although it is not the one I was hoping for :) Is there a way to implement it myself (knowing that I am not really an expert in C)? If you have any doc on the method used for other functions that would be much appreciated. In the meantime I will have a closer look at your code see if I can get some understanding. Regards

gotthardp commented 5 years ago

What exactly you want to write to the tag?

NicolasE124 commented 5 years ago

So, I am trying to play with some NXP RFID microchip which has 2 RF ports (https://www.nxp.com/docs/en/data-sheet/SL3S4011_4021.pdf). From what I can see there is a specific place in the EPC bank which allows to select which RF port is active. I would like to be able to modify that. Thanks again

gotthardp commented 5 years ago

I've added read_tag_mem and write_tag_mem functions, which is probably what you need.

NicolasE124 commented 5 years ago

That is awesome, I'll give it a go asap Thanks a lot for the support!

gotthardp commented 5 years ago

I am glad it works :)