I'm having trouble configuring Raspberry Pi over the mobile line for remote control.
I'd like to remotely control the raspy from Android or iOS via mobile line, but I'm looking for something that can connect well because the IP changes when I cross the mobile base station, but I can't find a good one.
I am thinking about the following configuration.
iOS and Android --- Mobile line --- Base station --- Internet --- Base station --- Mobile line --- Raspy
Is it safe to use websocket for the protocol in the following configuration?
iOS and Android --- Mobile line --- Base station --- Internet --- Transit server --- Base station --- Mobile line --- Raspy
In addition to using websocket as you say, reverse ssh tunnel is also often used
In the latter, remot3.it (which used to be called weaved) was available from the beginning of RPi, and I used it a lot
You can relay the remote3 server to connect via ssh or send commands via httpd from another terminal connected to the Internet to the RPi beyond the mobile line
How about using SMS (short message) in Japan?
The configuration of the system looks similar to the following:
Smartphone (controller side) == Mobile phone line == [Soracom Air] - Raspberry Pi
Each smartphone and Soracom Air has a fixed phone number, and by sending and receiving SMS to the other person's phone number, you can instruct the operation and check the status.
I don't use the Internet, so I think it's good to avoid the trouble of connecting between the phone line and the Internet.
Reference (this article is the starting point of your idea): Send and receive SMS via Raspberry Pi and Soracom Air
There is also dynamic DNS.
Please refer to the website below.
http://denshikousaku.net/raspberry-pi-domain-and-dynamic-dns
© 2024 OneMinuteCode. All rights reserved.