Mr. and Ms. Wizards,
I have a project that I would like to outline and see what direction I can get.
Project: Find a way to reboot Raspberry Pi so the maint team stops frying the SD card when they yank the power cable out to restart the Pi. (3 in the last 30 days)
Reason for reset: For an unknown reason, and at random times, we drop communication between the server pi and the client. This causes the web page that is running in Chromium to display "oh' snap, something went wrong" Rebooting the Pi is the quickest and easiest way to recover this issue.
Without the client pi displaying the web page, the operators at that station do not know the status of their build, and they call the maint team for support. This results in the maint tech pulling the plug as that's the "quickest" way to recover for them.
Details: We are using Raspberry Pi 3 devices to pull a web page from a server pi (of same style). The server Pi is using java script to read tags from an Allen Bradly PLC. The server Pi serves up the web page and updates the indicators on the web page based on the tag value within the PLC.
Issue: I know very little about java script and the original developer of this process is not available for support. I have been able to update the clients and server pi as needed for adding/removing indicators, but that is the limit of my current abilities with this programming language.
Question 1: Being that I have established a connection with the server -> client, and server -> PLC, can i use the server to send a command to the client to reboot? (i have up to 7 clients running off of one server pi.)
Question 2: If using the server pi to reboot the client is not optimal, should i just have the client monitor a tag within the PLC?
Things of note: Using Rasperian operating system, Using JAVA script to read the PLC from the server. Using Chromium to display the web page on the client Pi.
I've seen some options where you can run a wire to one of the pins and have the pi monitor the voltage on said pin. I can do this, but would rather utilize the networking vs climbing around this assembly line dragging cable.
Thanks in advance for much needed advice,
Gad
I have a project that I would like to outline and see what direction I can get.
Project: Find a way to reboot Raspberry Pi so the maint team stops frying the SD card when they yank the power cable out to restart the Pi. (3 in the last 30 days)
Reason for reset: For an unknown reason, and at random times, we drop communication between the server pi and the client. This causes the web page that is running in Chromium to display "oh' snap, something went wrong" Rebooting the Pi is the quickest and easiest way to recover this issue.
Without the client pi displaying the web page, the operators at that station do not know the status of their build, and they call the maint team for support. This results in the maint tech pulling the plug as that's the "quickest" way to recover for them.
Details: We are using Raspberry Pi 3 devices to pull a web page from a server pi (of same style). The server Pi is using java script to read tags from an Allen Bradly PLC. The server Pi serves up the web page and updates the indicators on the web page based on the tag value within the PLC.
Issue: I know very little about java script and the original developer of this process is not available for support. I have been able to update the clients and server pi as needed for adding/removing indicators, but that is the limit of my current abilities with this programming language.
Question 1: Being that I have established a connection with the server -> client, and server -> PLC, can i use the server to send a command to the client to reboot? (i have up to 7 clients running off of one server pi.)
Question 2: If using the server pi to reboot the client is not optimal, should i just have the client monitor a tag within the PLC?
Things of note: Using Rasperian operating system, Using JAVA script to read the PLC from the server. Using Chromium to display the web page on the client Pi.
I've seen some options where you can run a wire to one of the pins and have the pi monitor the voltage on said pin. I can do this, but would rather utilize the networking vs climbing around this assembly line dragging cable.
Thanks in advance for much needed advice,
Gad