Ir al contenido principal

Errores TLS de la tarjeta SIM de BirdWeather PUC

TLS y HTTP_CLIENT pueden aparecer al intentar conectarse.


Parece ser un problema de conexión TLS/HTTP específico de los proveedores de red, ya que el dispositivo funciona en otras redes. El problema probablemente radica en el protocolo de enlace TLS/SSL del dispositivo con el servidor, que está fallando. Incluso si el módem se conecta correctamente a la red 4G, el dispositivo aún necesita crear un túnel seguro hacia el servidor de BirdWeather. Es aquí donde el proceso se interrumpe.

Los errores del registro "esp-tls: Failed to open new connection in specified timeout" y "HTTP_CLIENT: Connection failed, sock < 0" indican que el dispositivo no puede establecer una conexión TCP/IP con el servidor. No se trata de un problema con la configuración del módem o la capacidad de la tarjeta SIM para conectarse a la red celular, sino de un problema con la capacidad del dispositivo para alcanzar el destino previsto a través de esa red.


Resolución

Algunas redes como Three y Vodafone pueden tener problemas con un tamaño de registro TLS mayor (por ejemplo, un tamaño de registro TLS de 16 KB). Compruebe si el dispositivo puede usar un tamaño TLS menor y seleccione esa opción. Si no puede reducir el tamaño del registro, póngase en contacto directamente con el fabricante del dispositivo y explíquele que para poder conectarse necesita un tamaño de búfer TLS reducido.

Ejemplos de salida

I (13790) PUC-APP: serverTime - 2025-08-01T16:00:39.709Z I (13800) PUC-APP: check_set_time_from_server - 08-01-2025 16:00:39 I (13810) PUC-APP: Updating System Time & RTC_DS3231 from Server Time - 2025 7 1 I (13810) PUC-APP: Start - register_puc ( ) - 20250801_160039 I (13820) MAC address: MAC address: 7c:df:a1:f9:91:4c I (13830) PUC-APP: macAddress - 7c:DF:A1:F9:91:4C I (13830) PUC-APP: json_string { [8C"macAddress":[3C"7c:DF:A1:F9:91:4C", [8C"puc":[2Ctrue, [8C"hwVersion":[4C"V8", [8C"gpsModel":[5C"L86", [8C"bootCount":[4C1501, [8C"fwVersion":[4C"1.63" } [33mW (74020) HTTP_CLIENT: Connection timed out before data was ready! [31mE (74020) PUC-APP: (BirdWeather) Error esp_http_client_perform ESP_ERR_HTTP_EAGAIN [32mI (74020) PUC-APP: HTTP_EVENT_DISCONNECTED [33mW (74030) PUC-APP: Not Connected to Server -- Loading SPIFFS and NVRAM

W (73890) esp-tls: Failed to open new connection in specified timeout  E (73890) transport_base: Failed to open a new connection  E (73890) HTTP_CLIENT: Connection failed, sock < 0  E (73890) PUC-APP: (BirdWeather) Error esp_http_client_perform ESP_ERR_HTTP_CONNECT  I (73900) PUC-APP: HTTP_EVENT_DISCONNECTED  W (73910) PUC-APP: Not Connected to Server -- Loading SPIFFS and NVRAM
¿Ha quedado contestada tu pregunta?