Search found 10 matches

by markirwin
Fri Oct 15, 2021 11:24 am
Forum: General Discussion
Topic: ESP32S2 I2S and MQTT Error
Replies: 6
Views: 5897

Re: ESP32S2 I2S and MQTT Error

I resolved the I2S error on able to allocate interrupt by setting
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1, it was set to level2.

Still not resolved the i2c issue, not sure exactly what has changed in the 4.3.1 branch since release last week.
by markirwin
Fri Oct 15, 2021 10:40 am
Forum: General Discussion
Topic: ESP32S2 I2S and MQTT Error
Replies: 6
Views: 5897

Re: ESP32S2 I2S and MQTT Error

Hi ESP_SPRITE, I did this and it did fix my DMA issue, however, then the ESP-MQTT TLS stack kept failing to create an SSL connection. Which i couldn't resolve by rolling back my code changes either. mbedtls_ssl_setup returned -0x7f00 which was also an out of memory problem. I am using ESP32S2 on IDF...
by markirwin
Thu Oct 14, 2021 5:25 am
Forum: General Discussion
Topic: ESP32S2 I2S and MQTT Error
Replies: 6
Views: 5897

Re: ESP32S2 I2S and MQTT Error

Hi ESP_Sprite, I managed to fix the problem which seemed to be because I had initialised the SD card which I wasn't using. Once the SD card init was removed it then started working. I am using an ESP32S2 with 8MB PSRAM which has been added to the heap so I would hope I'm not running out of memory. I...
by markirwin
Tue Sep 28, 2021 12:20 pm
Forum: General Discussion
Topic: ESP32S2 I2S and MQTT Error
Replies: 6
Views: 5897

Re: ESP32S2 I2S and MQTT Error

Anyone have any pointers in how to get a more descriptive error?

and why would MQTT share interrupts with I2S? This only happens when handling a large file transfer.
by markirwin
Sun Sep 19, 2021 9:44 am
Forum: General Discussion
Topic: ESP32S2 I2S and MQTT Error
Replies: 6
Views: 5897

ESP32S2 I2S and MQTT Error

Dear All, I am using I2S to play audio files and MQTT to transfer these audio files between devices and saving to SPIFFS. I have a curious problem where I can create and play audio files on the same device and never run into any issues. However, if i create a file on device A and then send it to the...
by markirwin
Fri Sep 17, 2021 5:58 am
Forum: ESP IoT Solution
Topic: How to configure iot_button_get_repeat() to only return total presses
Replies: 1
Views: 10854

Re: How to configure iot_button_get_repeat() to only return total presses

I changed the state machine in iot_button.c to only call repeat after specific times. case 2: if (btn->button_level == btn->active_level) { btn->event = (uint8_t)BUTTON_PRESS_DOWN; CALL_EVENT_CB(BUTTON_PRESS_DOWN); btn->repeat++; //CALL_EVENT_CB(BUTTON_PRESS_REPEAT); // repeat hit btn->ticks = 0; bt...
by markirwin
Fri Sep 17, 2021 1:46 am
Forum: ESP IoT Solution
Topic: How to configure iot_button_get_repeat() to only return total presses
Replies: 1
Views: 10854

How to configure iot_button_get_repeat() to only return total presses

Hi, I am using the button_iot library and having an issue where the iot_button_get_repeat() function is working fine but it called the callback after every press, so if i press four times i get callbacks after 2, 3 and 4. I would prefer for it to only return the total number of presses? Is that poss...
by markirwin
Tue Jun 22, 2021 10:38 am
Forum: ESP-IDF
Topic: How to use ESP-MQTT in a correct way (event loop)?
Replies: 7
Views: 17019

Re: How to use ESP-MQTT in a correct way (event loop)?

I would like to follow up on this post and see if there was a resolution? I have been attempting to get the MQTT-TCP examples working where i would publish a message every 5s in a while (1) loop within the app_main like below. Running the vanilla example. while (1) { esp_mqtt_client_publish (client,...
by markirwin
Mon Nov 23, 2020 12:45 am
Forum: ESP-IDF
Topic: Trying to setup ESPTools with latest build to support ESP32S2
Replies: 2
Views: 3392

Re: Trying to setup ESPTools with latest build to support ESP32S2

finally figured it out, i had python 2.7, 3.8 installed so removed them both and started again.. but could still run python. at cmd but not pip, i found I have another dev environment on the system path for a FOMU dev board and there tools has python. Made some edits then reinstalled Python 3.7 and ...
by markirwin
Sun Nov 22, 2020 10:48 am
Forum: ESP-IDF
Topic: Trying to setup ESPTools with latest build to support ESP32S2
Replies: 2
Views: 3392

Trying to setup ESPTools with latest build to support ESP32S2

Hi, I am trying to run the esp-rainmaker examples on a esp32s2 soala dev kit and running into lots of issues getting setup. I got all the tools installed and found 4.1 doesn't support esp32s2 only esp32s2beta. So following the instructions from https://docs.espressif.com/projects/esp-idf/en/latest/e...