Search found 87 matches

by markwj
Tue Mar 20, 2018 4:06 am
Forum: Showcase
Topic: ESP32 with GSM modem - PPP over Serial (PPPoS) client example
Replies: 32
Views: 41527

Re: ESP32 with GSM modem - PPP over Serial (PPPoS) client example

I'm using your code as a base for my application. My project contains a ESP32 together with GPS and a SIM800L board. The target is to do GPS tracking through Wi-Fi and 3G. Is there some library that does the connection management, switching between GPRS and Wi-Fi (when the configured network is ava...
by markwj
Mon Mar 19, 2018 8:14 am
Forum: ESP32 IDF
Topic: Debugging wifi connection issues
Replies: 3
Views: 1682

Re: Debugging wifi connection issues

I'm wondering if you made a list of the three bssids corresponding to your three access points and tried each of them in turn. Does one show the delay and the others don't? If I connect using specific BSSIDs, two show the delay and one doesn't. My questions is more in general about debugging this. ...
by markwj
Sun Mar 18, 2018 12:47 pm
Forum: ESP32 IDF
Topic: Debugging wifi connection issues
Replies: 3
Views: 1682

Debugging wifi connection issues

I'm having a problem where sometimes it takes a long time (a minute or two) to connect to wifi. My setup is I have 3 access points, distributed around the house, and all have the same SSID and are broadcasting on different channels: If I force connection to one particular AP (by setting wifi_sta_cfg...
by markwj
Thu Mar 08, 2018 3:52 am
Forum: ESP32 IDF
Topic: [SOLVED] Non Volatile RAM that survives resets
Replies: 5
Views: 2807

Re: Non Volatile RAM that survives resets

Final solution that worked for me (documented here for posterity): A .ld file in the main project component: SECTIONS { .rtc.noload (NOLOAD) : { . = ALIGN(4); *(.rtc.noload) /* .rtc.noload section */ . = ALIGN(4); } > rtc_slow_seg } Add "-T <my-ld-file>" to COMPONENT_ADD_LDFLAGS in the main componen...
by markwj
Wed Mar 07, 2018 1:20 pm
Forum: ESP32 IDF
Topic: [SOLVED] Non Volatile RAM that survives resets
Replies: 5
Views: 2807

Re: Non Volatile RAM that survives resets

Answering my own question, I found a 'hacky' way of doing this in GCC: https://community.nxp.com/docs/DOC-328171 But this means modifying: components//esp32/ld/esp32.common.ld to add: .rtc.noload (NOLOAD) : { . = ALIGN(4); *(.rtc.noload) /* .rtc.noload section */ . = ALIGN(4); } > rtc_slow_seg and t...
by markwj
Wed Mar 07, 2018 11:40 am
Forum: ESP32 IDF
Topic: [SOLVED] Non Volatile RAM that survives resets
Replies: 5
Views: 2807

[SOLVED] Non Volatile RAM that survives resets

My requirement is for a non volatile RAM to store state between resets of the CPU. I would prefer it go to zero (or whatever) on a power cycle, but other than (deep sleep, software resets, watchdog timer resets, crash resets, etc) I need to retain contents. I'm aware of RTC_DATA_ATTR, but the compon...
by markwj
Thu Mar 01, 2018 1:07 am
Forum: General Discussion
Topic: How to override or detect SNTP_SET_SYSTEM_TIME_US?
Replies: 5
Views: 2143

Re: How to override or detect SNTP_SET_SYSTEM_TIME_US?

I have implemented something to deal with this in a standard way, and it works well for my use-case. I ended up simply moving the SNTP_SET_SYSTEM_TIME_US(t, us) into a sntp_setsystemtime_us(u32_t t, u32_t us) weak linked function (as well as doing the same with SNTP_SET_SYSTEM_TIME and sntp_setsyste...
by markwj
Thu Mar 01, 2018 1:06 am
Forum: ESP32 IDF
Topic: Any way to override ESP IDF constant #defines
Replies: 9
Views: 2428

Re: Any way to override ESP IDF constant #defines

Thanks for the advise, and pointers. I have implemented something along the lines you propose, and it works well for my use-case. I ended up simply moving the SNTP_SET_SYSTEM_TIME_US(t, us) into a sntp_setsystemtime_us(u32_t t, u32_t us) weak linked function (as well as doing the same with SNTP_SET_...
by markwj
Tue Feb 27, 2018 7:26 am
Forum: ESP32 IDF
Topic: Any way to override ESP IDF constant #defines
Replies: 9
Views: 2428

Re: Any way to override ESP IDF constant #defines

OneTwo wrote:Have you tried with

Code: Select all

#ifdef X
#undef X 
// OR 
#define X = Y
#define DEF_OVERWRITTEN
#else
...
#endif
Yes. That works for our code, but doesn't seem to work for the components in the ESP IDF code tree. The #define is used inside the lwip sntp component, not in our code.
by markwj
Tue Feb 27, 2018 7:25 am
Forum: ESP32 IDF
Topic: Any way to override ESP IDF constant #defines
Replies: 9
Views: 2428

Re: Any way to override ESP IDF constant #defines

That would be fantastic, your PR will probably be accepted! Some kind of weak-linked "after SNTP update" function, which is a no-op in the LWIP component but can be implemented to do something in the project, could work well. Let me know if you'd like me to elaborate on this suggestion. My use case...

Go to advanced search