Search found 14 matches

by bitrat
Tue Nov 05, 2019 5:18 am
Forum: ESP32 boards
Topic: ESP32 Long Range Mode 1 km
Replies: 27
Views: 887

Re: ESP32 Long Range Mode 1 km

Thanks! You're right! I'm pretty sure I tried that earlier, but I had another error in my code, and lost the thread... anyway... >>> >>> import network as nw >>> wlan = nw.WLAN(nw.STA_IF) >>> wlan.active(True) W (18387343) phy_init: failed to load RF calibration data (0x1102), falling back to full c...
by bitrat
Mon Nov 04, 2019 9:38 pm
Forum: ESP32 boards
Topic: ESP32 Long Range Mode 1 km
Replies: 27
Views: 887

Re: ESP32 Long Range Mode 1 km

Hi, I've added this rough implementation of phy_mode() to modnetwork.c (with a view to enabling LR mode) and flashed it to a sparkfun thing, but I get ESP_ERR_INVALID_ARG. Calling phy_mode() with no args just returns the error values, (0, 12289, 12292, 258), so I can decode them. STATIC mp_obj_t esp...
by bitrat
Mon Sep 02, 2019 10:02 pm
Forum: Development of MicroPython
Topic: C module programming reference
Replies: 19
Views: 1135

Re: C module programming reference

Thanks!
by bitrat
Mon Sep 02, 2019 9:59 pm
Forum: Development of MicroPython
Topic: C module programming reference
Replies: 19
Views: 1135

Re: C module programming reference

I forgot to mention yesterday that in my reference, each module is a minimal C example that you can start to hack right away.
@Zoltán


Absolutely! Your examples are great! :-)
by bitrat
Sun Sep 01, 2019 8:05 pm
Forum: Development of MicroPython
Topic: C module programming reference
Replies: 19
Views: 1135

Re: C module programming reference

Thanks all, and I apologise for my griping. In my defense, I thought a record of my struggles from a newbie's pov might be useful. ============ Anaconda diversion.. Zoltán, I'll install Anaconda, although your examples are so excellent and self explanatory, I'll probably just build them (...and rtfm...
by bitrat
Sun Sep 01, 2019 2:51 am
Forum: Programs, Libraries and Tools
Topic: uasyncio in MicroPython
Replies: 2
Views: 343

Re: uasyncio in MicroPython

Thanks :-)
by bitrat
Sun Sep 01, 2019 2:44 am
Forum: Development of MicroPython
Topic: C module programming reference
Replies: 19
Views: 1135

Re: C module programming reference

Wow, this looks really great, thanks!!! I'm working through your examples in full! ..fyi (not a criticism) your index.rst isn't rendering. Also, I'm not that familiar with IPython etc, and you've left a space for a link here: If you don’t know what ipython magics are, you can read more at … In any c...
by bitrat
Fri Aug 09, 2019 5:15 am
Forum: ESP32 boards
Topic: can I reset a thingy filesystem without flashing
Replies: 2
Views: 210

Re: can I reset a thingy filesystem without flashing

Awesome thanks! Just what I was looking for.

Works too :-)
by bitrat
Fri Aug 09, 2019 2:41 am
Forum: ESP32 boards
Topic: can I reset a thingy filesystem without flashing
Replies: 2
Views: 210

can I reset a thingy filesystem without flashing

I have a bunch of null directories on my thingy (don't ask). ....ok, I've been resetting a deadlocked interpreter using this abomination, while pressing reset... while : do expect -c 'send \003\003\003\003\003\003\003\003\003\003\003\003\003\003\003' > /dev/ttyS4 expect -c 'send "\rimport uos\r";' >...
by bitrat
Fri Aug 09, 2019 12:31 am
Forum: ESP32 boards
Topic: reset after deadlock
Replies: 2
Views: 188

Re: reset after deadlock

Thanks jimmo, yeah I'll need to do something more robust with the WDT eventually. i was just looking for an easier way to unbrick my device while debugging (I'm writing some monitor classes). I'll be using C eventually so not too worried. I guess it's the FreeRTOS layer that catches the real irq. Ch...