CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y is only capturing partial packets

Hello,

I have CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y.  And when I capture and convert to wireshark trace I might see a couple of random packets captured.  I am doing 2 separate TLS connects() and handshakes.  So I would definitely expect to see much more than a few random packets.

Here is my prj.conf:

CONFIG_THREAD_MONITOR=y
CONFIG_NRF_MODEM_LIB=y                # implies CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NRF_MODEM_LIB_SYS_INIT=n       # The application will take care of initializing Modem in main.c

CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y                  # Will provide BSD name support. e.g. setsockopt() instead of nrf_setsockopt()
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_NATIVE=n                   # We are using socket offload, so set this to no

CONFIG_BUILD_WITH_TFM=y

# Memory size for k_malloc()
CONFIG_HEAP_MEM_POOL_SIZE=16384
# 4096 is the default
CONFIG_MAIN_STACK_SIZE=8192           

CONFIG_MODEM_KEY_MGMT=y               # Application wants to make calls to store keys
CONFIG_LTE_LINK_CONTROL=y             # Enable the API's to setup and configure the LTE link
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n    # The application will take care of initializing the LTE stuff in main.c

CONFIG_NEWLIB_LIBC=y                  # Use the "new" libc
CONFIG_SAMPLE_TFM_MBEDTLS=y

CONFIG_CJSON_LIB=y
CONFIG_HTTP_CLIENT=y

# MbedTLS and security
CONFIG_NORDIC_SECURITY_BACKEND=y            # Required when commenting out BUILD_WITH_TFM
CONFIG_MBEDTLS_VANILLA_BACKEND=y
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
CONFIG_NET_SOCKETS_OFFLOAD_TLS=n
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=8192
CONFIG_MBEDTLS_HEAP_SIZE=44000
CONFIG_MBEDTLS_TLS_LIBRARY=y
CONFIG_MBEDTLS_PKCS1_V15=y
CONFIG_MBEDTLS_RSA_C=y
CONFIG_MBEDTLS=y                              # Required when commenting out CONFIG_NORDIC_SECURITY_BACKEND

# CONFIG_USE_SEGGER_RTT=y
# CONFIG_RTT_CONSOLE=y
# CONFIG_UART_CONSOLE=n

CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y

# Event management which handles network-related events (like ip address change, or net iface up/down for examples)
# CONFIG_NET_MGMT=y
# CONFIG_NET_MGMT_EVENT=y
# CONFIG_NET_SOCKETS_NET_MGMT=y

Thank you

