<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86567/connect-to-nrf-cloud-using-esim</link><description>We are using nRF9160 chip (in own custom board), SDK 1.9.1 board with &amp;quot;serial lte modem&amp;quot; firmware. We are unable to get coordinates using AGPS. I suppose this is due to the fact that the eSIM needs to be somehow registered on the nRF Cloud. We used the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Apr 2022 08:17:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86567/connect-to-nrf-cloud-using-esim" /><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362965?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 08:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aec6430a-f1ae-4d7b-a9a9-493bbfc15320</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Stas Jis"]After generating certificates, I see that the generated file contains two client certificates, is this correct?[/quote]
&lt;p&gt;Generating the certificates as described in my previous comment, will generate a .json file including certificates. You can import this .json file to the Certificate Manager found in LTE Link Monitor.&amp;nbsp;&lt;/p&gt;
[quote user="Stas Jis"]Where do you specify the Security tag when adding a device?[/quote]
&lt;p&gt;The serurity tag (sec_tag) is only specified when provisioning certificates to your device, i.e. using he Certificate Manager. This number will provide a location to the certificates&amp;nbsp;which you can instruct your program to use i.e.&amp;nbsp;&lt;span&gt;CONFIG_NRF_CLOUD_SEC_TAG=&amp;lt;provided sec tag&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Stas Jis"]I don&amp;#39;t see the option to specify a security tag in the add LTE device window.[/quote]
&lt;p&gt;No, this is correct. The Add LTE Device window in nRF Cloud only refers to the Device ID and PIN/HWID that you provided when creating the certificate&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649751253423v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;important&lt;/span&gt; that you use the same device id and pin/hwid in both forms.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649751322063v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Stas Jis"]The device still cannot be added to the nRF cloud[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;What error do you get? Have you ensured that you are pointing to the correct certificate using&amp;nbsp;CONFIG_NRF_CLOUD_SEC_TAG=&amp;lt;provided sec tag&amp;gt; in your application?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362716?ContentTypeID=1</link><pubDate>Sun, 10 Apr 2022 11:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9262082d-9ffa-42bc-a113-4c46a9477553</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/oys"&gt;&amp;Oslash;yvind&lt;/a&gt;,&lt;br /&gt;I&amp;#39;m trying to follow your instructions, but it doesn&amp;#39;t work so far.&lt;br /&gt;After generating certificates, I see that the generated file contains two client certificates, is this correct? do they both need to be specified when renewing certificates?&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; &amp;quot;clientCert&amp;quot;:&amp;quot;
 -----BEGIN CERTIFICATE-----\n
