Loading Extended Ephemeris on WP7702

Hello,
tring to load EE on wp7702 using sample code @

Just remove the download of xtra1 file cause uncompatible.

Got an error on: load. File is downloaded correctly.

follow the logread.

Any help on this? Someone done same thing?

regards,
Gianmaria

Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | xtra2.bin
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | 95%
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | |***************************** |
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | 32749
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | 0:00:00 ETA
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] |
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | xtra2.bin
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | 100%
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | |*******************************|
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | 34335
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] | 0:00:00 ETA
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] |
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | gnssXtra[2960] |
Jun 20 13:17:00 swi-mdm9x28-wp user.info Legato: INFO | gnssXtra[2960]/gnssXtra T=main | xtra.c DownloadXtraFile() 90 | ASI - Download XTRA2 done
Jun 20 13:17:00 swi-mdm9x28-wp user.info Legato: INFO | gnssXtra[2960]/gnssXtra T=main | xtra.c TestGetExtendedEphemerisValidity() 140 | ASI - Open file /tmp/xtra2.bin with fd.9
Jun 20 13:17:00 swi-mdm9x28-wp user.debug Legato: DBUG | gnssXtra[2960]/framework T=main | unixSocket.c unixSocket_SendMsg() 441 | Sending fd 9.
Jun 20 13:17:00 swi-mdm9x28-wp user.warn Legato: -WRN- | posDaemon[1410]/le_pa_gnss T=unknown | pa_gnss_qmi.c XTRAInjectionHandler() 1821 | There was an error (3)
Jun 20 13:17:00 swi-mdm9x28-wp user.emerg Legato: EMR | gnssXtra[2960]/gnssXtra T=main | xtra.c TestGetExtendedEphemerisValidity() 142 | Assert Failed: ‘le_gnss_LoadExtendedEphemerisFile(fd)==LE_OK’
Jun 20 13:17:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1239]/supervisor T=main | proc.c proc_SigChildHandler() 2079 | Process ‘gnssXtra’ (PID: 2960) has exited with exit code 1.
Jun 20 13:17:00 swi-mdm9x28-wp user.err Legato: =ERR= | posDaemon[1410]/posDaemon T=main | le_gnss.c CloseSessionEventHandler() 1291 | SessionRef (0x7f577978) has been closed
Jun 20 13:17:01 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[1239]/supervisor T=main | app.c app_SigChildHandler() 4066 | Process ‘gnssXtra’ in app ‘gnssXtra’ faulted: Ignored.
Jun 20 13:17:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1239]/supervisor T=main | app.c app_StopComplete() 4753 | app ‘gnssXtra’ has stopped.
Jun 20 13:17:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1239]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘gnssXtra’ has stopped.

Just remove the download of xtra1 file cause uncompatible

Why do you remove it?

Cause always give error on

