---
# System prepended metadata

title: Disconnect event problem

---

# Disconnect event problem

Problema que se da despues de cargar la main app de sentrisense v1.8 desde FOTA (teniendo defalt app v1.3). Por ahora solo se da cuando es la primera vez que intentamos registrar el SIM chip


```
I (193066) pls60w: Send cmd "Set flow control off" OK
I (193366) communications:interfaces:esp_modem: cmd debug: AT&W
I (193466) communications:interfaces:esp_modem: line debug: OK

I (193466) comms::iface::gsm_modem: Module: PLS62-W
I (193466) comms::iface::gsm_modem: Operator: "AR - Movistar"
I (193466) comms::iface::gsm_modem: IMEI: 351249953817382
I (193476) comms::iface::gsm_modem: IMSI: 295050901836615
I (193476) comms::iface::gsm_modem: ICCID: 89883030000066751261
I (193486) communications:interfaces:esp_modem: cmd debug: AT+CSQ
I (193566) communications:interfaces:esp_modem: line debug: +CSQ: 25,99

I (193666) communications:interfaces:esp_modem: line debug: OK

I (193666) pls60w: Send cmd "Get signal quality" OK
I (193966) pls60w: Signal quality: 25:99
I (193966) comms::iface::gsm_modem: rssi: -63, ber: 99
I (193966) comms::main: Initialization SUCCESS (GSM_MODEM_IFACE).
I (193966) comms::main: Connecting interface GSM_MODEM_IFACE.
I (193976) comms::main: Trying to connect interface GSM_MODEM_IFACE.
I (193986) communications:interfaces:esp_modem: cmd debug: AT+CGDCONT=1,"IP","em"

I (194076) communications:interfaces:esp_modem: line debug: OK                                                                              [353/1922]

I (194076) communications:interfaces:esp_modem: cmd debug: ATD*99#
I (194176) communications:interfaces:esp_modem: line debug: CONNECT

I (194176) pls60w: Send cmd "Enter data mode" OK
I (194476) comms::iface::gsm_modem: Modem PPP Started
I (266576) esp-netif_lwip-ppp: Connection lost
I (266576) comms::iface::gsm_modem: Modem Disconnect from PPP Server
ESP_ERROR_CHECK_WITHOUT_ABORT failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x40087427
0x40087427: tx_pwctrl_background at /home/cff/gittree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7_cal.c:2714

file: "/project/components/comms/src/comms.c" line 546
func: comms_iface_connect_safe
expression: rv
I (433976) communications:interfaces:esp_modem: cmd debug: +++
I (433986) comms::iface::gsm_modem: Modem PPP Stopped
I (433986) esp-netif_lwip-ppp: User interrupt
E (493996) communications:interfaces:esp_modem: esp_modem_dte_recv_wait(213): process command timeout
E (493996) pls60w: pls60w_send_cmd(128): Send cmd "Exit data mode" Failed
E (494296) pls60w: _set_working_mode(206): Changing to command mode failed
E (494296) communications:interfaces:esp_modem: esp_modem_dte_change_mode(330): set new working mode:0 failed
E (494296) communications:interfaces:esp_modem: esp_modem_stop_ppp(516): enter command mode failed
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x4008743c
0x4008743c: esp_reset_reason_set_hint at /opt/esp/idf/components/esp_system/port/esp32/reset_reason.c:106 (discriminator 1)

file: "/project/components/comms/src/interfaces/gsm_modem/iface_gsm_modem.c" line 283
func: iface_gsm_modem_disconnect
expression: esp_modem_stop_ppp(ctx->dte)

abort() was called at PC 0x4008743f on core 0
0x4008743f: esp_reset_reason_set_hint at /opt/esp/idf/components/esp_system/port/esp32/reset_reason.c:106 (discriminator 1)

Backtrace:0x400881ee:0x3ffc44c0 0x400887d1:0x3ffc44e0 0x4008ed5a:0x3ffc4500 0x4008743f:0x3ffc4570 0x400dfcf3:0x3ffc4590 0x400dea4d:0x3ffc45b0 0x400ded
c0:0x3ffc45d0 0x400d7653:0x3ffc45f0 0x400d687d:0x3ffc4620 0x400d5240:0x3ffc4660
0x400881ee: xRingbufferSend at /opt/esp/idf/components/esp_ringbuf/ringbuf.c:1001 (discriminator 2)

0x400887d1: esp_panic_handler at /opt/esp/idf/components/esp_system/panic.c:214 (discriminator 3)

0x4008ed5a: sta_input at ??:?

0x4008743f: esp_reset_reason_set_hint at /opt/esp/idf/components/esp_system/port/esp32/reset_reason.c:106 (discriminator 1)

0x400dfcf3: coap_print_addr at /opt/esp/idf/components/coap/port/coap_debug.c:180

0x400dea4d: json_tools_add_field_str at /project/components/telemetry/src/json_tools.c:63

0x400dedc0: cbor_encode_text_stringz at /opt/esp/idf/components/cbor/port/include/../../tinycbor/src/cbor.h:227
 (inlined by) _push_string at /project/components/tools/src/cbor_dict.c:214

0x400d7653: iface_esp_wifi_init at /project/components/comms/src/interfaces/esp_wifi/iface_esp_wifi.c:60

0x400d687d: driver_orientation_init at /project/components/sensors/src/driver_orientation.c:168 (discriminator 1)

0x400d5240: get_available_int at /opt/esp/idf/components/esp32/intr_alloc.c:471
```
