Cellular LoRaWAN Nanogateway
Hey, does anyone know if it's possible edit the lorawan nanogateway code so that the device is connected via cellular (Cat M1) rather than wifi?
robert-hh last edited by
@Miguel-Toscano-G All you have to do is start LTE and connect to the network. Once you have done that, you can run the nanogateway code as it is. I just tried that here with NB-IoT.
For connecting to the LTE service, follow the examples.
from network import LTE
lte = LTE()
while not lte.isattached()
while not lte.isconnected():
#now we can safely machine.deepsleep()
and now i know, I have to change this into nanogateway.py.... ¿but how ?
self.wlan = WLAN(mode=WLAN.STA)
et up the LTE connection.
Hi Robert, help me please =D, ¿How can I instead set up the LTE connection ?
robert-hh last edited by robert-hh
@mylescai the nanogateway opens a socket connection to the TTN server. So you just have to attach and connect the LTE link, and the go on with connecting to TTN.
Edit: To be more specific. In nanogateway.py, function start(), at about line 140 the wifi is set up. At that place you can instead set up the LTE connection.
I was able to get it work just fine. The internet connection to the server worked fine. I'm having issues getting downlink messages to the lorawan nodes, but on AT&T LTE-M its working great.