DPaul wrote: ↑
Wed Aug 01, 2018 8:17 am
Before I get totally confused:
This is where i downloaded putty.
I have difficulty imagining anything simpler
I start putty, give the 3 host adresses (I can even save them, so no typing)
I can start the monitoring program on the zeroes via putty, once and leave them running.
PuTTY uses the ssh protocol on the Pi0 to start a terminal session. When you start a program over ssh this program will be terminated if the connection is terminated (for any reason). To ensure that the program keeps running can use nohup.
With PuTTY you can use keys so that you do not need to login to the Pi0.
The zeroes shut down by themselves, when i type a "secret code" on the terminal keypad.
Do you shut down the Pi0 or do you terminate your program ?
They are assembled terminals because they are designed to capture a specific kind of events.
Each terminal is manned by a different person who captures the data by keypad, with some input validation going on etc...
That implies that you capture information.
2. Maybe i can do without putty. The fact of plugging the zero via usb into the PC, creates a connection.
I have not figured out how yet.
In other words, you want to use ethernet gadget mode on the Pi0 to be able to connect via the network to the Pi0.
Are you aware that the distance is limited to the maximum length of the USB cable ?
Are you aware that these will be point to point connections, you will have multiple ethernet interfaces on your computer.
3.Perhaps i should take a look at "psftp"., but i do not need encryption, authorisation...etc. This is a closed system, totally under my control.
ftp is a primitive file transfer protocol, sftp is a "secure" ftp using ssh, psftp is the PuTTY supplied PC version of sftp client. ftp requires user interaction. The following example does not ask for password because it is using my keys.
Code: Select all
C:\Users\Ernst>psftp [email protected]
Using username "pi".
Remote working directory is /home/pi
psftp> get readme.txt
remote:/home/pi/readme.txt => local:readme.txt
scp is a file copy program, pscp is the PuTTY supplied PC version of scp, WinSCP is a Windows GUI version of scp. scp can be run from the command line without user interaction. The following two examples show how to transfer from the command line, the second transfer in quiet mode to suppress statistics, both using my keys.
The largest effort with programming is error and exception detection and recovery, with PuTTU (putty, plink, psftp, pscp) most of the work is done already and you can wrap these programs in your own application.
I could dream of additional features, by intervening on the Zeroes from the PC at specific moments. But then KISS.
A very simple method to intervene is to have your program look for a file, you can use the name of the file or the contents of the file. In this example the program looks for a file named "STOP" in the home directory which is created from the command line on the PC.