bifravst / cat-tracker-fw

Cat Tracker Firmware
https://bifravst.github.io/
3 stars 3 forks source link

GPS timeout not honored #41

Closed coderbyheart closed 4 years ago

coderbyheart commented 4 years ago

Device stops GPS after 53 seconds (configured is 600)

[2019-11-15 13:53:27] SETTING GPST TO: 600
[2019-11-15 13:53:27] SETTING ACTIVE TO: 0
[2019-11-15 13:53:27] SETTING ACTIVE WAIT TO: 60
[2019-11-15 13:53:27] SETTING PASSIVE_WAIT TO: 60
[2019-11-15 13:53:27] SETTING MOVEMENT TIMEOUT TO: 3600
[2019-11-15 13:53:27] SETTING ACCEL THRESHOLD TIMEOUT TO: 10
[2019-11-15 13:53:27] Encoded message: {
[2019-11-15 13:53:27]   "state":        {
[2019-11-15 13:53:27]           "reported":     {
[2019-11-15 13:53:27]                   "cfg":  {
[2019-11-15 13:53:27]                           "gpst": 600,
[2019-11-15 13:53:27]                           "act":  false,
[2019-11-15 13:53:27]                           "actwt":        60,
[2019-11-15 13:53:27]                           "mvres":        60,
[2019-11-15 13:53:27]                           "mvt":  3600,
[2019-11-15 13:53:27]                           "acct": 10
[2019-11-15 13:53:27]                   }
[2019-11-15 13:53:27]           }
[2019-11-15 13:53:27]   }
[2019-11-15 13:53:27] }
[2019-11-15 13:53:27] [00:00:20.275,817] <dbg> bifravst_cloud.data_publish: Publishing to topic: $aws/things/352656100378903/shadow/update
[2019-11-15 13:53:27] [00:00:20.768,981] <dbg> bifravst_cloud.mqtt_evt_handler: MQTT_EVT_PUBACK: id = 61379 result = 0
[2019-11-15 13:53:27] [00:00:20.778,625] <inf> aws_fota: Received topic: $aws/things/352656100378903/jobs/$next/get/acceptedsired/cfg
[2019-11-15 13:53:27] [00:00:20.789,581] <inf> aws_fota: Got only one field: {"clientToken":"","timestamp":1573822406}
[2019-11-15 13:53:27] [00:00:20.860,076] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 0 Using: 0 Unhealthy: 0
...
[2019-11-15 13:54:19] [00:01:12.809,295] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 8 Using: 0 Unhealthy: 1
[2019-11-15 13:54:19] [00:01:12.818,542] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 72
[2019-11-15 13:54:20] [00:01:13.731,018] <dbg> nrf9160_gps.print_satellite_stats: Tracking SV 29: not used,     healthy
[2019-11-15 13:54:20] [00:01:13.740,570] <dbg> nrf9160_gps.print_satellite_stats: Tracking SV  9: not used,     healthy
[2019-11-15 13:54:20] [00:01:13.750,213] <dbg> nrf9160_gps.stop: Stopping GPS
[2019-11-15 13:54:20] [00:01:13.756,134] <dbg> nrf9160_gps.print_satellite_stats: Tracking SV  6: not used,     healthy
[2019-11-15 13:54:20] GPS operation was stopped
[2019-11-15 13:54:20] [00:01:13.768,280] <dbg> nrf9160_gps.print_satellite_stats: Tracking SV 26: not used,     healthy
[2019-11-15 13:54:20] [00:01:13.777,862] <dbg> nrf9160_gps.print_satellite_stats: Tracking SV  2: not used,     healthy
[2019-11-15 13:54:20] [00:01:13.787,414] <dbg> nrf9160_gps.print_satellite_stats: Tracking SV  4: not used, not healthy
[2019-11-15 13:54:20] [00:01:13.796,966] <dbg> nrf9160_gps.print_satellite_stats: Tracking SV 23: not used,     healthy
[2019-11-15 13:54:20] [00:01:13.806,518] <dbg> nrf9160_gps.print_satellite_stats: Tracking SV  5: not used,     healthy
[2019-11-15 13:54:20] [00:01:13.816,101] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 8 Using: 0 Unhealthy: 1
[2019-11-15 13:54:20] [00:01:13.825,317] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 73
[2019-11-15 13:55:20] REGISTERED TO ROAMING NETWORK
coderbyheart commented 4 years ago

Fixed in fa2a80219b52ac3c92eb5fc0fd62e356f8aab1d1 I guess @simensrostad ?