Search found 140 matches

by kwiley
Thu Apr 08, 2021 6:49 am
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 21700

Re: ntptime not included with PyBoard firmware

I understand your point. Thanks. Right now, I'm far more concerned about the fact that the NTP code completely kills the Wifi station until I reset. That issue is described in another thread though. In other news, my GT-U7 GPS modules arrived today and they seem to work great with the PyBoard. I see...
by kwiley
Wed Apr 07, 2021 6:04 pm
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 21700

Re: ntptime not included with PyBoard firmware

That's cool! I wasn't aware of that device. You still have to set the external device though. I'm going to try with a GPS later this week when the module arrives. BTW, the timezone correction is a piece of cake. It doesn't require all the memory in the world, thereby overloading the little PyBoard's...
by kwiley
Wed Apr 07, 2021 12:35 pm
Forum: Pyboard D-series
Topic: ntptime kills the wifi station, hard reset required to fix
Replies: 20
Views: 86028

Re: ntptime kills the wifi station, hard reset required to fix

Has anyone attempted to replicate my problem posted above? I included a single conglomerated code snippet that you can simply copy out of the forum and paste into the REPL. You'll have to assign your Wi-Fi endpoint name and password on one line, but other than that, it's a straight copy and paste te...
by kwiley
Wed Apr 07, 2021 7:12 am
Forum: Pyboard D-series
Topic: Any new tiles or shields in the works?
Replies: 0
Views: 6764

Any new tiles or shields in the works?

Besides the currently available SENSA and 36LED tiles, the touch-LCD, and the storage expander, are there any plans for new peripherals coming down the pike? Just wondering.
by kwiley
Tue Apr 06, 2021 6:49 pm
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 21700

Re: ntptime not included with PyBoard firmware

Topics are getting crossed here. My fault since I brought up multiple issues. I'm less concerned with the timezone correction, which I realize is a pretty complex issue, and more concerned with proper NTP synchronization. The basic NTP method offered in the ESP8266 subproject seems to work pretty we...
by kwiley
Tue Apr 06, 2021 6:15 am
Forum: Pyboard D-series
Topic: ntptime kills the wifi station, hard reset required to fix
Replies: 20
Views: 86028

Re: ntptime kills the wifi station, hard reset required to fix

I've determined that simply attempting to build the DGRAM socket is sufficient to cause this problem. Note the following modification to the code in the previous post: def get_ntp_time(): NTP_QUERY = bytearray(48) NTP_QUERY[0] = 0x1B addr = socket.getaddrinfo("pool.ntp.org", 123)[0][-1] s = socket.s...
by kwiley
Tue Apr 06, 2021 5:07 am
Forum: Pyboard D-series
Topic: ntptime kills the wifi station, hard reset required to fix
Replies: 20
Views: 86028

ntptime kills the wifi station, hard reset required to fix

There is a module ntptime.py buried in the ESP8266 subproject. It isn't included in the PyBoardD firmware, but I copied the file over the flash anyway. It works perfectly well to sync up the PyBoardD's RTC from an NTP (modulo the fact that it even admits in a comment that there is no clear way to se...
by kwiley
Tue Apr 06, 2021 2:40 am
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 21700

Re: ntptime not included with PyBoard firmware

Ah. gmtime() is a fairly recent addition. My PyBoard D came with 1.12. Updating the firmware has gotten it all to work. Now I need to figure out how to do timezone offsets.
by kwiley
Tue Apr 06, 2021 2:06 am
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 21700

Re: ntptime not included with PyBoard firmware

Why do I need an external RTC to set the time on the PyBoard? Why not use NTP the way it was always intended to be used? I was just curious why it isn't built into the PyBoard's MicroPython. I've already copied over the version from the ESP8266 subdirectory and it mostly works -- with the exception ...
by kwiley
Mon Apr 05, 2021 10:05 pm
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 21700

ntptime not included with PyBoard firmware

I see mention of an ntptime module in the ESP8266 MicroPython docs, but it doesn't appear to be included with MicroPython on the PyBoard D firmware. Importing it fails. How are other people synchronizing the RTCs of their PyBoard Ds (which have built-in wifi) or PyBoard 1.1s (perhaps with a wifi shi...