MIICrTCCAZUCCQCVEZ65+2tKnjANBgkqhkiG9w0BAQsFADBwMQswCQYDVQQGEwJO\nTzEPMA0GA1UECAwGTm9yd2F5MRIwEAYDVQQHDAlUcm9uZGhlaW0xHTAbBgNVBAoM\nFE5vcmRpYyBTZW1pY29uZHVjdG9yMR0wGwYDVQQLDBRucmZjbG91ZC5jb20tR2Vu\nZXJpYzAgFw0yMjA0MTAxMDQ3NDNaGA8yMDUyMDQwMjEwNDc0M1owgYkxCzAJBgNV\nBAYTAk5PMRIwEAYDVQQIDAlUcm9uZGVsYWcxEjAQBgNVBAcMCVRyb25kaGVpbTEh\nMB8GA1UECgwYTm9yZGljIFNlbWljb25kdWN0b3IgQVNBMRwwGgYDVQQDDBNQZXRw\nYWNlXzk5ODU2M19UZXN0MREwDwYDVQQuEwg3NTc0NzcyMzBZMBMGByqGSM49AgEG\nCCqGSM49AwEHA0IABHAVnIhrjYob9EwqYdoYt40HpEX4e/Wcm8y8l9kpTUhR7Gtg\nqcjlI33kIaqv/wiDfsK6Se9iDng7YxzFBZfiUpwwDQYJKoZIhvcNAQELBQADggEB\nAB/cGYQW5n2s3yL9T2FHUPu7Rnn4Edx9Bv/Z6Ab7Y49I7rOQLaDupWU6ghB/tqcZ\n5CuiAIj8R1m+KIvQPjaK5igpFc+CtyL8OYZiq/uwedp/f/MYrJ2FBugRLZg+LF3n\nCfYALlQs9vwtUB1YB1rwhZ38zq5LWN07aqq56pR6V+JBSuwwLt6mXqfzPaVOWSrp\nhf9Ma+7YLfbDX2xRTR6O8v0bhbcM708EWeVxPSfnu8Bn+OMPYGXfpaZx9gMWKNu4\nH3jt6CD15D2gZzgZ+FXDlc+lM58DvVj9Yg6G/dCh2GNku+5ELUuzZ1Zu50fNCgy+\n108I9Iah1i43JpoOfy9Jw/0=\n-----END CERTIFICATE-----\n
-----BEGIN CERTIFICATE-----\n
MIIDszCCApugAwIBAgIJAIt6VMjGN2CzMA0GCSqGSIb3DQEBCwUAMHAxCzAJBgNV\nBAYTAk5PMQ8wDQYDVQQIDAZOb3J3YXkxEjAQBgNVBAcMCVRyb25kaGVpbTEdMBsG\nA1UECgwUTm9yZGljIFNlbWljb25kdWN0b3IxHTAbBgNVBAsMFG5yZmNsb3VkLmNv\nbS1HZW5lcmljMB4XDTE5MDkxMTE4NTUyOVoXDTIyMDcwMTE4NTUyOVowcDELMAkG\nA1UEBhMCTk8xDzANBgNVBAgMBk5vcndheTESMBAGA1UEBwwJVHJvbmRoZWltMR0w\nGwYDVQQKDBROb3JkaWMgU2VtaWNvbmR1Y3RvcjEdMBsGA1UECwwUbnJmY2xvdWQu\nY29tLUdlbmVyaWMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPgb/l\n/0me0+ySVzZeSRQ5vkYfYjNwJYv3UVbN1QaP00YNKCathNlKMPZOv39PUmld9eaN\nGoQJw7Tc8oXFGZrllc7fdJD2YBmp9uot4hwXWUMKX+xkquC7XQFvLeOkJHaNUU4k\ny03vMqC/RDsA+xtexvbwp6+Vu6hr7Uil57mFceV456iXBiDLnmhsww9HtF7iP1ne\n56pijtGRi0mM9OfWIrO+yKoRp+KUUszDCIXBhFSdtzoeUlp//NIWBT96tE1oQnv2\nI9NwU0b96A7BccWdMzDAiJEbSzBFpQQlhDAUcu5KlDMrF/V4YcyQ5tZRI1FEalOV\n9FX1P+st+E07gEyJAgMBAAGjUDBOMB0GA1UdDgQWBBQeOm/kNx7xB/1VOMGIur0S\n+jTe2TAfBgNVHSMEGDAWgBQeOm/kNx7xB/1VOMGIur0S+jTe2TAMBgNVHRMEBTAD\nAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBp4VP939aKCocGmVrAcaEwemrce37gR9Fr\ncAZMQ9G0Uq4Rketah72D5oqIZFI7pQ/KLbxetzfziH74jv3hxYofraJCvyEOgJfs\n708vSZdLJHRHXIghpvFOSXrrsyU/oRfxp+iZNGCk7AdMYHRUom+gjYfb5/2eiZXW\nDsDwHnLFSA8nIk9D3YH/5hM8uny94LijW41r5RO33Sk3gM9X3afYUp0rdpg0sRBq\nme25iMVsFwCmWfMbmfjOTDHVWnoU6ZPa+4QyekzDdJW4gLLJRDR0mVWD8lEoIyhV\njzV+sF0OhtHgMgnAkUUU05UCqi8gWuC+qtimwx80X+ETCq4jpGqj\n
-----END CERTIFICATE-----\n&amp;quot;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Where do you specify the Security tag when adding a device?&lt;br /&gt;I don&amp;#39;t see the option to specify a security tag in the add LTE device window.&lt;br /&gt;The device still cannot be added to the nRF cloud.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362298?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 10:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fef33bae-a5ca-4fa8-beb7-9f314c7979fd</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Stas Jis"]&lt;p&gt;AT#XNRFCLOUD?&lt;/p&gt;
&lt;p&gt;#XNRFCLOUD: 0,0,654321,&amp;quot;nrf-350916060695718&amp;quot;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From your previous comment your showed that you have a certificate for nRF Cloud. Did you change in prj.conf the sec_tag to 321?&lt;br /&gt;&lt;span&gt;CONFIG_NRF_CLOUD_SEC_TAG=321&lt;/span&gt;&lt;br /&gt;What happens if you change this to &lt;span&gt;654321&amp;nbsp;&lt;/span&gt;and retry?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Stas Jis"]After that, I try to add my user device to the nRF cloud using the user ID (not IMEI, used the device ID, the same one used when generating certificates) and any password as you said earlier:&lt;br /&gt;&lt;span style="text-decoration:underline;"&gt;For you custom board you can choose a Device ID that fits your application along with a PIN/HWID of your choice.&lt;/span&gt;[/quote]
&lt;p&gt;I&amp;#39;ve programmed the SLM application and tested generating the following certs&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1778.pastedimage1649324950533v1.png" alt=" " /&gt;&lt;br /&gt;Then using the&amp;nbsp;certificate manager in LTE Link Monitor to provision to my nRF9160DK&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7635.pastedimage1649325196291v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;2022-04-07T09:52:58.347Z INFO Updating CA certificate...
2022-04-07T09:52:58.348Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=0,321,0,&amp;quot;-----BEGIN CERTIFICATE-----
2022-04-07T09:52:58.360Z DEBUG modem &amp;gt;&amp;gt; MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF
...
2022-04-07T09:52:58.581Z DEBUG modem &amp;gt;&amp;gt; rqXRfboQnoZsG4q5WTP468SQvvG5
2022-04-07T09:52:58.593Z DEBUG modem &amp;gt;&amp;gt; -----END CERTIFICATE-----&amp;quot;
2022-04-07T09:52:59.989Z DEBUG modem &amp;lt;&amp;lt; OK
2022-04-07T09:52:59.990Z INFO Updating client certificate...
2022-04-07T09:52:59.991Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=0,321,1,&amp;quot;-----BEGIN CERTIFICATE-----
2022-04-07T09:53:00.003Z DEBUG modem &amp;gt;&amp;gt; MIICojCCAYoCCQCRSlfrvINUyjANBgkqhkiG9w0BAQsFADBwMQswCQYDVQQGEwJO
...
2022-04-07T09:53:00.177Z DEBUG modem &amp;gt;&amp;gt; 3M3LgJOd
2022-04-07T09:53:00.188Z DEBUG modem &amp;gt;&amp;gt; -----END CERTIFICATE-----
2022-04-07T09:53:00.202Z DEBUG modem &amp;gt;&amp;gt; -----BEGIN CERTIFICATE-----
2022-04-07T09:53:00.214Z DEBUG modem &amp;gt;&amp;gt; MIIDszCCApugAwIBAgIJAIt6VMjGN2CzMA0GCSqGSIb3DQEBCwUAMHAxCzAJBgNV
...
2022-04-07T09:53:00.450Z DEBUG modem &amp;gt;&amp;gt; jzV+sF0OhtHgMgnAkUUU05UCqi8gWuC+qtimwx80X+ETCq4jpGqj
2022-04-07T09:53:00.462Z DEBUG modem &amp;gt;&amp;gt; -----END CERTIFICATE-----&amp;quot;
2022-04-07T09:53:00.514Z DEBUG modem &amp;lt;&amp;lt; OK
2022-04-07T09:53:00.516Z INFO Updating private key...
2022-04-07T09:53:00.518Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=0,321,2,&amp;quot;-----BEGIN EC PARAMETERS-----
2022-04-07T09:53:00.532Z DEBUG modem &amp;gt;&amp;gt; BggqhkjOPQMBBw==
2022-04-07T09:53:00.544Z DEBUG modem &amp;gt;&amp;gt; -----END EC PARAMETERS-----
2022-04-07T09:53:00.555Z DEBUG modem &amp;gt;&amp;gt; -----BEGIN EC PRIVATE KEY-----
2022-04-07T09:53:00.567Z DEBUG modem &amp;gt;&amp;gt; MHcCAQEEIAQgeXklbT8V93LOekZgK+zuKxTEiw4IFSz8Yg2pPG1BoAoGCCqGSM49
2022-04-07T09:53:00.579Z DEBUG modem &amp;gt;&amp;gt; AwEHoUQDQgAEVZ8c8YzWCw/MSi85fJhVCv8h3eRFX7f4+WYoTutXX9MRyksPP6HA
2022-04-07T09:53:00.704Z DEBUG modem &amp;gt;&amp;gt; C/RWEoj4NeNK5JM7uEq3eRdVMDh1eRLSuA==
2022-04-07T09:53:00.725Z DEBUG modem &amp;gt;&amp;gt; -----END EC PRIVATE KEY-----&amp;quot;
2022-04-07T09:53:00.825Z DEBUG modem &amp;lt;&amp;lt; OK
2022-04-07T09:53:00.826Z INFO Certificate update completed
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then I run the following:&lt;br /&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;2022-04-07T10:36:46.860Z DEBUG modem &amp;gt;&amp;gt; AT#XNRFCLOUD=1
2022-04-07T10:36:46.865Z DEBUG modem &amp;lt;&amp;lt; OK
2022-04-07T10:36:52.712Z DEBUG modem &amp;lt;&amp;lt; #XNRFCLOUD: 0,0
2022-04-07T10:36:52.714Z DEBUG modem &amp;lt;&amp;lt; #XNRFCLOUD: 0,0
2022-04-07T10:37:01.258Z DEBUG modem &amp;lt;&amp;lt; %CESQ: 65,3,17,2
2022-04-07T10:37:03.818Z DEBUG modem &amp;lt;&amp;lt; %CESQ: 66,3,22,3
2022-04-07T10:37:20.399Z DEBUG modem &amp;lt;&amp;lt; %CESQ: 255,0,255,0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This time I went into nRF Cloud and added LTE device on sec tag 321&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649328185642v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4186.pastedimage1649328064558v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362268?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 09:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:592f1bf3-0898-4911-b074-8afa18d9c943</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;Dear&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/oys"&gt;&amp;Oslash;yvind&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s go through the entire scenario from the beginning.&lt;br /&gt;Because at some stage there is definitely a problem.&lt;/p&gt;
&lt;p&gt;We are using &amp;quot;serial_lte_modem&amp;quot; firmware, using an external MCU and indicating that we are using our Security tag:&lt;br /&gt;CONFIG_NRF_CLOUD_AGPS=y&lt;br /&gt;CONFIG_SLM_CONNECT_UART_2=y&lt;br /&gt;CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2&lt;br /&gt;CONFIG_SLM_AGPS=y&lt;br /&gt;CONFIG_NRF_CLOUD_SEC_TAG=321&lt;/p&gt;
&lt;p&gt;prj.conf file:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
# General config
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_STACK_SENTINEL=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_RING_BUFFER=y

