Failed to generate JWT

Hello, 

Every time I try to run the sample gnss in SDK 1.8, I got this error gnss_sample: Failed to generate JWT, error: -8

Please can you let me what this error means and what should I do to solve this problem?

*** Booting Zephyr OS build v2.7.0-ncs1  ***
[00:00:00.230,346] <inf> gnss_sample: Starting GNSS sample
[00:00:00.246,337] <inf> gnss_sample: Connecting to LTE network
[00:00:02.068,206] <inf> gnss_sample: Connected to LTE network
[00:00:02.068,878] <inf> gnss_sample: Waiting for current time
[00:00:02.086,334] <inf> nrf_cloud_pgps: Checking P-GPS header: Schema version:1, type:10, num:1, count:42
[00:00:02.086,914] <inf> nrf_cloud_pgps:   size:2006, period (minutes):240, GPS day:15372, GPS time:57600
[00:00:02.087,493] <inf> nrf_cloud_pgps: Checking stored P-GPS data; count:42, period_min:240
[00:00:02.088,409] <inf> nrf_cloud_pgps: num blocks:42, size:2048, first_free:-1
[00:00:02.088,897] <inf> nrf_cloud_pgps: map:111111111111111111111111111111111111111111
[00:00:02.089,324] <inf> nrf_cloud_pgps: Checking if P-GPS data is expired...
[00:00:02.089,752] <inf> nrf_cloud_pgps: Looking for prediction for: GPS sec:1328862732, day:15380, time of day:30732, week:2197, day of week:1, time of week:117132, toe:7320
[00:00:02.090,606] <inf> nrf_cloud_pgps: First stored prediction: GPS sec:1328198400, day:15372, time of day:57600, week:2196, day of week:0, time of week:57600, toe:3600
[00:00:02.091,461] <inf> nrf_cloud_pgps: current offset into prediction set, sec:664332
[00:00:02.091,949] <wrn> nrf_cloud_pgps: data expired!
[00:00:02.092,285] <wrn> nrf_cloud_pgps: Predictions expired. Requesting predictions...
[00:00:02.097,839] <inf> gnss_sample: Sending request for P-GPS predictions to nRF Cloud...
[00:00:02.208,404] <err> nrf_cloud_jwt: Failed to generate JWT, error: -8
[00:00:02.208,831] <err> gnss_sample: Failed to generate JWT, error: -8
[00:00:02.209,259] <inf> gnss_sample: Assistance data needed, ephe 0xffffffff, alm 0xffffffff, flags 0x3b
[00:00:02.209,808] <inf> nrf_cloud_pgps: Searching for prediction
[00:00:02.210,235] <inf> nrf_cloud_pgps: Looking for prediction for: GPS sec:1328862732, day:15380, time of day:30732, week:2197, day of week:1, time of week:117132, toe:7320
[00:00:02.211,090] <inf> nrf_cloud_pgps: First stored prediction: GPS sec:1328198400, day:15372, time of day:57600, week:2196, day of week:0, time of week:57600, toe:3600
[00:00:02.211,944] <inf> nrf_cloud_pgps: current offset into prediction set, sec:664332
[00:00:02.212,402] <wrn> nrf_cloud_pgps: data expired!

Parents
  • UPDATE:

    I've also tried the Location sample of SDK1.8 and I got this output:

    *** Booting Zephyr OS build v2.7.0-ncs1  ***
    Location sample started
    
    Connecting to LTE...
    Connected to LTE
    Waiting for current time
    Requesting location with short GNSS timeout to trigger fallback to cellular...
    [00:00:02.002,593] <inf> nrf_cloud_pgps: Checking P-GPS header: Schema version:1, type:10, num:1, count:42
    [00:00:02.003,173] <inf> nrf_cloud_pgps:   size:2006, period (minutes):240, GPS day:15372, GPS time:57600
    [00:00:02.003,784] <inf> nrf_cloud_pgps: Checking stored P-GPS data; count:42, period_min:240
    [00:00:02.004,699] <inf> nrf_cloud_pgps: num blocks:42, size:2048, first_free:-1
    [00:00:02.005,187] <inf> nrf_cloud_pgps: map:111111111111111111111111111111111111111111
    [00:00:02.005,645] <inf> nrf_cloud_pgps: Checking if P-GPS data is expired...
    [00:00:02.006,072] <inf> nrf_cloud_pgps: Looking for prediction for: GPS sec:1328863539, day:15380, time of day:31539, week:2197, day of week:1, time of week:117939, toe:7371
    [00:00:02.006,958] <inf> nrf_cloud_pgps: First stored prediction: GPS sec:1328198400, day:15372, time of day:57600, week:2196, day of week:0, time of week:57600, toe:3600
    [00:00:02.007,812] <inf> nrf_cloud_pgps: current offset into prediction set, sec:665139
    [00:00:02.008,300] <wrn> nrf_cloud_pgps: data expired!
    [00:00:02.013,671] <wrn> nrf_cloud_pgps: Predictions expired. Requesting predictions...
    [00:00:02.118,865] <err> nrf_cloud_jwt: Failed to generate JWT, error: -8
    [00:00:02.119,293] <err> location: Failed to generate JWT, error: -8
    [00:00:23.582,885] <wrn> location: Timeout occurred
    [00:00:23.583,618] <wrn> location: Failed to acquire location using 'GNSS', trying with 'Cellular' next
    [00:00:23.587,280] <inf> location: No neighbor cell information from modem.
    [00:00:23.676,879] <err> nrf_cloud_jwt: Failed to generate JWT, error: -8
    [00:00:23.677,337] <err> multicell_location_nrf_cloud: Failed to generate JWT, error: -8
    [00:00:23.677,795] <err> location: Failed to acquire location from multicell_location lib, error: -8
    [00:00:23.678,344] <err> location: Location acquisition failed and fallbacks are also done
    Getting location failed
    
    Requesting location with the default configuration...
    [00:02:23.695,617] <wrn> location: Timeout occurred
    [00:02:23.696,258] <wrn> location: Failed to acquire location using 'GNSS', trying with 'Cellular' next
    [00:02:24.883,544] <err> nrf_cloud_jwt: Failed to generate JWT, error: -8
    [00:02:24.883,972] <err> multicell_location_nrf_cloud: Failed to generate JWT, error: -8
    [00:02:24.884,460] <err> location: Failed to acquire location from multicell_location lib, error: -8
    [00:02:24.884,979] <err> location: Location acquisition failed and fallbacks are also done
    Getting location failed
    
    Requesting low accuracy GNSS location...
    [00:04:24.902,008] <wrn> location: Timeout occurred
    [00:04:24.902,648] <err> location: Location acquisition failed and fallbacks are also done
    Getting location timed out

