Search found 30 matches

by jollytopper
Thu May 30, 2019 2:49 am
Forum: ESP-IDF
Topic: SPI very slow
Replies: 7
Views: 7844

Re: SPI very slow

I have found that the problem was I was outputting many ESP_LOG statements over UART, thus causing delay.
by jollytopper
Thu May 30, 2019 2:45 am
Forum: ESP-IDF
Topic: SPI very slow
Replies: 7
Views: 7844

Re: SPI very slow

I have found that the problem was I was outputting many ESP_LOG statements over UART, thus causing delay.
by jollytopper
Thu May 30, 2019 2:43 am
Forum: Hardware
Topic: UART Flow Control
Replies: 8
Views: 11218

UART Flow Control

Hello All,

I have been using UART1 without hardware or software flow control. What are the benefits to using software flow control and if I decide to do so, when should I be calling uart_set_rts() and uart_set_dts()?
by jollytopper
Mon Mar 25, 2019 3:18 am
Forum: ESP-IDF
Topic: SPI very slow
Replies: 7
Views: 7844

Re: SPI very slow

Specifically, by logging a time value I'm reading that each polling transaction takes around 3 ms. Should it not be much quicker? <100 us?
by jollytopper
Mon Mar 25, 2019 2:28 am
Forum: ESP-IDF
Topic: SPI very slow
Replies: 7
Views: 7844

SPI very slow

I'm making consecutive calls to one device using polling transactions. I have acquired the bus in initialization. My transactions are relatively short and usually come in chunks of 10 (10 polling transactions).

I find that the speed is still not satisfactory. How can I improve this?
by jollytopper
Tue Nov 27, 2018 11:12 am
Forum: ESP-IDF
Topic: How to use SPI from an interrupt?
Replies: 3
Views: 7570

Re: How to use SPI from an interrupt?

Thanks for the response. My concern about my original point is that I'm worried while the high priority task is processing the IRQ, the other core may be running a task that disrupts this tasks function by maybe using some shared resource or something. What I really would like to do is for have this...
by jollytopper
Tue Nov 27, 2018 9:43 am
Forum: ESP-IDF
Topic: How to use SPI from an interrupt?
Replies: 3
Views: 7570

How to use SPI from an interrupt?

Currently, program crashes if I try to do a spi_device_transmit.

I'm thinking about setting up a task with a very high priority and have the IRQ handlers send objects to a queue, which in turn wakes up the high priority task to do the processing. Are there any alternatives?
by jollytopper
Thu Nov 08, 2018 7:32 am
Forum: ESP32 Arduino
Topic: Make app does not build ino files
Replies: 1
Views: 3224

Make app does not build ino files

I've downloaded the arduino core as an esp-idf component. How do I make the arduino files build?
by jollytopper
Tue Oct 23, 2018 3:30 am
Forum: ESP-IDF
Topic: ESP-MQTT does not disconnect when router loses internet
Replies: 2
Views: 3484

ESP-MQTT does not disconnect when router loses internet

If the esp module loses connection to the router, then the disconnect is called.

If the router loses connection to the rest of the internet by removing the ethernet cord, then neither the wifi event handler nor the mqtt even handler indicates the connection has been lost.
by jollytopper
Tue Oct 23, 2018 2:50 am
Forum: ESP-IDF
Topic: Questions regarding the event: SYSTEM_EVENT_STA_LOST_IP
Replies: 0
Views: 2202

Questions regarding the event: SYSTEM_EVENT_STA_LOST_IP

When would this usually happen and what steps are necessary to take related to socket work?

Right now I'm shutting down sockets on a SYSTEM_EVENT_STA_DISCONNECTED. Is there a chance that the SYSTEM_EVENT_STA_LOST_IP event can trigger without SYSTEM_EVENT_STA_DISCONNECTED being triggered also?