Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for Assistance with Time Synchronization Using Freematics ONE+ and 4G Network #201

Open
Morsinaldo opened this issue Jul 26, 2024 · 0 comments

Comments

@Morsinaldo
Copy link

I am encountering an issue while trying to synchronize the time with a server using a Freematics function over a 4G network. The function is imported into the telelogger.ino file, and the sensor data collection is held in a while loop until the time is synchronized. Once the cellular network IP is reached, I start the sync process. When using the Freematics One+ (Model H) connected to a smartphone via Wi-Fi, with the smartphone on a 4G connection, the synchronization works fine, but with the sim card directly in the hardware it simply doesn't sync. I've tried changing the server, using the IP address directly, changing sim card operator (TIM and Claro), and creating my own synchronization function using the NTP library, but nothing has worked. Does anyone have any suggestions on how to resolve this issue, I mean, how to synchronize time using 4G network?

void obtainTimeTelelogger()
{
    sntp_setoperatingmode(SNTP_OPMODE_POLL);
    // sntp_setservername(0, (char*)"pool.ntp.org");
    sntp_setservername(0, (char*)"time.google.com");
    sntp_init();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant