After connecting nRF9160 DK v0.8.2 kit and connecting the terminal, I observed the following messages:
***Booting Zephyr OS build .2.6.0-rc1-ncs1 ***
SMS sample starting
SMS sample is ready for receiving messages..
Sending SMS: number=0829015567, text="SMS sample: testing"
sms_send returned err: 332
[00:00:33.911,437] [1;31m<err>sms: at_cmd_write returned state=2, err=332
1. There was a failure when sending SMS: number=0829015567, text="SMS sample:testing". The sms_send returned err: 332
2. Despite the message "SMS sample is ready for receiving messages", none of my SMS messages sent to the number associated with the SIM card that I have placed in my nRF9160 DK was received by that unit.
3. I checked with my SIM card provider, who confirmed that my IoT SIM card supports SMS service.
4. I downloaded extra 200 MB of data to my SIM card.
5. As I am using NBIoT and not the LTE-M, I have added the following line to the prj.conf file for this sample: CONFIG_LTE_NETWORK_MODE_NBIOT=y
I attach the copy of the prj.conf file for this sample and a log file from the LTE Link Monitor.
I am using:
1. nRF9160 DK v0.8.2
2. Windows 10 Pro OS, version: 20H2, OS build: 19042.631
3. nRF Connect v 3.7.0
4. nRF Connect SDK v 1.6.1
Copy of the prj.conf file:
# # Copyright (c) 2021 Nordic Semiconductor ASA # # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause # # General config CONFIG_SMS_SEND_PHONE_NUMBER="0829015567" CONFIG_SMS=y CONFIG_SMS_SUBSCRIBERS_MAX_CNT=2 CONFIG_SMS_LOG_LEVEL_DBG=n CONFIG_AT_CMD_RESPONSE_MAX_LEN=512 CONFIG_NEWLIB_LIBC=y # Networking CONFIG_NETWORKING=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_OFFLOAD=y CONFIG_NRF_MODEM_LIB=y CONFIG_POSIX_API=y # LTE link control CONFIG_LTE_LINK_CONTROL=y CONFIG_LTE_AUTO_INIT_AND_CONNECT=y CONFIG_LTE_NETWORK_USE_FALLBACK=n CONFIG_LTE_NETWORK_MODE_NBIOT=y # Debugging CONFIG_LOG=y CONFIG_ASSERT=y CONFIG_ASSERT_VERBOSE=y
Copy of the log file from the LTE Link Monitor:
2021-09-06T14:06:52.483Z INFO Application data folder: C:\Users\Administrator\AppData\Roaming\nrfconnect\pc-nrfconnect-linkmonitor 2021-09-06T14:06:52.794Z DEBUG App pc-nrfconnect-linkmonitor v1.1.10 official 2021-09-06T14:06:52.795Z DEBUG App path: C:\Users\Administrator\.nrfconnect-apps\node_modules\pc-nrfconnect-linkmonitor 2021-09-06T14:06:52.796Z DEBUG nRFConnect 3.7.0, required by the app is (^3.6.0) 2021-09-06T14:06:52.797Z DEBUG nRFConnect path: C:\Users\Administrator\AppData\Local\Programs\nrfconnect\resources\app.asar 2021-09-06T14:06:52.803Z DEBUG HomeDir: C:\Users\Administrator 2021-09-06T14:06:52.804Z DEBUG TmpDir: C:\Users\ADMINI~1\AppData\Local\Temp 2021-09-06T14:06:53.103Z VERBOSE Could not fetch serial number for serial port at COM3 2021-09-06T14:06:58.687Z INFO Modem port is opened 2021-09-06T14:07:07.245Z DEBUG modem << *** Booting Zephyr OS build v2.6.0-rc1-ncs1 *** 2021-09-06T14:07:07.487Z DEBUG modem << Flash regionsDomainPermissions 2021-09-06T14:07:07.498Z DEBUG modem << 00 01 0x00000 0x10000 Securerwxl 2021-09-06T14:07:07.505Z DEBUG modem << 02 31 0x10000 0x100000 Non-Securerwxl 2021-09-06T14:07:07.513Z DEBUG modem << Non-secure callable region 0 placed in flash region 1 with size 32. 2021-09-06T14:07:07.519Z DEBUG modem << SRAM regionDomainPermissions 2021-09-06T14:07:07.523Z DEBUG modem << 00 07 0x00000 0x10000 Securerwxl 2021-09-06T14:07:07.525Z DEBUG modem << 08 31 0x10000 0x40000 Non-Securerwxl 2021-09-06T14:07:07.527Z DEBUG modem << PeripheralDomainStatus 2021-09-06T14:07:07.528Z DEBUG modem << 00 NRF_P0 Non-SecureOK 2021-09-06T14:07:07.530Z DEBUG modem << 01 NRF_CLOCK Non-SecureOK 2021-09-06T14:07:07.532Z DEBUG modem << 02 NRF_RTC0 Non-SecureOK 2021-09-06T14:07:07.534Z DEBUG modem << 03 NRF_RTC1 Non-SecureOK 2021-09-06T14:07:07.536Z DEBUG modem << 04 NRF_NVMC Non-SecureOK 2021-09-06T14:07:07.540Z DEBUG modem << 05 NRF_UARTE1 Non-SecureOK 2021-09-06T14:07:07.542Z DEBUG modem << 06 NRF_UARTE2 SecureSKIP 2021-09-06T14:07:07.543Z DEBUG modem << 07 NRF_TWIM2 Non-SecureOK 2021-09-06T14:07:07.545Z DEBUG modem << 08 NRF_SPIM3 Non-SecureOK 2021-09-06T14:07:07.548Z DEBUG modem << 09 NRF_TIMER0 Non-SecureOK 2021-09-06T14:07:07.551Z DEBUG modem << 10 NRF_TIMER1 Non-SecureOK 2021-09-06T14:07:07.556Z DEBUG modem << 11 NRF_TIMER2 Non-SecureOK 2021-09-06T14:07:07.559Z DEBUG modem << 12 NRF_SAADC Non-SecureOK 2021-09-06T14:07:07.562Z DEBUG modem << 13 NRF_PWM0 Non-SecureOK 2021-09-06T14:07:07.566Z DEBUG modem << 14 NRF_PWM1 Non-SecureOK 2021-09-06T14:07:07.568Z DEBUG modem << 15 NRF_PWM2 Non-SecureOK 2021-09-06T14:07:07.571Z DEBUG modem << 16 NRF_PWM3 Non-SecureOK 2021-09-06T14:07:07.573Z DEBUG modem << 17 NRF_WDT Non-SecureOK 2021-09-06T14:07:07.575Z DEBUG modem << 18 NRF_IPC Non-SecureOK 2021-09-06T14:07:07.576Z DEBUG modem << 19 NRF_VMC Non-SecureOK 2021-09-06T14:07:07.578Z DEBUG modem << 20 NRF_FPU Non-SecureOK 2021-09-06T14:07:07.582Z DEBUG modem << 21 NRF_EGU1 Non-SecureOK 2021-09-06T14:07:07.584Z DEBUG modem << 22 NRF_EGU2 Non-SecureOK 2021-09-06T14:07:07.586Z DEBUG modem << 23 NRF_DPPIC Non-SecureOK 2021-09-06T14:07:07.588Z DEBUG modem << 24 NRF_REGULATORS Non-SecureOK 2021-09-06T14:07:07.589Z DEBUG modem << 25 NRF_PDM Non-SecureOK 2021-09-06T14:07:07.591Z DEBUG modem << 26 NRF_I2S Non-SecureOK 2021-09-06T14:07:07.593Z DEBUG modem << 27 NRF_GPIOTE1 Non-SecureOK 2021-09-06T14:07:07.595Z DEBUG modem << SPM: NS image at 0x10000 2021-09-06T14:07:07.599Z DEBUG modem << SPM: NS MSP at 0x200185c8 2021-09-06T14:07:07.601Z DEBUG modem << SPM: NS reset vector at 0x14ad1 2021-09-06T14:07:07.602Z DEBUG modem << SPM: prepare to jump to Non-Secure image. 2021-09-06T14:07:07.633Z DEBUG modem << *** Booting Zephyr OS build v2.6.0-rc1-ncs1 *** 2021-09-06T14:07:13.326Z DEBUG modem << SMS sample starting 2021-09-06T14:07:13.334Z DEBUG modem << SMS sample is ready for receiving messages 2021-09-06T14:07:13.340Z DEBUG modem << Sending SMS: number=0829015567, text="SMS sample: testing" 2021-09-06T14:07:41.339Z DEBUG modem << sms_send returned err: 332 2021-09-06T14:07:42.345Z DEBUG modem << [00:00:33.911,437] [1;31m<err> sms: at_cmd_write returned state=2, err=332[0m