-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IoT LoRa pHAT node - Intermittent Serial communication problems. #33
Comments
I modified my lora_node.py script to print out the AT commands sent into the modem and the responses. Script
Result
So it looks like that Looking at the AT command reference here: https://downloads.rakwireless.com/LoRa/RAK811/Application_Notes/RAK811_AT_Command_Manual_V1.0.pdf It looks like Question Can someone please tell me a command that will let me talk to the modem with AT commands? I've been trying
But nothing appears in the console when I type things. |
All right. The correct serial command is
And now I can run AT commands manually.
It looks like I'm using the old version of the firmware, for which But the command never returns it the modem doesn't get a lock on a gateway, so it just sits there without responding until I cycle the power. No wonder the serial interface was timing out. Would upgrading the firmware help with this? I thought someone would have a gateway near here; the LoRa promotional material advertised a 10km radius and I'm in a populated area. |
I'm trying to follow the LoRA Node tutorial for Raspberry Pi here:
https://learn.pi-supply.com/make/getting-started-with-the-raspberry-pi-lora-node-phat
I'm getting stuck during the hello world script due to the serial interface timing out. But not all the time. Sometimes it times out waiting for a response from a gateway (I don't have my own) and once or twice I got a handshake to appear on the TTN console.
Using
Steps to Reproduce
dtoverlay=pi3-miniuart-bt
in/boot/config.txt
as per tutorial.ttn-handler-eu
(Automatically selected)OTAA
MAC V1.0.2
nam1.cloud.thethings.network
PHY V1.0.2 REV B
.US915 FSB 2
from rak811 import Mode, Rak811
doesn't work any more. Now, you have to usefrom rak811.rak811 import Mode, Rak811
.lora.set_config(dev_eui, app_eui, app_key)
andlora.join_otaa()
commands.chmod +x
on the script.Expected Behavior
It either works, or maybe I'll get errors about talking to a gateway because I live a long ways away from one. (I bought the device for P2P communication primarily)
Observed Behavior
I get "Timeout while waiting for data" on the
lora.join_otaa()
step.Run the script again. This time I get a similar timeout error on
lora.mode = Mode.LoRaWan
.Okay, so I've got serial problems. But why did the first couple of commands go through? Let's try them again.
Any ideas?
The text was updated successfully, but these errors were encountered: