AustinL0214
Hi,

I am trying to use OpenPLC on my RaspberryPi. I've followed all instructions on the website, and the webserver and editor downloaded and seem to run fine. However, when I try to change to the Raspberry Pi hardware configuration, I cannot start the PLC, and the terminal shows this message which I believe to be the problem,
Quote:
"pinMode PWM: Unable to do this when using /dev/gpiomem. Try sudo?"


Another thing that seems to be incorrect is that the terminal will constantly show these few lines:
Quote:

Interactive Server: Client accepted! Creating thread for the new client ID: 7...
Interactive Server: Thread created for client ID: 7
Interactive Server: waiting for new client...
Interactive Server: client ID: 7 has closed the connection
Terminating interactive server connections


When I start the PLC on the webserver with a blank hardware config, it will show those few lines repeatedly, with the client ID increasing every few times.

I'm very new to this so any help would be appreciated. Thanks.
Reply 0 0
thiagoralves
Interactive server is normal. That’s how the webserver updates page contents. About the error on hardware layer, you need to start OpenPLC as root (put sudo before the command, just as the error message suggests). In fact you shouldn’t even be starting OpenPLC manually. There is a service that is automatically installed that takes care of starting OpenPLC after every reboot with the right permissions
Reply 0 0
Reply