2

I am attempting the following setup:

Sensor--> I2C--> Pycom LoPy4(Node)-->LoRa-RAW-->Pycom LoPy4(Nano Gateway)-->RPi-->AWS

I have established the LoRa RAW connection between the two LoPy4s, now I want to know how to connect the LoPy4 (Nano-Gateway) to the Rpi and send the data received by the gateway to Rpi and then to AWS.

One possible solution that I can think of is: A serial connection between LoPy4 module and Rpi and then save the data in to CSV and then send it to AWS.

I cannot find any specific code/libraries/example to use LoRa-RAW with other device like RPi or sending data to AWS. All examples are using LoRaWAN.

The question that I specifically want answer to is : Is there a limitation in using the the LoRa-RAW protocol when sending the data from gateway upto the cloud?

Yash Deep
  • 121
  • 3

1 Answers1

1

The most obvious way to do this is actually to send the data directly from the LoPy4 to the cloud: the LoPy4 has built-in TCP/IP capabilities, and can do HTTP and HTTPS, and there are libraries for lots of higher-level protocols built on that, as well as MQTT. In the vast majority of cases, if the RPi can do it, the LoPy4 should be able to do it as well.

If you use raw LoRa, it's just a matter of adding the relevant code to send the data to the cloud whenever you receive a packet.

If you use LoRaWAN, then the responsibility will lie with the network server (LNS). Most can send via a variety of protocols, including MQTT or HTTP(s).

If you really want to go through a RPi for some reason (the only one I could think of is that you would need an Ethernet connection, rather than WiFi), then there are many options for this, including simply configuring the RPi as an internet gateway/router (possibly with NAT), using a proxy on the RPi (depends on the actual protocol you use), or writing your own script to relay the data from the LoPy4 to the cloud.

The connection between the LoPy4 and the RPi could be done using WiFi (only option for the first two options above), BLE, serial, and probably quite a few more.

Note that the ESP32 itself can actually do Ethernet as well. Pycom products (other than the upcoming LoRaWAN gateway) don't use this capability, but other ESP32-based products do (including some with PoE), though I'm not sure I know of any ready-made ESP32-based devices with both LoRa and Ethernet.

jcaron
  • 2,408
  • 5
  • 10