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

nRF9160-DK. Update certificate. Can´t get modem in offline state.

Hello,

I´m trying to update the certificate of my nRF9160-DK. To do this the modem has to be in offline state. I´m running the AT Client sample like it is shown in the chapter Building and running here. But the command "AT+CFUN?" Returns "0" not "4". How can I solve this Problem?

  • Hi, 

    I'm not sure I understand your question. Are you sending the command AT+CFUN=4, receiving "OK", and when you run AT+CFUN? you are still getting 0?

    In any case, status 0 and 4 are in practice the same thing as the former is "power off" mode while the latter is "offline mode".

    Best regards,

    Heidi

  • Thank you for the quick Reply.

    Yes i still getting state 0. 

    So i can update the certificate with the modem in power off mode? Or is something wrong with the AT Client.

  • Yes, you can update the certificates when the modem is in power-off mode.

    I'm not sure why you're seeing status 0. Could you provide me with a log file, so I can take a closer look?

  • 2020-02-14T14:49:24.508Z INFO Application data folder: C:\Users\dx\AppData\Roaming\nrfconnect\pc-nrfconnect-linkmonitor
    2020-02-14T14:49:24.690Z DEBUG App pc-nrfconnect-linkmonitor v1.1.1 official
    2020-02-14T14:49:24.690Z DEBUG App path: C:\Users\dx\.nrfconnect-apps\node_modules\pc-nrfconnect-linkmonitor
    2020-02-14T14:49:24.690Z DEBUG nRFConnect 3.3.0 is supported by the app (^3.2.0)
    2020-02-14T14:49:24.690Z DEBUG nRFConnect path: C:\Pro\nrfconnect\resources\app.asar
    2020-02-14T14:49:24.690Z DEBUG HomeDir: C:\Users\dx
    2020-02-14T14:49:24.690Z DEBUG TmpDir: C:\Users\dx\AppData\Local\Temp
    2020-02-14T14:49:30.996Z INFO Modem port is opened
    2020-02-14T14:49:31.009Z DEBUG modem >> AT+CFUN?\x0D\x0A
    2020-02-14T14:49:31.040Z DEBUG modem << +CFUN: 0\x0D\x0A
    2020-02-14T14:49:31.044Z DEBUG modem << OK\x0D\x0A
    2020-02-14T14:49:35.088Z DEBUG modem << *** Booting Zephyr OS build v2.1.99-ncs1-rc1  ***\x0D\x0A
    2020-02-14T14:49:35.098Z DEBUG modem << Flash region\x09\x09Domain\x09\x09Permissions\x0D\x0A
    2020-02-14T14:49:35.100Z DEBUG modem << 00 0x00000 0x08000 \x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.104Z DEBUG modem << 01 0x08000 0x10000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.110Z DEBUG modem << 02 0x10000 0x18000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.114Z DEBUG modem << 03 0x18000 0x20000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.118Z DEBUG modem << 04 0x20000 0x28000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.121Z DEBUG modem << 05 0x28000 0x30000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.124Z DEBUG modem << 06 0x30000 0x38000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.139Z DEBUG modem << 07 0x38000 0x40000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.142Z DEBUG modem << 08 0x40000 0x48000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.144Z DEBUG modem << 09 0x48000 0x50000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.154Z DEBUG modem << 10 0x50000 0x58000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.157Z DEBUG modem << 11 0x58000 0x60000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.160Z DEBUG modem << 12 0x60000 0x68000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.165Z DEBUG modem << 13 0x68000 0x70000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.169Z DEBUG modem << 14 0x70000 0x78000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.172Z DEBUG modem << 15 0x78000 0x80000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.174Z DEBUG modem << 16 0x80000 0x88000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.183Z DEBUG modem << 17 0x88000 0x90000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.185Z DEBUG modem << 18 0x90000 0x98000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.188Z DEBUG modem << 19 0x98000 0xa0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.190Z DEBUG modem << 20 0xa0000 0xa8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.194Z DEBUG modem << 21 0xa8000 0xb0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.196Z DEBUG modem << 22 0xb0000 0xb8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.200Z DEBUG modem << 23 0xb8000 0xc0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.201Z DEBUG modem << 24 0xc0000 0xc8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.202Z DEBUG modem << 25 0xc8000 0xd0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.211Z DEBUG modem << 26 0xd0000 0xd8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.213Z DEBUG modem << 27 0xd8000 0xe0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.216Z DEBUG modem << 28 0xe0000 0xe8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.218Z DEBUG modem << 29 0xe8000 0xf0000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.220Z DEBUG modem << 30 0xf0000 0xf8000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.224Z DEBUG modem << 31 0xf8000 0x100000 \x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.225Z DEBUG modem << Non-secure callable region 0 placed in flash region 0 with size 32.\x0D\x0A\x0D\x0A
    2020-02-14T14:49:35.375Z DEBUG modem << SRAM region\x09\x09Domain\x09\x09Permissions\x0D\x0A
    2020-02-14T14:49:35.381Z DEBUG modem << 00 0x00000 0x02000\x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.383Z DEBUG modem << 01 0x02000 0x04000\x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.385Z DEBUG modem << 02 0x04000 0x06000\x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.388Z DEBUG modem << 03 0x06000 0x08000\x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.392Z DEBUG modem << 04 0x08000 0x0a000\x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.398Z DEBUG modem << 05 0x0a000 0x0c000\x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.401Z DEBUG modem << 06 0x0c000 0x0e000\x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.404Z DEBUG modem << 07 0x0e000 0x10000\x09Secure\x09\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.407Z DEBUG modem << 08 0x10000 0x12000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.409Z DEBUG modem << 09 0x12000 0x14000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.421Z DEBUG modem << 10 0x14000 0x16000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.423Z DEBUG modem << 11 0x16000 0x18000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.426Z DEBUG modem << 12 0x18000 0x1a000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.428Z DEBUG modem << 13 0x1a000 0x1c000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.430Z DEBUG modem << 14 0x1c000 0x1e000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.433Z DEBUG modem << 15 0x1e000 0x20000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.440Z DEBUG modem << 16 0x20000 0x22000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.442Z DEBUG modem << 17 0x22000 0x24000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.444Z DEBUG modem << 18 0x24000 0x26000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.453Z DEBUG modem << 19 0x26000 0x28000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.455Z DEBUG modem << 20 0x28000 0x2a000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.457Z DEBUG modem << 21 0x2a000 0x2c000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.459Z DEBUG modem << 22 0x2c000 0x2e000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.467Z DEBUG modem << 23 0x2e000 0x30000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.469Z DEBUG modem << 24 0x30000 0x32000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.470Z DEBUG modem << 25 0x32000 0x34000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.471Z DEBUG modem << 26 0x34000 0x36000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.474Z DEBUG modem << 27 0x36000 0x38000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.475Z DEBUG modem << 28 0x38000 0x3a000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.479Z DEBUG modem << 29 0x3a000 0x3c000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.481Z DEBUG modem << 30 0x3c000 0x3e000\x09Non-Secure\x09rwxl\x0D\x0A
    2020-02-14T14:49:35.488Z DEBUG modem << 31 0x3e000 0x40000\x09Non-Secure\x09rwxl\x0D\x0A\x0D\x0A
    2020-02-14T14:49:35.489Z DEBUG modem << Peripheral\x09\x09Domain\x09\x09Status\x0D\x0A
    2020-02-14T14:49:35.492Z DEBUG modem << 00 NRF_P0               Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.502Z DEBUG modem << 01 NRF_CLOCK            Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.503Z DEBUG modem << 02 NRF_RTC0             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.505Z DEBUG modem << 03 NRF_RTC1             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.508Z DEBUG modem << 04 NRF_NVMC             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.510Z DEBUG modem << 05 NRF_UARTE1           Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.511Z DEBUG modem << 06 NRF_UARTE2           Secure\x09\x09SKIP\x0D\x0A
    2020-02-14T14:49:35.514Z DEBUG modem << 07 NRF_TWIM2            Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.522Z DEBUG modem << 08 NRF_SPIM3            Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.523Z DEBUG modem << 09 NRF_TIMER0           Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.527Z DEBUG modem << 10 NRF_TIMER1           Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.528Z DEBUG modem << 11 NRF_TIMER2           Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.530Z DEBUG modem << 12 NRF_SAADC            Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.539Z DEBUG modem << 13 NRF_PWM0             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.540Z DEBUG modem << 14 NRF_PWM1             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.542Z DEBUG modem << 15 NRF_PWM2             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.553Z DEBUG modem << 16 NRF_PWM3             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.554Z DEBUG modem << 17 NRF_WDT              Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.557Z DEBUG modem << 18 NRF_IPC              Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.569Z DEBUG modem << 19 NRF_VMC              Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.570Z DEBUG modem << 20 NRF_FPU              Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.571Z DEBUG modem << 21 NRF_EGU1             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.573Z DEBUG modem << 22 NRF_EGU2             Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.574Z DEBUG modem << 23 NRF_DPPIC            Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.576Z DEBUG modem << 24 NRF_GPIOTE1          Non-Secure\x09OK\x0D\x0A
    2020-02-14T14:49:35.580Z DEBUG modem << 25 NRF_REGULATORS       Non-Secure\x09OK\x0D\x0A\x0D\x0A
    2020-02-14T14:49:35.581Z DEBUG modem << SPM: NS image at 0xc000\x0D\x0A
    2020-02-14T14:49:35.583Z DEBUG modem << SPM: NS MSP at 0x20026fb8\x0D\x0A
    2020-02-14T14:49:35.584Z DEBUG modem << SPM: NS reset vector at 0xd1ed\x0D\x0A
    2020-02-14T14:49:35.592Z DEBUG modem << SPM: prepare to jump to Non-Secure image.\x0D\x0A
    2020-02-14T14:49:35.773Z DEBUG modem << *** Booting Zephyr OS build v2.1.99-ncs1-rc1  ***\x0D\x0A
    2020-02-14T14:49:35.779Z DEBUG modem << The AT host sample started\x0D\x0A
    2020-02-14T14:49:40.614Z DEBUG modem >> AT+CFUN?\x0D\x0A
    2020-02-14T14:49:40.635Z DEBUG modem << +CFUN: 0\x0D\x0A
    2020-02-14T14:49:40.645Z DEBUG modem << OK\x0D\x0A

  • Hi, the log file does not include you sending the AT+CFUN=4 command to the modem though?

Related