# Segger RTT
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_UART=y

# Network
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_NATIVE=n

# Modem library
CONFIG_NRF_MODEM_LIB=y
# Align the max FD entry to NRF_MODEM_MAX_SOCKET_COUNT(8)
CONFIG_POSIX_MAX_FDS=8
# Enable below for modem trace
#CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y

# Use GPIO
CONFIG_GPIO=y
CONFIG_GPIO_NRFX=y

# UART interface
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_TIMER2=y

# Stacks and heaps
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

# Device power management
CONFIG_PM_DEVICE=y

# FOTA
CONFIG_HTTP_PARSER_URL=y
CONFIG_FOTA_DOWNLOAD=y
CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y
CONFIG_DFU_TARGET=y
CONFIG_DOWNLOAD_CLIENT=y
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y

# FLASH
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

# Settings
CONFIG_SETTINGS=y
CONFIG_SETTINGS_FCB=y
CONFIG_FCB=y

# nRF Cloud
CONFIG_CLOUD_API=y
CONFIG_NRF_CLOUD_MQTT=y
CONFIG_NRF_CLOUD_FOTA=n
CONFIG_NRF_CLOUD_AGPS=y
CONFIG_NRF_CLOUD_PGPS=y
CONFIG_NRF_CLOUD_CELL_POS=y
CONFIG_NRF_CLOUD_LOG_LEVEL_INF=y
CONFIG_DATE_TIME=y
CONFIG_MODEM_INFO=y
CONFIG_MODEM_INFO_ADD_DATE_TIME=n
CONFIG_AT_MONITOR=y
CONFIG_MODEM_JWT=y
# Use &amp;quot;nrf-&amp;lt;IMEI&amp;gt;&amp;quot; as the default device_id format
# Use &amp;quot;&amp;lt;device_uuid&amp;gt;&amp;quot; as the device_id format by below
#CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID=y

