Search found 19 matches

by timg11
Sat Sep 11, 2021 10:27 pm
Forum: ESP32 boards
Topic: Sources for quality ESP-32 boards ?
Replies: 2
Views: 2026

Sources for quality ESP-32 boards ?

There are many choices for ESP-32 boards. There are a variety of pinouts, so any given board is not a replacement for others. Has anyone recently evaluated the market, and could offer any recommendations? My considerations: 1) able to run MicroPython of course 2) from a reputable supplier with quali...
by timg11
Sat Aug 21, 2021 9:09 pm
Forum: ESP32 boards
Topic: Starting out with MQTT with MicroPython on ESP-32 - which version?
Replies: 0
Views: 815

Starting out with MQTT with MicroPython on ESP-32 - which version?

I'd like to learn about implementing an MQTT client on ESP-32 with MicroPython. I've seen articles recommending umqttsimple but there is no reference to which version of MQTT is implemented. For a new project with no backward compatibility concerns, I'm assuming the latest version MQTT 5.0 would be ...
by timg11
Mon Jul 05, 2021 5:25 pm
Forum: ESP32 boards
Topic: How can I tell what caused an ESP32 board to restart?
Replies: 13
Views: 9718

Re: How can I tell what caused an ESP32 board to restart?

The code example shows how to implement a ramdisk on the ESP-32. import os bdev = RAMBlockDev(512, 50) os.VfsFat.mkfs(bdev) os.mount(bdev, '/ramdisk') I can add this code and write to a file and read it back successfully. with open('/ramdisk/hello.txt', 'w') as f: f.write('This file wrote at startup...
by timg11
Mon Jul 05, 2021 4:07 pm
Forum: ESP32 boards
Topic: How can I tell what caused an ESP32 board to restart?
Replies: 13
Views: 9718

Re: How can I tell what caused an ESP32 board to restart?

The board was rebooting several times a day in its operational mode. I have a "development board" where I can plug in an ESP32 module, and test the code with pushbuttons to simulate expected and unexpected input, and LEDs for output. It never reboots in that board. I was able to put a notebook compu...
by timg11
Fri Jul 02, 2021 10:54 pm
Forum: ESP32 boards
Topic: How can I tell what caused an ESP32 board to restart?
Replies: 13
Views: 9718

Re: How can I tell what caused an ESP32 board to restart?

I have updated the ESP32 code so it reports the reset cause when starting up. I've seen some spontaneous resets, and have the log results. The "reset_cause()" function returns PWRON_RESET The check of reset_state_reg = machine.mem32[0x3FF48034] returns 0x330C According to the documentation: # RTC_CN...
by timg11
Sun Jun 27, 2021 10:48 pm
Forum: ESP32 boards
Topic: How can I tell what caused an ESP32 board to restart?
Replies: 13
Views: 9718

Re: How can I tell what caused an ESP32 board to restart?

marcidy wrote:
Sun Jun 27, 2021 10:27 pm
Don't know why your code is not setting it right, but 5 is fine.
Yep, it was a bug in the code elsewhere. 5 is indeed valid.
by timg11
Sun Jun 27, 2021 10:19 pm
Forum: ESP32 boards
Topic: How can I tell what caused an ESP32 board to restart?
Replies: 13
Views: 9718

Re: How can I tell what caused an ESP32 board to restart?

Also, reset_cause() is returning a 6th value of 5 sometimes. The 5 constants in defined in machine only correspond to 0 to 4, right? IE in the following, resetstr returns "Unknown - 5" MyResetCause = reset_cause() resetstr = "Unknown - "+str(MyResetCause) if ( MyResetCause == machine.PWRON_RESET ): ...
by timg11
Sun Jun 27, 2021 10:08 pm
Forum: ESP32 boards
Topic: How can I tell what caused an ESP32 board to restart?
Replies: 13
Views: 9718

Re: How can I tell what caused an ESP32 board to restart?

Thanks for the reply, @marcidy. That register (Register 31.12. RTC_CNTL_RESET_STATE_REG (0x3FF48034)) does look useful to access more information. Can you point me towards a tutorial on how to access at the register level from MicroPython? The term "register" is not found on the " Getting started wi...
by timg11
Sun Jun 27, 2021 8:19 pm
Forum: ESP32 boards
Topic: How can I tell what caused an ESP32 board to restart?
Replies: 13
Views: 9718

How can I tell what caused an ESP32 board to restart?

I've got an ESP-32 Micropython with a simple embedded application. It is in a location where it is impractical to connect a computer to the USB port to access the serial terminal. In operation, the program normally logs events to Wi-Fi, and I'm seeing unexpected startup messages in the log. I have a...
by timg11
Wed May 05, 2021 8:42 pm
Forum: ESP32 boards
Topic: Thonny - Boot ESP32 into Python without USB?
Replies: 1
Views: 1436

Thonny - Boot ESP32 into Python without USB?

I'm trying Thonny as an IDE for ESP32 development. It works great for editing and running interactively with F5. uPyCraft has some capabilities to manage boot.py and main.py on the ESP32 board to enable booting into a program without USB attached. What is the comparable process for loading and maint...