pfouche
Hi.
 
I have had OpenPLC running in a raspberry Pi 3b+ since early 2021. Since then I have invested quite a bit of time customising the hardware layer for all sorts of different I/O. A lot use Wiring Pi. I see that support for Wiring Pi was pulling in Commit 1666535 back in February.  
 
Recently I was forced to do a full re-build due to issues with SignalK, which lead to a re-install of OpenPLC. Now I can't compile due to dependancy issues because of my hardware layer need WiringPi - which I see now has a small community supporting it on GitHub
 
How do I install the last good version prior to Feb 26?
 
Peter
Reply 0 0
thiagoralves
Most likely OpenPLC will support wiringpi back in the future as it seems that it is now being supported again by the community and works with the pi5. There are a couple posts here from @fg71 with instructions on how to enable wiringpi again
Reply 1 0
fg71
I have tested the latest WiringPi v3.10 on RPi4B and RPi5B.
From the source wiringPi.c I could see this
 
const char *piModelNames [24] =
{
  "Model A",  //  0
  "Model B",  //  1
  "Model A+",  //  2
  "Model B+",  //  3
  "Pi 2",  //  4
  "Alpha",  //  5
  "CM",    //  6
  "Unknown07",  // 07
  "Pi 3",  // 08
  "Pi Zero",  // 09
  "CM3",  // 10
  "Unknown11",  // 11
  "Pi Zero-W",  // 12
  "Pi 3B+",  // 13
  "Pi 3A+",  // 14
  "Unknown15",  // 15
  "CM3+",  // 16
  "Pi 4B",  // 17
  "Pi Zero2-W",  // 18
  "Pi 400",  // 19
  "CM4",  // 20
  "CM4S",  // 21
  "Unknown22",  // 22
  "Pi 5",  // 23
} ;
So I believe it should support your model 3B+
 
The easiest is to git clone source of OpenPLC Runtime, edit compile_program.sh and include -lwiringPi and remove -lpigpio
And replace the methods in raspberrypi.cpp from pigpio to wiringPi.
You could find the method in wiringPi.c from the source code WiringPi v3.10
 
Or
 
You could follow my guide I have upload here in different places.
Reply 0 0
Reply