Search found 566 matches

by boarchuz
Mon Oct 26, 2020 7:43 am
Forum: ESP32 Arduino
Topic: Finding ESPNOW peers?
Replies: 1
Views: 2507

Re: Finding ESPNOW peers?

You can communicate over the broadcast address (FF:FF:FF:FF:FF:FF) without knowledge of peers.

See the example here for a discovery implementation: https://github.com/espressif/esp-idf/tr ... ifi/espnow
by boarchuz
Sun Oct 25, 2020 2:49 am
Forum: ESP-IDF
Topic: WiFi CONNECTION : ESP32 to LAPTOP : It just won't work
Replies: 5
Views: 6572

Re: WiFi CONNECTION : ESP32 to LAPTOP : It just won't work

You've got a bizarre hodgepodge of ESP NOW and WiFi. ESP NOW and WiFi are different protocols, different components, different things. Adding an ESP NOW peer has absolutely no association with connection to a WiFi access point. I'd suggest looking at a standard simple Arduino WiFi sketch and using t...
by boarchuz
Sat Oct 24, 2020 12:08 am
Forum: ESP-IDF
Topic: Unwanted messages when initializing Wifi
Replies: 2
Views: 2782

Re: Unwanted messages when initializing Wifi

Try setting the log level of "wifi" component to none before its initialisation:

esp_log_level_set("wifi", ESP_LOG_NONE);
by boarchuz
Sat Oct 24, 2020 12:04 am
Forum: General Discussion
Topic: GPIO_OUT_REG not updating
Replies: 2
Views: 2564

Re: GPIO_OUT_REG not updating

Code: Select all

Serial.println(GPIO_OUT_REG, BIN);
You are printing GPIO_OUT_REG, defined as 0x3f404004, not the current value in that register. Try REG_READ(GPIO_OUT_REG)
by boarchuz
Thu Oct 15, 2020 11:31 pm
Forum: ESP-IDF
Topic: ESP32S2 running ULP-FSM example sought
Replies: 8
Views: 8047

Re: ESP32S2 running ULP-FSM example sought

https://esp32.com/viewtopic.php?t=14532 Consider using the RISC-V ULP processor. It's supported already, and is the obvious choice if you're writing a ULP program from scratch at this point. FSM's main use case would be for porting an existing program from ESP32, or requiring compatibility with mult...
by boarchuz
Sun Oct 11, 2020 12:57 am
Forum: ESP-IDF
Topic: (solved) Can you use JUMPR with a variable? - ESP32 ULP
Replies: 2
Views: 2661

Re: Can you use JUMPR with a variable? - ESP32 ULP

You need to load your threshold value into a separate register. Then subtract the iterator reg and the threshold reg, result into r0.
If they are equal, r0 will be 0, so you can now use:
jumpr yourlabel 1 LT

If you don't want to pollute r0 you could subtract into any reg, then:
jump label EQ
by boarchuz
Wed Oct 07, 2020 4:57 pm
Forum: ESP32 Arduino
Topic: Saving preferences doesn't work
Replies: 8
Views: 10690

Re: Saving preferences doesn't work

The preferences feature is not very robust. When I define my string as char ptr and initialize it to an empty string (char * test = ""), then prefs will cause ESP32 to crash when I try to retrieve something from NVS into that char ptr. Did you try Ibernstone's solution?: "You aren't allocating any ...
by boarchuz
Tue Oct 06, 2020 12:57 pm
Forum: Hardware
Topic: ESP32 reading from Attiny85 sensor through I2C protocol
Replies: 5
Views: 4786

Re: ESP32 reading from Attiny85 sensor through I2C protocol

Also the Tiny at 5V could well be a problem: a logic high on the I2C bus may not be high enough.
Investigate powering it from 3v3 or using level shifters.
by boarchuz
Mon Oct 05, 2020 7:54 pm
Forum: General Discussion
Topic: ESP32 - Deep Sleep for over 3 hours
Replies: 1
Views: 9542

Re: ESP32 - Deep Sleep for over 3 hours

Use the ULL (unsigned long long) modifier:
esp_deep_sleep_start(8ULL * 60 * 60 * 1000 * 1000); // sleep 8hrs
by boarchuz
Wed Sep 30, 2020 12:05 pm
Forum: ESP-IDF
Topic: ESP NOW without NVS?
Replies: 9
Views: 7750

Re: ESP NOW without NVS?

Although I can't understand why we have to "manually" call esp_phy_rf_init It needs the calibration data from somewhere. You can enable NVS so that it can store/load it as needed, you can use esp_phy_rf_init to set this data managed by your application, or you can do neither and it will need to per...