How to stop getting a downlink for each uplink in Arduino with RAK811

Hello everyone, I hope you are very well.
I tell you that I am working with Arduino MEGA and I need to know how to UPLOAD data without receiving the DownloadLINK of the data I use the RAK811

ttn-3

This is the program

#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX
String dev_eui ="";
String app_eui ="";
String app_key ="";

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(115200);
  Serial1.begin(115200);
  
  Serial1.println("at+version");
  delay(1000);

  Serial1.println("at+set_config=lora:dev_eui:"+dev_eui);
  delay(3000);
  Serial1.println("at+set_config=lora:app_eui:"+app_eui);
  delay(3000);
  Serial1.println("at+set_config=lora:app_key:"+app_key);
  delay(3000);
  
  Serial1.println("at+join");
  delay(2000);
  Serial1.println("at+set_config=lora:confirm:1");
  delay(2000);
  

}

void loop() { // run over and over
Serial1.println("at+send=lora:3:80790022");
delay(10000);
}

Hello

Are you reading this?: https://doc.rakwireless.com/rak811-wisduo-lora-module/rak811-lora-module-breakout-board

Are you setting the LoRa-Mode? (at+set_config=lora:work_mode:X Set the work mode for LoRa. X definition: 0: LoRaWAN, 1: LoRaP2P, 2: Test Mode.)

Greets

The downlink you’re getting is the confirmation of the uplink, just like your code requested:

Indeed, requesting a confirmation for each uplink is not good. I’d guess that changing the 1 to a 0 would do the trick to disable it.

Note that TTN Console also tells you that the device sent a “confirmed uplink”. And that your device did not receive all the confirmations, making it repeat the previous uplink, like with the very same frame counter value of 21:

retry

Clicking an uplink or downlink in TTN Console often reveal more details.

(Aside: please see How do I format my forum post? [HowTo] Thanks.)

3 Likes

Thanks @arjanvanb.

I solution the problem with this.

Now… I have other dude, How Can I Receive the Downlink while I UPlink data?

You can’t it’s a simplex/half duplex system not full duplex. A device or gw can only tx or rx not both at same time. Also as downlink scheduled in 1 sec or 2 sec window after device tx downlink won’t (unlikely) come in at same time as uplink.

You can help me with the code for uplink or downlink please