-
Notifications
You must be signed in to change notification settings - Fork 15
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
Not working without sudo & failing too silently #4
Comments
Also, the user PI belongs to the group gpio:
|
@mitchellparsons have you got any idea about this? |
I'm sorry, but at the moment I don't have solution to this. |
The silent failing should be fixed by pr #5. |
The problem is probably around line 1337 in mikem's bcm28335 driver (which seems to be only available as tar file from his homepage):
Have you checked what geteuid() returns on your system (i.e. run |
...from Stackoverflow on how to check if the user is root:
So instead of |
Hello! Thank you for your efforts with the library.
I am trying to run it on a Raspberry Pi 3 (Raspbian GNU/Linux 8 (jessie)), and it is impossible to make it work without
sudo
. To narrow down the issue for you, here is what I am talking about:It works with sudo though, and reads the RFID tags properly. It seems that your library still tries to access
/dev/mem
even when it's not running underroot
. This fault seems to contradict this excerpt from your documentation:My permissions to the devices are below:
It is imperative that
sudo
is not used in our application, because we are calling this library from Node-RED framework, which cannot properly terminate processes launched withsudo
. Please, let me know if there is anything immediate that can be done about this, as my school project depends on this library functioning properly.Another issue with the library is that everything fails silently. For instance, when we launch
pi@raspberrypi:~/node_modules/rc522 $ node main.js
there are no error messages passed to the console from the child processes... The proper handling of error messages would be most helpful.
Thank you.
The text was updated successfully, but these errors were encountered: