Search found 8 matches

by alqine
Sun Jun 12, 2022 4:03 pm
Forum: ESP-IDF
Topic: SNTP returns same value each time
Replies: 4
Views: 2132

Re: SNTP returns same value each time

Hi gtjoseph, yes, it does leave the loop and after that, the user provided callback is called. I suspect, there is some error when parsing received values. For some reason lwip_ntohl is macro for lwip_htonl . Should not that be individual function transforming from big-endian (received from NTP serv...
by alqine
Fri Jun 10, 2022 2:17 pm
Forum: ESP-IDF
Topic: SNTP returns same value each time
Replies: 4
Views: 2132

SNTP returns same value each time

Hi all, I have SNTP client up and running on my ESP32C3, but it returns the same value each time time is synced. // Callback for time-sync event void time_sync_cb(struct timeval *tv) { printf("Time sync finished: %lld\n", tv->tv_sec); } void sntp_start() { printf("SNTP starting\n"); // Setup TimeZon...
by alqine
Fri Oct 01, 2021 12:08 pm
Forum: ESP-IDF
Topic: JTAG debugging in Eclipse
Replies: 0
Views: 7374

JTAG debugging in Eclipse

Hi guys, for last two weeks I am battling with Eclipse. What I want to do is enable JTAG debugging. My JTAG adapter of choice is generic FT232H. I downloaded brand new Eclipse CDT 2021-06, since 2021-09 does not work yet . Then I proceded with ESP-IDF plugin installation and Debug Setup . I had exis...
by alqine
Fri Oct 01, 2021 9:58 am
Forum: ESP-IDF
Topic: Can't debug using J-Link Pro + OpenOCD, it works one or two times and then starts failing always
Replies: 1
Views: 1976

Re: Can't debug using J-Link Pro + OpenOCD, it works one or two times and then starts failing always

Hi, I have similar problem. I downloaded brand new Eclipse CDT 2021-06, since 2021-09 does not work yet . Then I proceded with ESP-IDF plugin installation and Debug Setup . I have existing project, so I created new project from template given by the editor and then copy-pasted my existing code into ...
by alqine
Thu Jul 29, 2021 11:47 am
Forum: ESP-IDF
Topic: FreeRTOS task integration
Replies: 1
Views: 1890

FreeRTOS task integration

Hi guys, I am programming a device, which should get some values from sensors and send them over the MQTT protocol back to the server. Right now, there are two ways how to connect to the internet - external LTE modem over pppos and WiFi integrated right on ESP32. I created two tasks - MQTT and CONN....
by alqine
Sat Jul 03, 2021 12:34 pm
Forum: ESP-IDF
Topic: I2C wire library porting on ESP-IDF
Replies: 7
Views: 8281

Re: I2C wire library porting on ESP-IDF

There is existing "library" written for ESP-IDF: https://github.com/UncleRus/esp-idf-lib ... nts/ina219
by alqine
Thu Jul 01, 2021 10:05 am
Forum: ESP-IDF
Topic: I2C wire library porting on ESP-IDF
Replies: 7
Views: 8281

Re: I2C wire library porting on ESP-IDF

I would check datasheet for the sensor. Basically you are interested in sensor's I2C address. Some devices have only one pre-defined address. Some have multiple, which are configurable by the user (switch on the device or different wiring of the sensor itself). Next, check this example of I2C librar...
by alqine
Thu Jun 24, 2021 8:39 pm
Forum: ESP-IDF
Topic: Switch from WiFi to LTE modem when WiFi connection is lost
Replies: 0
Views: 1682

Switch from WiFi to LTE modem when WiFi connection is lost

Hi all, I am trying to write code based on ESP-IDF library, which should do two things. First of all, connect to WiFi network specified by settings. And then, when connection is lost, device should automatically switch to LTE modem. However there are few problems I am facing: 1) I am not sure what i...