Page 1 of 1

piModbusMaster Connection Failing due to missing file or directory

Posted: 31 Dec 2020, 08:35
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.

Re: piModbusMaster Connection Failing due to missing file or directory

Posted: 04 Jan 2021, 10:37
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.