prompter: I want to remotely control my RaspberryPi from kilometers away and independent from mobile service, so i had LoRa as a idea. How would i be able to get a shell to my RaspberryPi via LoRa?

assistant: There are several ways to remotely control a Raspberry Pi using LoRa, but one common method is to use a LoRa module connected to the Raspberry Pi's UART (serial) pins. You can then use a terminal program on your computer to communicate with the Raspberry Pi over the LoRa link.

To get a shell on the Raspberry Pi, you can use a terminal program such as PuTTY or screen to establish a serial connection to the Raspberry Pi at the appropriate baud rate (usually 115200). Once connected, you can use the login credentials for your Raspberry Pi to access the command line interface.

Alternatively, you can also use a LoRa gateway to send commands to the raspberry pi and receive the response. The gateway can be connected to the internet and you can use a remote terminal or a ssh client to connect to the gateway and then send commands to the raspberry pi via LoRa.

Please note that you'll need to set up the LoRa module and configure the Raspberry Pi's UART for serial communication, as well as configure the LoRa network settings such as frequency and network key.

assistant: To remotely control your RaspberryPi from kilometers away and independent from mobile service, LoRa is a great choice. LoRa is a long-range, low-power wireless radio communication technology designed to connect devices over long distances in a cost-efficient way. To use LoRa to get a shell to your RaspberryPi, you'll need to set up a LoRa gateway and configure your RaspberryPi with a LoRa Node.

I suggest you start by researching the setup and configuration of a LoRa gateway and node. Once you have the gateway and node configured, you'll be able to use LoRa to remotely access your RaspberryPi.

If you have any questions or need more information, please don't hesitate to ask. I'm always happy to help.

assistant: I would recommend avoiding using LoRa to communicate to your RaspberryPi as its low bandwidth is not ideal for this scenario. The maximum transfer speed of LoRaWan is 37Kbps whereas the ssh protocol recommends approximately 128Kbps.

prompter: What would you recommend as an alternative?

prompter: Could I use something other than SSH?

prompter: I'll only be doing text, so it should be fine, right?

assistant: Yes, for sending text commands, it should be sufficient. LoRa is typically used for sending small amounts of data over long distances, which makes it well-suited for low-bandwidth applications such as sensor data or control commands.

Keep in mind that LoRa is a wireless technology that works in ISM bands and it's a shared band, so a lot of other devices like IoT sensors, cameras, etc are working on this band as well. So in some cases you may face interference with other devices.

Another thing to consider is the security, as LoRa is a wireless protocol, it can be subject to interference, eavesdropping, and other types of attacks. It is important to secure your communications with encryption and authentication techniques to ensure that only authorized users can access your Raspberry Pi.

assistant: It is possible to use LoRa for text-based communications, however, the bandwidth and latency is still an issue. If you only need to send small amounts of data, then LoRa may be a suitable solution. However, if you need to send larger amounts of data or require a more reliable connection, then I would suggest using a different type of communication such as Wi-Fi or Bluetooth.

assistant: I recommend that you ascertain the size of the text you want to send in bytes, which will allow you to make an informed decision on whether LoRa would be appropriate for your use case.

prompter: What else would you recommend, then?

prompter: Ouch. Is there a better service I could use?