Search found 10 matches

by marekg
Tue May 14, 2019 2:24 pm
Forum: ESP-IDF
Topic: High current consumption of Bluetooth BLE and long time initialisation
Replies: 3
Views: 6634

High current consumption of Bluetooth BLE and long time initialisation

Hello, I am struggling with BLE in advertising mode. In principle all works but my problem is following: - initialization of BLE takes too long. For example, function esp_bt_controller_enable(ESP_BT_MODE_BLE) takes almost 600ms. - power consumption during initialization of BLE is around 110mA Is it ...
by marekg
Tue May 14, 2019 11:21 am
Forum: ESP-IDF
Topic: Higher current consumption (100uA) in Deep Sleep on ESP32-WROOM-32D
Replies: 5
Views: 8085

Higher current consumption (100uA) in Deep Sleep on ESP32-WROOM-32D

Dear all, I am struggling with excessive current consumption on ESP32-WROOM-32D in deep sleep mode. According datasheet it should be 10uA but it consumes 100uA instead. I have used functions rtc_gpio_isolate to isolate GPIO pins but I could not lower current. I measure current directly at module pow...
by marekg
Thu May 09, 2019 10:04 am
Forum: ESP-IDF
Topic: I2C polling and ACK/NACK checked in next command
Replies: 4
Views: 7439

Re: I2C polling and ACK/NACK checked in next command

Hello, I found some posts that is there is only one command in the command queue, this results to timeout. Is that true? This looks to be my case as well. I am talking about such code: //create new i2c link for i2c commands i2c_command_handle = i2c_cmd_link_create(); //queue stop bit i2c_master_stop...
by marekg
Thu May 09, 2019 6:08 am
Forum: ESP-IDF
Topic: I2C polling and ACK/NACK checked in next command
Replies: 4
Views: 7439

Re: I2C polling and ACK/NACK checked in next command

Hello, in the meantime, I wrote next function to read sensor in periodic measurement mode. In this case, master sends command to put sensor to periodic reading. Next, master poll if new measurement is ready. Below is code snippet which basically works and is able to read values from the sensor. But,...
by marekg
Thu May 09, 2019 6:00 am
Forum: ESP-IDF
Topic: I2C polling and ACK/NACK checked in next command
Replies: 4
Views: 7439

Re: I2C polling and ACK/NACK checked in next command

Hello, I would like to add some notes to the case. In debugging mode, when I jump over line: i2c_master_cmd_begin(i2c_port_num, i2c_command_handle, I2C_READ_WAIT_MS / portTICK_RATE_MS); there is no ACK/NACK checking clock. This ACK/NACK clock appears in the next cycle of: i2c_master_cmd_begin(i2c_po...
by marekg
Tue May 07, 2019 12:39 pm
Forum: ESP-IDF
Topic: I2C polling and ACK/NACK checked in next command
Replies: 4
Views: 7439

I2C polling and ACK/NACK checked in next command

Dear all, I am struggling with I2C bus and reading measurement from SHT30 sensor. I am able to read serial number and status register therefore i2c driver, i2c bus and sensor should be working. But for measurement readout in polling mode I need to create special sequence to "poll" if measurement is ...
by marekg
Wed Apr 24, 2019 10:14 am
Forum: ESP-IDF
Topic: How to modify CONFIG_FREERTOS_HZ definition?
Replies: 3
Views: 11379

Re: How to modify CONFIG_FREERTOS_HZ definition?

Hello guys,

thank you so much. It works ;)
Have a nice day.
by marekg
Wed Apr 24, 2019 6:58 am
Forum: ESP-IDF
Topic: How to modify CONFIG_FREERTOS_HZ definition?
Replies: 3
Views: 11379

How to modify CONFIG_FREERTOS_HZ definition?

Hello, I would need to modify parameter CONFIG_FREERTOS_HZ in file sdkconfig.h from default 100 to value 1000. This file is generated automatically and therefore it is not recommended to change it. If I modify this parameter in my header file, I get warning from compiler. Is there any legal method h...
by marekg
Tue Apr 23, 2019 5:22 am
Forum: ESP-IDF
Topic: SPI does not send address in master mode
Replies: 3
Views: 5523

Re: SPI does not send address in master mode

Thank you all for your ideas. In the mean time I found the root cause and it is functional now. It was necessary to use spi_transaction_ext_t configuration. Code snippet looks like this: void spi1_Init_Spi_Bus(void) { spi_device_interface_config_t spi_expander_config = { //declaration for expander S...
by marekg
Thu Apr 18, 2019 2:41 pm
Forum: ESP-IDF
Topic: SPI does not send address in master mode
Replies: 3
Views: 5523

SPI does not send address in master mode

Hello, I am struggling with SPI in master mode. I want to send address plus buffer with help of function spi_device_queue_trans but SPI does not send address and send only data. SPI device is configured like this: spi_device_interface_config_t sx1276_config = { .clock_speed_hz = (SPI_SX1276_BUS_CLOC...