Giter Site home page Giter Site logo

Comments (22)

mbecker4 avatar mbecker4 commented on July 26, 2024 1

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.

Esamanoaz avatar Esamanoaz commented on July 26, 2024

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.

LiveDrunk avatar LiveDrunk commented on July 26, 2024

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.

LiveDrunk avatar LiveDrunk commented on July 26, 2024

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.

kastrom avatar kastrom commented on July 26, 2024

@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.

hankhank10 avatar hankhank10 commented on July 26, 2024

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.

macjester avatar macjester commented on July 26, 2024

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.

mbecker4 avatar mbecker4 commented on July 26, 2024

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.

Esamanoaz avatar Esamanoaz commented on July 26, 2024

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.

mbecker4 avatar mbecker4 commented on July 26, 2024

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.

macjester avatar macjester commented on July 26, 2024

from vinylemulator.

TheScurvyDawg avatar TheScurvyDawg commented on July 26, 2024

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.

TheScurvyDawg avatar TheScurvyDawg commented on July 26, 2024

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.

macjester avatar macjester commented on July 26, 2024

from vinylemulator.

Esamanoaz avatar Esamanoaz commented on July 26, 2024

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.

TheScurvyDawg avatar TheScurvyDawg commented on July 26, 2024

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.

Esamanoaz avatar Esamanoaz commented on July 26, 2024

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.

TheScurvyDawg avatar TheScurvyDawg commented on July 26, 2024

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.

Esamanoaz avatar Esamanoaz commented on July 26, 2024

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.

TheScurvyDawg avatar TheScurvyDawg commented on July 26, 2024

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.

macjester avatar macjester commented on July 26, 2024

from vinylemulator.

macjester avatar macjester commented on July 26, 2024

from vinylemulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.