Hi,
I have RS4D and RS&BOOM that I am testing for my work. I have them connected to a small LAN and I can access and configure both units via the browser (rs.local and rs-2.local).
Our company network is really restrictive so I cannot upload data for now but I wonder if I can setup a computer on the same LAN to grab the data from RS4D and RS&BOOM or for them to push the data to it.
Is there a way to setup a SeedLink data client / server for those units on the same LAN?
Thanks a lot,
George
If you have another Linux system on the same LAN, you can fairly easily pull the data from the R-Shake to that system. Not sure how this helps, because if you can’t get it from the R-Shake, how do you get it from the second system?
However …
Set up the new Linux system so that some user on there can ssh into the R-Shake using ssh certs (no passwords).
Once you have that set up. You can set up a cron job to run rsync to sync the data on the R-Shake to your second system.
As an example, my Shake-Boom is on 10.0.0.125 on my local network.
On my Linux system, I create a directory (I called it Data).
Then just run:
rsync -r [email protected]:/opt/data/archive/2023/AM Data
This syncs the data found in /opt/data/archive/2023/AM on the R-Shake into the Data directory.
in my case, it looks like this:
$ ls -R Data
Data:
AM
Data/AM:
R309F
Data/AM/R309F:
EHZ.D HDF.D
Data/AM/R309F/EHZ.D:
AM.R309F.00.EHZ.D.2023.213 AM.R309F.00.EHZ.D.2023.216 AM.R309F.00.EHZ.D.2023.219
AM.R309F.00.EHZ.D.2023.214 AM.R309F.00.EHZ.D.2023.217 AM.R309F.00.EHZ.D.2023.220
AM.R309F.00.EHZ.D.2023.215 AM.R309F.00.EHZ.D.2023.218 AM.R309F.00.EHZ.D.2023.221
Data/AM/R309F/HDF.D:
AM.R309F.00.HDF.D.2023.213 AM.R309F.00.HDF.D.2023.216 AM.R309F.00.HDF.D.2023.219
AM.R309F.00.HDF.D.2023.214 AM.R309F.00.HDF.D.2023.217 AM.R309F.00.HDF.D.2023.220
AM.R309F.00.HDF.D.2023.215 AM.R309F.00.HDF.D.2023.218 AM.R309F.00.HDF.D.2023.221
Run rsync as often as you wish - it copies over only the things that have changed.
2 Likes
Further to Philip’s post, if you’re in Windows you can use WinSCP to synchronise opt/data/archive/etc with a directory on your Windows PC. WinSCP has a nifty scripting facility, so you can completely automate it.
WinSCP
2 Likes
Hello George, and welcome to our community!
To further Philip’s and TideMan’s great answers, you also have the option of using the Shake’s own UDP data output option, which is described here in our manual: Raspberry Shake Data Producer UDP Port Output
This may be particularly useful if you want to display data in real-time and visualize it as the Shake is recording it.
Some more thoughts about the comments so far:
Rsync has the advantage that it checks modification times/sizes and only copies over things which don’t exist in your local copy. That isn’t going to be a huge advantage with the data sizes we are talking about here, so WinSCP is a good option if you are using Windows – if we were talking much larger data sets, it might be worth installing the Linux sub-system on Windows to be able to use rsync.
It is worth checking out the UDP stream option the Stormchaser mentioned. It might be a bit more work, but it is just possible that this might go through your firewalls.
2 Likes
Thanks a lot for all who had very useful comments. I did get a feel that the Linux systems are bit more flexible for this type of work and I have some experience with newer versions of Ubuntu and I have been using the WSL on my Windows machine.
I will spend some time testing including with WinSCP that I used in the past.
Once again thanks a lot for all the help
George
1 Like