cancel
Showing results for 
Search instead for 
Did you mean: 

I'm Using stm32 based Lora Module in India Interface with Arduino by AT CMD Set

MAbde.2
Associate

we are not Getting non readable value from module also it's not sending to gateway but same cmd working with dock light0690X00000ByaxDQAR.png

mySerial.flush();

lora.flush();

Serial.flush();

digitalWrite(lorapin, HIGH);

delay(500);

lora.listen();

lora.print(“AT\r\n�?);

String dr = lora.readStringUntil("\r\n");

delay(10);

Serial.print(“AT:�? + dr);

Serial.println();

lora.print("ATZ\r\n");

String ATZ = lora.readStringUntil("\r\n");

delay(10);

Serial.print("ATZ:"+ATZ);

Serial.println();

lora.print("AT+NJM=0\r\n");

String NJM = lora.readStringUntil("\r\n");

delay(10);

Serial.print("AT+NJM:" + NJM);

Serial.println();

lora.print("AT+DADDR=as:23:00:00\r\n");

String DADDR = lora.readStringUntil("\r\n");

delay(10);

Serial.print("AT+DADDR:" + DADDR);

Serial.println();

lora.print("AT+APPSKEY=90:22:53:85:44:7A:22:32:75:35:26:35:63:30:A9:56\r\n");

String APPSKEY = lora.readStringUntil("\r\n");

delay(10);

Serial.print("AT+APPSKEY:"+APPSKEY);

Serial.println();

lora.print("AT+DEUI=5bb1605000032as\r\n");

String DEUI = lora.readStringUntil("\r\n");

delay(10);

Serial.print("AT+DEUI:" + DEUI);

Serial.println();

lora.print("AT+NWKSKEY=23:43:67:9A:22:44:22:69:50:67:3A:A3:34:27:26:72\r\n");

String NWKSKEY = lora.readStringUntil("\r\n");

delay(10);

Serial.print("AT+NWKSKEY:" + NWKSKEY);

Serial.println();

lora.println("AT+CFM=1\r\n");

String CFM = lora.readStringUntil("ok\r\n");

delay(10);

Serial.print("AT+CFM:" + CFM);

Serial.println();

lora.println("AT+ADR=1\r\n");

String ADR = lora.readStringUntil("\r\n");

delay(10);

Serial.println();

Serial.print("AT+ADR:" + ADR);

Serial.println();

lora.print("AT+CLASS=C\r\n");

String CLASS = lora.readStringUntil("ok\r\n");

delay(10);

Serial.print("CLASS:" + CLASS);

Serial.println();

lora.print("AT+JOIN\r\n");

String JOIN = lora.readStringUntil("ok\r\n");

delay(10);

Serial.print("JOIN:" + JOIN);

Serial.println();

delay(500);

lora.print("AT+NJS=?\r\n");

String NJS = lora.readStringUntil("ok\r\n");

delay(10);

Serial.print("NJS:" + NJS);

Serial.println();

delay(500);

String sendatavar="AT+SEND=2:30";

Serial.print(sendatavar);

Serial.println();

lora.print(sendatavar);

delay(10000);

String sedndr = lora.readStringUntil("rxDone\r\n");

delay(1000);

Serial.print("AT+send:" + sedndr);

1 REPLY 1

>>I'm Using stm32 based Lora Module...

Not sure that's terribly specific. Does it have a part number, perhaps a website?

Does it have a manual?

If you connect it more directly to a terminal, can you walk it through the command sequence successfully with that?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..