Open lasagneking opened 4 years ago
If you read pull request #6 you should be able to fix this issue. If you have fixed it can you close the issue now? Thanks.
Check the command: python -m nfc
again.
Might be a problem regarding the revision of the reader: (revision can be found using python -m nfc -v -v -v
, see the link below)
https://github.com/nfcpy/nfcpy/issues/167
I have revision 216 and haven't found a way to fix it yet
Found a small "fix"
Try to run the application python vinylemulator/readnfc.py
the first time without checking with: python -m nfc
This should make it work...
And try to keep it running so the connection doesn't go bad. (this is my next step that i'm gonna try but i expect this to work)
@LiveDrunk any luck with fixing yours yet?
I also have revision 216 and have the same issue. I’ve managed to get it working once by running python vinylemulator/readnfc.py
without first running python -m nfc
, but every other time I just get a not found error.
I’ve ordered a couple more readers from Amazon and Ali Express as there doesn’t seem to be a way to find out the revision from the product listing.
You may want to try Node-Sonos-NFC: https://github.com/ryanolf/node-sonos-nfc
This is a new library which is supposedly compatible with more card readers since it doesn't rely on NFCpy
You may want to try Node-Sonos-NFC: https://github.com/ryanolf/node-sonos-nfc
This is a new library which is supposedly compatible with more card readers since it doesn't rely on NFCpy
hankhank10 , i cannot connect the caed reader , do i follow your instructions until the section on the card reader then go to https://github.com/ryanolf/node-sonos-nfc , whats your thoughts ?
I am having a similar issue. I followed all directions and used https://github.com/ryanolf/node-sonos-nfc instead of NFCpy. However when I try to run python vinylemulator/readnfc.py It cannot connect to the reader.
I am able to see the reader when I use lsusb. Can anyone point me in the right direction on making the nfc reader properly load?
I am able to see the reader when I use lsusb. Can anyone point me in the right direction on making the nfc reader properly load?
Have you changed nfc_reader_path="usb"
in usersettings.py
to the result of lsusb? If you run lsusb and it says something like usb:072f:2200
, put that in. For example: nfc_reader_path="usb:072f:2200"
.
Also, what NFC reader are you using?
I already tried updating usersettings. My path is currently set to usb:072f:2200
The NFC Reader comes up as Advanced card systems, Ltd ACR122U
I would love to be able to help you but I've now been at it for.months , just a pity about the nfc reader part , sorryOn 16 September 2021 at 05:07 Evan @.***> wrote: I am able to see the reader when I use lsusb. Can anyone point me in the right direction on making the nfc reader properly load?Have you changed nfc_reader_path="usb" in usersettings.py to the result of lsusb? If you run lsusb and it says something like usb:072f:2200, put that in. For example: nfc_reader_path="usb:072f:2200".Also, what NFC reader are you using?—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
I am having this same problem. Having to use Python3.
In usr/bin/python3 there is no module named nfcpy
I know I am late to the game on this and I am also a complete newb to all this. I have it all working except this final step of getting the NFC reader working on the Pi. I have set the path in user settings. nfcpy seems to be where I am stuck. It will not recognize the ACS NFC reader. I came here from Hackster.io hoping there would be an easy resolution.
I am having this same problem. Having to use Python3.
In usr/bin/python3 there is no module named nfcpy
I know I am late to the game on this and I am also a complete newb to all this. I have it all working except this final step of getting the NFC reader working on the Pi. I have set the path in user settings. nfcpy seems to be where I am stuck. It will not recognize the ACS NFC reader. I came here from Hackster.io hoping there would be an easy resolution.
I saw on the main page your important note.
I am sorry to have to ask but do you have a link to instructions on installing this node-sonos-nfc?
I will go read up on it now.
still not got mines working . sorry i cant help
On 31 October 2021 at 19:43 TheScurvyDawg @.***> wrote:
I am having this same problem. Having to use Python3. In usr/bin/python3 there is no module named nfcpy I know I am late to the game on this and I am also a complete newb to all this. I have it all working except this final step of getting the NFC reader working on the Pi. I have set the path in user settings. nfcpy seems to be where I am stuck. It will not recognize the ACS NFC reader. I came here from Hackster.io hoping there would be an easy resolution. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hankhank10/vinylemulator/issues/11#issuecomment-955780263 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ3O4364XRODGRFHODLOZG3UJWL6DANCNFSM4PZFUDRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
In usr/bin/python3 there is no module named nfcpy
Have you tried installing the module like this? pip3 install -U nfcpy
Sometimes specifying the 3 in pip3 or python3 commands is important because it distinguishes from python 2. Also try it with sudo, like this: sudo pip3 install -U nfcpy
In usr/bin/python3 there is no module named nfcpy
Have you tried installing the module like this? pip3 install -U nfcpy
Sometimes specifying the 3 in pip3 or python3 commands is important because it distinguishes from python 2. Also try it with sudo, like this: sudo pip3 install -U nfcpy
I did exactly that just after posting here. It now doesn't say there is no NFC but it still doesn't connect, sadly.
I also went and installed the node-sonos-nfc linked to in the important note and that looked very hopeful but honestly, this newb is stuck.
Thanks for responding Esamanoaz
Hmmmm. So the NFCpy module is not seeing your reader, right? I use NFCpy for something similar to this on a Raspberry pi computer. I tried it on my Windows 10 laptop and it could not find the reader, because it needed some kind of driver if I remember correctly. I never figured that problem out, so I just used it on my raspberry pi.
Are you using a raspberry pi or a different type of computer?
Hmmmm. So the NFCpy module is not seeing your reader, right? I use NFCpy for something similar to this on a Raspberry pi computer. I tried it on my Windows 10 laptop and it could not find the reader, because it needed some kind of driver if I remember correctly. I never figured that problem out, so I just used it on my raspberry pi.
Are you using a raspberry pi or a different type of computer?
The ACS NFC ACR122U works fine on my PC as I used it to load a bunch of the stickers. I am setting this up on my Raspberry Pi.
Ah, so it works on your PC but not your Pi? I'm actually not sure how to help then. You should look through the github issues on the official NFCpy repository. This seems like a problem that they could solve.
I will look that up, I am totally new to using a Pi and this is my first attempt at a project using one. I am so close and excited to get this working. The Sonos server works great. The NFC card works flawlessly on the PC I am just stuck on this one final step darn it.
Hi , looks like you have got a bit further than me , my son and I have been at it on and off for the last 4 months , ws too are complete novices, On 31 October 2021 at 21:29 TheScurvyDawg @.***> wrote: I will look that up, I am totally new to using a Pi and this is my first attempt at a project using one. I am so close and excited to get this working. The Sonos server works great. The NFC card works flawlessly on the PC I am just stuck on this one final step darn it.—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
you and me both , my son and i have been at it on and off for the last 4 months , looks like you have got a bit more than we have , i even bought a new reader pn532 nfc hat, yep you guessed it still dosnt work ,, i know its probably just me not knowing what im doing but would love to get it to work , good lucl
On 31 October 2021 at 21:29 TheScurvyDawg @.***> wrote:
I will look that up, I am totally new to using a Pi and this is my first attempt at a project using one. I am so close and excited to get this working. The Sonos server works great. The NFC card works flawlessly on the PC I am just stuck on this one final step darn it. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hankhank10/vinylemulator/issues/11#issuecomment-955794907 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ3O434NHWWTOS5JPOIIRITUJWYNLANCNFSM4PZFUDRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
I was able to get it to work a few weeks ago, and now have my Pi up and running. Sorry for the delay. I got it to work then my computer crashed and I’m now limping on my 10 year old MacBook Pro, this also means I don’t have the final code that I cleaned up (and running it on a Raspberry Pi 3A+ loading all the files is pretty slow and difficult). Knowing that many people have been working on this for a long while I thought the sooner the better.
I bought this NFC Hat: here
I then updated the reader path because we are no longer using the usb nfc reader.
reader = nfc.ContactlessFrontend("ttyS0")
I also did have to install a few additional packages as well, pn532
and ndef
. I moved these packages into the vinyleumlator folder along with the nfc package folder. — This is probably not necessary, but it did make it a lot easier as I was trying to make the NFC hat play nice.
I'm not the most experienced python developer, but if you have additional questions on my comments let me know and I will try to help you out as best as I can.
For some reason I have an NFC connection issue.
PM2 status shows readnfc as connected, I've stopped the service and restarted although same problem exists.
pi@raspberrypi:~ $ python -m nfc This is the 1.0.3 version of nfcpy run in Python 2.7.16 on Linux-5.4.51-v7+-armv7l-with-debian-10.4 I'm now searching your system for contactless devices ** found ACS ACR122U PN532v1.6 at usb:001:003 I'm not trying serial devices because you haven't told me -- add the option '--search-tty' to have me looking -- but beware that this may break other serial devs
Which seems good although:-
pi@raspberrypi:~ $ python vinylemulator/readnfc.py
Loading and checking readnfc