static void TestGetWrongExtendedEphemeris(…

done wrong? I imagine that version 1 of this EE file is not good for my wp7702…

Gian

How about download the same file xtra2?

xtra2 file is downloaded correctly… but when i call le_gnss_LoadExtendedEphemerisFile pointing to the xtra2.bin the function fail on

LE_ASSERT(le_gnss_LoadExtendedEphemerisFile(fd)==LE_OK);

at least it seems…

maybe I’m doing something wrong?

thanks for your help…

G.

this is the actual log:

Jun 20 13:53:09 swi-mdm9x28-wp user.info Legato: INFO | gnssXtra[2433]/gnssXtra T=main | xtra.c DownloadXtraFile() 90 | ASI - Download XTRA2 done
Jun 20 13:53:09 swi-mdm9x28-wp user.info Legato: INFO | gnssXtra[2433]/gnssXtra T=main | xtra.c TestGetExtendedEphemerisValidity() 140 | ASI - Open file /tmp/xtra2.bin with fd.9
Jun 20 13:53:09 swi-mdm9x28-wp user.debug Legato: DBUG | gnssXtra[2433]/framework T=main | unixSocket.c unixSocket_SendMsg() 441 | Sending fd 9.
Jun 20 13:53:09 swi-mdm9x28-wp user.warn Legato: -WRN- | posDaemon[1401]/le_pa_gnss T=unknown | pa_gnss_qmi.c XTRAInjectionHandler() 1821 | There was an error (3)
Jun 20 13:53:09 swi-mdm9x28-wp user.info Legato: INFO | gnssXtra[2433]/gnssXtra T=main | xtra.c TestGetExtendedEphemerisValidity() 143 | ASI - file load result -6
Jun 20 13:53:09 swi-mdm9x28-wp user.info Legato: INFO | gnssXtra[2433]/gnssXtra T=main | xtra.c TestGetExtendedEphemerisValidity() 146 | ASI - file validity result 0
Jun 20 13:53:09 swi-mdm9x28-wp user.info Legato: INFO | gnssXtra[2433]/gnssXtra T=main | xtra.c TestGetExtendedEphemerisValidity() 149 | ASI - XTRA2 file weekNum 1295
Jun 20 13:53:09 swi-mdm9x28-wp user.info Legato: INFO | gnssXtra[2433]/gnssXtra T=main | xtra.c TestGetExtendedEphemerisValidity() 154 | ASI - file valid = 1

this is the function edited i use:

static void TestGetExtendedEphemerisValidity
(
    void
)
{
    uint16_t weekNum=0;
    uint64_t start, stop, validity;
    int32_t fd;

    fd = open(XTRA2_FILE_PATH, O_RDONLY);
    LE_ASSERT(fd != -1);

    LE_INFO("ASI - Open file %s with fd.%d",  XTRA2_FILE_PATH, fd);

    le_result_t result = le_gnss_LoadExtendedEphemerisFile(fd);
    LE_INFO("ASI - file load result %d",result);

    result = le_gnss_GetExtendedEphemerisValidity(&start,&stop);
    LE_INFO("ASI - file validity result %d",result);

    ReadWeekNumber(XTRA2_FILE_PATH,&weekNum);
    LE_INFO("ASI - XTRA2 file weekNum %d",weekNum);

    /* Check validity duration of injected XTRA file (7 days) */
    validity = stop-start;
    bool valid = validity/SECONDS_IN_A_DAY == 7;
    LE_INFO("ASI - file valid = %d",valid);
    close(fd);
}

You can see the explanation of returned value

Have you tried AT command with xtra?

the subfunction called seems useless…

le_result_t __attribute__((weak)) pa_gnss_LoadExtendedEphemerisFile
(
    int32_t       fd      ///< [IN] extended ephemeris file descriptor
)
{
    LE_ERROR("Unsupported function called");
    return LE_FAULT;
}

Nope… not tried with AT commands… can you give me ?? I prefer to isue at commands… if available.
Any working sequence i can use?

regards,
Gian

you can see here:

seems it’s not my day:

root@swi-mdm9x28-wp:/bin# cm data connect
Setting up profile 1
Connecting … ok
Checking if device ‘rmnet_data0’ is up … ok
Routing inet … ok
Updating /etc/resolv.conf … ok
Updating /etc/resolv.conf … ok
root@swi-mdm9x28-wp:/bin# microcom /dev/ttyAT
AT
OK
AT!ENTERCND=“A710”
ERROR
AT!GPSXTRADATAENABLE=1,10,2,1,1
ERROR
AT!GPSXTRADATAURL=1,“http://xtra1.gpsonextra.net/xtra.bin”
ERROR
AT!GPSXTRADATAURL=2,“http://xtra2.gpsonextra.net/xtra.bin”
ERROR
AT!GPSXTRADATAURL=3,“http://xtra3.gpsonextra.net/xtra.bin”
ERROR
AT!GPSXTRATIMEENABLE=1,30000,10000
ERROR
AT!GPSXTRATIMEURL=1,“xtra1.gpsonextra.net
ERROR
AT!GPSXTRATIMEURL=2,“xtra2.gpsonextra.net
ERROR
AT!GPSXTRATIMEURL=3,“xtra3.gpsonextra.net
ERROR
AT!GPSFIX=2,180,300
OK

I never changed the protected commands password…

I don’t see problem…

root@fx30:~# microcom /dev/ttyAT
at!entercnd="A710"
OK

maybe wp7702 uses a different deault password…

no, i don’t think so, never heard such thing

I can compile yocto from scratch an naturally legato… if this passwd is in that files… i can find. If this is contained in the modem firmware… nope… this is not open. I use generic ( [R14.1 (Generic — PTCRB)]).

Or I’have to contact distributor…

gian

ok, you can contact distributor

Problem found. If i copy paste command, it doesent work. I have to write on keyboard.