<?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>CONFIG_LTE_LOCK_BANDS causes error in nrf v1.3.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62825/config_lte_lock_bands-causes-error-in-nrf-v1-3-0</link><description>when I add a line below to mqtt_simple program, it causes error. How to fix this? 
 
 
 It seems that at_cmd_write in lte_lc.c gives an error -5</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jun 2020 06:44:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62825/config_lte_lock_bands-causes-error-in-nrf-v1-3-0" /><item><title>RE: CONFIG_LTE_LOCK_BANDS causes error in nrf v1.3.0</title><link>https://devzone.nordicsemi.com/thread/256306?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 06:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12b830d4-33fb-4823-bcb3-8633e0273efb</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Sure!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_LTE_LOCK_BANDS causes error in nrf v1.3.0</title><link>https://devzone.nordicsemi.com/thread/256303?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 06:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:748bd313-e281-43f2-adf7-ad6f2f0d72bf</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Good to hear.&lt;br /&gt;Please let me know if something similar appears again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_LTE_LOCK_BANDS causes error in nrf v1.3.0</title><link>https://devzone.nordicsemi.com/thread/256294?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 02:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca7d82e-686e-48bc-8fdd-412c8fdc42c3</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;I made a nrf folder from scrach and it seems that the issue is solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_LTE_LOCK_BANDS causes error in nrf v1.3.0</title><link>https://devzone.nordicsemi.com/thread/256243?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 14:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2d646a9-5e28-40b0-80f8-fcd56ac9d923</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Yusuke,&lt;br /&gt;I copied your prj.conf file and ran the sample:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d72393ce416e4241996a10e9541cefaa/pastedimage1592836165469v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;it works as expected.&lt;br /&gt;Please verify that you are locking available bands in your area.&lt;br /&gt;&lt;br /&gt;I am running NCS v1.3.0&lt;/p&gt;
&lt;p&gt;with modem firmware v1.2.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_LTE_LOCK_BANDS causes error in nrf v1.3.0</title><link>https://devzone.nordicsemi.com/thread/256227?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 14:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5592a186-a30a-4b3f-ab72-b448d6d77b6d</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Can you try mqtt_simple adding the two lines in the same environment?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_LTE_LOCK_BANDS causes error in nrf v1.3.0</title><link>https://devzone.nordicsemi.com/thread/256224?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 13:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4577925b-6c78-4bbd-916b-0694291bca3f</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;I added these two lines but it gives the same result. no luck..&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_LOCK_BANDS=y
CONFIG_LTE_LOCK_BAND_MASK=&amp;quot;10000001000000001100&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is the whole prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2019 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#

# Networking
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y

# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n

# BSD library
CONFIG_BSD_LIBRARY=y

# AT Host
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_AT_HOST_LIBRARY=y

# MQTT
CONFIG_MQTT_LIB=y
CONFIG_MQTT_LIB_TLS=n

# Appliaction
#CONFIG_MQTT_PUB_TOPIC=&amp;quot;/my/publish/topic&amp;quot;
#CONFIG_MQTT_SUB_TOPIC=&amp;quot;/my/subscribe/topic&amp;quot;
#CONFIG_MQTT_CLIENT_ID=&amp;quot;my-client-id&amp;quot;
#CONFIG_MQTT_BROKER_HOSTNAME=&amp;quot;mqtt.eclipse.org&amp;quot;
#CONFIG_MQTT_BROKER_PORT=1883

# Main thread
CONFIG_MAIN_STACK_SIZE=4096

CONFIG_HEAP_MEM_POOL_SIZE=2048

CONFIG_LTE_LOCK_BANDS=y
CONFIG_LTE_LOCK_BAND_MASK=&amp;quot;10000001000000001100&amp;quot;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_LTE_LOCK_BANDS causes error in nrf v1.3.0</title><link>https://devzone.nordicsemi.com/thread/256202?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 13:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6848d90b-a359-4187-9638-af523a0931c1</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Yusuke,&lt;br /&gt;You also need to set the configuration for&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/lib/lte_link_control/Kconfig#L32" rel="noopener noreferrer" target="_blank"&gt; which bands you want to lock:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_LOCK_BAND_MASK=&amp;quot;10000001000000001100&amp;quot;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>