Search found 151 matches
- Mon Sep 04, 2017 5:34 am
- Forum: General Discussion
- Topic: Advice on application architecture - Sensors/WiFi/MQTT
- Replies: 13
- Views: 16010
Re: Advice on application architecture - Sensors/WiFi/MQTT
https://github.com/nodemcu/nodemcu-firmware/blob/dev-esp32/components/platform/onewire.c There's one thing I don't understand about that code - when reading bits around line 378 the pin is put into INPUT mode (via onewire_rmt_attach_pin, line 200), then at 381 the wire is put into open-drain mode, ...
- Mon Sep 04, 2017 5:13 am
- Forum: General Discussion
- Topic: Advice on application architecture - Sensors/WiFi/MQTT
- Replies: 13
- Views: 16010
Re: Advice on application architecture - Sensors/WiFi/MQTT
https://github.com/nodemcu/nodemcu-firmware/blob/dev-esp32/components/platform/onewire.c Thanks for that - looking at the code I can see that it uses the RMT to handle each "bit slot" - that makes a lot more sense as I was thinking that I needed to protect the entire byte as "time critical" - but i...
- Mon Sep 04, 2017 4:36 am
- Forum: General Discussion
- Topic: Advice on application architecture - Sensors/WiFi/MQTT
- Replies: 13
- Views: 16010
Re: Advice on application architecture - Sensors/WiFi/MQTT
That's an interesting idea. I looked at the TRM (chapter 12) to understand how it works. Unfortunately, I'm not sure it's usable in this scenario, because the 1-Wire protocol requires the CPU to drive the wire for a period of time, and then immediately put the pin into input mode in anticipation of ...
- Mon Sep 04, 2017 4:14 am
- Forum: General Discussion
- Topic: JTAG debuggers
- Replies: 26
- Views: 34799
Re: JTAG debuggers
In general, how reliable should debugging via JTAG be on this platform? I'm not sure whether I've got it working as well as to be expected. I've managed to get my JTAG debugger (BusPirate v2go, v7.0 firmware) talking to the special ESP32 version of OpenOCD, and I've even been able to run GDB remotel...
- Mon Sep 04, 2017 1:01 am
- Forum: General Discussion
- Topic: LWIP read() blocks CPU
- Replies: 3
- Views: 5321
Re: LWIP read() blocks CPU
I'll put together a small example and share that soon. It will also help me to verify that I'm not making a mistake elsewhere. I'll report back when it's available.
- Mon Sep 04, 2017 12:28 am
- Forum: General Discussion
- Topic: Advice on application architecture - Sensors/WiFi/MQTT
- Replies: 13
- Views: 16010
Advice on application architecture - Sensors/WiFi/MQTT
I'd like to ask if anyone can help me figure out the "best practice" architecture for my relatively simple ESP32 application please. I'm using the ESP-IDF with C, on a "DOIT" ESP32 board. I have a OneWire bus with five DS18B20 temperature sensors attached, and my testing with these shows the set-up ...
- Sun Sep 03, 2017 11:58 pm
- Forum: General Discussion
- Topic: vTaskSuspendAll on Core0 halt tasks on Core1 too
- Replies: 2
- Views: 5629
Re: vTaskSuspendAll on Core0 halt tasks on Core1 too
I'm not sure if it's related, but I'm calling vTaskSuspendAll() to ensure no task switch while in the middle of a timing-sensitive GPIO bit-bash routine (followed by xTaskResumeAll()), and the LWIP stack continues to run (so is presumably running on the other CPU) but then asserts: components/freert...
- Sun Sep 03, 2017 9:46 pm
- Forum: General Discussion
- Topic: LWIP read() blocks CPU
- Replies: 3
- Views: 5321
LWIP read() blocks CPU
I'm trying to integrate the ESP-MQTT library with my ESP-IDF application, which uses FreeRTOS. https://github.com/tuanpmt/espmqtt My application has two tasks - one collecting sensor data, the other publishing this data via MQTT to an external broker. In addition, there needs to be a way for MQTT su...
- Mon Jul 31, 2017 9:34 pm
- Forum: ESP-IDF
- Topic: esptool not able to connect - "Device not configured"
- Replies: 4
- Views: 13518
Re: esptool not able to connect - "Device not configured"
Thanks for the replies. I think the issue was my USB cable, because I switched it for a "branded" one and the problem went away entirely. I went back to the "bad" cable and determined that it would occasionally work, but fails a lot of the time. So I'm fairly certain it's the USB cable at fault. Tha...
- Mon Jul 31, 2017 5:06 am
- Forum: ESP-IDF
- Topic: esptool not able to connect - "Device not configured"
- Replies: 4
- Views: 13518
esptool not able to connect - "Device not configured"
I'm using the ESP-IDF on a "doit" ESP32 board, using esptool.py v2.1-beta1. I was playing around with Kolban's WiFi scan example code (page 117 of the July version of his eBook) and after running 'make flash monitor' I'm finding that the board is now behaving strangely. When I press the "EN" button ...