Then you’re not implementing LoRaWAN with your sx1276 setup, and you appear to be pulling intermediate debug data out of the AWS LoRaWAN setup rather than using the final output it would produce if fed with proper LoRaWAN packets as input.
You need to make a choice between actually using LoRaWAN (correctly, with the right keys or an OTAA session, a proper stack, etc) or else not using LoRaWAN and working out all of the details of whatever scheme you chose by yourself.
The mode you are using the RAK3172 in is a LoRaWAN mode. If you want to use the P2P mode instead to send non-LoRaWAN traffic, you need to look at the documentation and use the commands that apply to that mode instead, or else create your own firmware that runs on the MCU in the module and operates the radio however you like.
Hi Chris,
Sorry, but something is illogical…
I don’t want to use P2P.
OTAA is in the LoraWan mode only? No?
This is my settings for the SX1276 in AWS. It says the settings are OTAA:
It sounds like you need to spend some time studying LoRaWAN.
For one thing, a LoRaWAN node must only be registered with a single network at a given time.
If the node is registered with TTN, AWS shouldn’t have any registration records to even try to pay attention to it, and the reverse is also true.
And to repeat the initial point, for a LoRaWAN node, you must look at the application payload NOT the frame payload - your TTN example is showing an application payload, while for AWS you are erroneously looking at the frame payload which is only intermediate debug information, not a result.
If you don’t like how LoRaWAN works, then you’ll have to do something fully custom.
The RAK module lets you transmit either LoRaWAN traffic in the way LoRaWAN works, or more raw P2P traffic. You’ll have to chose between those options, and expect only the results that follow from such choice.
Probably because you are looking in the wrong place, perhaps because you have not correctly entered the encryption keys which would allow it to decode the frame payload and produce the application packet you gave to the send command.
I haven’t tried the AWS LoRaWAN Network Server and I have no idea yet how its front-end console looks. If it works in TTN, then it should work in AWS as well if it is LoRaWAN compliant.
What @cstratton is saying is that you are still looking in the RAW frame payload (FRMPayload). This is still encrypted by the AppSkey and must be decoded by the network server side. This is not the application payload you are looking for yet. And even if you send the same application payload, the frame payload (FRMPayload) will have different values even if the actual payload is the same (in your case AT+SEND=1:12345678).
Here’s the section of LoRaWAN specification explaining that.
In my mind, you might be looking in the wrong data output from AWS? Or probably it is gated and the application payload can be seen somewhere else in the AWS console?