Search found 124 matches

by rsimpsonbusa
Thu Aug 02, 2018 4:14 am
Forum: General Discussion
Topic: SPI Queue Execution Order
Replies: 5
Views: 7316

Re: SPI Queue Execution Order

Ill answer part of my own question.

Looking at spi_master.c we can see

Code: Select all

 r=xQueueSend(handle->trans_queue, (void*)&trans_buf, ticks_to_wait);
Its a FreeRtos queue which is, in theory, FIFO.
by rsimpsonbusa
Thu Aug 02, 2018 3:45 am
Forum: General Discussion
Topic: SPI Queue Execution Order
Replies: 5
Views: 7316

SPI Queue Execution Order

Hi Everybody. Does anybody know if the spi_device_queue_trans(...) has a FIFO order of execution? This way we can check completion of a "block" of transactions by just checking the LAST entry in the Queue via spi_device_get_trans_result(...spi_transaction_t of last entry.....) . BTW, also has anybod...
by rsimpsonbusa
Wed Jul 18, 2018 4:17 pm
Forum: General Discussion
Topic: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)
Replies: 8
Views: 11759

Re: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)

Hi WiFive. After some research I submit the following results as to if there is noise in the environment and if has an effect in the GPIO ISR vs a sw or hw error in the ESP32. The environment is the same, two ESP32 one that generates a pulse using two alternatives, direct from an GPIO and another vi...
by rsimpsonbusa
Tue Jul 17, 2018 8:09 pm
Forum: General Discussion
Topic: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)
Replies: 8
Views: 11759

Re: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)

Thanks for the prompt answer. Considering your reply, I have some questions/remarks: The double int is not on the same edge, that is, first INT gets called with a proper NEGEDGE, which is verified by reading the gpio level, but then the second INT is POSEDGE (isr was setup to be NEGEDGE only) with a...
by rsimpsonbusa
Tue Jul 17, 2018 5:51 pm
Forum: General Discussion
Topic: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)
Replies: 8
Views: 11759

Re: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)

Hi WiFive. The interrupt routine in the Electric Meter setup had a big error margin, about 10%-12% HIGHER number of interrupts than actual pulses. The routine was modified so as to read the gpio level and only increment counter if signal is low. Still the same error persisted, a little less now than...
by rsimpsonbusa
Fri Jul 13, 2018 10:43 pm
Forum: General Discussion
Topic: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)
Replies: 8
Views: 11759

Re: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)

Hi WiFive.

I did use a scope and the signal seemed very normal. It was also stated in https://github.com/espressif/arduino-esp32/issues/1111.

I tried to google level interrupts and did not find anything on the subject. If you can guide me to an example/documentation.

Thanks.
by rsimpsonbusa
Fri Jul 13, 2018 4:38 pm
Forum: General Discussion
Topic: ESP32 ISR and Optocoupler Double Interrupt (Spurious?)
Replies: 8
Views: 11759

ESP32 ISR and Optocoupler Double Interrupt (Spurious?)

Hi Everybody. Does anybody know the reason why a GPIO Input Pin (any, tried a lot 14,21,22,32,35,5,4) has a double interrupt when using a optocoupler (TLP281)? The setup used is the following: One ESP32 will manage the Output connection to the opto, basically setting High/Low so that the opto switch...
by rsimpsonbusa
Mon Sep 18, 2017 3:00 pm
Forum: General Discussion
Topic: Advice on application architecture - Sensors/WiFi/MQTT
Replies: 13
Views: 17456

Re: Advice on application architecture - Sensors/WiFi/MQTT

Hi meowsqueak. I have 5 DS18B20 in a single I2C chain, an Ammeter (CTYRZCH SCT-013-000 non-intrusive), a light sensor (TSL2561). A Mqtt Server receives commands by subscribe and sends info every 5 secs or by demand via publish. Also I have it connected to ThingsSpeak to update several "fields". And ...
by rsimpsonbusa
Tue May 16, 2017 2:43 pm
Forum: General Discussion
Topic: Receive in SPI Half Duplex not Working V2.0-2.1
Replies: 0
Views: 3193

Receive in SPI Half Duplex not Working V2.0-2.1

Just to inform that the in SPI half duplex (any speed) is not working in versions Master-2.0-2.1 (the three branches). It its working on previous versions.

Please look at https://github.com/espressif/esp-idf/issues/598

RSN