-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Raspberry Pi 4 Requires latest wiringpi needs 2.52 #689
Comments
I think it is also important to mention Gordon's post about WiringPi. The End of Everything as we know it I work as a support guy in my day job. And to see folks that give support for no charge really seems a charity and act of kindness. I enjoy helping where I can however I have no expectation of the author to figure it out for me, or to train me in the methods required to use the code. This code runs in a python virtualenv. There is your first clue. Now read the installation script. Open Source is participatory, not a spectator occupation. |
@chitters2004 What are you using wiringpi for? Are there any alternatives? @Theoi-Meteoroi That was a depressing read, but thanks for sharing it. I've felt the same way at times. Fortunately I still find Mycodo worth the effort to keep it open and up to date. Besides knowing the software helps a lot of people, it's the little things like this that keep me motivated. |
When using rasPi 4 unable to get readout with i2cdetect -y 1 . When I updated wiring pi it worked but then mycodo install reverted it with no obvious way to me to update again. |
Are you using the ads1256 that you need this for, or something external from Mycodo? |
Oh, I see i2cdetect. Let me see. |
The only place wiringpi is installed is during the initial Mycodo installation, and if the ads1256 Input is installed. Otherwise, only if the ads1256 is installed, it will upgrade the wiringpi Python library when the Mycodo upgrade happens. It doesn't seem like the upgrade caused the issue if you didn't have the ads1256 Input module installed. |
oh damn, i meant gpio readall |
has a board error returned until I updated it to 2.52 |
and was unable to activate GPIO outputs |
I didn't think RPi.GPIO that's used to switch the GPIO pins depended on wiringpi. Let me look into that. |
Or are you referring to switching GPIO pins outside of Mycodo, with the gpio executable? |
Since wiringpi is being deprecated, I might just remove it entirely from Mycodo and let the user decide to install it. That will remove conflicts with user configurations. The only purpose of wiringpi in Mycodo at the moment is the as1256 Input, and I believe it's entirely handled by the wiringpi Python module that's installed inside the virtualenv, so the build/install from https://github.com/WiringPi/WiringPi-Python that's performed in the install/setup.sh during the initial installation is likely unnecessary. Let me know if you were referring to GPIO manipulation outside of Mycodo. If so, I'll see about removing the winringpi install during the Mycodo install. |
All was working well, tried to get GPIO output to relay but nothing was happening. Found the error in mycodo system info. googled the error, it pointed to wiring pi, so tried to update that but it stayed at the same version. Did a fresh flash, tried gpio readall and got the same unidentified board (17 error), when i installed latest wiringpi it gave me the output. |
Will do a fresh install on rPi 4 later and see if i can replicate |
Can you also paste the error you get? For reference, this is also the only reference to gpio I can find in Mycodo: Mycodo/mycodo/mycodo_flask/routes_page.py Line 854 in ed2da82
|
I believe it was
|
People online were having problems when 3b came out too and solved by updating wiringpi |
I just updated the wiringpi install script section to install from the deb instead of building from source. If you have time, can you fresh flash Raspbian and fresh install Mycodo to see if everything works out of the box? Here's how to install from master:
|
But it would be beneficial to know if the Mycodo Outputs were really affected rather than maybe you caught an update I made that fixed it between your testing installs. If you have the error from the log, that would be helpful. |
I have a raspi4 fresh install from last night, checking it now |
But do the Outputs work from within Mycodo? |
If it's only the "gpio readall" command that's impacted, that's pretty minor and I can replace that on the /info page with software that's still maintained. |
log file looks ok when i set up dummy output with nothing connected. If it makes a difference to have an actual output connected i can check tomorrow. |
Shall I do that before testing master update? |
If it turns green when you click ON it's likely working, because the status indicator (red/green color) is determined directly from RPi.GPIO reading the pin state. So it appears it's just "gpio readall" that's affected in Mycodo. But please do test with a multimeter or relay when you can. I don't yet have a Pi4 to test with. |
A master upgrade won't affect the currently-installed wiringpi, so you can do that and still test later. |
sorry, I meant fresh install after testing the outputs on 7.7.6 |
If your Outputs turn on in Mycodo with 7.7.6, then it's not too important to do a fresh install, because I'll be looking for a replacement for wiringpi, as it's no longer maintained. |
Ok, will do a test tomorrow anyway and then keep my pi4 current with latest as test platform alongside 3b+ |
Attempts to manually update before mycodo installation are reverted.
Attempts post installation fail to update.
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
https://project-downloads.drogon.net/wiringpi-latest.deb
The text was updated successfully, but these errors were encountered: