Hello! I received my two RAK5010 devices for a new project that we are working on and I’m getting mix results on having the default just run successfully over night.
I’ve looked through numerous topics and the Quick Start guide. It appears that if I follow the setup and then manually send data to the server, it’ll continue to work, but when I put it into the mode to Sleep and restart/resend data every 3 minutes, after 45 minutes or so it will stop connecting to the internet. I’ve tried two different SIMs and various scan/connections options. I’m located in the USA. Thoughts?
The Setup and various validations:
at+set_config=cellular:(AT)
at+set_config=cellular:(AT+CGDCONT?)
AT+CGDCONT?
+CGDCONT: 1,“IP”,“data00.telnyx”,“0.0.0.0”,0,0,0,0
at+set_config=cellular:(AT+CPIN?)
AT+CPIN?
+CPIN: READY
at+set_config=cellular:(AT+QNWINFO)
AT+QNWINFO
+QNWINFO: “CAT-M1”,“310410”,“LTE BAND 12”,5110
at+set_config=cellular:(ATI)
ATI
Quectel
BG96
Revision: BG96MAR02A07M1G
OK
at+set_config=cellular:(AT+CFUN?)
AT+CFUN?
+CFUN: 1
OK
at+set_config=cellular:(AT+QGMR)
AT+QGMR
BG96MAR02A07M1G_01.007.01.007
OK
at+set_config=cellular:(AT+GSN)
AT+GSN
864431043840372
OK
at+set_config=cellular:(AT+CSQ)
AT+CSQ
+CSQ: 24,99
OK
at+set_config=cellular:(AT+QCSQ)
AT+QCSQ
+QCSQ: “CAT-M1”,-65,-92,158,-10
OK
at+set_config=cellular:(AT+COPS?)
AT+COPS?
+COPS: 1,0,“AT&T Telnyx”,8
OK
at+set_config=cellular:(AT+QIACT=1)
AT+QIACT=1
OK
at+set_config=cellular:71.64.97.145:31003:internet:internet:data00.telnyx:0
at+set_config=cellular:71.64.97.145:31003:internet:internet:data00.telnyx:0
OK
Manual Test:
[I can continue to run this for a long time by just resending manually data every 5 or 10 minutes]
at+send=cellular:123456
AT+QIOPEN=1,0,“TCP”,“71.64.97.145”,31003,0,1
OK
+QIOPEN: 0,0
+QIURC: “recv”,0,4
OK
AT+QISEND=0,7
123456
SEND OK
AT+QICLOSE=0
OK
Setup to automate:
at+set_config=cellular:send_interval:1:180000
at+set_config=cellular:send_interval:1:180000
OK
at+set_config=device:restart
Every 3 minutes to my server.
[Debug output from the UART]
[This works for about 45 minutes]
********************************************************
RAK5010 Version:3.0.0.10
********************************************************
========================================================
AT+COPS=?
AT+COPS=1,0,"internet",0
AT+QICSGP=1,1,"internet","","",1
AT+QIACT=1
+COPS: (1,"313 100","313 100","313100",8),(1,"Verizon","Verizon","311480",8),(1,"311 490","311 490","311490",8),(2,"AT&T","AT&T","310410",8),(1,"T-Mobile","T-Mobile","310260",8),(1,"T-Mobile","T-Mobile","310260",0),(1,"AT&T","AT&T","310410",9),(1,"Verizon","Verizon","311480",9),(1,"T-Mobile","T-Mobile","310260",9),,(0,1,2,3,4),(0,1,2)
OK
AT+QIOPEN=1,0,"TCP","71.64.97.145",31003,0,1
OK
+QIOPEN: 0,0
+QIURC: "recv",0,4
OK
AT+QISEND=0,142Acc:-412.00,-246.00,822.00; Tem:29.06;Hum:26.35; Pre:984.19; Lig:151.80; Lat(0-N,1-S):0,4117.499611,Lon(0-E,1-W):1,8128.893995; Battery:4.20;
>
SEND OK
AT+QICLOSE=0
+QIURC: "recv",0,4
OK
After 45 minutes, I continue to get stuck in this pattern:
********************************************************
RAK5010 Version:3.0.0.10
********************************************************
========================================================
AT+COPS=?
AT+COPS=1,0,"internet",0
AT+QICSGP=1,1,"internet","","",1
AT+QIACT=1
========================================================
[Pattern repeats every 3 minutes so it’s trying to connect.]
I appreciate any help/guidance.