Reply
  • UPDATE:

    I've also tried the Location sample of SDK1.8 and I got this output:

    *** Booting Zephyr OS build v2.7.0-ncs1  ***
    Location sample started
    
    Connecting to LTE...
    Connected to LTE
    Waiting for current time
    Requesting location with short GNSS timeout to trigger fallback to cellular...
    [00:00:02.002,593] <inf> nrf_cloud_pgps: Checking P-GPS header: Schema version:1, type:10, num:1, count:42
    [00:00:02.003,173] <inf> nrf_cloud_pgps:   size:2006, period (minutes):240, GPS day:15372, GPS time:57600
    [00:00:02.003,784] <inf> nrf_cloud_pgps: Checking stored P-GPS data; count:42, period_min:240
    [00:00:02.004,699] <inf> nrf_cloud_pgps: num blocks:42, size:2048, first_free:-1
    [00:00:02.005,187] <inf> nrf_cloud_pgps: map:111111111111111111111111111111111111111111
    [00:00:02.005,645] <inf> nrf_cloud_pgps: Checking if P-GPS data is expired...
    [00:00:02.006,072] <inf> nrf_cloud_pgps: Looking for prediction for: GPS sec:1328863539, day:15380, time of day:31539, week:2197, day of week:1, time of week:117939, toe:7371
    [00:00:02.006,958] <inf> nrf_cloud_pgps: First stored prediction: GPS sec:1328198400, day:15372, time of day:57600, week:2196, day of week:0, time of week:57600, toe:3600
    [00:00:02.007,812] <inf> nrf_cloud_pgps: current offset into prediction set, sec:665139
    [00:00:02.008,300] <wrn> nrf_cloud_pgps: data expired!
    [00:00:02.013,671] <wrn> nrf_cloud_pgps: Predictions expired. Requesting predictions...
    [00:00:02.118,865] <err> nrf_cloud_jwt: Failed to generate JWT, error: -8
    [00:00:02.119,293] <err> location: Failed to generate JWT, error: -8
    [00:00:23.582,885] <wrn> location: Timeout occurred
    [00:00:23.583,618] <wrn> location: Failed to acquire location using 'GNSS', trying with 'Cellular' next
    [00:00:23.587,280] <inf> location: No neighbor cell information from modem.
    [00:00:23.676,879] <err> nrf_cloud_jwt: Failed to generate JWT, error: -8
    [00:00:23.677,337] <err> multicell_location_nrf_cloud: Failed to generate JWT, error: -8
    [00:00:23.677,795] <err> location: Failed to acquire location from multicell_location lib, error: -8
    [00:00:23.678,344] <err> location: Location acquisition failed and fallbacks are also done
    Getting location failed
    
    Requesting location with the default configuration...
    [00:02:23.695,617] <wrn> location: Timeout occurred
    [00:02:23.696,258] <wrn> location: Failed to acquire location using 'GNSS', trying with 'Cellular' next
    [00:02:24.883,544] <err> nrf_cloud_jwt: Failed to generate JWT, error: -8
    [00:02:24.883,972] <err> multicell_location_nrf_cloud: Failed to generate JWT, error: -8
    [00:02:24.884,460] <err> location: Failed to acquire location from multicell_location lib, error: -8
    [00:02:24.884,979] <err> location: Location acquisition failed and fallbacks are also done
    Getting location failed
    
    Requesting low accuracy GNSS location...
    [00:04:24.902,008] <wrn> location: Timeout occurred
    [00:04:24.902,648] <err> location: Location acquisition failed and fallbacks are also done
    Getting location timed out

Children
No Data
Related