GPS problem Dragino GPS Shield

dear user, so i don’t know why, but when i’m to send data gps i’ve got this problem :

payload fields

i’m using dragino lg01 as gateway, temperature and humidity works perfectly but my gps doesn’t work. How can i fix it ?
i’m using this sketch : https://github.com/goodcheney/TTN_Mydevice/blob/master/GPS_Mydevice?fbclid=IwAR1a7oYrE-Uiz1RvLufKeZyLpUBj9EDQZSEhS-rzRYhnXUu8m9GhWBClDuo

i’ve see a lot of people with the same problem, but no one issue so i want to try to resolve it. I’m using ABP method to send data.

Please don’t post screenshots if you just want to show text. Also, we’ll need to see the code of the Payload Format you’re using in TTN Console, to generate this output. And please add the payload as text.

For others, it seems the above is encoded using:

static uint8_t mydata[22] = {
  0x05,0x67,0x00,0x00,
  0x02,0x68,0x00,
  0x03,0x88,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x01,0x65,0x00,0x00
};     

...

void GPSRead()
{
  unsigned long age;
  gps.f_get_position(&flat, &flon, &age);
  falt=gps.f_altitude();  //get altitude       
  flon == TinyGPS::GPS_INVALID_F_ANGLE ? 0.0 : flon, 6;//save six decimal places 
  flat == TinyGPS::GPS_INVALID_F_ANGLE ? 0.0 : flat, 6;
  falt == TinyGPS::GPS_INVALID_F_ANGLE ? 0.0 : falt, 2;//save two decimal places
  int32_t lat = flat * 10000;
  int32_t lon = flon * 10000;
  int32_t alt = falt * 100;

  mydata[9] = lat >> 16;
  mydata[10] = lat >> 8;
  mydata[11] = lat;
  mydata[12] = lon >> 16;
  mydata[13] = lon >> 8;
  mydata[14] = lon;
  mydata[15] = alt >> 16;
  mydata[16] = alt >> 8;
  mydata[17] = alt;
}

Sorry, i’m using Cayenne LPP. I’ve just follow that tutorial : https://wiki.dragino.com/index.php?title=MyDevices

{
  "gps_3": {
    "altitude": -6632.96,
    "latitude": -677.7216,
    "longitude": -677.7216
  },
  "luminosity_1": 378,
  "relative_humidity_2": 0,
  "temperature_5": 0
} 

that’s my field with Cayenne LPP, temperature and humidity at 0 is normal, my sensor isn’t connected at the moment. I don’t know how can i fix it. Some guys saying the GPS isn’t fix and need to be reprogrammer but i don’t know…

Can you see the output of the printdata() statement that is in your Sketch? (It might also help others to know what would be the range of the expected values.)

I assume things look wrong in a myDevices dashboard as well? (Just in case TTN Console somehow shows the wrong values, like maybe it does not properly handle the signs of the values.)

Given the payload in the screenshot, where the latitude and longitude values in 88 989680 989680 F5E100 are both 0x989680, I guess it’s a problem in the device.

No i can’t, it’s not work, i’ve read the gps need to be fix, but me it doesn’t get fixed after 1 day. Same problem as here : Dragino and GPS shield but no real answer. I’m really confused about it