https_client: at_host: Error while processing AT command: -1

Hello,

I had to build the https_client sample again to compare some behaviors on my application and as I flash it to nRF9160 I am having a cyclical error as below:

 <err> at_host: Error while processing AT command: -1

I have chosen as configuration (using VSCode extension): 

board:  nrf9160dk_nrf9160_ns

Configuration: prj.conf

Use sysbuild [x]

toolchain:  v2.7.0

west workspace: v2.6.1

The curious is that the exact configuration built in the same environment some days ago ran perfectly on the same target (with SIM card).

Does anyone ever faced a similar problem?

  • Hello, 

    The AT Host library is not enabled by default in the https_client sample, which will give you the error you get. 

    Adding the following configuration setting to your prj.conf

    CONFIG_AT_HOST_LIBRARY=y

    Here is my output before and after adding this config.

    > at
    [00:01:51.041,442] <err> at_host: Error while processing AT command: -1
    at*** Booting nRF Connect SDK v3.5.99-ncs1 ***
    HTTPS client sample started
    Bringing network interface up
    Provisioning certificate
    Certificate mismatch
    Provisioning certificate
    Connecting to the network
    +CEREG: 2,"8173","01165700",7
    +CSCON: 1
    +CGEV: ME PDN ACT 0,0
    +CNEC_ESM: 50,0
    +CEREG: 5,"8173","01165700",7,,,"11100000","11100000"
    Network connectivity established and IP address assigned
    Looking up example.com
    > at
    OK
    > at+cfun?
    +CFUN: 21
    OK

    Kind regards,
    Øyvind

  • Hello,

    I had already added this CONFIG_AT_HOST_LIBRARY=y before. 

    I have added this again and flashed but now it is presenting the following error logs:

    <err> at_host: Error while processing AT 31ERROR
    00>
    00> ERROR
    00>
    00> ERROR
    00>
    00> ERROR
    00>
    00> ERROR

    My environment seems to give unpredictable results.

    Since I am using VSCode nRF Connect extension I wonder whether using this tool (VSCode) has any tricks or cares I should take.  For instance: is it Ok to delete the build configuration (and configure it again) if I want to ensure a pristine build to be done?

    Would using command line / west be more recommended?

    Other info: I am using Ubuntu 22.04 and VSCode 1.92.1

  • Rodrigo Aznar said:
    Since I am using VSCode nRF Connect extension I wonder whether using this tool (VSCode) has any tricks or cares I should take.  For instance: is it Ok to delete the build configuration (and configure it again) if I want to ensure a pristine build to be done?

    We recommend deleting the build folder completely to ensure that your application is built fully pristine. Could you please try that first?

  • Hello Øyvind,

    Thanks for the suggestion.  But I realized that my application is not getting internet connection through LTE. I suspect that my nrf9160 has been partially damaged maybe due to static. Maybe this would explain the AT command errors that the underneath calls of some of the libs produce, right?.

    As I get another hardware to confirm this hypothesis I update here.

    Thanks for now

Related