Lora stop transmitting after some time

Hello guys.

I am getting little sick here, thes library is full of bugs. Dont understand it after so many years.

If somebody can help me, I would be grateful.

I have simple GPS tracker and sending every 15 seconds a position over Lora. It works fine for few hours, then it just stop transmitting (now after cca 12 hours).

I have these 2 If in main loop which are sending:

if (LoRaJoin==2 and digitalRead(GmeterINT2)==1 ) { // Condition if Lora joined and if device is shaking
if ((millis()-LastLoraTx)>LoraRepeat) do_send(&sendjob); //send every 15s Lora packet
}

if (SleepGPS and LoRaJoin==2 and FirstGPSFix==2) { // When stop shaking, GPS modul going to sleep
SleepGPS=false;
Serial.println(“\n***Not moving - GPS to sleep ***”);
do_send(&sendjob);
SetGPS(GPSSleepForever, 24, 0); // GPS to sleep
}

And suddenly do_send does nothing. I can not even see any error message.

Here is serial how it is working (TXSTART):

*** Move detected - turn on GPS and sending Hacc 254 ***

LoRa 768807226: EV_TXSTART
11:12:36.79 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:37.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:37.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:38.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:38.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
LoRa 768955066: EV_TXCOMPLETE (includes waiting for RX windows)
11:12:39.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:39.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:40.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:40.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:41.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:41.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:42.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:42.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:43.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:43.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:44.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:44.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:45.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:45.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:46.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:46.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:47.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:47.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:48.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:48.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:49.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:49.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:50.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:50.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:51.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:51.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
LoRa 769744975: EV_TXSTART
11:12:52.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:52.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:53.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:53.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
LoRa 769892810: EV_TXCOMPLETE (includes waiting for RX windows)
11:12:54.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:54.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:55.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:12:55.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=732115.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting

And here next shake wake up:

** Move detected - turn on GPS and sending Hacc 254 **

11:58:44.43 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:45.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:45.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:46.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:46.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:47.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:47.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:48.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:48.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:49.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:49.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:50.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:50.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:51.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:51.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:52.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:52.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:53.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:53.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:54.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:54.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:55.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:55.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:56.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.20; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:56.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:57.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:57.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:58.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:58.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:59.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:58:59.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:59:0.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:59:0.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:59:1.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:59:1.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
11:59:2.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=777311.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting

15s timer condition is good. Also the IF when going into sleep is executed as GPS is going to sleep with SetGPS(GPSSleepForever, 24, 0), so I do not understand why do_send is not executed.

And funny is, when I am shaking with my device and waking GPS, suddenly after some time it start again transmitting (without reseting or Lora rejoining). I have Loop() function correctly, I do not waiting anywhere and os_runloop_once() is executed as much as possible.

Can anybody help, as it is hard to debug for me. Also when I turn on extended debug function in libraries, I am not getting anything. :frowning: I have Arduino feather Lora, EU

I am affraid these library is not reliable and usable, when it lives with its own life. :wink:

I have been waking GPS by shaking during writing previous post and see now. After like 10 wake ups it suddenly start sending (without restarting or rejoining):

12:23:46.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=801393.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:23:47.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=801393.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:23:47.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=801393.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:23:48.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=801393.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:23:48.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=801393.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:23:49.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=801393.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
***Not moving - GPS to sleep ***

!!Time Out!!
12:23:49.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=801393.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Stand still
LoRa 771581276: EV_TXSTART
LoRa 771729091: EV_TXCOMPLETE (includes waiting for RX windows)

*** Move detected - turn on GPS and sending Hacc 254 ***

LoRa 795434986: EV_TXSTART
12:31:16.09 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=809181.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:31:16.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=809181.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:31:17.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=809181.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.18; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:31:17.50 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=809181.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
12:31:18.00 GPSlat=48.150072 N/S=N; GPSlon=17.123150 W/E=E; GPSalt=200.2; GPSFix=0; GPSHacc=809181.0; GPSspeed=0.0; GPS Sat=0; Vbatt=4.19; Trip=0.303km; deltaD=26.3m; Moving or Timeouting
LoRa 795582830: EV_TXCOMPLETE (includes waiting for RX windows)

What is going on here?

Two general rules:

  • You need to check the return code from the LMIC when you do a transmit. It may be busy, in which case you have to try again later. Unfortunately, the sample code pre-dates the addition of the return code, and they don’t check. They also transmit very rarely so it’s not a big deal
  • You have to call the LMIC run loop as often as possible while the LMIC is working. If you search the archives you’ll see more discussions on this. (For example, the geiger counter project…)