Search found 166 matches

by MostlyHarmless
Thu Jan 16, 2020 9:43 pm
Forum: General Discussion and Questions
Topic: Partial mac address ?
Replies: 4
Views: 2715

Re: Partial mac address ?

cgglzpy wrote:
Thu Jan 16, 2020 7:22 pm
Hi, just mention that MicroPython introduced a separator option for binascii.hexlify function ...
Neat, thanks!
by MostlyHarmless
Thu Jan 16, 2020 6:35 pm
Forum: Pyboard D-series
Topic: Pyboard D RTC accuracy
Replies: 5
Views: 3975

Re: Pyboard D RTC accuracy

Note that the DS3231 has an "aging" register that can be used to adjust the TCXO slightly. The register is a signed 8-bit value and controls a capacitor array that is part of the crystal's load capacitance. The DS3231 documentation states that one LSB of the register equals approximately 0.1ppm spee...
by MostlyHarmless
Thu Jan 16, 2020 5:58 pm
Forum: General Discussion and Questions
Topic: Partial mac address ?
Replies: 4
Views: 2715

Re: Partial mac address ?

The dollar sign at the beginning is one byte, the 'b' the second, followed by four bytes that don't have a corresponding ascii character and are therefore displayed in their \x representation.


Regards, Jan
by MostlyHarmless
Wed Jan 15, 2020 1:16 am
Forum: Drivers for External Components
Topic: Large color LCD?
Replies: 10
Views: 8327

Re: Large color LCD?

Your idea could work. You may find someone has written a VT100 emulator for the Pi, and you can access it from the Pyboard via a UART. You'd need to deal with the VT100 editing commands. Oh ... you are thinking of emulating a full VT100 via UART? With all of the functionality described in termcap? ...
by MostlyHarmless
Tue Jan 14, 2020 9:40 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 32232

Re: asynycio as_GPS

KeyboardInterrupt is a standard Python exception class.

In your case a construct like this should work:

Code: Select all

while True:
    try:
        do_your_gps_stuff_here
    except KeyboardInterrupt:
        break
by MostlyHarmless
Sat Jan 11, 2020 4:22 pm
Forum: Programs, Libraries and Tools
Topic: ntpclient - uasyncio based NTP synchronization
Replies: 15
Views: 9981

Re: ntpclient - uasyncio based NTP synchronization

I'm puzzled by the need to recalibrate every few seconds... Isn't the variation primarily due to temperature fluctuations? I'm going to test with longer intervals, but keep in mind that we are talking about an R/C oscillator in an environment of unknown cleanliness. Any amount of flux residue on th...
by MostlyHarmless
Sat Jan 11, 2020 1:35 pm
Forum: ESP32 boards
Topic: Got "Malformed Mach-o file" on Mac Catilina when make firmware
Replies: 11
Views: 5956

Re: Got "Malformed Mach-o file" on Mac Catilina when make firmware

Not a Mac user, so I can only go by what I find, but ...

That problem looks similar to this one. The bottom line in that case was that the MacOS linker didn't like deep dependency trees. Could that be the same here with the lengthy list of input files?
by MostlyHarmless
Sat Jan 11, 2020 1:14 pm
Forum: General Discussion and Questions
Topic: How to know the IP address
Replies: 8
Views: 9209

Re: How to know the IP address

A different try at answering... It's a messy problem, unfortunately. The industry answer (WPS) is insecure... "Messy" and "expensive". By the time we are done with the AP portion of the setup process we needed a small DHCP server (so the phone or PC gets an IP address), a rudimentary DNS server (to...
by MostlyHarmless
Fri Jan 10, 2020 10:19 pm
Forum: General Discussion and Questions
Topic: How to know the IP address
Replies: 8
Views: 9209

Re: How to know the IP address

These are really two separate questions. How to control the IP address of a device in your own environment? How to create an initial WiFi config (SSID and PassPhrase) in an unknown environment? The answer to 1) can be straight forward. Don't use the DHCP functionality of a consumer grade router. Tur...
by MostlyHarmless
Fri Jan 10, 2020 9:28 pm
Forum: Programs, Libraries and Tools
Topic: ntpclient - uasyncio based NTP synchronization
Replies: 15
Views: 9981

Re: ntpclient - uasyncio based NTP synchronization

I'm puzzled by the need to recalibrate every few seconds... Isn't the variation primarily due to temperature fluctuations? I'm going to test with longer intervals, but keep in mind that we are talking about an R/C oscillator in an environment of unknown cleanliness. Any amount of flux residue on th...