Search found 34 matches

by RMandR
Fri Nov 01, 2019 5:07 pm
Forum: ESP32 IDF
Topic: is copy-less read operations possible for nvs blobs?
Replies: 2
Views: 426

is copy-less read operations possible for nvs blobs?

for aws mqtt connection, the API seems to accept only pointer memory location or fat fs paths. What's the best way of doing this if the aws cert is not embedded in the binary and stored in NVS? It seems like a waste memory to have to copy the certs and keys from NVS into memory before passing onto t...
by RMandR
Fri Nov 01, 2019 4:56 pm
Forum: ESP32 IDF
Topic: app_prov_get_wifi_state() returns "connecting" even after wifi is connected?
Replies: 3
Views: 356

Re: app_prov_get_wifi_state() returns "connecting" even after wifi is connected?

@ESP_Piyush Thanks for clarifying. In the case of a mobile app provisioning over BLE, the app will not receive a final confirmation if the user tries to provision an already provisioned device. Since the users can't be relied on performing WiFi wipe and reboot, the workaround on provision initiation...
by RMandR
Mon Oct 28, 2019 2:35 pm
Forum: ESP32 IDF
Topic: app_prov_get_wifi_state() returns "connecting" even after wifi is connected?
Replies: 3
Views: 356

Re: app_prov_get_wifi_state() returns "connecting" even after wifi is connected?

Update: it looks like the only way the status will change is when esp32 gets and IP address. //app_prov.c case SYSTEM_EVENT_STA_GOT_IP: ESP_LOGI(TAG, "STA Got IP"); /* Station got IP. That means configuration is successful. * Schedule timer to stop provisioning app after 30 seconds. */ g_prov->wifi_...
by RMandR
Mon Oct 28, 2019 1:31 pm
Forum: ESP32 IDF
Topic: app_prov_get_wifi_state() returns "connecting" even after wifi is connected?
Replies: 3
Views: 356

app_prov_get_wifi_state() returns "connecting" even after wifi is connected?

I'm working on BLE provisioning based on IDF 3.2 and the samples ios app (the version before the latest change to v1.2) Even after the esp32 is connected to the AP, the status is not updated and the IOS app gets stuck in polling. I've added an additional endpoint to the BLE to send some custom devic...
by RMandR
Wed Sep 25, 2019 5:36 pm
Forum: ESP32 IDF
Topic: What's the proper way to enable FreeRTOS automatic light sleep?
Replies: 1
Views: 160

What's the proper way to enable FreeRTOS automatic light sleep?

I'm trying to enable automatic light sleep when all the tasks in my application are sleeping (vTaskDelay). I have placed the following code in main() and enabled power management and Tickless_idle in MENUCONFIG: esp_pm_config_esp32_t pm_config = { .max_freq_mhz = 240, .min_freq_mhz = 10, .light_slee...
by RMandR
Mon Jul 29, 2019 2:32 pm
Forum: Hardware
Topic: I2C transmission errors. Rounded I2C clock edge from ESP module?
Replies: 6
Views: 665

Re: I2C transmission errors. Rounded I2C clock edge from ESP module?

Final Update: Ok, so this whole did not have anything to do with pull up resistor settings. The reason I was getting CRC errors was that i2c_master_cmd_begin was returning an error and I was not checking it. For those who are interested: i2c_get_data_timing(0, &sample_time, &hold_time); shows that E...
by RMandR
Mon Jul 29, 2019 2:29 pm
Forum: ESP32 IDF
Topic: How to check for I2C bus status. ESP_ERR_TIMEOUT with multiple transactions
Replies: 0
Views: 200

How to check for I2C bus status. ESP_ERR_TIMEOUT with multiple transactions

I sometimes get ESP_ERR_TIMEOUT from i2c_master_cmd_begin(I2C_NUM, cmd, 1000 / portTICK_PERIOD_MS) when sending multiple I2C read write sequences. It also seems that i2c_master_cmd_begin returns with the bus busy error before the 1000ms tick timeout. Inserting an arbitrary delay in between the trans...
by RMandR
Sun Jul 28, 2019 1:39 pm
Forum: Hardware
Topic: I2C transmission errors. Rounded I2C clock edge from ESP module?
Replies: 6
Views: 665

Re: I2C transmission errors. Rounded I2C clock edge from ESP module?

Update: I place 2.2K Ohm pull ups which reduces the clock rise time to below 1us (750ns) which is the minimum for 100KHz I2C clock according to the standard and this app note from TI: http://www.ti.com/lit/an/slva689/slva689.pdf I'm still getting the same rate of CRC errors (~10%) where I wasn't get...
by RMandR
Sat Jul 27, 2019 12:32 pm
Forum: Hardware
Topic: I2C transmission errors. Rounded I2C clock edge from ESP module?
Replies: 6
Views: 665

Re: I2C transmission errors. Rounded I2C clock edge from ESP module?

Are you using x10 probes to view these signals?
Didn't know 10X was better.

I still get the CRC errors on I2C when the probe is not attached. And, I normally see clean clock edges with the same probe and different chip. It can't be probe.

Go to advanced search