Howdy all,
I've got an interesting problem here specifically related to the development branch of OpenPLC. I have the main branch installed on one RPi 4B, and the development branch installed on a second RPi 4B.
On the main branch RPi4, I am able to add slave devices (specifically, I'm using an Arduino Mega), and they function normally. However, on the development branch RPi4, when I add slave devices, the runtime never actually begins search for the slave device. Both are added using the Web Server > Slave Devices tab.
Another interesting note - the RPi4 with the development branch installed didn't have WiringPi installed by default. So it's possible there's some dependency not installed on this RPi.
I'd appreciate any help in resolving this issue, and getting my "development branch" RPi connected to the Arduino.
Thanks!
PS: Here's a console printout for the development RPi4:
[2021-11-17 12:55:04.929] [info] OpenPLC Runtime starting...
[2021-11-17 12:55:04.931] [info] Skipped load persistence because file cannot be read.
[2021-11-17 12:55:04.931] [info] Setting main thread priority to RT
[2021-11-17 12:55:04.931] [info] Locking main thread memory
[2021-11-17 12:55:04.959] [info] Starting service interactive
[2021-11-17 12:55:05.001] [info] Starting service modbusslave
[2021-11-17 12:55:05.043] [info] Interactive Server: Listening on port 43628
[2021-11-17 12:55:05.074] [info] Starting modbus slave on port 502
[2021-11-17 12:55:05.074] [info] Server: Listening on port => 502
[2021-11-17 12:55:06.273] [info] Starting service dnp3s
[2021-11-17 12:55:06.341] [info] Starting thread (0)
[2021-11-17 12:55:06.342] [info] Listening on: 0.0.0.0:20000
[2021-11-17 12:55:06.342] [info] DNP3 outstation enabled on port 20000
[2021-11-17 12:55:06.502] [info] Starting service enip
[2021-11-17 12:55:06.531] [info] Starting enip on port 44818
[2021-11-17 12:55:06.531] [info] Server: Listening on port => 44818
and here's a console printout for the main branch RPi4:
OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Device Arduino is disconnected. Attempting to reconnect...
Warning: Persistent Storage file not found
Connected to MB device Arduino
Issued start_modbus() command to start on port: 502
Server: Listening on port 502
Server: waiting for new client...
Issued start_dnp3() command to start on port: 20000
DNP3 ID manager: Starting thread (0)
DNP3 ID DNP3_Server: Listening on: 0.0.0.0:20000
Issued start_enip() command to start on port: 44818
Server: Listening on port 44818
Server: waiting for new client...
Issued stop_pstorage() command