-
Notifications
You must be signed in to change notification settings - Fork 7
sync GSM Client's TCP connection's time server with esp32's onboard clock #1
Comments
This library is not supporting SIM7xxx now, only these Supported u-blox modems Moreover, did you try the GPRSUdpNtpClient if you're using ESP32 with u-blox modems? |
Yeah, I saw the library and the sim7000 not being supported yet. Wanted to keep in mind to contribute or merge my workaround if I manage to work around it.. |
Thanks. Your contribution is always welcome. Please post here if you have your working work-around. |
I got it working on SIM800C, so, it may not be very difficult to adapt it to SIM7000: |
It wasn't really a work around. I connected to the cellular network first, then pulled the NTP from from the internet. This is a better example than what I have: https://randomnerdtutorials.com/esp32-ntp-client-date-time-arduino-ide/ |
Is your feature request related to a problem? Please describe.
configTime
is a part of ESP32 core and relies on ESP32's own WiFI to be connected for it to work. When connecting over a GSM module, WiFi connections are not necessary, but that means that ESP32 can't use UDP on WiFi to sync with NTP, since wifi is not connected. Deepsleep or other time related modes wont work without onboard clock.Describe the solution you'd like
Connect GSM Client's TCP connection to get the time from a TCP source (like the NIST daytime server) and then set the onboard clock manually based on the time returned.
Describe alternatives you've considered
using RTC module, isn't ideal
NTP AT command for the sim7000, in some cases, it may not be supported
Additional context
vshymanskyy/TinyGSM#357
Azure/azure-iot-sdk-c#1914
https://forum.arduino.cc/index.php?topic=88389.0
https://simcom.ee/documents/SIM7000E/SIM7000%20Series_AT%20Command%20Manual_V1.03.pdf
The text was updated successfully, but these errors were encountered: