-
Notifications
You must be signed in to change notification settings - Fork 420
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
Error when trying to run read.py #76
Comments
look here i had the same issue and this helped me solve it |
I tried it, but I still get the same problem.
Sorry, but I also read the issue
…On Thu, Jul 4, 2019 at 3:07 PM Freddy789 ***@***.***> wrote:
look here i had the same issue and this helped me solve it
btw look around before you open a question lol the link is the exact same
problem you are facing
#69 <#69>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#76?email_source=notifications&email_token=AJS6MZ3BLQ22NUECZ4V4S2DP5WVULA5CNFSM4H5B3EAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZGVLNA#issuecomment-508384692>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJS6MZ5JLBL4ODEUGHIGRHTP5WVULANCNFSM4H5B3EAA>
.
|
Reverting the SPI-Py to 8cce26b resolved my issue as suggested in the following link. Make sure to change directory to the cloned project directory before running the last line in the link above. |
Hello @scimad and @lyocyhs, I've got the same problem. With some modifications on this library, I was able to run My changes are shared in this pull request. |
@lucassarcanjo Thanks a lot for your coordintation in making this post worth usable and improving the flaws in the syntax. I have followed the new directories which you have mentioned in the above comments. I am getting the below error right now. I would be glad if you could assist me, Welcome to the MFRC522 data read example Thanks and Regards |
Hello @priyesh1112 , I think I got what can be the reason of your issue. print("Size: ".format(ackData[0])) to print("Size: ".format(backData[0])) It should work. |
@victormagalhaess thanks a lot for your feedback. It worked fine. Now I am facing some other issues which I am trying to rectify :) |
/home/pi/MFRC522.py:133: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. |
Hello @priyesh1112 , can you send me your code? I'll have an raspberry available tomorrow, so if you send me I can test and try to solve your issue with a practical approach (this way I can test if any other issues spots). |
Thanks @victormagalhaess that is really kind of you. I am trying to solve it but if it does not happen, I will copy the code and send it to you so that you may verify. I have also consulted @lucassarcanjo but he has not responded yet. I will let you know. Thanks and Regards |
@victormagalhaess could you share your email id so that I can send you my code? Though it is exactly the same as Lucas has posted. But, I am facing different error. |
File "Read.py", line 41, in MIFAREReader = MFRC522.MFRC522() File "/home/pi/MFRC522-python/MFRC522.py", line 135, in init self.MFRC522_Init() File "/home/pi/MFRC522-python/MFRC522.py", line 406, in MFRC522_Init self.MFRC522_Reset(); File "/home/pi/MFRC522-python/MFRC522.py", line 138, in MFRC522_Reset self.Write_MFRC522(self.CommandReg, self.PCD_RESETPHASE) File "/home/pi/MFRC522-python/MFRC522.py", line 141, in Write_MFRC522 spi.transfer(((addr<<1)&0x7E,val)) TypeError: function takes exactly 2 arguments (1 given)
Please help me to solve this problem
The text was updated successfully, but these errors were encountered: