static void TestLeGnssRestart
(
void
)
{
uint32_t ttff = 0;
uint64_t epochTime;
le_gnss_SampleRef_t positionSampleRef;
LE_INFO(
"Start Test le_pos_RestartTest");
LE_INFO(
"Wait 60 seconds for a 3D fix");
sleep(60);
{
LE_INFO(
"TTFF start = %d msec", ttff);
}
else
{
LE_INFO(
"TTFF start not available");
}
LE_INFO(
"Ask for a Hot restart in 3 seconds...");
sleep(3);
LE_INFO(
"Wait 60 seconds for a 3D fix");
sleep(60);
{
LE_INFO(
"TTFF Hot restart = %d msec", ttff);
}
else
{
LE_INFO(
"TTFF Hot restart not available");
}
LE_INFO(
"Ask for a Warm restart in 3 seconds...");
sleep(3);
LE_INFO(
"Wait 60 seconds for a 3D fix");
sleep(60);
{
LE_INFO(
"TTFF Warm restart = %d msec", ttff);
}
else
{
LE_INFO(
"TTFF Warm restart not available");
}
LE_INFO(
"Ask for a Cold restart in 3 seconds...");
sleep(3);
sleep(1);
LE_INFO(
"Wait 60 seconds for a 3D fix");
sleep(60);
{
LE_INFO(
"TTFF Cold restart = %d msec", ttff);
}
else
{
LE_INFO(
"TTFF Cold restart not available");
}
LE_INFO(
"Ask for a Factory restart in 3 seconds...");
sleep(3);
LE_INFO(
"TTFF is checked as not available immediatly after a FACTORY start");
sleep(1);
LE_INFO(
"Wait 60 seconds for a 3D fix");
sleep(60);
{
LE_INFO(
"TTFF Factory restart = %d msec", ttff);
}
else
{
LE_INFO(
"TTFF Factory restart not available");
}
sleep(1);
EpochTime=0;
TimeAccuracy=0;
}