How ?- Connect via USB to 3 pi zeroes (that simultaneous question is still my original topic starter)
What ? How ? Why ?- Those pi zeroes are assembled to be input terminals, where numbers are inputted, written to a txt file.
What desktop ? Collect how ?- Every minute i run a visual studio program on the desktop, that collects the data in those txt files.
Where ? What screen ?- Those data are processed and projected on a screen.
It depends on your answers.What could samba do to improve this setup ?
You must have the sshd service running on the Pi Zeros.
The Visual Basic code you have posted twice creates the connections. There's no need to create additional connections with PuTTY, they have no effect on running the VB program.
1) You are using a PC, in that case using pscp (https://www.chiark.greenend.org.uk/~sgt ... atest.html) is much simpler.DPaul wrote: ↑Wed Aug 01, 2018 6:34 amOK, i am using the SSH library on the laptop and nothing on the Pi zero.
I have to use something, to create the 3 connections.
As response times are important, i thought it better not to have any extra software running on the pi.
I can use pi 3b 's, but that makes the project much more expensive.
Closing or not closing the connection: OK i can time how long it takes.
The question remains, will it work with 3 connections open simultaneously?
Why don't i test that ?
Well i have assembled the first terminal, and wrote a python program for it.
Before i assemble 2 or more extra terminals, i would like to have some
indication that it will run for hours without a problem or performance degradation.
I have no experience with writing networking apps.
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.DPaul wrote: ↑Wed Aug 01, 2018 8:17 amBefore I get totally confused:
1. https://www.chiark.greenend.org.uk/~sgt ... atest.html
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.
Do you shut down the Pi0 or do you terminate your program ?The zeroes shut down by themselves, when i type a "secret code" on the terminal keypad.
That implies that you capture information.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...
In other words, you want to use ethernet gadget mode on the Pi0 to be able to connect via the network to the Pi0.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.
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.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.
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 psftp> exit C:\Users\Ernst>
Code: Select all
C:\Users\Ernst>pscp [email protected]:readme.txt . readme.txt | 0 kB | 0.0 kB/s | ETA: 00:00:00 | 100% C:\Users\Ernst>pscp -q [email protected]:readme.txt . C:\Users\Ernst>
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.I could dream of additional features, by intervening on the Zeroes from the PC at specific moments. But then KISS.