Search found 90 matches

by markwj
Thu Mar 29, 2018 6:10 am
Forum: ESP-IDF
Topic: autoincreasing build number
Replies: 5
Views: 8611

Re: autoincreasing build number

Have a look here for how we do it on ESP32: https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/tree/master/vehicle/OVMS.V3/main Look in component.mk and ovms_version.{h,cpp}. We don't use incrementing build numbers (but wouldn't be hard to adapt to that), but instead the output of: git...
by markwj
Thu Mar 22, 2018 1:46 pm
Forum: ESP-IDF
Topic: Debugging wifi connection issues
Replies: 3
Views: 7174

Re: Debugging wifi connection issues

I've managed to narrow this down by setting the bsid in the station config structure. There are four APs with the same SSID showing up in scans, and the problem always seems to be the AP with the best RSSI (presumably the first in the list). It is about 8feet away from the ESP32. Here are the logs: ...
by markwj
Thu Mar 22, 2018 1:28 am
Forum: Showcase
Topic: ESP32 with GSM modem - PPP over Serial (PPPoS) client example
Replies: 34
Views: 208427

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

How do I put both interfaces up in the same time and set which one is the default for (netif)? Have a look here: https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/blob/master/vehicle/OVMS.V3/main/ovms_netmanager.cpp Function OvmsNetManager::PrioritiseAndIndicate(). The approach we us...
by markwj
Tue Mar 20, 2018 4:06 am
Forum: Showcase
Topic: ESP32 with GSM modem - PPP over Serial (PPPoS) client example
Replies: 34
Views: 208427

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: ESP-IDF
Topic: Debugging wifi connection issues
Replies: 3
Views: 7174

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: ESP-IDF
Topic: Debugging wifi connection issues
Replies: 3
Views: 7174

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: ESP-IDF
Topic: [SOLVED] Non Volatile RAM that survives resets
Replies: 8
Views: 18449

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: ESP-IDF
Topic: [SOLVED] Non Volatile RAM that survives resets
Replies: 8
Views: 18449

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: ESP-IDF
Topic: [SOLVED] Non Volatile RAM that survives resets
Replies: 8
Views: 18449

[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: 7788

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...