Can you access another server in the middle of the code? - raspberry-pi

I'm trying to run an optimization algorithm on the VS code on my pc. During the process, I need to access the raspberry pi which controls the voltages. The value of the voltage range from 0-150v and is the variable of the optimization problem.
Using the Remote SSH extension on VS code, I managed to control the python file on raspberry pi so I can control the voltages on my PC. However this is done on the raspberry pi server, while I want the algorithm to be run using my PC's computational power. So I am wondering, are there anyway that for a local ipynb code, I can access the raspberry pi server in the process and then jump out and continue?
I am aware that there are other ways like using WINSCP to synchronize the data.

Related

How could I make the raspberry pi as a WIFI and ssh module

For a digital design course, we have to use a microcontroller as the CPU of the system. The chip we plan to use is STM32L0C8T6. We want to integrate the SSH function into a keyboard. The way we plan to do it is to connect the STM32 with a Raspberry pi zero or 2 through UART or SPI. The Pi will connect to the WIFI and connect to other hosts through SSH. An LCD display is also connected to the STM32 which will work like the monitor, displaying all things you will see when ssh, like whatever is shown in the terminal when ssh.
My question is how to build the connection between the terminal and STM32. One possible way is to dump everything in the terminal into a file and send the file back to STM32 for display. I think this will be really slow. Are there any better ideas?
The question sounds wired, and I know we could connect LCD directly to the Pi, but this is the project requirement to have to follow. The LCD has to connect to the microcontroller.
Thank you so much!!!!

How to use window as a Raspberry Pi

ı'm working on a project which is about two raspberry pies' communication.I created a server and a client,ı want one raspberry pi to be server to send a input and another raspberry pi to be client to take the output but ı don't have second raspberry pi,How can ı use windows/my laptop as second raspberry pi. Could you please help me about that?
What language are you using?
How are you two terminals supposed to communicate?
You need to make your question more clear.
If your server and your client are supposed to communicate over HTTP, you don't need to have two raspis; as long as your app can get your app to run on a machine, you can use it as a server/client

Automatic detection of Arduino COM port in Matlab

I don't want to use something like serial ('COM2') to read data from Arduino by Matlab.
Is there any way in Matlab to identify COM port of an Arduino board automatically?
You can use the arduino command (from the MATLAB Support Package for Arduino Hardware) without any arguments:
recreates the last successful connection to the Arduino® hardware. If
that connection fails, it creates a connection to the first official
Arduino hardware connected to your host computer via USB.

How to Stream data over TCP to a Windows 7 laptop?

Im acquiring data from a sensor using RaspberryPi. Now the idea is to get the data streaming over an ethernet link to my Windows 7 laptop and do the monitoring and recording on the laptop. Can I get some advice on how to implement this in C/C++.
The idea is to get the signal from a sensor streamed to a Windows GUI.
You can push data from your raspberry PI to you Windows
You can have some sort of service on your Windows box and your raspberry PI can push information to your software running on your Windows.
or
you can pull data from your raspberry PI to you Windows
In this case, raspberry PI would be a passive provider and Windows would ask for data.
Hard to give you more information without more details but basically you decide who is going to the passive and active and program that way.
I personally would request data from the raspberry PI to Windows as I can have my service running and just update when I need instead of having my service running and suddenly have my data changing.
That said, it's hard to say without more details.
You need to tell what kind of programming language are you going to use.
According to your question, you need to dig into socket programming.
Recently,I linked my two Raspberry-Pi by writing a python script to establish a TCP connection between them.
and there is this protocol called "RTSP(Real Time Streaming Protocol)" to (as the name says) stream data in real-time.
(If you are to use python , there is this module called gst-python for streaming).
I think the above infos would give you where to start.

Accessing Raspbian Filesystem on SD-Card via USB-Connection from Windows

Is it possible to access the filesystem directly via USB when i connect it to my Windows PC ?
I don't want to ssh on the system, i want to mount it inside the Windows operating system, so that i can directly write to it without establishing a ssh connection for example.
Any Ideas how to do this ? Or isn't this possible ?
When it comes to simply accessing the file system you can always use some piece of software that will allow you to access linuxish file systems, so you can just plug in the SD card to your Windows machine (A quick google search: http://www.howtogeek.com/112888/3-ways-to-access-your-linux-partitions-from-windows/).
However, if you want your Raspberry running during those actions, you could use some sort of usb to serial cable (like this one: http://www.adafruit.com/products/954), but you will still need to use Putty or some similar software for the serial connection. On the bright side, connecting your pi that way means it will no longer need an external power supply. Just on a side note, what are your concerns about the ssh connection?