Let me start by saying I am not a professional coder. This post is a request for guidance.
I’ve gotten mostly through this tutorial:
https://hologram.io/docs/guide/cloud/spacebridge-tunnel/
I downloaded and configured SpaceBridge. Using PuTTy (on a windows 10 machine), I used 127.0.0.1
as my IP address on port 5000
for an SSH connection while SpaceBridge was running. I managed to pull up my Pi’s login credentials for the session before it (slowly) crashed.
I’ve also managed to wrap my head around the CLI commands found generally here:
https://hologram.io/docs/guide/nova/developer-tools/
And sent and received data messages with the dashboard, and sent an SMS to a phone.
Finally, I’ve managed to (sometimes) set up a PPP connection by using the sudo hologram network connect -v
command.
I’ve been through a number of the hackster tutorials, but I guess I’m ultimately a little confused on how to set up a data transfer beyond the command line interface.
Am I not deep enough into the AT commands? And what’s with tunneling?
Let me posit the following scenario, as a for instance:
A raspberry pi has a camera that takes a 50kb image once a day, and saves it into a jpeg file in a known folder. What would be the best way (or several ways, or one way?) to inquire over the Nova cellular connection whether the pi has saved an image, then receive that image remotely. Or the same question with the contents of any type of file.
What connection is required (PPP I’m guessing)?
What would be the best way to interface at the Pi (a python/other script running AT commands)?
What would be needed at the computer? Could it be done in-browser? In PuTTy?
Am I correct that PPP is a direct data connection over cellular, and is the preferred method for sending information over the network? (I know this is a super-basic question, but after hours in this forum and going through Hologram’s docs, I’m honestly not sure of the answer.)
Do the CLI commands operate over a PPP connection on the backend? Why does ifconfig
show no PPP session when I use the CLI commands but does show one when I sudo hologram network connect
? Is it because the CLI commands close the connection right after it is used?
I’d love to see a straightforward tutorial on sending the contents of “some file” from one system (Pi), over Nova cellular, to some other machine at the other end (laptop). Or just a tutorial on sending more complex/ larger sized data in general. I think that would be useful in helping beginners wrap their heads around this technology.
I’m definitely in over my head in understanding network protocols, but I’d like to think it’s possible to figure this stuff out.
Sorry if I’m missing the obvious…