#
# SLM-specific configurations
#
CONFIG_SLM_CUSTOMIZED=n
CONFIG_SLM_LOG_LEVEL_INF=y
CONFIG_SLM_EXTERNAL_XTAL=n
CONFIG_SLM_START_SLEEP=n
#\nUse\nUART_0\n(when\nworking\nwith\nPC\nterminal)
#CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
#\nUse\nUART_2\n(when\nworking\nwith\nexternal\nMCU)
CONFIG_SLM_CONNECT_UART_2=y
CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2
#\nnRF\nCloud\nbased\nlocation\nservices
CONFIG_SLM_AGPS=y
CONFIG_SLM_PGPS=y
CONFIG_SLM_CELL_POS=y
CONFIG_SLM_LOG_LEVEL_DBG=y
CONFIG_NRF_CLOUD_LOG_LEVEL_DBG=y
CONFIG_NRF_CLOUD_SEC_TAG=321
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;nrf9160dk_nrf9160_ns.conf file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Configuration file for nRF9160DK.
# This file is merged with prj.conf in the application folder, and options
# set here will take precedence if they are present in both files.

# Use UART_0 (when working with PC terminal)
# unmask the following config
#CONFIG_SLM_CONNECT_UART_0=y
#CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
#CONFIG_UART_0_NRF_HW_ASYNC=y
#CONFIG_SLM_INTERFACE_PIN=6

