Search found 18 matches

by eliott
Mon Oct 17, 2022 9:35 pm
Forum: ESP-IDF
Topic: i2c_master_cmd_begin Timeout Error lasting 1000 ticks, despite much shorter timeout setting
Replies: 2
Views: 1344

Re: i2c_master_cmd_begin Timeout Error lasting 1000 ticks, despite much shorter timeout setting

At my side the problem has been solved by enable interrupts: ESP_INTR_FLAG_INTRDISABLED is not OK

This works:

Code: Select all

i2c_error=i2c_driver_install(I2C_NUM_0, I2C_MODE_MASTER,0,0,ESP_INTR_FLAG_LOWMED);
by eliott
Mon Oct 17, 2022 8:39 pm
Forum: ESP-IDF
Topic: i2c_master_cmd_begin Timeout Error lasting 1000 ticks, despite much shorter timeout setting
Replies: 2
Views: 1344

Re: i2c_master_cmd_begin Timeout Error lasting 1000 ticks, despite much shorter timeout setting

Hello, I have a the same problem and I think it's related to master write at first. My signal shows that the master I2C doesn't transmit the 9th bit for slave ACK. My slave send an ACK but the master timout after the eighth bit. You can see on the attached image that my slave maintain ACK. Then afte...
by eliott
Thu Aug 12, 2021 6:03 pm
Forum: ESP32 Arduino
Topic: ESP32-C3 serial1 not working
Replies: 5
Views: 12890

Re: ESP32-C3 serial1 not working

Last test: OK: char ltmp[20]; sprintf(ltmp,"UART1 ready\r\n"); uart_t* p_uart = uartBegin(0, 115200, SERIAL_8N1 , 2, 3, 100, 0, 122); uartWriteBuf(p_uart, (uint8_t*)ltmp, 12); Serial.println("Waiting a client connection to notify..."); [ 624][E][esp32-hal-cpu.c:107] addApbChangeCallback(): duplicate...
by eliott
Wed Aug 11, 2021 3:39 pm
Forum: ESP32 Arduino
Topic: ESP32-C3 serial1 not working
Replies: 5
Views: 12890

Re: ESP32-C3 serial1 not working

Hello, I started new projet from scratch. With Arduino IDE this code doesn't work (GetChipID example code) void setup() { Serial.begin(115200); Serial1.begin(115200,SERIAL_8N1,3,2); //Serial1.begin(115200,SERIAL_8N1,2,3);//tried both } void loop() { for(int i=0; i<17; i=i+8) { chipId |= ((ESP.getEfu...
by eliott
Wed Aug 11, 2021 2:29 pm
Forum: ESP32 Arduino
Topic: ESP32-C3 serial1 not working
Replies: 5
Views: 12890

ESP32-C3 serial1 not working

Hello, I'm trying to use the second serial port on my new ESP32-C3-WROOM-02 board. The main port UART0 is OK and I bootload the program from Arduino IDE, and I receive debug informations. GPIO are working well to, I only need to send data from UART1 to finish my project ! The project source is from ...
by eliott
Sat Mar 27, 2021 12:02 pm
Forum: ESP-IDF
Topic: Access to ESP WEB SERVER through VPN crash HTTP server
Replies: 1
Views: 2163

Access to ESP WEB SERVER through VPN crash HTTP server

Hello, I have a VPN server on my internet connexion via my TP-LINK router on Open Wrt. All the internet trafic is redirected through VPN. The OpenWrt web gui is okay via the VPN. When I try to access to esp device via my VPN i got this error: httpd_txrx: httpd_sock_err: error in send : 0 Then the we...
by eliott
Tue Feb 02, 2021 8:16 pm
Forum: ESP-IDF
Topic: Why timezone is inverted ?
Replies: 2
Views: 3487

Re: Why timezone is inverted ?

Thank you.
by eliott
Sat Jan 30, 2021 6:35 pm
Forum: ESP-IDF
Topic: Why timezone is inverted ?
Replies: 2
Views: 3487

Why timezone is inverted ?

Hello, there is my function to set my timezone for ntp: void update_system_timezone(int8_t zone) { char timezone[10]; if(zone<0) sprintf(timezone,"UTC%i",zone); else sprintf(timezone,"UTC+%i",zone); setenv("TZ", timezone, 1); tzset(); ESP_LOGI(TAG,"Timezone set to %s",timezone); } and init: void upd...
by eliott
Fri Jan 29, 2021 7:17 pm
Forum: ESP-IDF
Topic: Problems with sockets and HTTP server
Replies: 5
Views: 4826

Re: Problems with sockets and HTTP server

Hello, I changed my code with minimum function for udp_app. Working with call function in main. I put my previous code, working now, I really don't hunderstand the difference, certainly a full clean helped. I noticed that my bind is working once, after sending from "PORT_FROM" = 2100 the port is inc...