B4J Question Update multiple raspberry's with new jar

jayel

Active Member
Licensed User
Longtime User
Hello,

My app is in its final stage, only a few little bugs that have to be solved.
But in the meanwhile, my scenario, I have 16 raspberry pi with the same solution (jar).
If I change or solve a bug, I want to be able to update all 16 pi's with an external B4J UI app on my developer PC.

Does somebody have any pointers? JShell?

Thanks.

John
 
Last edited:

jayel

Active Member
Licensed User
Longtime User
OK,

Can the server program run on the raspberry where the ABMaterial server app is running?
I suppose so, only choose a different port number, right?
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Assuming your 16 Rpis run unattended and that you already deployed on each a watchdog sw/function that launches your client program if it's not already running, may I suggest to name one of those Rpis (or any other PC always on, even outside the LAN) as the "software distribution server"?
Then all the Rpis (via a config file) will connect to a webserver running on the SDS server, verify if there is a newer realease of their running sw, rename current version to *.old, download the newer version and halt. Once the watchdog finds the sw is not running it will launch it, but this time it will launch the newer realease.
Fundamentally any of your RPi sw should have a "check for newer release" function embedded and called at start.

Note: the above system will work indipendently of how many devices and different softwares you use.
 
Upvote 0
Top