Search found 132 matches
- Sun Sep 04, 2022 11:30 pm
- Forum: ESP32 boards
- Topic: ESP32 - configuring wifi power save mode from micropython
- Replies: 6
- Views: 54083
Re: ESP32 - configuring wifi power save mode from micropython
There are already two different pull requests regarding WIFI Power save: https://github.com/micropython/micropython/pull/6774 (mine) https://github.com/micropython/micropython/pull/5473 And a third at https://github.com/micropython/micropython/pull/8993 ;). (I missed the earlier PRs before I posted...
- Sat Aug 06, 2022 4:13 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1513065
Re: ESP-Now support for ESP32 (and ESP8266)
During the last few weeks I saw a comment to the effect ... that the WiFi would attempt to re-connect if it went down. So, there is no point in checking that the WiFi is connected to the router, say every hour, correct? Yes, the micropython wifi module automatically tries to reconnect if it becomes...
- Tue Aug 02, 2022 2:55 pm
- Forum: ESP32 boards
- Topic: station.scan() issue on ESP32
- Replies: 22
- Views: 35704
Re: station.scan() issue on ESP32
Can anyone shed some light on this issue and help identyify where the problem might be and solution to this ?? I don't know if this is the source of your problems... but.... there is a very recent patch in micropython master branch for network_wlan_scan() which fixes an internal problem that occurs...
- Sat Jul 30, 2022 12:19 pm
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1513065
Re: ESP-Now support for ESP32 (and ESP8266)
Glad it is working now Dave. I have success with sending more than one message from the remote to the repeater. Complete system is now working. Try adding print("channel =", e0.config('channel')) immediately before every call to e0.send() on the remote. Whoops - that should have been w0.config('chan...
- Sat Jul 30, 2022 7:15 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1513065
Re: ESP-Now support for ESP32 (and ESP8266)
However, applications must disable the WLAN peripheral (using active(False)) before entering light or deep sleep (see Sleep Modes). Otherwise the WiFi radio may not be initialised properly after wake from sleep. I was doing that in the remote that was using lightsleep(). and that will reset the cha...
- Sat Jul 30, 2022 5:42 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1513065
Re: ESP-Now support for ESP32 (and ESP8266)
1) the remote w0 channel needs to be the same as the repeater and the proxy, correct? 2) no messing-around with channel assignments in add_peers(), correct? That SHOULD be the case. It is much better to use the WLAN.config(channel=X) to set the channel. The espressif documentation is really unclear...
- Sat Jul 30, 2022 3:47 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1513065
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 ...
- Sat Jul 30, 2022 3:44 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1513065
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 ...
- Sat Jul 30, 2022 3:23 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1513065
Re: ESP-Now support for ESP32 (and ESP8266)
You do not have to be connected with the Station interface, unless you use it for something else. If you are connected, this may be the reason why the channel is changed. By default espnow is using AP interface (ifidx = 0) and this can be set with add_peer so, if you wat to use STA interface you ne...
- Wed Jul 27, 2022 10:55 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1513065
Re: ESP-Now support for ESP32 (and ESP8266)
If you share your code, I can try it on some of my devices. I've just tested the minimalist case of two peers exchanging espnow packets over channel 6 - with no wifi (which is what your remote-repeater case is) and it works fine. I can keep sending messages many times and it works fine. I can also ...