# Use UART_2 (when working with external MCU)
# unmask the following config
CONFIG_SLM_CONNECT_UART_2=y
CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2
CONFIG_UART_2_NRF_HW_ASYNC=y
CONFIG_SLM_INTERFACE_PIN=31&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When starting the device, we execute the following commands to install our certificates:&lt;/p&gt;
&lt;p&gt;AT%CMNG=0,321,0, ...&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT%CMNG=0,321,1, ...&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT%CMNG=0,321,2, ...&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT%CMNG=0,321,1, ...&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Results of the AT%CMNG=1 command:&lt;/p&gt;
&lt;p&gt;%CMNG: 0,6,&amp;quot;0606060606060606060606060606060606060606060606060606060606060606&amp;quot; &lt;br /&gt;%CMNG: 321,0,&amp;quot;0000000000000000000000000000000000000000000000000000000000000000&amp;quot; &lt;br /&gt;%CMNG: 321,1,&amp;quot;0101010101010101010101010101010101010101010101010101010101010101&amp;quot; &lt;br /&gt;%CMNG: 321,2,&amp;quot;0202020202020202020202020202020202020202020202020202020202020202&amp;quot; &lt;br /&gt;%CMNG: 654321,0,&amp;quot;000000000000000000000000000000000000000000000000000000000000000&lt;br /&gt;0&amp;quot; &lt;br /&gt;%CMNG: 654321,1,&amp;quot;010101010101010101010101010101010101010101010101010101010101010&lt;br /&gt;1&amp;quot; &lt;br /&gt;%CMNG: 654321,2,&amp;quot;020202020202020202020202020202020202020202020202020202020202020&lt;br /&gt;2&amp;quot; &lt;br /&gt;%CMNG: 4294967293,10,&amp;quot;0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A&lt;br /&gt;0A0A0A&amp;quot; &lt;br /&gt;%CMNG: 4294967292,11,&amp;quot;0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B&lt;br /&gt;0B0B0B&amp;quot; &lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;I see that there is no data for tag 16842753.&lt;br /&gt;As I understand it, we do not have certificates for accessing the nRF cloud. &lt;span style="text-decoration:underline;"&gt;How can we get them back?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Next, we execute a sequence of commands to use AGPS (from the GNSS_AT_commands.rst example):&lt;/p&gt;
&lt;p&gt;AT%XSYSTEMMODE=1,0,1,0&lt;/p&gt;
&lt;p&gt;OK&lt;br /&gt;AT%XCOEX0=1,1,1565,1586&lt;/p&gt;
&lt;p&gt;OK&lt;br /&gt;AT+CPSMS=1&lt;/p&gt;
&lt;p&gt;OK&lt;br /&gt;AT+CFUN=1&lt;/p&gt;
&lt;p&gt;OK&lt;br /&gt;AT#XNRFCLOUD=1&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;Receiving in response:&lt;/p&gt;
&lt;p&gt;#XNRFCLOUD: 0,0 &lt;br /&gt; &lt;br /&gt;#XNRFCLOUD: 0,0&lt;/p&gt;
&lt;p&gt;How did you write: &lt;br /&gt;&lt;span style="text-decoration:underline;"&gt;The first AT#XNRFCLOUD=1 command initiates the connection to the cloud. on the initial connection, the JITP step is performed and nRF Cloud immediately disconnects the device, hence the #XNRFCLOUD: 0,0 responses.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After that, I try to add my user device to the nRF cloud using the user ID (not IMEI, used the device ID, the same one used when generating certificates) and any password as you said earlier:&lt;br /&gt;&lt;span style="text-decoration:underline;"&gt;For you custom board you can choose a Device ID that fits your application along with a PIN/HWID of your choice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Any attempts to add a devay give an error code: Code 40412.&lt;/p&gt;
&lt;p&gt;Naturally, repeated execution of the AT#XNRFCLOUD=1 command does not give access to the cloud.&lt;/p&gt;
&lt;p&gt;What are we missing? Why we cannot registration the device in nRF Cloud? and continue to use AGPS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362210?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 06:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b08a8ed-4561-4c13-8ce1-8f38f1a9f60a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Our nRF Cloud team has provided the following information:&lt;/p&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;The first AT#XNRFCLOUD=1 command initiates the connection to the cloud. on the initial connection, the JITP step is performed and&amp;nbsp;nRF Cloud&amp;nbsp;immediately disconnects the device, hence the #XNRFCLOUD: 0,0 responses.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;At this point the user should associate the device with their account, the UI on the cloud will spin and/or time out.&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Send another connect attempt from SLM: AT#XNRFCLOUD=1 and it should connect properly.&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;Refresh the device page on nRF Cloud and they should see the device listed.&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362177?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 20:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:734f9e93-eea6-44f3-95e2-f4b8263545e2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Stas Jis"]You also say that on custom devices (with nrf9160) not need use nrf-&amp;lt;IMEI&amp;gt; for cloud registration, but any attempts to register devices fail (Code 40412).[/quote]
&lt;p&gt;Yes, so when you have generated the certificates the device still needs to connect to nRF Cloud once. Usually this is done by running e.g. Asset Tracker v2, which will give you the prompt in the LTE Link Monitor that the device is ready to be provisioned. From here you should be able to add the device to nRF Cloud.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This can be more cumbersome adding one and one, so adding the device using &lt;a href="https://docs.nrfcloud.com/Reference/DeviceManagement/Provisioning/#preconnect-provisioning"&gt;Preconnect provisioning might be better&lt;/a&gt;. You can also add multiple devices using the &lt;a href="https://nrfcloud.com/#/provision-devices"&gt;Provisioning Devices in nRF Cloud&lt;/a&gt;&amp;nbsp;where you can upload a .csv file&amp;nbsp;that has information to multiple devices.&lt;br /&gt;&lt;br /&gt;As the JITP certification generator states:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Certificates are used to provision a device on nRF Cloud. There are two certificate types: non-JITP and JITP. Please&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nrfcloud.com/Reference/DeviceManagement/Provisioning" rel="nofollow noopener noreferrer" target="_blank"&gt;read about&lt;/a&gt;&lt;span&gt;&amp;nbsp;these types and cloud-provisioning. If you are certain you want to use a JITP certificate, use the form below. In most cases, however, it is better to generate your own certificates and provision your devices using the&amp;nbsp;&lt;/span&gt;&lt;a href="https://api.nrfcloud.com/v1#operation/ProvisionDevices" rel="nofollow noopener noreferrer" target="_blank"&gt;Provision Devices endpoint&lt;/a&gt;&lt;span&gt;, as explained&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nrfcloud.com/Guides/GettingStarted/Devices" rel="nofollow noopener noreferrer" target="_blank"&gt;in the guide&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362137?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 14:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62fb221a-caf2-47f3-941d-e5ce8be88934</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;We need to have access to the nRF cloud in the device to work with AGPS, and we also work separately with an Amazon broker to unload / upload data.&lt;br /&gt;Since we installed certificates and keys to communicate with Amazon in our custom board, we cannot reach the nRF Cloud.&lt;br /&gt;Is there any way to check that we have not removed the certificates needed for nRF clouds (with the tag 16842753)?&lt;/p&gt;
&lt;p&gt;You also say that on custom devices (with nrf9160) not need use nrf-&amp;lt;IMEI&amp;gt; for cloud registration, but any attempts to register devices fail (Code 40412).&lt;/p&gt;
&lt;p&gt;Is there a sequence of actions required to add a user device to the nRF cloud?&lt;/p&gt;
&lt;p&gt;Now any attempt to connect to the cloud gives the result:&lt;br /&gt;&lt;br /&gt;AT#XNRFCLOUD=1&lt;br /&gt;OK&lt;br /&gt; &lt;br /&gt;#XNRFCLOUD: 0,0 &lt;br /&gt; &lt;br /&gt;#XNRFCLOUD: 0,0&lt;/p&gt;
&lt;p&gt;AT#XNRFCLOUD?&lt;/p&gt;
&lt;p&gt;#XNRFCLOUD: 0,0,654321,&amp;quot;nrf-350916060695718&amp;quot; &lt;br /&gt; &lt;br /&gt;OK &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362115?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 13:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf555a28-77f2-4e65-a812-a7673ba35f19</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/stas-jis"&gt;Stas Jis&lt;/a&gt;, the nrf-&amp;lt;IMEI&amp;gt; device ID should only be used with Nordic HW. For you custom board you can choose&amp;nbsp;a Device ID that&amp;nbsp;fits your application along with a PIN/HWID of your choice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that t&lt;span&gt;he default&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;sec_tag&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;for nRF Cloud credentials is&amp;nbsp;&lt;/span&gt;&lt;code&gt;16842753&lt;/code&gt;, which you set when using LTE Link Monitor&amp;#39;s Certificate Manager.&amp;nbsp;More &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/modem_key_mgmt.html?highlight=sec_tag#modem-key-management"&gt;information on this under modem key management&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362076?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 12:22:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d18d915-0537-4180-9667-e98747fde16b</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;Or should the Security tag value defined when generating certificates be used instead of PIN?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/362050?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 10:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:155d6045-e142-41df-b066-a4ed8c3df0ea</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/oys"&gt;&amp;Oslash;yvind&lt;/a&gt;:&lt;br /&gt;One more question, where / how can I get the PIN/HWID of my custom board? Can it be any user password?&lt;br /&gt;I can&amp;#39;t register it in the cloud in any way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/361721?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 07:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82038807-e7a6-40da-bd37-25782cbe8371</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Stas Jis"]What certificates are we talking about?&amp;nbsp;No, we didn&amp;#39;t separately register the device on the nRF cloud.&amp;nbsp;&lt;br /&gt;Is it necessary for correct operation?[/quote]
&lt;p&gt;In order to use nRF Cloud A-GPS&amp;nbsp; you will need to ensure that your nRF Cloud certificates are correct, and that the device is registered to nRF Cloud. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/networking/nrf_cloud_agps.html#nrf-cloud-a-gps"&gt;Please see nRF Cloud A-GPS documentation&lt;/a&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649141683209v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As stated in the Serial LTE Modem application documentation:&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;#&lt;span&gt;XAGPS&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;command runs the GNSS together with the nRF Cloud A-GPS service. This requires access to nRF Cloud through the LTE network for receiving A-GPS data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;In regards to the certificates, this is &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/networking/nrf_cloud.html#connecting"&gt;described in our chapter on Connection in the nRF Cloud documentation&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me know how that works for you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/361603?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 15:17:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6dc5b09-48ea-47ae-af06-bd691b309322</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;&amp;nbsp;-&lt;span style="text-decoration:underline;"&gt; Have you updated your certificates and registered the device in nRF Cloud?&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;What certificates are we talking about?&amp;nbsp;No, we didn&amp;#39;t separately register the device on the nRF cloud.&amp;nbsp;&lt;br /&gt;Is it necessary for correct operation?&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;Just our of curiosity, would it not be better to clarify the cause of issue in ticket #286860 first before registering a new?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;The cases seemed different to me (a SIM card that used to work and stopped, and the use of eSIM).&lt;br /&gt;Actually, we need to compare the GPS data with the evaluation board and ours custom board.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to nRF cloud using eSIM.</title><link>https://devzone.nordicsemi.com/thread/361524?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 12:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c3aae1-1965-4d65-ad43-d9a06ab9e9c7</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]I suppose this is due to the fact that the eSIM needs to be somehow registered on the nRF Cloud.[/quote]
&lt;p&gt;No, there is no need to have the eSIM registered other than to keep track of amount of data in SIM.&lt;/p&gt;
[quote user=""]But there is no connection to the nRF cloud.[/quote]
&lt;p&gt;Does your device connect to nRF Cloud using e.g. Asset Tracker v2? Have you updated your certificates and registered the device in nRF Cloud?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just our of curiosity, would it not be better to clarify the cause of issue in ticket #286860 first before registering a new?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>