Search found 340 matches

by mzimmers
Sat Apr 21, 2018 2:24 pm
Forum: General Discussion
Topic: [solved] troubleshooting a WiFi connection
Replies: 8
Views: 2180

Re: troubleshooting a WiFi connection

Hi Neil - I didn't turn on verbose logging, but I did put a telltale printf in the event handler. The program that works correctly gets: - SYSTEM_EVENT_STA_START - SYSTEM_EVENT_STA_CONNECTED - SYSTEM_EVENT_STA_GOT_IP The program that doesn't work gets: - SYSTEM_EVENT_STA_START - SYSTEM_EVENT_STA_DIS...
by mzimmers
Fri Apr 20, 2018 10:24 pm
Forum: General Discussion
Topic: [solved] troubleshooting a WiFi connection
Replies: 8
Views: 2180

[solved] troubleshooting a WiFi connection

This falls under the category of "it used to work, but somehow I screwed it up and don't know what I did." In order to get a WiFi client up for multicasts, I borrowed heavily from the example in examples/protocols/udp_multicast. For the unfamiliar, it runs an infinite loop, using lwip_select (a linu...
by mzimmers
Thu Apr 19, 2018 12:13 am
Forum: General Discussion
Topic: What version of FreeRTOS do I have...?
Replies: 2
Views: 782

Re: What version of FreeRTOS do I have...?

Hi ESP_Angus - that's good information, and in fact, a buffer mechanism (hopefully for inter-task communication) is exactly what I was looking for. Thank you for the link(s).
by mzimmers
Wed Apr 18, 2018 10:18 pm
Forum: General Discussion
Topic: What version of FreeRTOS do I have...?
Replies: 2
Views: 782

What version of FreeRTOS do I have...?

...more to the point, how do I check this myself?

I went to use a relatively new FreeRTOS feature only to find that it's not available pre-version 10.0. Doh...
by mzimmers
Mon Apr 16, 2018 9:12 pm
Forum: ESP32 IDF
Topic: (resolved) handling GPIO interrupts
Replies: 18
Views: 4979

Re: handling GPIO interrupts

Hi Neil - I got pulled off on some TDY and just got back to this today. I borrowed from the logic in your example, and came up with this: for (;;) { validPress = true; // innocent until proven guilty if(xQueueReceive(gpio_evt_queue, &io_num, portMAX_DELAY)) { // probably going to want to disable the...
by mzimmers
Wed Apr 04, 2018 9:01 pm
Forum: ESP32 IDF
Topic: (resolved) handling GPIO interrupts
Replies: 18
Views: 4979

Re: handling GPIO interrupts

That's all good information. In reading your answer, I wondered: is it kosher to use a combination of interrupts and polling on the same GPIO pin? In my case, I need to be sure the button is held depressed for at least 250ms. The first way of doing this that came to mind was a loop of say, 25 sample...
by mzimmers
Wed Apr 04, 2018 4:33 pm
Forum: ESP32 IDF
Topic: (resolved) handling GPIO interrupts
Replies: 18
Views: 4979

(resolved) Re: handling GPIO interrupts

Maybe I'm over-complicating this, and I don't need the call to gpio_get_level(). I just thought it made sense to verify the state of the pin after getting an interrupt...is this not common practice? As far as intent...when the button is pressed, I need to send a message (via WiFi) to another device....
by mzimmers
Wed Apr 04, 2018 3:40 pm
Forum: ESP32 IDF
Topic: (resolved) handling GPIO interrupts
Replies: 18
Views: 4979

Re: handling GPIO interrupts

So, I borrowed (heavily) from the debounce handler in The Bible for my GPIO processing. Here's the routine: for (;;) { if(xQueueReceive(gpio_evt_queue, &io_num, portMAX_DELAY)) { gpio_level = gpio_get_level(io_num); gettimeofday(&now, nullptr); if (timeval_durationBeforeNow(&lastPress) > INTERVAL) {...
by mzimmers
Tue Apr 03, 2018 6:29 pm
Forum: ESP32 IDF
Topic: any plans to update LWiP?
Replies: 3
Views: 828

Re: any plans to update LWiP?

Hi, WiFive -

Thanks for the answer. According to the developers, 2.0.3 doesn't have the IP_PKTINFO feature I was hoping for:

https://savannah.nongnu.org/task/?14247

As I said, it's not a huge deal, but it'd be nice to have at some point.
by mzimmers
Tue Apr 03, 2018 6:03 pm
Forum: ESP32 IDF
Topic: any plans to update LWiP?
Replies: 3
Views: 828

any plans to update LWiP?

Hi, all - The current version of LWiP doesn't support IP_PKTINFO. I've conversed with the folks who maintain this system, and they've indicated that it's working for IPv4 in this version: https://git.savannah.nongnu.org/git/lwip.git It's not a really big deal, but it would be nice to have IP_PKTINFO...

Go to advanced search