piModbusSlave

Topics about the Software of Revolution Pi
Post Reply
piziwate
Posts: 1
Joined: 19 Oct 2017, 11:24

piModbusSlave

Post by piziwate »

Hello,

I'm doing a project with the RevPi and this is very a great device !
I've just an issue with the /usr/sbin/piModbusSlave process (loaded automatically at boot).
The problem is, if I do a reboot of the RevPi, piModbusSlave is started but doesn't work (I got TCP Connection failed from my Modbus Master).

If I kill the process and start it again :

Code: Select all

top
root       513     1  0 11:24 ?        00:00:00 /usr/sbin/piModbusSlave

sudo kill 513
sudo /usr/sbin/piModbusSlave &
This is now working after the manual start... very strange
Any idea ?

Best regards
Steve
Robert84
Posts: 3
Joined: 09 Nov 2017, 16:21

Re: piModbusSlave

Post by Robert84 »

Hello,
I have the same problem on a recently bought RevPi Core.
Pimodbus-slave doesn't work after a reboot, according to netstat it didn't even open a socket but there is a piModbusSlave process up and running. Systemctl also correctly lists is as active running. Stopping and starting it by systemctl or just executing it manually, even without killing the already existing piModbusSlave process, launches a second process that works normally.

Even flashing with a fresh jessie-image didnt help, the modbus slave still doesn't work after a reboot.

When can we expect a fix or workaround for that issue?

Kind regards
Robert
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41

Re: piModbusSlave

Post by volker »

There should be a bugfix in the actual packages. May be it is not yet in the image.
Please always make an update to the newest packages as the image is only released every several month or when having important changes.
So please do "sudo apt-get update" and then "sudo apt-get upgrade" and it should work.
Unser RevPi Motto: Don't just claim it - make it!
Robert84
Posts: 3
Joined: 09 Nov 2017, 16:21

Re: piModbusSlave

Post by Robert84 »

Thanks for your quick reply.
I already updated the system, that was amogst the first things I tried. So there currently is nothing for apt to update.

Nevertheless, I followed your instructions and rand these two commands. As expected, no packages where updated and the issue still remains.

/usr/sbin/piModbusSlave is dated 15th of May and has an MD5 sum of a8cadebee425414b0e2dd8055a13bb11, should that be a newer version?
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41

Re: piModbusSlave

Post by volker »

As you may have seen in "News & Announcements" this known bug had not been fixed in actual packages --- but now it has :-)
So please do an upgrade again and things should hopefully work well...
Unser RevPi Motto: Don't just claim it - make it!
Robert84
Posts: 3
Joined: 09 Nov 2017, 16:21

Re: piModbusSlave

Post by Robert84 »

Thanks a lot, after this update modbus slave is working perfectly.
Post Reply