piModbusMaster Connection Failing due to missing file or directory

Topics about the Software of Revolution Pi
Post Reply
zzzNTG
Posts: 7
Joined: 10 Aug 2020, 20:06

piModbusMaster Connection Failing due to missing file or directory

Post by zzzNTG »

Hello,

I am experiencing the following error per my daemon logs:

Code: Select all

Dec 30 23:28:07 RevPi35497 piModbusMaster[1188]: Modbus connection failed: No such file or directory
I have tried deleting the config.rsc and recreating the symbolic link to the _config.rsc file but the issue still persists.
Any help would be much appreciated.

Thanks in advance for you help.
Nate G
User avatar
Amar
KUNBUS
Posts: 160
Joined: 15 Jul 2019, 12:58

Re: piModbusMaster Connection Failing due to missing file or directory

Post by Amar »

Hi,
Please try following:

Update to recent version:
sudo apt-get update && sudo apt-get upgrade && sudo reboot

check kernel version after update:
pi@RevPi17643:~ $ uname -a
Linux RevPi17643 4.19.95-rt38-v7 #1 SMP PREEMPT RT Tue, 03 Nov 2020 10:05:20 +0100 armv7l GNU/Linux

create pictory configuration and check if _config.rsc is located at following path:
/var/www/pictory/projects/

Then verify symbolic link
pi@RevPi17643:~ $ ls -la /etc/revpi/config.rsc
lrwxrwxrwx 1 root root 43 Dec 18 16:25 /etc/revpi/config.rsc -> /var/www/revpi/pictory/projects/_config.rsc

Then try piModbusMaster.
If it still fails, try following:
copy _config.rsc from /var/www/pictory/projects to path /etc/revpi/
Rename _config.rsc to config.rsc at path /etc/revpi/ an then test y piModbusMaster again.
KUNBUS
Post Reply