Closed PaulskPt closed 2 years ago
Device info on APP
From within a Ubuntu Linux session I re-flashed the file: ESP_BOX_Demo_EN_V0.3.0.bin. After flashing I reset the device. I saw the Lisbon time coming up, then for a second or two I saw the Beijing time, finally came back the Lisbon time. However an hour or so later, after a RESET again the Beijing time was shown.
Currently, the Time Zone is hardcoded in app_sntp.c rather than automatically grab from somewhere. It's not smart enough :joy:
Hi Li (@TDA-2030), thank you very much for your rapid reply. Excuse me, I can almost not believe this! Such a nice product the ESP32-S3-BOX is. Why you guys hard coded the time to the Beijing Time Zone? Probably no time to spend on the clock. Sure, the speech recognition part had much more priority, I think. However, by now the ESP32-S3-BOX is maybe sold all over the world! So what all the customers in the rest of the world do with Beijing time? I had to do a lot of effort to get my hands on one of these ESP32-S3-BOX'es. At first I ordered one with mouser.com, U.S.A. They told me they could not sell it to me because 'the manufacturer decided to sell the product only to OEM companies', which I am not (I am a retired individual). Then I saw that Adafruit Industries of New York, U.S.A. was advertising the ESP32-S3-BOX, so I ordered one box with them. I received it a few days ago. Since about a year I am experimenting with M5Stack units.
I found the file app_sntp.c and quickly 'scanned' it. I see that it is taking time from an NTP server. I did not find where the NTP server address is set. I find.
Just for your information:
I have various M5Stack products. I have a CORE-2 in which I programmed an 'NTP Synchronized Clock'. (it is using an Arduino sketch). It uses the file that has the WiFi SSID and Password: secrets.py
to indicate the TimeZone that you want the clock to be sychronized to. See: https://github.com/PaulskPt/M5Stack-NTP-Clock/tree/NTP_Client_w_sleep
. This sketch uses the touch screen to put the device into a sleep mode and after another touch to wake-up; a software touch button to force synchronize datetime from NTP-server and another software touch button to show the temperature of the microprocessor (just for fun).
I experienced that regular re-synchronzing with NTP-server is needed because the clock of the CORE-2 ran ahead of time after some minutes.
Greetings, Paulus
Thanks for your interesting in the project. We wholeheartedly endorse your opinion and we will improve this features in the next iteration.
@ESP-Mars Thank you!
I managed to create, build and flash a patch to ap_sntp.c using conditional #ifdef USE_TIME_ASIA, USE_TIME_USA and USE_TIME_EURO. But this is just a temporary patch until Espressif comes with the promised improvement on setting a local timezone in the next iteration.
After flashing the latest demo firmware (V0.3.0), ESP-IDF Ver: v4.4-264-g2bdea81b2A, SR LANG: English, Board: S3_BOX, after installing the APP in an iPhone8Plus, after Pairing BlueTooth, the S3_BOX is showing Beijing time instead of Lisbon (Portugal) time (= utc +1).