-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for PN532 based RFID readers #825
Conversation
Thanks for your contribution to Phoniebox! A few thoughts:
We are happy to assist you to get this new code parts integrated here! |
So the Quickwire license seems to be LGPL or MIT license, maybe it's not really an issue. Neverthelesss we should decide, if we want to distribute the code (i.e. add it to the repo here) or just load via pip. |
Hi, Thanks for the quick reply.
Unfortunately it does not work via
It does work with
As mentioned, during my (limited) tests I have not found any issues. So I'm assuming that this legacy code is good enough. There are two alternative Python libs for PN532, but they have similar/other limitations:
|
pip3 is fine for us, we are in the process of moving to Python 3 only anyway. My suggestion would be to create a file e.g. If we want to add the call Generally I suggest to check https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/develop/CONTRIBUTING.md, there is some info provided how additional components should be added to the repo. You may also want to check #790, what's currently discussed and maybe #792 for future handling of additional components (plugins). |
My goal would be to assemble the pip-install command based on the user's input within our installer and install all pypi dependencies at once. That should avoid version incompatibilities... Hopefully. So, creating a requirements-pn532.txt is a good idea. |
Based on #790 I have created Side note: mentioning the type of the component in the subsubfolder again seems redundant to me. I'm not even sure that the component name has to be added to the requirements.txt's file name. |
I will update this PR with the shorter path to the requirements.txt as described above. |
e6ded51
to
f0ca994
Compare
@fredg02 did you do a clean install with those changes? And does the phoniebox with your RFID reader work after that? |
Not yet, but I will test it. |
If you think there's a need to explain how to use this feature, please add a short |
@fredg02 thanks for your contribution. And very happy to see that the There is a conflict with the two install scripts for buster and stretch at the moment. Could you have a look please and fix this? It seems that later changes compromised your contribution. And if you add a few lines to a Thanks! micz |
Yes, I will. Sorry for the delay. Priorities have been shifting around lately, so I did not get to work on the PR. |
f0ca994
to
124b6a4
Compare
Conflicts in the install scripts have been fixed. README.md has been added. I've successfully tested the install script for Buster on a clean Raspbian Buster installation. After the installation I had to follow the steps in the README.md to get the PN532 reader to work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Fix for issue #824.
I've added the py532lib from https://github.com/HubCityLabs/py532lib. Let me know if the library should only be added if it's required (e.g. with a little install script).
This has been tested successfully with the latest source code from the develop branch on Raspbian Stretch with a Raspberry Pi Zero.
There is a potential issue where the I2C connection is lost after a while. A manual workaround is to reset the I2C connection via raspi-config. It should be easy to automate this resetting procedure if it occurs more frequently (during my short tests it was pretty stable).
If this PR gets merged, I can add a section to the wiki explaining the hard- and software setup (incl. wiring), etc.