/Loren

  • Hello Loren,

    which NCS and mfw version are you currently using? Do you observe the same behaviour when recording a trace from one of our nRF9160 applications/samples as well?

    Otherwise, it would be interesting to have a look at the binary dump.

    Regards,

    Markus

  • Hi Markus,

    I have ncs 1.7.1 with a special SHA branch 

    From Hakon on 26 Oct 2021:
    
    And please note that I am on ncs master (or main, as its called now), commit "ea83b7edbce161873baec8828400579f8c96f035".
    
    Use "git checkout ea83b7edbce161873baec8828400579f8c96f035"  and "west update" to update the whole of NCS.

    Which means I have some code which is NOT part of the 1.7.1 branch.  It also contains a custom https_client in the nrf9160 samples folder which allows for mbedtls.  That's the example I used today. What I found is: 1. Without the overlay_mbedtls.conf I get FULL Wireshark traces. 2. WITH overlay_mbedtls.conf I get NO or spurious-packet Wireshark traces. I believe mbedtls is the culprit.  My guess is there's no "hooks" in the mbedtls to capture packets?  Please advise.

    /Loren

  • Hello Loren,

    Loren Rogers said:
    It also contains a custom https_client in the nrf9160 samples folder which allows for mbedtls. 

    I assume you are simply talking about the https_client application in the sdk-nrf master/main branch?

    Loren Rogers said:
    My guess is there's no "hooks" in the mbedtls to capture packets?  Please advise.

    Yes, capturing packets in a modem trace should be independent of the mbedtls library. Could you provide me with a binary modem trace dump and a full application log?

    Thanks and regards,

    Markus

  • Hi Markus,

    I'm attaching 3 files:

    1. trace_with_mbedtls.bin, 2. trace_without_mbedtls.bin, and 3. A text file containing the full log of both application runs.

    I don't believe the https_client on master/main branch has the mbedtls changes.  At least it didn't as of 1.7.1. 

    trace_with_mbedtls.bintrace_without_mbedtls.bin

    TRACE NOT USING MBEDTLS
    -----------------------
    2021-11-24T14:54:47.483Z DEBUG modem << *** Booting Zephyr OS build v2.6.99-ncs1-13-g20ac60fb9670  ***
    2021-11-24T14:54:47.491Z DEBUG modem << Flash regionsDomainPermissions
    2021-11-24T14:54:47.497Z DEBUG modem << 00 01 0x00000 0x10000 Securerwxl
    2021-11-24T14:54:47.498Z DEBUG modem << 02 31 0x10000 0x100000 Non-Securerwxl
    2021-11-24T14:54:47.500Z DEBUG modem << Non-secure callable region 0 placed in flash region 1 with size 32.
    2021-11-24T14:54:47.551Z DEBUG modem << SRAM regionDomainPermissions
    2021-11-24T14:54:47.556Z DEBUG modem << 00 07 0x00000 0x10000 Securerwxl
    2021-11-24T14:54:47.563Z DEBUG modem << 08 31 0x10000 0x40000 Non-Securerwxl
    2021-11-24T14:54:47.565Z DEBUG modem << PeripheralDomainStatus
    2021-11-24T14:54:47.566Z DEBUG modem << 00 NRF_P0               Non-SecureOK
    2021-11-24T14:54:47.568Z DEBUG modem << 01 NRF_CLOCK            Non-SecureOK
    2021-11-24T14:54:47.571Z DEBUG modem << 02 NRF_RTC0             Non-SecureOK
    2021-11-24T14:54:47.574Z DEBUG modem << 03 NRF_RTC1             Non-SecureOK
    2021-11-24T14:54:47.580Z DEBUG modem << 04 NRF_NVMC             Non-SecureOK
    2021-11-24T14:54:47.582Z DEBUG modem << 05 NRF_UARTE1           Non-SecureOK
    2021-11-24T14:54:47.585Z DEBUG modem << 06 NRF_UARTE2           SecureSKIP
    2021-11-24T14:54:47.588Z DEBUG modem << 07 NRF_TWIM2            Non-SecureOK
    2021-11-24T14:54:47.596Z DEBUG modem << 08 NRF_SPIM3            Non-SecureOK
    2021-11-24T14:54:47.598Z DEBUG modem << 09 NRF_TIMER0           Non-SecureOK
    2021-11-24T14:54:47.602Z DEBUG modem << 10 NRF_TIMER1           Non-SecureOK
    2021-11-24T14:54:47.604Z DEBUG modem << 11 NRF_TIMER2           Non-SecureOK
    2021-11-24T14:54:47.605Z DEBUG modem << 12 NRF_SAADC            Non-SecureOK
    2021-11-24T14:54:47.613Z DEBUG modem << 13 NRF_PWM0             Non-SecureOK
    2021-11-24T14:54:47.614Z DEBUG modem << 14 NRF_PWM1             Non-SecureOK
    2021-11-24T14:54:47.616Z DEBUG modem << 15 NRF_PWM2             Non-SecureOK
    2021-11-24T14:54:47.619Z DEBUG modem << 16 NRF_PWM3             Non-SecureOK
    2021-11-24T14:54:47.623Z DEBUG modem << 17 NRF_WDT              Non-SecureOK
    2021-11-24T14:54:47.630Z DEBUG modem << 18 NRF_IPC              Non-SecureOK
    2021-11-24T14:54:47.632Z DEBUG modem << 19 NRF_VMC              Non-SecureOK
    2021-11-24T14:54:47.633Z DEBUG modem << 20 NRF_FPU              Non-SecureOK
    2021-11-24T14:54:47.636Z DEBUG modem << 21 NRF_EGU0             Non-SecureOK
    2021-11-24T14:54:47.640Z DEBUG modem << 22 NRF_EGU1             Non-SecureOK
    2021-11-24T14:54:47.647Z DEBUG modem << 23 NRF_EGU2             Non-SecureOK
    2021-11-24T14:54:47.648Z DEBUG modem << 24 NRF_EGU3             Non-SecureOK
    2021-11-24T14:54:47.651Z DEBUG modem << 25 NRF_EGU4             Non-SecureOK
    2021-11-24T14:54:47.654Z DEBUG modem << 26 NRF_EGU5             Non-SecureOK
    2021-11-24T14:54:47.657Z DEBUG modem << 27 NRF_DPPIC            Non-SecureOK
    2021-11-24T14:54:47.663Z DEBUG modem << 28 NRF_REGULATORS       Non-SecureOK
    2021-11-24T14:54:47.666Z DEBUG modem << 29 NRF_PDM              Non-SecureOK
    2021-11-24T14:54:47.669Z DEBUG modem << 30 NRF_I2S              Non-SecureOK
    2021-11-24T14:54:47.671Z DEBUG modem << 31 NRF_GPIOTE1          Non-SecureOK
    2021-11-24T14:54:47.673Z DEBUG modem << SPM: NS image at 0x10000
    2021-11-24T14:54:47.680Z DEBUG modem << SPM: NS MSP at 0x2001cbd0
    2021-11-24T14:54:47.681Z DEBUG modem << SPM: NS reset vector at 0x133b5
    2021-11-24T14:54:47.683Z DEBUG modem << SPM: prepare to jump to Non-Secure image.
    2021-11-24T14:54:47.697Z DEBUG modem << [00:00:00.000,030] [0m<dbg> net_core.net_init: (0x20018c70): Priority 90[0m
    2021-11-24T14:54:47.700Z DEBUG modem << [00:00:00.007,354] [0m<dbg> net_core.l3_init: (0x20018c70): Network L3 init done[0m
    2021-11-24T14:54:47.706Z DEBUG modem << *** Booting Zephyr OS build v2.6.99-ncs1-13-g20ac60fb9670  ***
    2021-11-24T14:54:47.714Z DEBUG modem << HTTPS client sample started
    2021-11-24T14:54:48.034Z DEBUG modem << Certificate match
    2021-11-24T14:54:48.054Z DEBUG modem << Waiting for network.. [00:00:00.357,879] [0m<dbg> lte_lc.init_and_config: System mode (1) and preference (0) are already configured[0m
    2021-11-24T14:54:48.096Z DEBUG modem << [00:00:00.399,353] [0m<dbg> lte_lc.lte_lc_system_mode_set: Sending AT command to set system mode: AT%XSYSTEMMODE=1,0,0,0[0m
    2021-11-24T14:54:49.263Z DEBUG modem << [00:00:01.569,000] [0m<dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 2,"520F","00E16406",7
    2021-11-24T14:54:49.268Z DEBUG modem << [0m
    2021-11-24T14:54:49.273Z DEBUG modem << [00:00:01.579,528] [0m<dbg> lte_lc_helpers.parse_cereg: Network registration status: 2[0m
    2021-11-24T14:54:49.282Z DEBUG modem << [00:00:01.588,165] [0m<dbg> lte_lc_helpers.parse_cereg: LTE mode: 7[0m
    2021-11-24T14:54:49.808Z DEBUG modem << [00:00:02.117,248] [0m<dbg> lte_lc.at_handler: +CSCON notification[0m
    2021-11-24T14:54:50.403Z DEBUG modem << [00:00:02.707,214] [0m<dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 5,"520F","00E16406",7,,,"11100000","11100000"
    2021-11-24T14:54:50.408Z DEBUG modem << [0m
    2021-11-24T14:54:50.413Z DEBUG modem << [00:00:02.719,573] [0m<dbg> lte_lc_helpers.parse_cereg: Network registration status: 5[0m
    2021-11-24T14:54:50.422Z DEBUG modem << [00:00:02.728,240] [0m<dbg> lte_lc_helpers.parse_cereg: LTE mode: 7[0m
    2021-11-24T14:54:50.435Z DEBUG modem << [00:00:02.738,403] [0m<dbg> lte_lc_helpers.parse_psm: TAU: -1 sec, active time: -1 sec
    2021-11-24T14:54:50.437Z DEBUG modem << [0m
    2021-11-24T14:54:50.438Z DEBUG modem << OK
    2021-11-24T14:54:50.614Z DEBUG modem << Connecting to example.com
    2021-11-24T14:54:52.151Z DEBUG modem << Sent 61 bytes
    2021-11-24T14:54:52.327Z DEBUG modem << Received 352 bytes
    2021-11-24T14:54:52.332Z DEBUG modem << > HTTP/1.1 200 OK
    2021-11-24T14:54:52.333Z DEBUG modem << Finished, closing socket.
    2021-11-24T14:54:52.346Z DEBUG modem << [00:00:04.647,491] [0m<dbg> net_sock.z_impl_zsock_close: (0x20018c70): close: ctx=0x20019478, fd=1[0m
    2021-11-24T14:54:52.421Z DEBUG modem << [00:00:04.728,576] [0m<dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 0
    2021-11-24T14:54:52.422Z DEBUG modem << [0m
    2021-11-24T14:54:52.431Z DEBUG modem << [00:00:04.737,670] [0m<dbg> lte_lc_helpers.parse_cereg: Network registration status: 0[0m
    2021-11-24T14:54:52.453Z DEBUG modem << [00:00:04.746,917] [0m<dbg> lte_lc_helpers.parse_cereg: LTE mode not found, error code: -22[0m
    2021-11-24T14:54:53.732Z DEBUG modem << [00:00:06.029,388] [0m<dbg> lte_lc.at_handler: +CSCON notification[0m
    
    
    TRACE USING MBEDTLS:
    --------------------
    2021-11-24T18:26:16.338Z DEBUG modem << *** Booting Zephyr OS build v2.6.99-ncs1-13-g20ac60fb9670  ***
    2021-11-24T18:26:16.348Z DEBUG modem << I: Starting bootloader
    2021-11-24T18:26:16.350Z DEBUG modem << I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    2021-11-24T18:26:16.362Z DEBUG modem << I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    2021-11-24T18:26:16.364Z DEBUG modem << I: Boot source: none
    2021-11-24T18:26:16.365Z DEBUG modem << I: Swap type: none
    2021-11-24T18:26:16.445Z DEBUG modem << I: Bootloader chainload address offset: 0x10000
    2021-11-24T18:26:16.455Z DEBUG modem << I: Jumping to the first image slot
    2021-11-24T18:26:16.672Z DEBUG modem << *** Booting Zephyr OS build v2.6.99-ncs1-13-g20ac60fb9670  ***
    2021-11-24T18:26:16.681Z DEBUG modem << Flash regionsDomainPermissions
    2021-11-24T18:26:16.682Z DEBUG modem << 00 03 0x00000 0x20000 Securerwxl
    2021-11-24T18:26:16.692Z DEBUG modem << 04 31 0x20000 0x100000 Non-Securerwxl
    2021-11-24T18:26:16.694Z DEBUG modem << Non-secure callable region 0 placed in flash region 3 with size 32.
    2021-11-24T18:26:16.741Z DEBUG modem << SRAM regionDomainPermissions
    2021-11-24T18:26:16.749Z DEBUG modem << 00 07 0x00000 0x10000 Securerwxl
    2021-11-24T18:26:16.751Z DEBUG modem << 08 31 0x10000 0x40000 Non-Securerwxl
    2021-11-24T18:26:16.762Z DEBUG modem << PeripheralDomainStatus
    2021-11-24T18:26:16.764Z DEBUG modem << 00 NRF_P0               Non-SecureOK
    2021-11-24T18:26:16.767Z DEBUG modem << 01 NRF_CLOCK            Non-SecureOK
    2021-11-24T18:26:16.769Z DEBUG modem << 02 NRF_RTC0             Non-SecureOK
    2021-11-24T18:26:16.770Z DEBUG modem << 03 NRF_RTC1             Non-SecureOK
    2021-11-24T18:26:16.778Z DEBUG modem << 04 NRF_NVMC             Non-SecureOK
    2021-11-24T18:26:16.780Z DEBUG modem << 05 NRF_UARTE1           Non-SecureOK
    2021-11-24T18:26:16.784Z DEBUG modem << 06 NRF_UARTE2           SecureSKIP
    2021-11-24T18:26:16.786Z DEBUG modem << 07 NRF_TWIM2            Non-SecureOK
    2021-11-24T18:26:16.786Z DEBUG modem << 08 NRF_SPIM3            Non-SecureOK
    2021-11-24T18:26:16.794Z DEBUG modem << 09 NRF_TIMER0           Non-SecureOK
    2021-11-24T18:26:16.796Z DEBUG modem << 10 NRF_TIMER1           Non-SecureOK
    2021-11-24T18:26:16.797Z DEBUG modem << 11 NRF_TIMER2           Non-SecureOK
    2021-11-24T18:26:16.800Z DEBUG modem << 12 NRF_SAADC            Non-SecureOK
    2021-11-24T18:26:16.810Z DEBUG modem << 13 NRF_PWM0             Non-SecureOK
    2021-11-24T18:26:16.812Z DEBUG modem << 14 NRF_PWM1             Non-SecureOK
    2021-11-24T18:26:16.813Z DEBUG modem << 15 NRF_PWM2             Non-SecureOK
    2021-11-24T18:26:16.817Z DEBUG modem << 16 NRF_PWM3             Non-SecureOK
    2021-11-24T18:26:16.818Z DEBUG modem << 17 NRF_WDT              Non-SecureOK
    2021-11-24T18:26:16.828Z DEBUG modem << 18 NRF_IPC              Non-SecureOK
    2021-11-24T18:26:16.830Z DEBUG modem << 19 NRF_VMC              Non-SecureOK
    2021-11-24T18:26:16.842Z DEBUG modem << 20 NRF_FPU              Non-SecureOK
    2021-11-24T18:26:16.843Z DEBUG modem << 21 NRF_EGU0             Non-SecureOK
    2021-11-24T18:26:16.844Z DEBUG modem << 22 NRF_EGU1             Non-SecureOK
    2021-11-24T18:26:16.845Z DEBUG modem << 23 NRF_EGU2             Non-SecureOK
    2021-11-24T18:26:16.848Z DEBUG modem << 24 NRF_EGU3             Non-SecureOK
    2021-11-24T18:26:16.849Z DEBUG modem << 25 NRF_EGU4             Non-SecureOK
    2021-11-24T18:26:16.850Z DEBUG modem << 26 NRF_EGU5             Non-SecureOK
    2021-11-24T18:26:16.850Z DEBUG modem << 27 NRF_DPPIC            Non-SecureOK
    2021-11-24T18:26:16.859Z DEBUG modem << 28 NRF_REGULATORS       Non-SecureOK
    2021-11-24T18:26:16.861Z DEBUG modem << 29 NRF_PDM              Non-SecureOK
    2021-11-24T18:26:16.863Z DEBUG modem << 30 NRF_I2S              Non-SecureOK
    2021-11-24T18:26:16.866Z DEBUG modem << 31 NRF_GPIOTE1          Non-SecureOK
    2021-11-24T18:26:16.867Z DEBUG modem << SPM: NS image at 0x20200
    2021-11-24T18:26:16.877Z DEBUG modem << SPM: NS MSP at 0x200256d0
    2021-11-24T18:26:16.878Z DEBUG modem << SPM: NS reset vector at 0x25f89
    2021-11-24T18:26:16.880Z DEBUG modem << SPM: prepare to jump to Non-Secure image.
    2021-11-24T18:26:16.892Z DEBUG modem << [00:00:00.003,692] [0m<dbg> net_core.net_init: (0x20019190): Priority 90[0m
    2021-11-24T18:26:16.897Z DEBUG modem << [00:00:00.010,650] [0m<dbg> net_core.l3_init: (0x20019190): Network L3 init done[0m
    2021-11-24T18:26:16.910Z DEBUG modem << *** Booting Zephyr OS build v2.6.99-ncs1-13-g20ac60fb9670  ***
    2021-11-24T18:26:16.911Z DEBUG modem << HTTPS client sample started
    2021-11-24T18:26:17.181Z DEBUG modem << Waiting for network.. [00:00:00.290,039] [0m<dbg> lte_lc.init_and_config: System mode (1) and preference (0) are already configured[0m
    2021-11-24T18:26:17.220Z DEBUG modem << [00:00:00.329,681] [0m<dbg> lte_lc.lte_lc_system_mode_set: Sending AT command to set system mode: AT%XSYSTEMMODE=1,0,0,0[0m
    2021-11-24T18:26:18.512Z DEBUG modem << [00:00:01.624,420] [0m<dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 2,"520F","00E16406",7
    2021-11-24T18:26:18.521Z DEBUG modem << [0m
    2021-11-24T18:26:18.523Z DEBUG modem << [00:00:01.634,399] [0m<dbg> lte_lc_helpers.parse_cereg: Network registration status: 2[0m
    2021-11-24T18:26:18.528Z DEBUG modem << [00:00:01.642,608] [0m<dbg> lte_lc_helpers.parse_cereg: LTE mode: 7[0m
    2021-11-24T18:26:19.498Z DEBUG modem << [00:00:02.612,945] [0m<dbg> lte_lc.at_handler: +CSCON notification[0m
    2021-11-24T18:26:21.450Z DEBUG modem << [00:00:04.539,367] [0m<dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 5,"520F","00E16406",7,,,"11100000","11100000"
    2021-11-24T18:26:21.461Z DEBUG modem << [0m
    2021-11-24T18:26:21.463Z DEBUG modem << [00:00:04.573,699] [0m<dbg> lte_lc_helpers.parse_cereg: Network registration status: 5[0m
    2021-11-24T18:26:21.475Z DEBUG modem << [00:00:04.582,641] [0m<dbg> lte_lc_helpers.parse_cereg: LTE mode: 7[0m
    2021-11-24T18:26:21.493Z DEBUG modem << [00:00:04.589,233] [0m<dbg> lte_lc_helpers.parse_psm: TAU: -1 sec, active time: -1 sec
    2021-11-24T18:26:21.494Z DEBUG modem << [0m
    2021-11-24T18:26:21.495Z DEBUG modem << OK
    2021-11-24T18:26:22.045Z DEBUG modem << [00:00:05.157,531] [0m<dbg> net_sock_tls.tls_alloc: (0x20019190): Allocated TLS context, 0x200187a0[0m
    2021-11-24T18:26:22.055Z DEBUG modem << Connecting to example.com
    2021-11-24T18:26:27.013Z DEBUG modem << [00:00:10.126,556] [0m<dbg> lte_lc.at_handler: +CSCON notification[0m
    2021-11-24T18:26:27.594Z DEBUG modem << [00:00:10.708,526] [0m<dbg> lte_lc.at_handler: +CSCON notification[0m
    2021-11-24T18:26:29.209Z DEBUG modem << [00:00:12.290,832] [0m<dbg> lte_lc.at_handler: +CSCON notification[0m
    2021-11-24T18:26:30.377Z DEBUG modem << [00:00:13.492,248] [0m<dbg> lte_lc.at_handler: +CSCON notification[0m
    2021-11-24T18:26:33.833Z DEBUG modem << Sent 61 bytes
    2021-11-24T18:26:34.292Z DEBUG modem << Received 376 bytes
    2021-11-24T18:26:34.303Z DEBUG modem << > HTTP/1.1 200 OK
    2021-11-24T18:26:34.306Z DEBUG modem << Finished, closing socket.
    2021-11-24T18:26:34.315Z DEBUG modem << [00:00:17.427,581] [0m<dbg> net_sock.z_impl_zsock_close: (0x20019190): close: ctx=0x200187a0, fd=1[0m
    2021-11-24T18:26:34.340Z DEBUG modem << [00:00:17.447,387] [0m<dbg> net_sock.z_impl_zsock_close: (0x20019190): close: ctx=0x2001a604, fd=2[0m
    2021-11-24T18:26:36.002Z DEBUG modem << [00:00:19.116,485] [0m<dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 0
    2021-11-24T18:26:36.011Z DEBUG modem << [0m
    2021-11-24T18:26:36.013Z DEBUG modem << [00:00:19.124,206] [0m<dbg> lte_lc_helpers.parse_cereg: Network registration status: 0[0m
    2021-11-24T18:26:36.074Z DEBUG modem << [00:00:19.132,385] [0m<dbg> lte_lc_helpers.parse_cereg: LTE mode not found, error code: -22[0m
    2021-11-24T18:26:36.081Z DEBUG modem << [00:00:19.196,411] [0m<dbg> lte_lc.at_handler: +CSCON notification[0m
    

  • Hello Loren,

    Loren Rogers said:

    I'm attaching 3 files:

    1. trace_with_mbedtls.bin, 2. trace_without_mbedtls.bin, and 3. A text file containing the full log of both application runs.

    thanks a lot for the traces and log!

    The trace_with_mbedtls stops right after connect request to the server.

    Comparing the two .pcaps in Wireshark shows that the beginning is the same, which is expected.

    Could you possibly have stopped the recording of trace_with_mbedtls a little bit too early?

    Regards,

    Markus

Related