u-blox / XPLR-HPG-software

Apache License 2.0
13 stars 2 forks source link

Cellular NTRIP example occasionally fails to connect #10

Closed fng97 closed 9 months ago

fng97 commented 1 year ago

I have observed an issue where NTRIP sometimes fails to connect. The first time I ran this example, it connected successfully. The next day, the first two times I tried to run it (with SD card logging enabled), it failed to connect. However, subsequent tries (manually resetting the board using the reset button) worked most of the time. I'm not sure, but I get the impression it happens more often the first time the program starts after hooking up the dev board.

Environment

Reproduction Steps

From XPLR-HPG-SW directory in a clean repo:

  1. Select hpg_cell_ntrip_correction in XPLR-HPG-SW/CMakeLists.txt
  2. Get ubxlib: git submodule update --init
  3. Activate ESP-IDF environment: get_idf
  4. Configure the project: cmake -S . -B build -G Ninja
  5. Enter credentials using menuconfig: ninja -C build menuconfig
    1. Board: XPLR HPG2 C214
    2. Cellular APN
    3. NTRIP caster, mountpoint, username, and password
  6. In hpg_cell_ntrip_correction.c, enable logging (#define APP_SD_LOGGING_ENABLED 1U) and extend app time (#define APP_RUN_TIME_SEC (3*10*60)).
  7. Build the project: cmake --build build
  8. Flash the board: ESPPORT=/dev/cu.SLAB_USBtoUART ninja -C build flash

Terminal Outputs

Expand configure step (4) terminal output: ``` fng@Franciscos-MacBook-Pro XPLR-HPG-SW % cmake -S . -B build -G Ninja -- -----------Package Info--------- -- XPLR_HPG_SW_PATH is /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW -- XPLR_HPG_EXAMPLE_SELECTED: hpg_cell_ntrip_correction -- Loading source files... -- Loaded from: examples/cellular/04_hpg_cell_ntrip_correction -- IDF_TARGET not set, using default target: esp32 -- Found Git: /opt/homebrew/bin/git (found version "2.42.0") -- Component directory /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib does not contain a CMakeLists.txt file. No component will be added -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- The ASM compiler identification is GNU -- Found assembler: /Users/fng/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/fng/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Users/fng/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- Checking Python dependencies... /Users/fng/esp/esp-idf/tools/check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources Python requirements from /Users/fng/esp/esp-idf/requirements.txt are satisfied. -- -----------Board Info--------- -- IDF_TARGET = esp32 -- Board DIR = -- ---------Board Info End--------- -- -----------Project Info--------- -- Building Component: hpglib -- -----------Project Info--------- -- Building Component: xplr_mqtt -- -----------Project Info--------- -- Building Component: xplr_wifi_starter -- Project sdkconfig file /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig Loading defaults file /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig.defaults... CMake Deprecation Warning at /Users/fng/esp/esp-idf/components/mbedtls/mbedtls/CMakeLists.txt:23 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Found Python3: /Users/fng/.espressif/python_env/idf4.4_py3.10_env/bin/python3.10 (found version "3.10.2") found components: Interpreter -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success -- App "hpg_cell_ntrip_correction" version: v1.0-dirty -- Adding linker script /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld -- Adding linker script /Users/fng/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld -- -----------Board Info--------- -- IDF_TARGET = esp32 -- Board DIR = xplr-hpg2-c214 -- ---------Board Info End--------- -- -----------Project Info--------- -- Building Component: hpglib -- -----------Project Info End----- -- -----------Project Info--------- -- Building Example: HPG_CELL_NTRIP_CORRECTION -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_mqtt -- xplr_mqtt Component: build finished -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_wifi_starter -- xplr_wifi_starter: build finished -- -----------Project Info End----- -- Components: app_trace app_update asio boards bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap hpglib idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ubxlib ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xplr_mqtt xplr_wifi_starter xtensa -- Component paths: /Users/fng/esp/esp-idf/components/app_trace /Users/fng/esp/esp-idf/components/app_update /Users/fng/esp/esp-idf/components/asio /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/boards /Users/fng/esp/esp-idf/components/bootloader /Users/fng/esp/esp-idf/components/bootloader_support /Users/fng/esp/esp-idf/components/bt /Users/fng/esp/esp-idf/components/cbor /Users/fng/esp/esp-idf/components/cmock /Users/fng/esp/esp-idf/components/coap /Users/fng/esp/esp-idf/components/console /Users/fng/esp/esp-idf/components/cxx /Users/fng/esp/esp-idf/components/driver /Users/fng/esp/esp-idf/components/efuse /Users/fng/esp/esp-idf/components/esp-tls /Users/fng/esp/esp-idf/components/esp32 /Users/fng/esp/esp-idf/components/esp_adc_cal /Users/fng/esp/esp-idf/components/esp_common /Users/fng/esp/esp-idf/components/esp_eth /Users/fng/esp/esp-idf/components/esp_event /Users/fng/esp/esp-idf/components/esp_gdbstub /Users/fng/esp/esp-idf/components/esp_hid /Users/fng/esp/esp-idf/components/esp_http_client /Users/fng/esp/esp-idf/components/esp_http_server /Users/fng/esp/esp-idf/components/esp_https_ota /Users/fng/esp/esp-idf/components/esp_https_server /Users/fng/esp/esp-idf/components/esp_hw_support /Users/fng/esp/esp-idf/components/esp_ipc /Users/fng/esp/esp-idf/components/esp_lcd /Users/fng/esp/esp-idf/components/esp_local_ctrl /Users/fng/esp/esp-idf/components/esp_netif /Users/fng/esp/esp-idf/components/esp_phy /Users/fng/esp/esp-idf/components/esp_pm /Users/fng/esp/esp-idf/components/esp_ringbuf /Users/fng/esp/esp-idf/components/esp_rom /Users/fng/esp/esp-idf/components/esp_serial_slave_link /Users/fng/esp/esp-idf/components/esp_system /Users/fng/esp/esp-idf/components/esp_timer /Users/fng/esp/esp-idf/components/esp_websocket_client /Users/fng/esp/esp-idf/components/esp_wifi /Users/fng/esp/esp-idf/components/espcoredump /Users/fng/esp/esp-idf/components/esptool_py /Users/fng/esp/esp-idf/components/expat /Users/fng/esp/esp-idf/components/fatfs /Users/fng/esp/esp-idf/components/freemodbus /Users/fng/esp/esp-idf/components/freertos /Users/fng/esp/esp-idf/components/hal /Users/fng/esp/esp-idf/components/heap /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib /Users/fng/esp/esp-idf/components/idf_test /Users/fng/esp/esp-idf/components/ieee802154 /Users/fng/esp/esp-idf/components/jsmn /Users/fng/esp/esp-idf/components/json /Users/fng/esp/esp-idf/components/libsodium /Users/fng/esp/esp-idf/components/log /Users/fng/esp/esp-idf/components/lwip /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/04_hpg_cell_ntrip_correction/main /Users/fng/esp/esp-idf/components/mbedtls /Users/fng/esp/esp-idf/components/mdns /Users/fng/esp/esp-idf/components/mqtt /Users/fng/esp/esp-idf/components/newlib /Users/fng/esp/esp-idf/components/nghttp /Users/fng/esp/esp-idf/components/nvs_flash /Users/fng/esp/esp-idf/components/openssl /Users/fng/esp/esp-idf/components/openthread /Users/fng/esp/esp-idf/components/partition_table /Users/fng/esp/esp-idf/components/perfmon /Users/fng/esp/esp-idf/components/protobuf-c /Users/fng/esp/esp-idf/components/protocomm /Users/fng/esp/esp-idf/components/pthread /Users/fng/esp/esp-idf/components/sdmmc /Users/fng/esp/esp-idf/components/soc /Users/fng/esp/esp-idf/components/spi_flash /Users/fng/esp/esp-idf/components/spiffs /Users/fng/esp/esp-idf/components/tcp_transport /Users/fng/esp/esp-idf/components/tcpip_adapter /Users/fng/esp/esp-idf/components/tinyusb /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/platform/esp-idf/mcu/esp32/components/ubxlib /Users/fng/esp/esp-idf/components/ulp /Users/fng/esp/esp-idf/components/unity /Users/fng/esp/esp-idf/components/usb /Users/fng/esp/esp-idf/components/vfs /Users/fng/esp/esp-idf/components/wear_levelling /Users/fng/esp/esp-idf/components/wifi_provisioning /Users/fng/esp/esp-idf/components/wpa_supplicant /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_mqtt /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_wifi_starter /Users/fng/esp/esp-idf/components/xtensa -- Building project: hpg_cell_ntrip_correction -- -----------Package Info End--------- -- Configuring done (7.0s) -- Generating done (0.6s) -- Build files have been written to: /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build ```
Expand build step (6) terminal output: ``` fng@Franciscos-MacBook-Pro XPLR-HPG-SW % cmake --build build [0/1] Re-running CMake... -- -----------Package Info--------- -- XPLR_HPG_SW_PATH is /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW -- XPLR_HPG_EXAMPLE_SELECTED: hpg_cell_ntrip_correction -- Loading hpg_cell_ntrip_correction source files... -- Loaded from: examples/cellular/04_hpg_cell_ntrip_correction -- Component directory /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib does not contain a CMakeLists.txt file. No component will be added -- Building ESP-IDF components for target esp32 -- Checking Python dependencies... /Users/fng/esp/esp-idf/tools/check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources Python requirements from /Users/fng/esp/esp-idf/requirements.txt are satisfied. -- -----------Board Info--------- -- IDF_TARGET = esp32 -- Board DIR = -- ---------Board Info End--------- -- -----------Project Info--------- -- Building Component: hpglib -- -----------Project Info--------- -- Building Component: xplr_mqtt -- -----------Project Info--------- -- Building Component: xplr_wifi_starter -- Project sdkconfig file /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig Loading defaults file /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig.defaults... CMake Deprecation Warning at /Users/fng/esp/esp-idf/components/mbedtls/mbedtls/CMakeLists.txt:23 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- App "hpg_cell_ntrip_correction" version: v1.0-dirty -- Adding linker script /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld -- Adding linker script /Users/fng/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld -- -----------Board Info--------- -- IDF_TARGET = esp32 -- Board DIR = xplr-hpg2-c214 -- ---------Board Info End--------- -- -----------Project Info--------- -- Building Component: hpglib -- -----------Project Info End----- -- -----------Project Info--------- -- Building Example: HPG_CELL_NTRIP_CORRECTION -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_mqtt -- xplr_mqtt Component: build finished -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_wifi_starter -- xplr_wifi_starter: build finished -- -----------Project Info End----- -- Components: app_trace app_update asio boards bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap hpglib idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ubxlib ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xplr_mqtt xplr_wifi_starter xtensa -- Component paths: /Users/fng/esp/esp-idf/components/app_trace /Users/fng/esp/esp-idf/components/app_update /Users/fng/esp/esp-idf/components/asio /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/boards /Users/fng/esp/esp-idf/components/bootloader /Users/fng/esp/esp-idf/components/bootloader_support /Users/fng/esp/esp-idf/components/bt /Users/fng/esp/esp-idf/components/cbor /Users/fng/esp/esp-idf/components/cmock /Users/fng/esp/esp-idf/components/coap /Users/fng/esp/esp-idf/components/console /Users/fng/esp/esp-idf/components/cxx /Users/fng/esp/esp-idf/components/driver /Users/fng/esp/esp-idf/components/efuse /Users/fng/esp/esp-idf/components/esp-tls /Users/fng/esp/esp-idf/components/esp32 /Users/fng/esp/esp-idf/components/esp_adc_cal /Users/fng/esp/esp-idf/components/esp_common /Users/fng/esp/esp-idf/components/esp_eth /Users/fng/esp/esp-idf/components/esp_event /Users/fng/esp/esp-idf/components/esp_gdbstub /Users/fng/esp/esp-idf/components/esp_hid /Users/fng/esp/esp-idf/components/esp_http_client /Users/fng/esp/esp-idf/components/esp_http_server /Users/fng/esp/esp-idf/components/esp_https_ota /Users/fng/esp/esp-idf/components/esp_https_server /Users/fng/esp/esp-idf/components/esp_hw_support /Users/fng/esp/esp-idf/components/esp_ipc /Users/fng/esp/esp-idf/components/esp_lcd /Users/fng/esp/esp-idf/components/esp_local_ctrl /Users/fng/esp/esp-idf/components/esp_netif /Users/fng/esp/esp-idf/components/esp_phy /Users/fng/esp/esp-idf/components/esp_pm /Users/fng/esp/esp-idf/components/esp_ringbuf /Users/fng/esp/esp-idf/components/esp_rom /Users/fng/esp/esp-idf/components/esp_serial_slave_link /Users/fng/esp/esp-idf/components/esp_system /Users/fng/esp/esp-idf/components/esp_timer /Users/fng/esp/esp-idf/components/esp_websocket_client /Users/fng/esp/esp-idf/components/esp_wifi /Users/fng/esp/esp-idf/components/espcoredump /Users/fng/esp/esp-idf/components/esptool_py /Users/fng/esp/esp-idf/components/expat /Users/fng/esp/esp-idf/components/fatfs /Users/fng/esp/esp-idf/components/freemodbus /Users/fng/esp/esp-idf/components/freertos /Users/fng/esp/esp-idf/components/hal /Users/fng/esp/esp-idf/components/heap /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib /Users/fng/esp/esp-idf/components/idf_test /Users/fng/esp/esp-idf/components/ieee802154 /Users/fng/esp/esp-idf/components/jsmn /Users/fng/esp/esp-idf/components/json /Users/fng/esp/esp-idf/components/libsodium /Users/fng/esp/esp-idf/components/log /Users/fng/esp/esp-idf/components/lwip /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/04_hpg_cell_ntrip_correction/main /Users/fng/esp/esp-idf/components/mbedtls /Users/fng/esp/esp-idf/components/mdns /Users/fng/esp/esp-idf/components/mqtt /Users/fng/esp/esp-idf/components/newlib /Users/fng/esp/esp-idf/components/nghttp /Users/fng/esp/esp-idf/components/nvs_flash /Users/fng/esp/esp-idf/components/openssl /Users/fng/esp/esp-idf/components/openthread /Users/fng/esp/esp-idf/components/partition_table /Users/fng/esp/esp-idf/components/perfmon /Users/fng/esp/esp-idf/components/protobuf-c /Users/fng/esp/esp-idf/components/protocomm /Users/fng/esp/esp-idf/components/pthread /Users/fng/esp/esp-idf/components/sdmmc /Users/fng/esp/esp-idf/components/soc /Users/fng/esp/esp-idf/components/spi_flash /Users/fng/esp/esp-idf/components/spiffs /Users/fng/esp/esp-idf/components/tcp_transport /Users/fng/esp/esp-idf/components/tcpip_adapter /Users/fng/esp/esp-idf/components/tinyusb /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/platform/esp-idf/mcu/esp32/components/ubxlib /Users/fng/esp/esp-idf/components/ulp /Users/fng/esp/esp-idf/components/unity /Users/fng/esp/esp-idf/components/usb /Users/fng/esp/esp-idf/components/vfs /Users/fng/esp/esp-idf/components/wear_levelling /Users/fng/esp/esp-idf/components/wifi_provisioning /Users/fng/esp/esp-idf/components/wpa_supplicant /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_mqtt /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_wifi_starter /Users/fng/esp/esp-idf/components/xtensa -- Building project: hpg_cell_ntrip_correction -- -----------Package Info End--------- -- Configuring done (5.2s) -- Generating done (0.7s) -- Build files have been written to: /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build [3/1212] Generating ../../partition_table/partition-table.bin Partition table binary generated. Contents: ******************************************************************************* # ESP-IDF Partition Table # Name, Type, SubType, Offset, Size, Flags nvs,data,nvs,0x9000,24K, phy_init,data,phy,0xf000,4K, factory,app,factory,0x10000,3M, ******************************************************************************* [338/1212] Performing configure step for 'bootloader' -- Found Git: /opt/homebrew/bin/git (found version "2.42.0") -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- The ASM compiler identification is GNU -- Found assembler: /Users/fng/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/fng/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Users/fng/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig -- Adding linker script /Users/fng/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /Users/fng/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /Users/fng/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld -- Adding linker script /Users/fng/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld -- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa -- Component paths: /Users/fng/esp/esp-idf/components/bootloader /Users/fng/esp/esp-idf/components/bootloader_support /Users/fng/esp/esp-idf/components/efuse /Users/fng/esp/esp-idf/components/esp32 /Users/fng/esp/esp-idf/components/esp_common /Users/fng/esp/esp-idf/components/esp_hw_support /Users/fng/esp/esp-idf/components/esp_rom /Users/fng/esp/esp-idf/components/esp_system /Users/fng/esp/esp-idf/components/esptool_py /Users/fng/esp/esp-idf/components/freertos /Users/fng/esp/esp-idf/components/hal /Users/fng/esp/esp-idf/components/log /Users/fng/esp/esp-idf/components/bootloader/subproject/main /Users/fng/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /Users/fng/esp/esp-idf/components/newlib /Users/fng/esp/esp-idf/components/partition_table /Users/fng/esp/esp-idf/components/soc /Users/fng/esp/esp-idf/components/spi_flash /Users/fng/esp/esp-idf/components/xtensa -- Configuring done (17.4s) -- Generating done (0.1s) -- Build files have been written to: /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader [421/1212] Performing build step for 'bootloader' [1/97] Generating project_elf_src_esp32.c [2/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj [3/97] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32.c.obj [4/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/adc_periph.c.obj [5/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj [6/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dac_periph.c.obj [7/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj [8/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2c_periph.c.obj [9/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj [10/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj [11/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cpu_hal.c.obj [12/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/interrupts.c.obj [13/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2s_periph.c.obj [14/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/lcd_periph.c.obj [15/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/pcnt_periph.c.obj [16/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/ledc_periph.c.obj [17/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/mcpwm_periph.c.obj [18/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rmt_periph.c.obj [19/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_io_periph.c.obj [20/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sigmadelta_periph.c.obj [21/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj [22/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj [23/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj [24/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/timer_periph.c.obj [25/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/uart_periph.c.obj [26/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/touch_sensor_periph.c.obj [27/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj [28/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj [29/97] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32/spi_flash_rom_patch.c.obj [30/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj [31/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32.c.obj [32/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj [33/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj [34/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj [35/97] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj [36/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj [37/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj [38/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj [39/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj [40/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32.c.obj [41/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj [42/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj [43/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj [44/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32.c.obj [45/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_soc.c.obj [46/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj [47/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj [48/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj [49/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj [50/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj [51/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj [52/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_fields.c.obj [53/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj [54/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj [55/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj [56/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_utility.c.obj [57/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj [58/97] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj [59/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api_key_esp32.c.obj [60/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj [61/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj [62/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_pm.c.obj [63/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_init.c.obj [64/97] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj [65/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj [66/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/chip_info.c.obj [67/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj [68/97] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj [69/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_wdt.c.obj [70/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk_init.c.obj [71/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_sleep.c.obj [72/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_time.c.obj [73/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj [74/97] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj [75/97] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj [76/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk.c.obj [77/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj [78/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj [79/97] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj [80/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj [81/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj [82/97] Linking C static library esp-idf/log/liblog.a [83/97] Linking C static library esp-idf/esp_rom/libesp_rom.a [84/97] Linking C static library esp-idf/esp_common/libesp_common.a [85/97] Linking C static library esp-idf/xtensa/libxtensa.a [86/97] Linking C static library esp-idf/esp_hw_support/libesp_hw_support.a [87/97] Linking C static library esp-idf/esp_system/libesp_system.a [88/97] Linking C static library esp-idf/efuse/libefuse.a [89/97] Linking C static library esp-idf/bootloader_support/libbootloader_support.a [90/97] Linking C static library esp-idf/spi_flash/libspi_flash.a [91/97] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a [92/97] Linking C static library esp-idf/soc/libsoc.a [93/97] Linking C static library esp-idf/hal/libhal.a [94/97] Linking C static library esp-idf/main/libmain.a [95/97] Linking C executable bootloader.elf [96/97] Generating binary image from built executable esptool.py v3.3.2-dev Creating esp32 image... Merged 1 ELF section Successfully created esp32 image. Generated /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader/bootloader.bin [97/97] cd /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader/esp-idf/esptool_py && python /Users/fng/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader/bootloader.bin Bootloader binary size 0x6330 bytes. 0xcd0 bytes (11%) free. [1211/1212] Generating binary image from built executable esptool.py v3.3.2-dev Creating esp32 image... Merged 2 ELF sections Successfully created esp32 image. Generated /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/hpg_cell_ntrip_correction.bin [1212/1212] cd /Users/fng/Downloads/XPLR-HP...-HPG-SW/build/hpg_cell_ntrip_correction.bi hpg_cell_ntrip_correction.bin binary size 0x762e0 bytes. Smallest app partition is 0x300000 bytes. 0x289d20 bytes (85%) free. ```
Expand flashing step (7) terminal output: ``` fng@Franciscos-MacBook-Pro XPLR-HPG-SW % ESPPORT=/dev/cu.SLAB_USBtoUART ninja -C build flash ninja: Entering directory `build' [1/5] cd /Users/fng/Downloads/XPLR-HPG-soft...-HPG-SW/build/hpg_cell_ntrip_correction.bi hpg_cell_ntrip_correction.bin binary size 0x762e0 bytes. Smallest app partition is 0x300000 bytes. 0x289d20 bytes (85%) free. [2/5] Performing build step for 'bootloader' [1/1] cd /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader/esp-idf/esptool_py && python /Users/fng/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /Users/fng/Downloads/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader/bootloader.bin Bootloader binary size 0x6330 bytes. 0xcd0 bytes (11%) free. [4/5] cd /Users/fng/esp/esp-idf/components/...components/esptool_py/run_serial_tool.cmak Note: python /Users/fng/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 will attempt to set baud rate automatically. To specify a baud rate, set the ESPBAUD environment variable. esptool.py esp32 -p /dev/cu.SLAB_USBtoUART --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 8MB 0x1000 bootloader/bootloader.bin 0x10000 hpg_cell_ntrip_correction.bin 0x8000 partition_table/partition-table.bin esptool.py v3.3.2-dev Serial port /dev/cu.SLAB_USBtoUART Connecting..... Chip is ESP32-D0WD-V3 (revision 3) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: e8:31:cd:da:68:c0 Uploading stub... Running stub... Stub running... Configuring flash size... Flash will be erased from 0x00001000 to 0x00007fff... Flash will be erased from 0x00010000 to 0x00086fff... Flash will be erased from 0x00008000 to 0x00008fff... Compressed 25392 bytes to 15881... Writing at 0x00001000... (100 %) Wrote 25392 bytes (15881 compressed) at 0x00001000 in 1.7 seconds (effective 121.9 kbit/s)... Hash of data verified. Compressed 484064 bytes to 272737... Writing at 0x00010000... (5 %) Writing at 0x0001f213... (11 %) Writing at 0x0002ca6e... (17 %) Writing at 0x000328a6... (23 %) Writing at 0x00037e9d... (29 %) Writing at 0x0003de6f... (35 %) Writing at 0x00043c3c... (41 %) Writing at 0x0004970a... (47 %) Writing at 0x0004f22d... (52 %) Writing at 0x00054a7b... (58 %) Writing at 0x0005a133... (64 %) Writing at 0x000606cd... (70 %) Writing at 0x00066693... (76 %) Writing at 0x0006c5a8... (82 %) Writing at 0x00075bdf... (88 %) Writing at 0x0007c66a... (94 %) Writing at 0x000821d7... (100 %) Wrote 484064 bytes (272737 compressed) at 0x00010000 in 24.1 seconds (effective 160.4 kbit/s)... Hash of data verified. Compressed 3072 bytes to 105... Writing at 0x00008000... (100 %) Wrote 3072 bytes (105 compressed) at 0x00008000 in 0.0 seconds (effective 515.9 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin... ```

I have observed the following issue:

An issue with NTRIP not connecting (in this case after hitting the reset button): ``` ets Jul 29 2019 12:21:46 rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:6660 load:0x40078000,len:14848 ho 0 tail 12 room 4 load:0x40080400,len:3792 0x40080400: _init at ??:? entry 0x40080694 I (29) boot: ESP-IDF v4.4.2 2nd stage bootloader I (29) boot: compile time 11:21:28 I (29) boot: chip revision: 3 I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 0 I (39) boot.esp32: SPI Speed : 40MHz I (44) boot.esp32: SPI Mode : DIO I (48) boot.esp32: SPI Flash Size : 8MB I (53) boot: Enabling RNG early entropy source... I (58) boot: Partition Table: I (62) boot: ## Label Usage Type ST Offset Length I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (76) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (84) boot: 2 factory factory app 00 00 00010000 00300000 I (91) boot: End of partition table I (96) boot_comm: chip revision: 3, min. application chip revision: 0 I (103) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1a2f4h (107252) map I (150) esp_image: segment 1: paddr=0002a31c vaddr=3ffb0000 size=02724h ( 10020) load I (154) esp_image: segment 2: paddr=0002ca48 vaddr=40080000 size=035d0h ( 13776) load I (162) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=4b148h (307528) map I (276) esp_image: segment 4: paddr=0007b170 vaddr=400835d0 size=0bd24h ( 48420) load I (296) esp_image: segment 5: paddr=00086e9c vaddr=50000000 size=00010h ( 16) load I (303) boot: Loaded app from partition at offset 0x10000 I (304) boot: Disabling RNG early entropy source... I (316) cpu_start: Pro cpu up. I (316) cpu_start: Starting app cpu, entry point is 0x40081364 0x40081364: call_start_cpu1 at /Users/fng/esp/esp-idf/components/esp_system/port/cpu_start.c:160 I (0) cpu_start: App cpu up. I (332) cpu_start: Pro cpu start user code I (332) cpu_start: cpu freq: 160000000 I (333) cpu_start: Application information: I (337) cpu_start: Project name: hpg_cell_ntrip_correction I (344) cpu_start: App version: v1.0-dirty I (349) cpu_start: Compile time: Sep 26 2023 11:21:06 I (355) cpu_start: ELF file SHA256: 2855700b499c5879... I (361) cpu_start: ESP-IDF: v4.4.2 I (366) heap_init: Initializing. RAM available for dynamic allocation: I (373) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (379) heap_init: At 3FFB9780 len 00026880 (154 KiB): DRAM I (385) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (392) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (398) heap_init: At 4008F2F4 len 00010D0C (67 KiB): IRAM I (405) spi_flash: detected chip: mxic I (409) spi_flash: flash io: dio I (414) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (432) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (481) sdspi_transaction: cmd=5, R1 response: command not supported I [(684) app|app_main|243|: XPLR-HPG-SW Demo: NTRIP Cellular Client I [(686) app|appInitBoard|455|: Initializing board. I (689) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (695) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (704) gpio: GPIO[26]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (713) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (723) gpio: GPIO[38]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 D [(732) xplrBoard|xplrBoardInit|114|: Board init Done I (737) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 D [(746) app|appInitBoard|471|: Boot0 pin configured as button OK D [(755) app|appInitBoard|472|: Board Initialized D [(812) xplrCommonHelpers|xplrHelpersUbxlibInit|131|: ubxlib init ok! W [(817) app|gnssInit|664|: Waiting for GNSS device to come online! D [(828) xplrGnss|xplrGnssStartDevice|597|: GNSS module configured successfully. D [(835) hpgCom|xplrUbxlibInit|148|: ubxlib init ok D [(839) hpgCom|xplrUbxlibInit|152|: ubxlib dvc init ok D [(843) hpgCom|dvcGetFirstFreeSlot|537|: ret index: 0 D [(847) hpgCom|cellSetConfig|594|: ok: 0 D [(851) hpgCom|xplrComCellInit|196|: ok, module settings configured D [(881) xplrGnss|xplrGnssFsm|627|: Logging is enabled. Trying to initialize. I [(885) xplrGnss|xplrGnssAsyncLogInit|2009|: Initializing async logging D [(902) xplrGnss|xplrGnssFsm|630|: Sucessfully initialized GNSS logging. I [(2728) xplrCommonHelpers|xplrHlprLocSrvcDeviceOpenNonBlocking|226|: ubxlib device opened! I [(2733) xplrCommonHelpers|xplrHlprLocSrvcDeviceOpenNonBlocking|229|: Network interface opened! D [(2745) xplrGnss|xplrGnssFsm|654|: Trying to open device. I [(3009) xplrCommonHelpers|xplrHlprLocSrvcGetDeviceInfo|412|: Got device info. ========= Device Info ========= Module variant: ZED-F9R Module version: EXT CORE 1.00 (a59682) Hardware version: 00190000 Rom: 0x118B2060 Firmware: HPS 1.30 Protocol: 33.30 ID: 554192fb00 ------------------------------- I2C Port: 0 I2C Address: 0x42 I2C SDA pin: 21 I2C SCL pin: 22 =============================== D [(3034) xplrGnss|xplrGnssFsm|664|: Configuration Completed. D [(3061) xplrGnss|xplrGnssFsm|893|: Trying to restart GNSS device. D [(3065) xplrCommonHelpers|xplrHlprLocSrvcSendUbxFormattedCommand|478|: Sent UBX data [12] bytes. D [(3069) xplrGnss|gnssDeviceRestart|2213|: Reset command issued succesfully D [(3075) xplrGnss|xplrGnssUbxMessagesAsyncStop|1242|: Looks like Gnss UBX Messages async is not running. Nothing to do. D [(3093) xplrGnss|xplrGnssNmeaMessagesAsyncStop|1211|: Looks like Gnss Get Fix Type async is not running. Nothing to do. D [(3098) xplrGnss|xplrGnssStopAllAsyncs|1273|: Stopped all async getters. D [(3112) xplrCommonHelpers|xplrHlprLocSrvcDeviceClose|249|: ubxlib device closed! D [(3116) xplrGnss|gnssDeviceStop|2246|: Sucessfully stoped GNSS device. D [(3119) xplrGnss|gnssDeviceRestart|2216|: Device stop command issued succesfully D [(3133) xplrGnss|gnssDeviceRestart|2217|: Restart routine executed succesfully. D [(3137) xplrGnss|xplrGnssFsm|896|: Restart succeeded. D [(3621) xplrGnss|xplrGnssFsm|654|: Trying to open device. I [(7458) xplrCommonHelpers|xplrHlprLocSrvcDeviceOpenNonBlocking|226|: ubxlib device opened! I [(7470) xplrCommonHelpers|xplrHlprLocSrvcDeviceOpenNonBlocking|229|: Network interface opened! D [(7474) xplrGnss|xplrGnssFsm|654|: Trying to open device. I [(7737) xplrCommonHelpers|xplrHlprLocSrvcGetDeviceInfo|412|: Got device info. ========= Device Info ========= Module variant: ZED-F9R Module version: EXT CORE 1.00 (a59682) Hardware version: 00190000 Rom: 0x118B2060 Firmware: HPS 1.30 Protocol: 33.30 ID: 554192fb00 ------------------------------- I2C Port: 0 I2C Address: 0x42 I2C SDA pin: 21 I2C SCL pin: 22 =============================== D [(7765) xplrGnss|xplrGnssFsm|667|: Restart Completed. D [(7785) xplrGnss|xplrGnssFsm|691|: xSemWatchdog created successfully D [(7789) xplrGnss|xplrGnssFsm|693|: Successfully released xSemWatchdog! D [(7803) xplrGnss|xplrGnssFsm|715|: Trying to set GNSS generic location settings. D [(7928) xplrCommonHelpers|xplrHlprLocSrvcOptionMultiValSet|319|: Set multiple configuration values. D [(7932) xplrGnss|xplrGnssFsm|719|: Set generic location settings on GNSS module. D [(7953) xplrGnss|xplrGnssFsm|727|: Trying to set correction data decryption keys. D [(7957) xplrGnss|xplrGnssFsm|738|: No keys stored. Skipping. D [(7971) xplrGnss|xplrGnssFsm|745|: Trying to set correction data source. D [(8087) xplrCommonHelpers|xplrHlprLocSrvcOptionSingleValSet|295|: Set configuration value. D [(8098) xplrGnss|xplrGnssFsm|748|: Set configured correction data source. D [(8112) xplrGnss|xplrGnssFsm|758|: Trying to start async getters. D [(8136) xplrGnss|xplrGnssNmeaMessagesAsyncStart|1129|: Started Gnss NMEA async. D [(8146) xplrGnss|xplrGnssUbxMessagesAsyncStart|1164|: Started Gnss UBX Messages async. D [(8151) xplrGnss|xplrGnssStartAllAsyncs|1186|: Started all async getters. D [(8165) xplrGnss|xplrGnssFsm|775|: Trying to init NVS. D [(8224) xplrNvs|xplrNvsInit|121|: nvs init ok D [(8227) xplrNvs|xplrNvsInit|136|: NVS data partition found D [(8228) xplrNvs|xplrNvsInit|155|: namespace set: D [(8230) xplrNvs|xplrNvsInit|173|: nvs initialized ok D [(8236) xplrGnss|gnssNvsInit|3301|: NVS namespace for GNSS, init ok D [(8247) xplrGnss|xplrGnssFsm|784|: Initialized NVS. I (8263) uart: queue free spaces: 20 I (8284) gpio: GPIO[26]| InputEn: 0| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 I (8285) gpio: GPIO[37]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 D [(20356) hpgCom|cellDvcOpen|693|: ok D [(20360) hpgCom|xplrComCellFsmConnect|238|: open ok, configuring MNO D [(20373) hpgCom|cellDvcSetMno|709|: MNO in config: 100 W [(20496) hpgCom|cellDvcSetMno|716|: Module's MNO: 90 differs from config: 100 W [(20664) hpgCom|cellDvcSetMno|723|: MNO cannot be set in this module D [(20742) hpgCom|cellDvcRebootNeeded|639|: no need to reset D [(20746) hpgCom|xplrComCellFsmConnect|250|: MNO ok or cannot be changed, checking device D [(20807) hpgCom|cellDvcCheckReady|614|: dvc ready D [(20911) hpgCom|xplrComCellFsmConnect|298|: dvc rdy, setting RAT(s)... D [(20964) hpgCom|cellDvcSetRat|753|: RAT[0] is LTE. D [(21113) hpgCom|cellDvcSetRat|753|: RAT[1] is unknown or not used. D [(21257) hpgCom|cellDvcSetRat|753|: RAT[2] is unknown or not used. D [(21276) hpgCom|xplrComCellFsmConnect|261|: RAT ok, checking device D [(21400) hpgCom|cellDvcCheckReady|614|: dvc ready D [(21404) hpgCom|xplrComCellFsmConnect|302|: dvc rdy, setting Band(s)... D [(21418) hpgCom|xplrComCellFsmConnect|272|: bands ok, checking device D [(21548) hpgCom|cellDvcCheckReady|614|: dvc ready D [(21552) hpgCom|xplrComCellFsmConnect|306|: dvc rdy, scanning networks... D [(21565) hpgCom|cellDvcRegister|851|: Bringing up the network... I [(24266) hpgCom|cellDvcRegister|854|: Network is up! D [(24290) hpgCom|xplrComCellFsmConnect|283|: dvc interface up, switching to connected D [(25190) hpgCom|cellDvcGetNetworkInfo|881|: cell network settings: D [(25194) hpgCom|cellDvcGetNetworkInfo|882|: operator: vodafone UK FloLive D [(25219) hpgCom|cellDvcGetNetworkInfo|883|: ip: 100.64.117.64 D [(25223) hpgCom|cellDvcGetNetworkInfo|884|: registered: 1 D [(25226) hpgCom|cellDvcGetNetworkInfo|885|: RAT: LTE D [(25229) hpgCom|cellDvcGetNetworkInfo|886|: status: registered - roaming D [(25254) hpgCom|cellDvcGetNetworkInfo|887|: Mcc: 234 D [(25258) hpgCom|cellDvcGetNetworkInfo|888|: Mnc: 15 I [(25262) hpgCom|xplrComCellFsmConnect|325|: dvc connected! I [(25266) app|cellNetworkRegister|603|: Cell module is Online. I [(27713) xplrCellNtrip|ntripCreateSocket|580|: Socket connected I [(27946) xplrCellNtrip|ntripCasterHandshake|768|: Request sent [123] bytes E [(28571) xplrCellNtrip|ntripHandleResponse|742|: Error reading from socket, socket errno -> [0] E [(28574) xplrCellNtrip|xplrCellNtripInit|140|: NTRIP failed to initialize E [(28585) xplrCellNtrip|xplrCellNtripInit|141|: Running cleanup E [(29110) app|ntripInit|694|: NTRIP client initialization failed! E [(29123) app|app_main|378|: Halting execution ```
dbou-ublox commented 1 year ago

Could it be that the first time cellular connects (after being offline for hours), IP connectivity is not yet "that ready" (whatever that could mean). And the next tries are much more smoother (cell connection is "hot")?

Would be interesting to see if a delay between cel connect and ntrip connect makes a difference (or retrying ntrip instead of going to error state, without a reboot) makes things better

fng97 commented 1 year ago

@dbou-ublox

Could it be that the first time cellular connects (after being offline for hours), IP connectivity is not yet "that ready" (whatever that could mean). And the next tries are much more smoother (cell connection is "hot")?

Would be interesting to see if a delay between cel connect and ntrip connect makes a difference (or retrying ntrip instead of going to error state, without a reboot) makes things better

Heya!

I did try adding a 2 second delay here with no luck. Still seemed to fail/succeed unpredictably.

I also couldn't figure out what error code is referred to in: Error reading from socket, socket errno -> [0]. Any ideas? Could it be that it's the number of bytes read? If that's the case, maybe the socket just has too short a timeout?

anik-ublox commented 1 year ago

Hi @fng97

The error you run into means that the server is responding in an unexpected way that the HPGLib NTRIP client cannot handle.

Can you please provide the caster and/or mountpoint you are using so that we can test it?

fng97 commented 1 year ago

Hi @fng97

The error you run into means that the server is responding in an unexpected way that the HPGLib NTRIP client cannot handle.

Can you please provide the caster and/or mountpoint you are using so that we can test it?

Hiya @anik-ublox! I tested this using RTKFnet. We use this provider in production and use a reserved mountpoint. I can raise this with them if we believe the issue is on their side.

anik-ublox commented 1 year ago

Hello @fng97 ,

Unfortunately the provider you are using does not offer a trial account that we can test however we want to investigate more into your issue and find out what the problem is.

I'm uploading a patch for the NTRIP client with some more loggings to see the response you are getting from the caster and hopefully make our client compatible with the service you are using.

Would you mind building the example with this patch and providing us with the console output?

fng97 commented 11 months ago

Hiya @anik-ublox. Sorry for the delay in getting back to you. I no longer have my dev kit. It is with a colleague for a few weeks. I will follow up on this as soon as possible.

fng97 commented 9 months ago

Hiya @anik-ublox, sorry again for the delay. I won't be able to test this any time soon. I'll go ahead and close this.