Search found 811 matches

by davef
Fri Jul 29, 2022 11:48 pm
Forum: ESP32 boards
Topic: station.scan() issue on ESP32
Replies: 22
Views: 35602

Re: station.scan() issue on ESP32

Ahead of schedule!

It is actually a .pdf I took a photo but it is too big.
by davef
Fri Jul 29, 2022 9:35 pm
Forum: ESP32 boards
Topic: station.scan() issue on ESP32
Replies: 22
Views: 35602

Re: station.scan() issue on ESP32

- as output toggle 33
- pin 33 to tri-state
- do some processing represented by utime.sleep(1), ie less then the 1.6 seconds
- pin 33 back to output

I have seen a more concise way of toggling a pin.

I will do a schematic this evening, give me about 10-12 hours.
by davef
Fri Jul 29, 2022 7:31 pm
Forum: ESP32 boards
Topic: station.scan() issue on ESP32
Replies: 22
Views: 35602

Re: station.scan() issue on ESP32

I can't log errors in station.scan() as that is part of the Micropython image installed on the ESP32 The ESP32 board is in a place where you can't get to it. And the image is "frozen" or you can't modify it. You are not making this easy :) Hardware watchdog. As I said, I wish I had chosen a 25 seco...
by davef
Fri Jul 29, 2022 9:07 am
Forum: ESP32 boards
Topic: station.scan() issue on ESP32
Replies: 22
Views: 35602

Re: station.scan() issue on ESP32

If anything causes an exception I log the error to an errors.txt and visit that periodically. Can you get station.scan to raise an error? I recently built a hardware wdt using a ADM6316 family part with a wdt of 1.6 seconds. Wish I had bought 25 second parts. 2 NPN transistors and 3 resistors. Fortu...
by davef
Fri Jul 29, 2022 8:12 am
Forum: Development of MicroPython
Topic: Updating a MicroPython Firmware
Replies: 10
Views: 41369

Re: Updating a MicroPython Firmware

Do you want to upload new firmware to a device over the internet? Way beyond my experience.
by davef
Fri Jul 29, 2022 6:48 am
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 368
Views: 1508684

Re: ESP-Now support for ESP32 (and ESP8266)

Hi mekanixms, In the section ESPNow and WiFi it sounds to me to be easier to connect to the STA interface. In other words there are more conditions you have to meet when using the AP interface. By default espnow is using AP interface (ifidx = 0) and this can be set with add_peer so, if you wat to us...
by davef
Fri Jul 29, 2022 6:04 am
Forum: General Discussion and Questions
Topic: board.py Files
Replies: 5
Views: 10403

Re: boot.py Files

For the ESP32 I always have the boot.py that comes with the image. So, a blank boot.py should be enough. Also, I find it useful to have a file called main.py, which at least contains: import my_application A short delay in main.py, ie utime.sleep(5) gives you a chance to do a CTRL-C in rshell and ed...
by davef
Fri Jul 29, 2022 12:02 am
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 368
Views: 1508684

Re: ESP-Now support for ESP32 (and ESP8266)

Today's observations (after making the changes as above): 1) maybe part of the problem is that my repeater can see the WiFi network or that the local unit is "telling" it to go to channel 6. I find if I change w0 to channel 1 then I can receive messages from the remote. 2) when the remote boots-up a...
by davef
Thu Jul 28, 2022 11:05 pm
Forum: General Discussion and Questions
Topic: Strange ESP-Now Issue - SOLVED
Replies: 20
Views: 17457

Re: Strange ESP-Now Issue

In most of my scripts I de-activate e0 before bailing-out. I have had grief in other areas with things being left in "unknown state".

If the issue is resolved, add [Solved] to the title.
by davef
Thu Jul 28, 2022 10:54 pm
Forum: General Discussion and Questions
Topic: Strange ESP-Now Issue - SOLVED
Replies: 20
Views: 17457

Re: Strange ESP-Now Issue

Did you have a e0.active(False) at the "end" of your script?