This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sample nRF9160: Azure IoT Hub

I created an Azure IOT Hub and simulated a X.509 device using C and device SDK for Azure.
No problems here.
Then I run sample nRF9160: Azure Iot Hub and receive the following error
Now I look for some guidance to troubleshot the mqtt_connect error.
 
First:
Can Nordic please clarify the certificate requirements mentioned on page Azure IoT Hub — nRF Connect SDK 1.3.99 documentation in more detail.
Does Baltimore CyperTrust Root certificate equate to file RootCA.pem?
Does Device certificate equate to file mydevice-public.pem?
Does Private key equate to file mydevice-private.pem?
Files under the ..\azure-iot-sdk-c\tools\CACertificates directory listed here:
Second:
How does one  best  investigates mqtt_connect errors ?
  • Hi Sabine,



    A project that has the following in prj.conf:

    CONFIG_NEWLIB_LIBC=y

    Will use the errno table according to newlib.

    So the error you are seeing is EOPNOTUPP"Operation not supported on transport endpoint "

    I would also recommend that you enable some debug flags to get some extra Log output messages that could give more descriptive information about issues like this.

    Add this in the prj.conf file:

    CONFIG_LOG=y
    CONFIG_AZURE_IOT_HUB_LOG_LEVEL_DBG=y


    This is most likely a certificate issue.
    Have you followed all the steps to provision the certificates?




    Best regards,

    Martin L.

  • Hi Martin,

    thank you for looking into this. I did as you suggested I uncommented CONFIG_AZURE_IOT_HUB_LOG_LEVEL_DBG=y in proj.conf and I followed all the steps to provision the certificate more than once. I still receive the same error. I attached the latest log file. What else can I do to troubleshoot?

    2020-10-06T16:36:00.467Z INFO Application data folder: C:\Users\sabin\AppData\Roaming\nrfconnect\pc-nrfconnect-linkmonitor
    2020-10-06T16:36:00.812Z DEBUG App pc-nrfconnect-linkmonitor v1.1.6 official
    2020-10-06T16:36:00.813Z DEBUG App path: C:\Users\sabin\.nrfconnect-apps\node_modules\pc-nrfconnect-linkmonitor
    2020-10-06T16:36:00.813Z DEBUG nRFConnect 3.5.0 is supported by the app (^3.2.0)
    2020-10-06T16:36:00.813Z DEBUG nRFConnect path: C:\Users\sabin\AppData\Local\Programs\nrfconnect\resources\app.asar
    2020-10-06T16:36:00.813Z DEBUG HomeDir: C:\Users\sabin
    2020-10-06T16:36:00.813Z DEBUG TmpDir: C:\Users\sabin\AppData\Local\Temp
    2020-10-06T16:36:05.435Z INFO Modem port is opened
    2020-10-06T16:36:05.442Z DEBUG modem >> AT+CFUN?
    2020-10-06T16:36:05.507Z DEBUG modem << N: 0
    2020-10-06T16:36:05.509Z DEBUG modem << OK
    2020-10-06T18:11:28.980Z INFO Updating CA certificate...
    2020-10-06T18:11:28.983Z DEBUG modem >> AT%CMNG=0,16842753,0,"-----BEGIN CERTIFICATE-----
    2020-10-06T18:11:28.997Z DEBUG modem >> MIIB3zCCAYSgAwIBAgIQf72LCM8EIL1LinLj52harjAKBggqhkjOPQQDAjAoMSYw
    2020-10-06T18:11:29.011Z DEBUG modem >> JAYDVQQDDB1BenVyZSBJb1QgQ0EgVGVzdE9ubHkgUm9vdCBDQTAeFw0yMDA5Mjkx
    2020-10-06T18:11:29.024Z DEBUG modem >> NjI0MzlaFw0yMDEwMjkxNjM0MzhaMCgxJjAkBgNVBAMMHUF6dXJlIElvVCBDQSBU
    2020-10-06T18:11:29.036Z DEBUG modem >> ZXN0T25seSBSb290IENBMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEXWCqwcE2
    2020-10-06T18:11:29.050Z DEBUG modem >> c6SyasWBpcJg+PN6vVPQRJCUKbsJjs8yMFf3yOHLGdO9LnOkHIbyaBhVpwS0saQS
    2020-10-06T18:11:29.064Z DEBUG modem >> BFSlUPRwC8AuPqOBjzCBjDAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0lBBYwFAYIKwYB
    2020-10-06T18:11:29.077Z DEBUG modem >> BQUHAwIGCCsGAQUFBwMBMCgGA1UdEQQhMB+CHUF6dXJlIElvVCBDQSBUZXN0T25s
    2020-10-06T18:11:29.090Z DEBUG modem >> eSBSb290IENBMBIGA1UdEwEB/wQIMAYBAf8CAQwwHQYDVR0OBBYEFGBiTPfz82tB
    2020-10-06T18:11:29.104Z DEBUG modem >> rDbroE4H1XzF42zxMAoGCCqGSM49BAMCA0kAMEYCIQDP0rzL5jaL5QOmMYEObmFV
    2020-10-06T18:11:29.117Z DEBUG modem >> hl/zVgxaPs8LbmH0mwlD0AIhANJe4dWcVJuULZn1ET6vMnluOS2pw7zjjv4g7q8f
    2020-10-06T18:11:29.130Z DEBUG modem >> Pnn9
    2020-10-06T18:11:29.143Z DEBUG modem >> -----END CERTIFICATE-----"
    2020-10-06T18:11:30.684Z DEBUG modem << OK
    2020-10-06T18:11:30.687Z INFO Updating client certificate...
    2020-10-06T18:11:30.688Z DEBUG modem >> AT%CMNG=0,16842753,1,"-----BEGIN CERTIFICATE-----
    2020-10-06T18:11:30.702Z DEBUG modem >> MIIB0jCCAXigAwIBAgIQHV0UHDQrz6ZJn72wRq7EDTAKBggqhkjOPQQDAjAoMSYw
    2020-10-06T18:11:30.715Z DEBUG modem >> JAYDVQQDDB1BenVyZSBJb1QgQ0EgVGVzdE9ubHkgUm9vdCBDQTAeFw0yMDA5Mjkx
    2020-10-06T18:11:30.729Z DEBUG modem >> NzAwMTdaFw0yMDEwMjkxNzEwMTdaMBMxETAPBgNVBAMMCG15ZGV2aWNlMFkwEwYH
    2020-10-06T18:11:30.742Z DEBUG modem >> KoZIzj0CAQYIKoZIzj0DAQcDQgAEG17tmcLbBv9DZRAoD18WWMKBbwWy25qNO0mg
    2020-10-06T18:11:30.756Z DEBUG modem >> +6p4KHl73zI9hoS31vdYtAP1BXX4ojF4CmxU+iCw6bCyUgOQyqOBmDCBlTAOBgNV
    2020-10-06T18:11:30.769Z DEBUG modem >> HQ8BAf8EBAMCBaAwEwYDVR0RBAwwCoIIbXlkZXZpY2UwHQYDVR0lBBYwFAYIKwYB
    2020-10-06T18:11:30.782Z DEBUG modem >> BQUHAwIGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMCAQAwHwYDVR0jBBgwFoAUYGJM
    2020-10-06T18:11:30.816Z DEBUG modem >> 9/Pza0GsNuugTgfVfMXjbPEwHQYDVR0OBBYEFIYsxDyO4n1FSrsOaeJnmKTWDvlX
    2020-10-06T18:11:30.830Z DEBUG modem >> MAoGCCqGSM49BAMCA0gAMEUCIQDJBzXMNuYOhzwH/GnmvXmaUV3fc4S1YMtrZkJC
    2020-10-06T18:11:30.843Z DEBUG modem >> wIXgmAIgCp6MMaoYblP7as8bi6NNJMle/daKYSp96RceYz3aq+k=
    2020-10-06T18:11:30.857Z DEBUG modem >> -----END CERTIFICATE-----"
    2020-10-06T18:11:30.948Z DEBUG modem << OK
    2020-10-06T18:11:30.951Z INFO Updating private key...
    2020-10-06T18:11:30.952Z DEBUG modem >> AT%CMNG=0,16842753,2,"-----BEGIN EC PRIVATE KEY-----
    2020-10-06T18:11:30.966Z DEBUG modem >> MHcCAQEEIFig8F0iUSrfgvBNUkhSbtTp7RZZTaF0+u4PGA9FwOZ6oAoGCCqGSM49
    2020-10-06T18:11:30.980Z DEBUG modem >> AwEHoUQDQgAEG17tmcLbBv9DZRAoD18WWMKBbwWy25qNO0mg+6p4KHl73zI9hoS3
    2020-10-06T18:11:31.000Z DEBUG modem >> 1vdYtAP1BXX4ojF4CmxU+iCw6bCyUgOQyg==
    2020-10-06T18:11:31.017Z DEBUG modem >> -----END EC PRIVATE KEY-----"
    2020-10-06T18:11:31.080Z DEBUG modem << OK
    2020-10-06T18:11:31.082Z INFO Certificate update completed
    2020-10-06T18:17:45.697Z INFO Modem port is opened
    2020-10-06T18:17:49.541Z INFO Modem port is closed
    2020-10-07T14:29:58.034Z INFO Modem port is opened
    2020-10-07T14:32:43.744Z INFO Updating CA certificate...
    2020-10-07T14:32:43.746Z DEBUG modem >> AT%CMNG=0,1234,0,"-----BEGIN CERTIFICATE-----
    2020-10-07T14:32:43.760Z DEBUG modem >> MIIB3zCCAYSgAwIBAgIQf72LCM8EIL1LinLj52harjAKBggqhkjOPQQDAjAoMSYw
    2020-10-07T14:32:43.773Z DEBUG modem >> JAYDVQQDDB1BenVyZSBJb1QgQ0EgVGVzdE9ubHkgUm9vdCBDQTAeFw0yMDA5Mjkx
    2020-10-07T14:32:43.785Z DEBUG modem >> NjI0MzlaFw0yMDEwMjkxNjM0MzhaMCgxJjAkBgNVBAMMHUF6dXJlIElvVCBDQSBU
    2020-10-07T14:32:43.798Z DEBUG modem >> ZXN0T25seSBSb290IENBMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEXWCqwcE2
    2020-10-07T14:32:43.811Z DEBUG modem >> c6SyasWBpcJg+PN6vVPQRJCUKbsJjs8yMFf3yOHLGdO9LnOkHIbyaBhVpwS0saQS
    2020-10-07T14:32:43.823Z DEBUG modem >> BFSlUPRwC8AuPqOBjzCBjDAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0lBBYwFAYIKwYB
    2020-10-07T14:32:43.837Z DEBUG modem >> BQUHAwIGCCsGAQUFBwMBMCgGA1UdEQQhMB+CHUF6dXJlIElvVCBDQSBUZXN0T25s
    2020-10-07T14:32:43.852Z DEBUG modem >> eSBSb290IENBMBIGA1UdEwEB/wQIMAYBAf8CAQwwHQYDVR0OBBYEFGBiTPfz82tB
    2020-10-07T14:32:43.864Z DEBUG modem >> rDbroE4H1XzF42zxMAoGCCqGSM49BAMCA0kAMEYCIQDP0rzL5jaL5QOmMYEObmFV
    2020-10-07T14:32:43.877Z DEBUG modem >> hl/zVgxaPs8LbmH0mwlD0AIhANJe4dWcVJuULZn1ET6vMnluOS2pw7zjjv4g7q8f
    2020-10-07T14:32:43.891Z DEBUG modem >> Pnn9
    2020-10-07T14:32:43.903Z DEBUG modem >> -----END CERTIFICATE-----"
    2020-10-07T14:32:43.959Z DEBUG modem << OK
    2020-10-07T14:32:43.960Z INFO Updating client certificate...
    2020-10-07T14:32:43.961Z DEBUG modem >> AT%CMNG=0,1234,1,"-----BEGIN CERTIFICATE-----
    2020-10-07T14:32:43.973Z DEBUG modem >> MIIB0jCCAXigAwIBAgIQHV0UHDQrz6ZJn72wRq7EDTAKBggqhkjOPQQDAjAoMSYw
    2020-10-07T14:32:43.987Z DEBUG modem >> JAYDVQQDDB1BenVyZSBJb1QgQ0EgVGVzdE9ubHkgUm9vdCBDQTAeFw0yMDA5Mjkx
    2020-10-07T14:32:44.000Z DEBUG modem >> NzAwMTdaFw0yMDEwMjkxNzEwMTdaMBMxETAPBgNVBAMMCG15ZGV2aWNlMFkwEwYH
    2020-10-07T14:32:44.013Z DEBUG modem >> KoZIzj0CAQYIKoZIzj0DAQcDQgAEG17tmcLbBv9DZRAoD18WWMKBbwWy25qNO0mg
    2020-10-07T14:32:44.026Z DEBUG modem >> +6p4KHl73zI9hoS31vdYtAP1BXX4ojF4CmxU+iCw6bCyUgOQyqOBmDCBlTAOBgNV
    2020-10-07T14:32:44.039Z DEBUG modem >> HQ8BAf8EBAMCBaAwEwYDVR0RBAwwCoIIbXlkZXZpY2UwHQYDVR0lBBYwFAYIKwYB
    2020-10-07T14:32:44.053Z DEBUG modem >> BQUHAwIGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMCAQAwHwYDVR0jBBgwFoAUYGJM
    2020-10-07T14:32:44.066Z DEBUG modem >> 9/Pza0GsNuugTgfVfMXjbPEwHQYDVR0OBBYEFIYsxDyO4n1FSrsOaeJnmKTWDvlX
    2020-10-07T14:32:44.078Z DEBUG modem >> MAoGCCqGSM49BAMCA0gAMEUCIQDJBzXMNuYOhzwH/GnmvXmaUV3fc4S1YMtrZkJC
    2020-10-07T14:32:44.092Z DEBUG modem >> wIXgmAIgCp6MMaoYblP7as8bi6NNJMle/daKYSp96RceYz3aq+k=
    2020-10-07T14:32:44.104Z DEBUG modem >> -----END CERTIFICATE-----"
    2020-10-07T14:32:44.162Z DEBUG modem << OK
    2020-10-07T14:32:44.164Z INFO Updating private key...
    2020-10-07T14:32:44.166Z DEBUG modem >> AT%CMNG=0,1234,2,"-----BEGIN EC PRIVATE KEY-----
    2020-10-07T14:32:44.180Z DEBUG modem >> MHcCAQEEIFig8F0iUSrfgvBNUkhSbtTp7RZZTaF0+u4PGA9FwOZ6oAoGCCqGSM49
    2020-10-07T14:32:44.195Z DEBUG modem >> AwEHoUQDQgAEG17tmcLbBv9DZRAoD18WWMKBbwWy25qNO0mg+6p4KHl73zI9hoS3
    2020-10-07T14:32:44.208Z DEBUG modem >> 1vdYtAP1BXX4ojF4CmxU+iCw6bCyUgOQyg==
    2020-10-07T14:32:44.222Z DEBUG modem >> -----END EC PRIVATE KEY-----"
    2020-10-07T14:32:44.371Z DEBUG modem << OK
    2020-10-07T14:32:44.373Z INFO Certificate update completed
    2020-10-07T14:40:45.663Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs2  ***
    2020-10-07T14:40:45.665Z DEBUG modem << Flash regionsDomainPermissions
    2020-10-07T14:40:45.666Z DEBUG modem << 00 00 0x00000 0x08000 Securerwxl
    2020-10-07T14:40:45.668Z DEBUG modem << 01 31 0x08000 0x100000 Non-Securerwxl
    2020-10-07T14:40:45.674Z DEBUG modem << Non-secure callable region 0 placed in flash region 0 with size 32.
    2020-10-07T14:40:45.845Z DEBUG modem << SRAM regionDomainPermissions
    2020-10-07T14:40:45.848Z DEBUG modem << 00 07 0x00000 0x10000 Securerwxl
    2020-10-07T14:40:45.851Z DEBUG modem << 08 31 0x10000 0x40000 Non-Securerwxl
    2020-10-07T14:40:45.855Z DEBUG modem << PeripheralDomainStatus
    2020-10-07T14:40:45.858Z DEBUG modem << 00 NRF_P0               Non-SecureOK
    2020-10-07T14:40:45.862Z DEBUG modem << 01 NRF_CLOCK            Non-SecureOK
    2020-10-07T14:40:45.864Z DEBUG modem << 02 NRF_RTC0             Non-SecureOK
    2020-10-07T14:40:45.868Z DEBUG modem << 03 NRF_RTC1             Non-SecureOK
    2020-10-07T14:40:45.871Z DEBUG modem << 04 NRF_NVMC             Non-SecureOK
    2020-10-07T14:40:45.875Z DEBUG modem << 05 NRF_UARTE1           Non-SecureOK
    2020-10-07T14:40:45.878Z DEBUG modem << 06 NRF_UARTE2           SecureSKIP
    2020-10-07T14:40:45.881Z DEBUG modem << 07 NRF_TWIM2            Non-SecureOK
    2020-10-07T14:40:45.885Z DEBUG modem << 08 NRF_SPIM3            Non-SecureOK
    2020-10-07T14:40:45.888Z DEBUG modem << 09 NRF_TIMER0           Non-SecureOK
    2020-10-07T14:40:45.892Z DEBUG modem << 10 NRF_TIMER1           Non-SecureOK
    2020-10-07T14:40:45.895Z DEBUG modem << 11 NRF_TIMER2           Non-SecureOK
    2020-10-07T14:40:45.898Z DEBUG modem << 12 NRF_SAADC            Non-SecureOK
    2020-10-07T14:40:45.902Z DEBUG modem << 13 NRF_PWM0             Non-SecureOK
    2020-10-07T14:40:45.905Z DEBUG modem << 14 NRF_PWM1             Non-SecureOK
    2020-10-07T14:40:45.909Z DEBUG modem << 15 NRF_PWM2             Non-SecureOK
    2020-10-07T14:40:45.912Z DEBUG modem << 16 NRF_PWM3             Non-SecureOK
    2020-10-07T14:40:45.916Z DEBUG modem << 17 NRF_WDT              Non-SecureOK
    2020-10-07T14:40:45.919Z DEBUG modem << 18 NRF_IPC              Non-SecureOK
    2020-10-07T14:40:45.922Z DEBUG modem << 19 NRF_VMC              Non-SecureOK
    2020-10-07T14:40:45.926Z DEBUG modem << 20 NRF_FPU              Non-SecureOK
    2020-10-07T14:40:45.929Z DEBUG modem << 21 NRF_EGU1             Non-SecureOK
    2020-10-07T14:40:45.932Z DEBUG modem << 22 NRF_EGU2             Non-SecureOK
    2020-10-07T14:40:45.936Z DEBUG modem << 23 NRF_DPPIC            Non-SecureOK
    2020-10-07T14:40:45.939Z DEBUG modem << 24 NRF_GPIOTE1          Non-SecureOK
    2020-10-07T14:40:45.943Z DEBUG modem << 25 NRF_REGULATORS       Non-SecureOK
    2020-10-07T14:40:45.945Z DEBUG modem << SPM: NS image at 0xc000
    2020-10-07T14:40:45.947Z DEBUG modem << SPM: NS MSP at 0x20026410
    2020-10-07T14:40:45.950Z DEBUG modem << SPM: NS reset vector at 0x1043d
    2020-10-07T14:40:45.954Z DEBUG modem << SPM: prepare to jump to Non-Secure image.
    2020-10-07T14:40:46.142Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs2  ***
    2020-10-07T14:40:46.145Z DEBUG modem << Azure IoT Hub sample started
    2020-10-07T14:40:46.147Z DEBUG modem << Connecting to LTE network
    2020-10-07T14:40:47.779Z DEBUG modem << +CEREG: 2,"9200","023B0E01",7,0,0,"11100000","11100000"
    2020-10-07T14:40:47.813Z DEBUG modem << LTE cell changed: Cell ID: 37424641, Tracking area: 37376
    2020-10-07T14:40:47.814Z DEBUG modem << PSM parameter update: TAU: -1, Active time: -1
    2020-10-07T14:40:47.831Z DEBUG modem << +CSCON: 1
    2020-10-07T14:40:47.833Z DEBUG modem << RRC mode: Connected
    2020-10-07T14:40:49.167Z DEBUG modem << +CEREG: 5,"9200","023B0E01",7,,,"11100000","11100000"
    2020-10-07T14:40:49.177Z DEBUG modem << Network registration status: Connected - roaming
    2020-10-07T14:40:49.178Z DEBUG modem << Connected to LTE network
    2020-10-07T14:40:49.494Z DEBUG modem << AZURE_IOT_HUB_EVT_CONNECTING
    2020-10-07T14:40:50.501Z DEBUG modem << [00:00:03.570,953] [0m<dbg> azure_iot_hub.broker_init: IPv4 Address found 104.211.18.153[0m
    2020-10-07T14:40:51.280Z DEBUG modem << azure_iot_hub_connect failed: -95
    2020-10-07T14:40:52.283Z DEBUG modem << [00:00:05.355,590] [1;31m<err> azure_iot_hub: mqtt_connect, error: -95[0m
    2020-10-07T14:40:58.177Z DEBUG modem << +CSCON: 0
    2020-10-07T14:40:58.180Z DEBUG modem << RRC mode: Idle
    2020-10-07T14:42:51.148Z INFO Modem port is closed
    2020-10-07T15:25:32.166Z INFO Modem port is opened
    2020-10-07T15:25:55.885Z INFO Updating CA certificate...
    2020-10-07T15:25:55.887Z DEBUG modem >> AT%CMNG=0,1234,0,"-----BEGIN CERTIFICATE-----
    2020-10-07T15:25:55.901Z DEBUG modem >> MIIB3zCCAYSgAwIBAgIQf72LCM8EIL1LinLj52harjAKBggqhkjOPQQDAjAoMSYw
    2020-10-07T15:25:55.913Z DEBUG modem >> JAYDVQQDDB1BenVyZSBJb1QgQ0EgVGVzdE9ubHkgUm9vdCBDQTAeFw0yMDA5Mjkx
    2020-10-07T15:25:55.943Z DEBUG modem >> NjI0MzlaFw0yMDEwMjkxNjM0MzhaMCgxJjAkBgNVBAMMHUF6dXJlIElvVCBDQSBU
    2020-10-07T15:25:55.958Z DEBUG modem >> ZXN0T25seSBSb290IENBMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEXWCqwcE2
    2020-10-07T15:25:55.971Z DEBUG modem >> c6SyasWBpcJg+PN6vVPQRJCUKbsJjs8yMFf3yOHLGdO9LnOkHIbyaBhVpwS0saQS
    2020-10-07T15:25:55.984Z DEBUG modem >> BFSlUPRwC8AuPqOBjzCBjDAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0lBBYwFAYIKwYB
    2020-10-07T15:25:55.998Z DEBUG modem >> BQUHAwIGCCsGAQUFBwMBMCgGA1UdEQQhMB+CHUF6dXJlIElvVCBDQSBUZXN0T25s
    2020-10-07T15:25:56.011Z DEBUG modem >> eSBSb290IENBMBIGA1UdEwEB/wQIMAYBAf8CAQwwHQYDVR0OBBYEFGBiTPfz82tB
    2020-10-07T15:25:56.023Z DEBUG modem >> rDbroE4H1XzF42zxMAoGCCqGSM49BAMCA0kAMEYCIQDP0rzL5jaL5QOmMYEObmFV
    2020-10-07T15:25:56.037Z DEBUG modem >> hl/zVgxaPs8LbmH0mwlD0AIhANJe4dWcVJuULZn1ET6vMnluOS2pw7zjjv4g7q8f
    2020-10-07T15:25:56.052Z DEBUG modem >> Pnn9
    2020-10-07T15:25:56.064Z DEBUG modem >> -----END CERTIFICATE-----"
    2020-10-07T15:25:57.474Z DEBUG modem << OK
    2020-10-07T15:25:57.476Z INFO Updating client certificate...
    2020-10-07T15:25:57.477Z DEBUG modem >> AT%CMNG=0,1234,1,"-----BEGIN CERTIFICATE-----
    2020-10-07T15:25:57.491Z DEBUG modem >> MIIB0jCCAXigAwIBAgIQHV0UHDQrz6ZJn72wRq7EDTAKBggqhkjOPQQDAjAoMSYw
    2020-10-07T15:25:57.504Z DEBUG modem >> JAYDVQQDDB1BenVyZSBJb1QgQ0EgVGVzdE9ubHkgUm9vdCBDQTAeFw0yMDA5Mjkx
    2020-10-07T15:25:57.518Z DEBUG modem >> NzAwMTdaFw0yMDEwMjkxNzEwMTdaMBMxETAPBgNVBAMMCG15ZGV2aWNlMFkwEwYH
    2020-10-07T15:25:57.532Z DEBUG modem >> KoZIzj0CAQYIKoZIzj0DAQcDQgAEG17tmcLbBv9DZRAoD18WWMKBbwWy25qNO0mg
    2020-10-07T15:25:57.564Z DEBUG modem >> +6p4KHl73zI9hoS31vdYtAP1BXX4ojF4CmxU+iCw6bCyUgOQyqOBmDCBlTAOBgNV
    2020-10-07T15:25:57.576Z DEBUG modem >> HQ8BAf8EBAMCBaAwEwYDVR0RBAwwCoIIbXlkZXZpY2UwHQYDVR0lBBYwFAYIKwYB
    2020-10-07T15:25:57.590Z DEBUG modem >> BQUHAwIGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMCAQAwHwYDVR0jBBgwFoAUYGJM
    2020-10-07T15:25:57.602Z DEBUG modem >> 9/Pza0GsNuugTgfVfMXjbPEwHQYDVR0OBBYEFIYsxDyO4n1FSrsOaeJnmKTWDvlX
    2020-10-07T15:25:57.614Z DEBUG modem >> MAoGCCqGSM49BAMCA0gAMEUCIQDJBzXMNuYOhzwH/GnmvXmaUV3fc4S1YMtrZkJC
    2020-10-07T15:25:57.629Z DEBUG modem >> wIXgmAIgCp6MMaoYblP7as8bi6NNJMle/daKYSp96RceYz3aq+k=
    2020-10-07T15:25:57.643Z DEBUG modem >> -----END CERTIFICATE-----"
    2020-10-07T15:25:57.740Z DEBUG modem << OK
    2020-10-07T15:25:57.741Z INFO Updating private key...
    2020-10-07T15:25:57.743Z DEBUG modem >> AT%CMNG=0,1234,2,"-----BEGIN EC PRIVATE KEY-----
    2020-10-07T15:25:57.756Z DEBUG modem >> MHcCAQEEIFig8F0iUSrfgvBNUkhSbtTp7RZZTaF0+u4PGA9FwOZ6oAoGCCqGSM49
    2020-10-07T15:25:57.770Z DEBUG modem >> AwEHoUQDQgAEG17tmcLbBv9DZRAoD18WWMKBbwWy25qNO0mg+6p4KHl73zI9hoS3
    2020-10-07T15:25:57.783Z DEBUG modem >> 1vdYtAP1BXX4ojF4CmxU+iCw6bCyUgOQyg==
    2020-10-07T15:25:57.796Z DEBUG modem >> -----END EC PRIVATE KEY-----"
    2020-10-07T15:25:57.900Z DEBUG modem << OK
    2020-10-07T15:25:57.902Z INFO Certificate update completed
    2020-10-07T15:26:53.777Z DEBUG modem >> AT%CMNG=1
    2020-10-07T15:26:53.797Z DEBUG modem << %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"
    2020-10-07T15:26:53.806Z DEBUG modem << %CMNG: 1234,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:26:53.811Z DEBUG modem << %CMNG: 1234,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:26:53.819Z DEBUG modem << %CMNG: 1234,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:26:53.829Z DEBUG modem << %CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:26:53.834Z DEBUG modem << %CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:26:53.844Z DEBUG modem << %CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:26:53.847Z DEBUG modem << OK
    2020-10-07T15:28:36.671Z DEBUG modem >> AT%CMNG=1
    2020-10-07T15:28:36.691Z DEBUG modem << %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"
    2020-10-07T15:28:36.699Z DEBUG modem << %CMNG: 1234,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:28:36.710Z DEBUG modem << %CMNG: 1234,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:28:36.714Z DEBUG modem << %CMNG: 1234,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:28:36.720Z DEBUG modem << %CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:28:36.730Z DEBUG modem << %CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:28:36.735Z DEBUG modem << %CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:28:36.744Z DEBUG modem << OK
    2020-10-07T15:29:34.383Z DEBUG modem >> AT%CMNG=1
    2020-10-07T15:29:34.403Z DEBUG modem << %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"
    2020-10-07T15:29:34.411Z DEBUG modem << %CMNG: 1234,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:29:34.417Z DEBUG modem << %CMNG: 1234,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:29:34.427Z DEBUG modem << %CMNG: 1234,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:29:34.432Z DEBUG modem << %CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:29:34.443Z DEBUG modem << %CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:29:34.447Z DEBUG modem << %CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:29:34.449Z DEBUG modem << OK
    2020-10-07T15:30:23.750Z DEBUG modem >> AT+CFUN=4
    2020-10-07T15:30:23.763Z DEBUG modem << OK
    2020-10-07T15:32:22.006Z INFO Updating CA certificate...
    2020-10-07T15:32:22.007Z DEBUG modem >> AT%CMNG=0,1234,0,"-----BEGIN CERTIFICATE-----
    2020-10-07T15:32:22.020Z DEBUG modem >> MIIB3zCCAYSgAwIBAgIQf72LCM8EIL1LinLj52harjAKBggqhkjOPQQDAjAoMSYw
    2020-10-07T15:32:22.034Z DEBUG modem >> JAYDVQQDDB1BenVyZSBJb1QgQ0EgVGVzdE9ubHkgUm9vdCBDQTAeFw0yMDA5Mjkx
    2020-10-07T15:32:22.046Z DEBUG modem >> NjI0MzlaFw0yMDEwMjkxNjM0MzhaMCgxJjAkBgNVBAMMHUF6dXJlIElvVCBDQSBU
    2020-10-07T15:32:22.059Z DEBUG modem >> ZXN0T25seSBSb290IENBMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEXWCqwcE2
    2020-10-07T15:32:22.073Z DEBUG modem >> c6SyasWBpcJg+PN6vVPQRJCUKbsJjs8yMFf3yOHLGdO9LnOkHIbyaBhVpwS0saQS
    2020-10-07T15:32:22.086Z DEBUG modem >> BFSlUPRwC8AuPqOBjzCBjDAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0lBBYwFAYIKwYB
    2020-10-07T15:32:22.102Z DEBUG modem >> BQUHAwIGCCsGAQUFBwMBMCgGA1UdEQQhMB+CHUF6dXJlIElvVCBDQSBUZXN0T25s
    2020-10-07T15:32:22.114Z DEBUG modem >> eSBSb290IENBMBIGA1UdEwEB/wQIMAYBAf8CAQwwHQYDVR0OBBYEFGBiTPfz82tB
    2020-10-07T15:32:22.128Z DEBUG modem >> rDbroE4H1XzF42zxMAoGCCqGSM49BAMCA0kAMEYCIQDP0rzL5jaL5QOmMYEObmFV
    2020-10-07T15:32:22.141Z DEBUG modem >> hl/zVgxaPs8LbmH0mwlD0AIhANJe4dWcVJuULZn1ET6vMnluOS2pw7zjjv4g7q8f
    2020-10-07T15:32:22.154Z DEBUG modem >> Pnn9
    2020-10-07T15:32:22.167Z DEBUG modem >> -----END CERTIFICATE-----"
    2020-10-07T15:32:22.352Z DEBUG modem << OK
    2020-10-07T15:32:22.354Z INFO Updating client certificate...
    2020-10-07T15:32:22.355Z DEBUG modem >> AT%CMNG=0,1234,1,"-----BEGIN CERTIFICATE-----
    2020-10-07T15:32:22.368Z DEBUG modem >> MIIB0jCCAXigAwIBAgIQHV0UHDQrz6ZJn72wRq7EDTAKBggqhkjOPQQDAjAoMSYw
    2020-10-07T15:32:22.382Z DEBUG modem >> JAYDVQQDDB1BenVyZSBJb1QgQ0EgVGVzdE9ubHkgUm9vdCBDQTAeFw0yMDA5Mjkx
    2020-10-07T15:32:22.395Z DEBUG modem >> NzAwMTdaFw0yMDEwMjkxNzEwMTdaMBMxETAPBgNVBAMMCG15ZGV2aWNlMFkwEwYH
    2020-10-07T15:32:22.410Z DEBUG modem >> KoZIzj0CAQYIKoZIzj0DAQcDQgAEG17tmcLbBv9DZRAoD18WWMKBbwWy25qNO0mg
    2020-10-07T15:32:22.424Z DEBUG modem >> +6p4KHl73zI9hoS31vdYtAP1BXX4ojF4CmxU+iCw6bCyUgOQyqOBmDCBlTAOBgNV
    2020-10-07T15:32:22.437Z DEBUG modem >> HQ8BAf8EBAMCBaAwEwYDVR0RBAwwCoIIbXlkZXZpY2UwHQYDVR0lBBYwFAYIKwYB
    2020-10-07T15:32:22.452Z DEBUG modem >> BQUHAwIGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMCAQAwHwYDVR0jBBgwFoAUYGJM
    2020-10-07T15:32:22.466Z DEBUG modem >> 9/Pza0GsNuugTgfVfMXjbPEwHQYDVR0OBBYEFIYsxDyO4n1FSrsOaeJnmKTWDvlX
    2020-10-07T15:32:22.481Z DEBUG modem >> MAoGCCqGSM49BAMCA0gAMEUCIQDJBzXMNuYOhzwH/GnmvXmaUV3fc4S1YMtrZkJC
    2020-10-07T15:32:22.495Z DEBUG modem >> wIXgmAIgCp6MMaoYblP7as8bi6NNJMle/daKYSp96RceYz3aq+k=
    2020-10-07T15:32:22.508Z DEBUG modem >> -----END CERTIFICATE-----"
    2020-10-07T15:32:23.914Z DEBUG modem << OK
    2020-10-07T15:32:23.916Z INFO Updating private key...
    2020-10-07T15:32:23.917Z DEBUG modem >> AT%CMNG=0,1234,2,"-----BEGIN EC PRIVATE KEY-----
    2020-10-07T15:32:23.932Z DEBUG modem >> MHcCAQEEIFig8F0iUSrfgvBNUkhSbtTp7RZZTaF0+u4PGA9FwOZ6oAoGCCqGSM49
    2020-10-07T15:32:23.947Z DEBUG modem >> AwEHoUQDQgAEG17tmcLbBv9DZRAoD18WWMKBbwWy25qNO0mg+6p4KHl73zI9hoS3
    2020-10-07T15:32:23.960Z DEBUG modem >> 1vdYtAP1BXX4ojF4CmxU+iCw6bCyUgOQyg==
    2020-10-07T15:32:23.972Z DEBUG modem >> -----END EC PRIVATE KEY-----"
    2020-10-07T15:32:24.074Z DEBUG modem << OK
    2020-10-07T15:32:24.075Z INFO Certificate update completed
    2020-10-07T15:33:01.599Z DEBUG modem >> AT%CMNG=1
    2020-10-07T15:33:01.618Z DEBUG modem << %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"
    2020-10-07T15:33:01.629Z DEBUG modem << %CMNG: 1234,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:33:01.634Z DEBUG modem << %CMNG: 1234,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:33:01.646Z DEBUG modem << %CMNG: 1234,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:33:01.652Z DEBUG modem << %CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:33:01.662Z DEBUG modem << %CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:33:01.669Z DEBUG modem << %CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:33:01.672Z DEBUG modem << OK
    2020-10-07T15:34:40.411Z INFO Modem port is closed
    2020-10-07T15:45:53.466Z INFO Modem port is opened
    2020-10-07T15:45:56.062Z DEBUG modem >> AT%XMONITOR
    2020-10-07T15:45:56.078Z DEBUG modem << %XMONITOR: 4
    2020-10-07T15:45:56.079Z DEBUG modem << OK
    2020-10-07T15:47:13.294Z DEBUG modem >> AT%XMONITOR
    2020-10-07T15:47:13.311Z DEBUG modem << %XMONITOR: 4
    2020-10-07T15:47:13.312Z DEBUG modem << OK
    2020-10-07T15:47:27.774Z DEBUG modem >> AT%CMNG=1
    2020-10-07T15:47:27.795Z DEBUG modem << %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"
    2020-10-07T15:47:27.801Z DEBUG modem << %CMNG: 1234,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:47:27.812Z DEBUG modem << %CMNG: 1234,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:47:27.815Z DEBUG modem << %CMNG: 1234,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:47:27.829Z DEBUG modem << %CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:47:27.835Z DEBUG modem << %CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:47:27.838Z DEBUG modem << %CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:47:27.848Z DEBUG modem << OK
    2020-10-07T15:48:26.790Z DEBUG modem >> AT+CFUN?
    2020-10-07T15:48:26.803Z DEBUG modem << +CFUN: 0
    2020-10-07T15:48:26.809Z DEBUG modem << OK
    2020-10-07T15:48:57.677Z DEBUG modem >> AT+CEMODE
    2020-10-07T15:48:57.694Z DEBUG modem << OK
    2020-10-07T15:49:11.102Z DEBUG modem >> AT%CMNG=1
    2020-10-07T15:49:11.122Z DEBUG modem << %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"
    2020-10-07T15:49:11.130Z DEBUG modem << %CMNG: 1234,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:49:11.136Z DEBUG modem << %CMNG: 1234,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:49:11.148Z DEBUG modem << %CMNG: 1234,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:49:11.152Z DEBUG modem << %CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:49:11.163Z DEBUG modem << %CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:49:11.167Z DEBUG modem << %CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:49:11.169Z DEBUG modem << OK
    2020-10-07T15:50:29.297Z INFO Modem port is closed
    2020-10-07T15:50:41.460Z INFO Modem port is opened
    2020-10-07T15:50:41.464Z DEBUG modem >> AT+CFUN?
    2020-10-07T15:50:41.478Z DEBUG modem << +CFUN: 0
    2020-10-07T15:50:41.479Z DEBUG modem << OK
    2020-10-07T15:57:12.369Z INFO Modem port is closed
    2020-10-07T15:59:26.476Z INFO Modem port is opened
    2020-10-07T15:59:26.478Z DEBUG modem >> AT+CFUN?
    2020-10-07T15:59:26.495Z DEBUG modem << +CFUN: 1
    2020-10-07T15:59:26.496Z DEBUG modem << OK
    2020-10-07T15:59:26.502Z DEBUG modem >> AT+CGSN=1
    2020-10-07T15:59:26.520Z DEBUG modem << +CGSN: "352656100384356"
    2020-10-07T15:59:26.520Z DEBUG modem << OK
    2020-10-07T15:59:26.524Z DEBUG modem >> AT+CGMI
    2020-10-07T15:59:26.538Z DEBUG modem << Nordic Semiconductor ASA
    2020-10-07T15:59:26.540Z DEBUG modem << OK
    2020-10-07T15:59:26.547Z DEBUG modem >> AT+CGMM
    2020-10-07T15:59:26.563Z DEBUG modem << nRF9160-SICA
    2020-10-07T15:59:26.564Z DEBUG modem << OK
    2020-10-07T15:59:26.567Z DEBUG modem >> AT+CGMR
    2020-10-07T15:59:26.580Z DEBUG modem << mfw_nrf9160_1.2.0
    2020-10-07T15:59:26.581Z DEBUG modem << OK
    2020-10-07T15:59:26.582Z INFO Nordic Semiconductor ASA nRF9160-SICA [mfw_nrf9160_1.2.0] SerNr: 352656100384356
    2020-10-07T15:59:26.583Z DEBUG modem >> AT+CEMODE?
    2020-10-07T15:59:26.596Z DEBUG modem << +CEMODE: 2
    2020-10-07T15:59:26.597Z DEBUG modem << OK
    2020-10-07T15:59:26.603Z DEBUG modem >> AT%XCBAND=?
    2020-10-07T15:59:26.621Z DEBUG modem << %XCBAND: (1,2,3,4,5,8,12,13,17,18,19,20,25,26,28,66)
    2020-10-07T15:59:26.623Z DEBUG modem << OK
    2020-10-07T15:59:26.634Z DEBUG modem >> AT+CMEE?
    2020-10-07T15:59:26.647Z DEBUG modem << +CMEE: 0
    2020-10-07T15:59:26.648Z DEBUG modem << OK
    2020-10-07T15:59:26.650Z DEBUG modem >> AT+CMEE=1
    2020-10-07T15:59:26.663Z DEBUG modem << OK
    2020-10-07T15:59:26.666Z DEBUG modem >> AT+CNEC?
    2020-10-07T15:59:26.679Z DEBUG modem << +CNEC: 0
    2020-10-07T15:59:26.681Z DEBUG modem << OK
    2020-10-07T15:59:26.683Z DEBUG modem >> AT+CNEC=24
    2020-10-07T15:59:26.696Z DEBUG modem << OK
    2020-10-07T15:59:26.699Z DEBUG modem >> AT+CGEREP?
    2020-10-07T15:59:26.713Z DEBUG modem << +CGEREP: 0,0
    2020-10-07T15:59:26.714Z DEBUG modem << OK
    2020-10-07T15:59:26.717Z DEBUG modem >> AT+CGDCONT?
    2020-10-07T15:59:26.734Z DEBUG modem << +CGDCONT: 0,"IP","ibasis.iot","10.165.13.211",0,0
    2020-10-07T15:59:26.735Z DEBUG modem << OK
    2020-10-07T15:59:26.747Z DEBUG modem >> AT+CGACT?
    2020-10-07T15:59:26.763Z DEBUG modem << +CGACT: 0,1
    2020-10-07T15:59:26.764Z DEBUG modem << OK
    2020-10-07T15:59:26.770Z DEBUG modem >> AT+CGEREP=1
    2020-10-07T15:59:26.783Z DEBUG modem << OK
    2020-10-07T15:59:26.787Z DEBUG modem >> AT+CIND=1,1,1
    2020-10-07T15:59:26.801Z DEBUG modem << OK
    2020-10-07T15:59:26.804Z DEBUG modem >> AT+CEREG=2
    2020-10-07T15:59:26.817Z DEBUG modem << OK
    2020-10-07T15:59:26.819Z DEBUG modem >> AT+CEREG?
    2020-10-07T15:59:26.833Z DEBUG modem << +CEREG: 2,5,"9200","023B0E01",7
    2020-10-07T15:59:26.835Z DEBUG modem << 
    2020-10-07T15:59:26.835Z DEBUG modem << OK
    2020-10-07T15:59:26.847Z DEBUG modem >> AT+COPS=3,2
    2020-10-07T15:59:26.863Z DEBUG modem << OK
    2020-10-07T15:59:26.866Z DEBUG modem >> AT+COPS?
    2020-10-07T15:59:26.880Z DEBUG modem << +COPS: 0,2,"311480",7
    2020-10-07T15:59:26.882Z DEBUG modem << OK
    2020-10-07T15:59:26.896Z DEBUG modem >> AT%XCBAND
    2020-10-07T15:59:26.912Z DEBUG modem << %XCBAND: 13
    2020-10-07T15:59:26.913Z DEBUG modem << OK
    2020-10-07T15:59:26.919Z DEBUG modem >> AT+CGDCONT?
    2020-10-07T15:59:26.936Z DEBUG modem << +CGDCONT: 0,"IP","ibasis.iot","10.165.13.211",0,0
    2020-10-07T15:59:26.937Z DEBUG modem << OK
    2020-10-07T15:59:26.948Z DEBUG modem >> AT+CGACT?
    2020-10-07T15:59:26.963Z DEBUG modem << +CGACT: 0,1
    2020-10-07T15:59:26.964Z DEBUG modem << OK
    2020-10-07T15:59:26.971Z DEBUG modem >> AT%CESQ=1
    2020-10-07T15:59:26.984Z DEBUG modem << OK
    2020-10-07T15:59:26.987Z DEBUG modem >> AT+CESQ
    2020-10-07T15:59:27.002Z DEBUG modem << +CESQ: 99,99,255,255,9,43
    2020-10-07T15:59:27.003Z DEBUG modem << OK
    2020-10-07T15:59:27.014Z DEBUG modem >> AT%XSIM=1
    2020-10-07T15:59:27.030Z DEBUG modem << OK
    2020-10-07T15:59:27.032Z DEBUG modem >> AT%XSIM?
    2020-10-07T15:59:27.036Z DEBUG modem << %XSIM: 1
    2020-10-07T15:59:27.046Z DEBUG modem << OK
    2020-10-07T15:59:27.054Z DEBUG modem >> AT+CPIN?
    2020-10-07T15:59:27.064Z DEBUG modem << +CPIN: READY
    2020-10-07T15:59:27.066Z DEBUG modem << OK
    2020-10-07T15:59:27.078Z DEBUG modem >> AT+CPINR="SIM PIN"
    2020-10-07T15:59:27.102Z DEBUG modem << +CPINR: "SIM PIN",3
    2020-10-07T15:59:27.103Z DEBUG modem << OK
    2020-10-07T15:59:27.116Z DEBUG modem >> AT+CIMI
    2020-10-07T15:59:27.130Z DEBUG modem << 204080813517753
    2020-10-07T15:59:27.131Z DEBUG modem << OK
    2020-10-07T15:59:27.132Z INFO IMSIdentity: 204080813517753
    2020-10-07T15:59:37.110Z DEBUG modem >> AT%CMNG=1
    2020-10-07T15:59:37.129Z DEBUG modem << %CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"
    2020-10-07T15:59:37.136Z DEBUG modem << %CMNG: 1234,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:59:37.149Z DEBUG modem << %CMNG: 1234,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:59:37.162Z DEBUG modem << %CMNG: 1234,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:59:37.168Z DEBUG modem << %CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"
    2020-10-07T15:59:37.171Z DEBUG modem << %CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"
    2020-10-07T15:59:37.182Z DEBUG modem << %CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"
    2020-10-07T15:59:37.189Z DEBUG modem << OK
    2020-10-07T16:00:00.379Z DEBUG modem << %CESQ: 43,2,4,0
    2020-10-07T16:00:10.746Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs2  ***
    2020-10-07T16:00:10.756Z DEBUG modem << Flash regionsDomainPermissions
    2020-10-07T16:00:10.757Z DEBUG modem << 00 00 0x00000 0x08000 Securerwxl
    2020-10-07T16:00:10.758Z DEBUG modem << 01 31 0x08000 0x100000 Non-Securerwxl
    2020-10-07T16:00:10.762Z DEBUG modem << Non-secure callable region 0 placed in flash region 0 with size 32.
    2020-10-07T16:00:10.934Z DEBUG modem << SRAM regionDomainPermissions
    2020-10-07T16:00:10.943Z DEBUG modem << 00 07 0x00000 0x10000 Securerwxl
    2020-10-07T16:00:10.945Z DEBUG modem << 08 31 0x10000 0x40000 Non-Securerwxl
    2020-10-07T16:00:10.946Z DEBUG modem << PeripheralDomainStatus
    2020-10-07T16:00:10.947Z DEBUG modem << 00 NRF_P0               Non-SecureOK
    2020-10-07T16:00:10.950Z DEBUG modem << 01 NRF_CLOCK            Non-SecureOK
    2020-10-07T16:00:10.954Z DEBUG modem << 02 NRF_RTC0             Non-SecureOK
    2020-10-07T16:00:10.965Z DEBUG modem << 03 NRF_RTC1             Non-SecureOK
    2020-10-07T16:00:10.966Z DEBUG modem << 04 NRF_NVMC             Non-SecureOK
    2020-10-07T16:00:10.967Z DEBUG modem << 05 NRF_UARTE1           Non-SecureOK
    2020-10-07T16:00:10.968Z DEBUG modem << 06 NRF_UARTE2           SecureSKIP
    2020-10-07T16:00:10.980Z DEBUG modem << 07 NRF_TWIM2            Non-SecureOK
    2020-10-07T16:00:10.981Z DEBUG modem << 08 NRF_SPIM3            Non-SecureOK
    2020-10-07T16:00:10.983Z DEBUG modem << 09 NRF_TIMER0           Non-SecureOK
    2020-10-07T16:00:10.983Z DEBUG modem << 10 NRF_TIMER1           Non-SecureOK
    2020-10-07T16:00:10.984Z DEBUG modem << 11 NRF_TIMER2           Non-SecureOK
    2020-10-07T16:00:10.988Z DEBUG modem << 12 NRF_SAADC            Non-SecureOK
    2020-10-07T16:00:10.999Z DEBUG modem << 13 NRF_PWM0             Non-SecureOK
    2020-10-07T16:00:11.000Z DEBUG modem << 14 NRF_PWM1             Non-SecureOK
    2020-10-07T16:00:11.001Z DEBUG modem << 15 NRF_PWM2             Non-SecureOK
    2020-10-07T16:00:11.003Z DEBUG modem << 16 NRF_PWM3             Non-SecureOK
    2020-10-07T16:00:11.014Z DEBUG modem << 17 NRF_WDT              Non-SecureOK
    2020-10-07T16:00:11.015Z DEBUG modem << 18 NRF_IPC              Non-SecureOK
    2020-10-07T16:00:11.016Z DEBUG modem << 19 NRF_VMC              Non-SecureOK
    2020-10-07T16:00:11.017Z DEBUG modem << 20 NRF_FPU              Non-SecureOK
    2020-10-07T16:00:11.019Z DEBUG modem << 21 NRF_EGU1             Non-SecureOK
    2020-10-07T16:00:11.030Z DEBUG modem << 22 NRF_EGU2             Non-SecureOK
    2020-10-07T16:00:11.032Z DEBUG modem << 23 NRF_DPPIC            Non-SecureOK
    2020-10-07T16:00:11.033Z DEBUG modem << 24 NRF_GPIOTE1          Non-SecureOK
    2020-10-07T16:00:11.034Z DEBUG modem << 25 NRF_REGULATORS       Non-SecureOK
    2020-10-07T16:00:11.036Z DEBUG modem << SPM: NS image at 0xc000
    2020-10-07T16:00:11.038Z DEBUG modem << SPM: NS MSP at 0x20026410
    2020-10-07T16:00:11.049Z DEBUG modem << SPM: NS reset vector at 0x1043d
    2020-10-07T16:00:11.050Z DEBUG modem << SPM: prepare to jump to Non-Secure image.
    2020-10-07T16:00:11.234Z DEBUG modem << *** Booting Zephyr OS build v2.3.0-rc1-ncs2  ***
    2020-10-07T16:00:11.245Z DEBUG modem << Azure IoT Hub sample started
    2020-10-07T16:00:11.246Z DEBUG modem << Connecting to LTE network
    2020-10-07T16:00:12.545Z DEBUG modem << +CEREG: 2,"9200","023B0E01",7,0,0,"11100000","11100000"
    2020-10-07T16:00:12.561Z DEBUG modem << LTE cell changed: Cell ID: 37424641, Tracking area: 37376
    2020-10-07T16:00:12.562Z DEBUG modem << PSM parameter update: TAU: -1, Active time: -1
    2020-10-07T16:00:12.595Z DEBUG modem << +CSCON: 1
    2020-10-07T16:00:12.597Z DEBUG modem << RRC mode: Connected
    2020-10-07T16:00:15.986Z DEBUG modem << +CEREG: 5,"9200","023B0E01",7,,,"11100000","11100000"
    2020-10-07T16:00:16.009Z DEBUG modem >> AT+COPS=3,2
    2020-10-07T16:00:16.010Z DEBUG modem << Network registration status: Connected - roaming
    2020-10-07T16:00:16.012Z DEBUG modem << Connected to LTE network
    2020-10-07T16:00:16.014Z DEBUG modem << OK
    2020-10-07T16:00:16.017Z DEBUG modem >> AT+COPS?
    2020-10-07T16:00:16.022Z DEBUG modem << +COPS: 0,2,"311480",7
    2020-10-07T16:00:16.032Z DEBUG modem << OK
    2020-10-07T16:00:16.037Z DEBUG modem >> AT%XCBAND
    2020-10-07T16:00:16.048Z DEBUG modem << %XCBAND: 13
    2020-10-07T16:00:16.049Z DEBUG modem << OK
    2020-10-07T16:00:16.052Z DEBUG modem >> AT+CGDCONT?
    2020-10-07T16:00:16.065Z DEBUG modem << +CGDCONT: 0,"IP","ibasis.iot","10.165.14.41",0,0
    2020-10-07T16:00:16.066Z DEBUG modem << OK
    2020-10-07T16:00:16.070Z DEBUG modem >> AT+CGACT?
    2020-10-07T16:00:16.081Z DEBUG modem << +CGACT: 0,1
    2020-10-07T16:00:16.082Z DEBUG modem << OK
    2020-10-07T16:00:16.274Z DEBUG modem << AZURE_IOT_HUB_EVT_CONNECTING
    2020-10-07T16:00:17.279Z DEBUG modem << [00:00:05.224,975] [0m<dbg> azure_iot_hub.broker_init: IPv4 Address found 104.211.18.153[0m
    2020-10-07T16:00:17.797Z DEBUG modem << azure_iot_hub_connect failed: -95
    2020-10-07T16:00:18.801Z DEBUG modem << [00:00:06.748,413] [1;31m<err> azure_iot_hub: mqtt_connect, error: -95[0m
    2020-10-07T16:00:24.458Z DEBUG modem << +CSCON: 0
    2020-10-07T16:00:24.468Z DEBUG modem << RRC mode: Idle
    

  • Here is another thought. Could you please have a look at my Kconfig file. Maybe I am doing something wrong there?

    zz_azure_iot_hub.zip

  • Hi Apfelsine,
    Still looks like there some issues with the certificates unfortunately.

    You can find the Baltimore CyberTrust Root certificate by following the link in the instructions here.

    The Server-certificate is this.

    The RootCA.pem that you mention is probably the generated certificate, that should be uploaded to the IoT Hub.

    "Does Private key equate to file mydevice-private.pem?" - Yes
    "Does Device certificate equate to file mydevice-public.pem?" - I think this needs to be chained with the intermediate-certificate.e.g.

    -----BEGIN CERTIFICATE-----
    <Device cert>
    -----END CERTIFICATE-----
    -----BEGIN CERTIFICATE-----
    <Intermediate cert>
    -----END CERTIFICATE-----



  • Hi Sabine, 

    In our docs about Azure we point to this link to get the certificates.

    In that page there is a link to "Managing test CA certificates for samples and tutorials" which has the scripts used and the explanations you are looking for.


    So the following is needed to get it to work with PowerShell-generated certs:

    • CA certificate: Baltimore CyberTrust Root certificate
    • Client certificate: <device name>-public.pem
    • Private key: <device name>-private.pem

    "RootCA.pem" has to be uploaded to the IoT Hub and verified.

    For bash-generated certs, then the following is needed:

    • CA certificate: Baltimore CyberTrust Root certificate
    • Client certificate: certs/new-device.cert.pem
    • Private key: private/new-device.key
    "certs/azure-iot-test-only.root.ca.cert.pem" has to be uploaded to IoT Hub and verified.


    Best regards,
    Martin L. 

Related