Comments (22)
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.
from vinylemulator.
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.
from vinylemulator.
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)
nfcpy/nfcpy#167
I have revision 216 and haven't found a way to fix it yet
from vinylemulator.
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)
from vinylemulator.
@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.
from vinylemulator.
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
from vinylemulator.
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 ?
from vinylemulator.
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?
from vinylemulator.
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?
from vinylemulator.
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
from vinylemulator.
from vinylemulator.
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.
from vinylemulator.
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.
from vinylemulator.
from vinylemulator.
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
from vinylemulator.
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
from vinylemulator.
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?
from vinylemulator.
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.
from vinylemulator.
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.
from vinylemulator.
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.
from vinylemulator.
from vinylemulator.
from vinylemulator.
Related Issues (20)
- Can we have examples of the format of the command to save to the NFC card for each service HOT 1
- Cannot get any spotify to work. HOT 5
- Issue re recognition of Spotify Account HOT 1
- Request: Pause when NFC Tag is removed HOT 3
- Spotify songs not queueing or playing HOT 4
- Podcasts HOT 5
- Spotify “end session” command through Sonos api? HOT 3
- Unable to get vinylemulator to run on boot HOT 4
- Can't seem to get acr122u to beep when a tag is read? HOT 2
- Everything works with Sony NFC reader, but albums all play shuffled?
- help HOT 2
- password HOT 1
- putty network error connection timed out
- 500 error from terminal, but 200 from browser HOT 4
- Autostop possible? HOT 3
- Support for RC522 HOT 1
- Issue while reading HOT 1
- 500 error when retrieving albums HOT 3
- Trouble running vinylemulator HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vinylemulator.