<?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>AT+CFUN=0/AT+CFUN=4 is not confirned with &amp;quot;OK&amp;quot;.(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66929/at-cfun-0-at-cfun-4-is-not-confirned-with-ok-ncs1-3-0</link><description>I add lte_lc_init_and_connect() to the application &amp;quot;Serial LTE Modem&amp;quot; (SLM) v1.3.0. And then there&amp;#39;s no reaction to AT+CFUN=0 or AT+CFUN=4. 
 
 I find that the socket_thread_fn() in at_cmd.c does not respond &amp;quot;OK\r\n&amp;quot;. 
 It returns &amp;quot;+CSCON: 1\r\n&amp;quot; and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Nov 2023 20:23:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66929/at-cfun-0-at-cfun-4-is-not-confirned-with-ok-ncs1-3-0" /><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/455019?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 20:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac53d9f4-24eb-4630-8808-70540db3899a</guid><dc:creator>lobaro-theo</dc:creator><description>&lt;p&gt;Can you replicate it with the latest MFW and SDK also two years later?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274581?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 11:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca152d4d-2b11-4162-ae4f-ef2f6fa8d080</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Thank you for the additional observations and feedback.&lt;br /&gt;I can replicate what you are seeing as well so we are working on this internally to see what we can to solve this.&lt;br /&gt;Hopefully this workaround is sufficient for you as of now.&lt;br /&gt;&lt;br /&gt;If not then I would recommend setting up the modem &amp;quot;manually&amp;quot; with the AT commands to avoid the issue entirely.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274529?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 08:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab7a78ad-5eb0-4d7b-8e16-5c5a022e3ceb</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried it your way and found that the problem should be affected by the +CSCON&amp;nbsp;notification response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can look at the following four&amp;nbsp;scenarios.&lt;/p&gt;
&lt;p&gt;When LTE goes into idle state,&amp;nbsp;&lt;span&gt;the bug reappears.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602578378581v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Normal when LTE dose&amp;nbsp;not idle and sends the command AT+CEREG=0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602578468449v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The default SLM program with CSCON enabled also replicates this problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602579912814v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;No other problems occurred when the CSCON notification was disabled.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602579215245v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your answer. I only find this problem exists in SLM.&amp;nbsp;Please let me know if you have a good solution.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274507?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 08:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5088c13a-db2b-4db6-9662-71ed16af2902</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I apologize that I did not notice your modification of the code.&lt;/p&gt;
&lt;p&gt;I am able to reproduce the issue at my side now as well, I have tried to find a workaround that would work with using the LTE Link Control library,&amp;nbsp;and it seems to be affected by the +CEREG notification response.&lt;br /&gt;&lt;br /&gt;A workaround for this issue is to disable the CEREG notification, by sending the command AT+CEREG=0.&amp;nbsp;&lt;br /&gt;Then you should be able to Turn OFF and ON the modem without any issues.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;A tip for you is that instead of adding the modem configure in your main.c you can just enable the configuration:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_AUTO_INIT_AND_CONNECT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in prj.conf to automatically connect at the boot-up.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you for your observation, I will file a bug report about this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274444?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 02:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d756831b-5aad-4517-900a-5675eee1ff24</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Which mfw version are you running?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;V1.2.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You didn&amp;#39;t understand the problem I described.&amp;nbsp;I just added &amp;nbsp;&lt;span style="color:#ff6600;"&gt;lte_lc_init_and_connect()&amp;nbsp;&lt;/span&gt; before &lt;span style="color:#ff6600;"&gt;&amp;quot;ready&amp;quot;&amp;nbsp;&lt;span style="color:#000000;"&gt;to let it network automatically.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;The default SLM program requires manual network injection and this bug does not occur.Here is mt log:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602554839524v1.png" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;When I add &lt;span style="color:#ff6600;"&gt;lte_lc_init_and_connect()&lt;/span&gt;, the network is done before &lt;span style="color:#ff6600;"&gt;&amp;quot;ready&amp;quot;&lt;span style="color:#000000;"&gt;.&amp;nbsp;You can see the 128 lines of main.c code above, only added&amp;nbsp;&lt;span style="color:#ff6600;"&gt;lte_lc_init_and_connect()&lt;span style="color:#000000;"&gt;. Here is my log:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;before &amp;quot;ready&amp;quot;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602555259784v3.png" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="color:#ff6600;"&gt;&lt;span style="color:#000000;"&gt;after &amp;quot;ready&amp;quot;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602555674861v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The program in red is blocked.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274287?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 11:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:408a32b3-176c-49e2-8a4a-859a0651397c</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;The program I sent you is the default SLM version from NCS tag 1.3.2.&lt;/p&gt;
&lt;p&gt;If you&amp;nbsp;are using the default settings and code from the tag 1.3.2 you should have the same &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.3.2/applications/serial_lte_modem/src/main.c" rel="noopener noreferrer" target="_blank"&gt;code as here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Which mfw version are you running?&lt;/p&gt;
&lt;p&gt;Make sure you have a &lt;a href="https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs" rel="noopener noreferrer" target="_blank"&gt;newer modem firmware&lt;/a&gt;&amp;nbsp;on the device.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please try to just run the application without debugging enabled and using another serial terminal, e.g. using the LTE Link monitor or Termite.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6560.pastedimage1602502294801v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Default behavior when resetting the board and getting the &amp;quot;ready&amp;quot; signal from SLM and then sending AT+CFUN? is that it is in offline mode (AT+CFUN=4).&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5164.pastedimage1602502375388v2.png" alt=" " /&gt;&lt;br /&gt;However in your case it is ON for some reason, and you also get a notification +CSCON:0, which let me to belive you are doing some additional stuff you are not mentioning in this case. (e.g. do you have several serial terminals open?)&lt;br /&gt;Anyway, please follow my suggestions mentioned at the beginning of this post)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274214?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 08:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67430a5f-dbc9-4db0-91b8-e7719bb386be</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;&lt;span&gt;Did you do &amp;#39;west update&amp;#39; after you checked out the v1.3.2 tag?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, I&amp;#39;m now at version 1.3.2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602489148463v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is main.c:&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
 */
#include &amp;lt;logging/log.h&amp;gt;

#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;drivers/uart.h&amp;gt;
#include &amp;lt;drivers/gpio.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;bsd.h&amp;gt;
#include &amp;lt;modem/lte_lc.h&amp;gt;
#include &amp;lt;hal/nrf_gpio.h&amp;gt;
#include &amp;lt;hal/nrf_power.h&amp;gt;
#include &amp;lt;hal/nrf_regulators.h&amp;gt;
#include &amp;lt;modem/modem_info.h&amp;gt;
#include &amp;quot;slm_at_host.h&amp;quot;

LOG_MODULE_REGISTER(app, CONFIG_SLM_LOG_LEVEL);

#define SLM_WQ_STACK_SIZE	KB(2)
#define SLM_WQ_PRIORITY		K_LOWEST_APPLICATION_THREAD_PRIO
static K_THREAD_STACK_DEFINE(slm_wq_stack_area, SLM_WQ_STACK_SIZE);

static struct device *gpio_dev;
static struct gpio_callback gpio_cb;
static struct k_work exit_idle_work;

/* global variable used across different files */
struct at_param_list at_param_list;
struct modem_param_info modem_param;
char rsp_buf[CONFIG_AT_CMD_RESPONSE_MAX_LEN];
struct k_work_q slm_work_q;

/**@brief Recoverable BSD library error. */
void bsd_recoverable_error_handler(uint32_t err)
{
	LOG_ERR(&amp;quot;bsdlib recoverable error: %u&amp;quot;, err);
}

static void exit_idle(struct k_work *work)
{
	int err;

	LOG_INF(&amp;quot;Exit Idle&amp;quot;);
	gpio_pin_interrupt_configure(gpio_dev, CONFIG_SLM_INTERFACE_PIN,
				     GPIO_INT_DISABLE);
	gpio_remove_callback(gpio_dev, &amp;amp;gpio_cb);
	/* Do the same as nrf_gpio_cfg_default() */
	gpio_pin_configure(gpio_dev, CONFIG_SLM_INTERFACE_PIN, GPIO_INPUT);
	/* Restart SLM services */
	err = slm_at_host_init();
	if (err) {
		LOG_ERR(&amp;quot;Failed to init at_host: %d&amp;quot;, err);
	}
}

static void gpio_callback(struct device *dev,
		     struct gpio_callback *gpio_cb, u32_t pins)
{
	k_work_submit_to_queue(&amp;amp;slm_work_q, &amp;amp;exit_idle_work);
}

void enter_idle(void)
{
	int err;

	gpio_dev = device_get_binding(DT_LABEL(DT_NODELABEL(gpio0)));
	if (gpio_dev == NULL) {
		LOG_ERR(&amp;quot;GPIO_0 bind error&amp;quot;);
		return;
	}
	err = gpio_pin_configure(gpio_dev, CONFIG_SLM_INTERFACE_PIN,
				GPIO_INPUT | GPIO_PULL_UP);
	if (err) {
		LOG_ERR(&amp;quot;GPIO_0 config error: %d&amp;quot;, err);
		return;
	}
	gpio_init_callback(&amp;amp;gpio_cb, gpio_callback,
			BIT(CONFIG_SLM_INTERFACE_PIN));
	err = gpio_add_callback(gpio_dev, &amp;amp;gpio_cb);
	if (err) {
		LOG_ERR(&amp;quot;GPIO_0 add callback error: %d&amp;quot;, err);
		return;
	}
	err = gpio_pin_interrupt_configure(gpio_dev, CONFIG_SLM_INTERFACE_PIN,
					   GPIO_INT_LEVEL_LOW);
	if (err) {
		LOG_ERR(&amp;quot;GPIO_0 enable callback error: %d&amp;quot;, err);
	}
}

void enter_sleep(void)
{
#if defined(CONFIG_SLM_GPIO_WAKEUP)
	/*
	 * Due to errata 4, Always configure PIN_CNF[n].INPUT before
	 *  PIN_CNF[n].SENSE.
	 */
	nrf_gpio_cfg_input(CONFIG_SLM_INTERFACE_PIN,
		NRF_GPIO_PIN_PULLUP);
	nrf_gpio_cfg_sense_set(CONFIG_SLM_INTERFACE_PIN,
		NRF_GPIO_PIN_SENSE_LOW);
#endif	/* CONFIG_SLM_GPIO_WAKEUP */

	/*
	 * The LTE modem also needs to be stopped by issuing a command
	 * through the modem API, before entering System OFF mode.
	 * Once the command is issued, one should wait for the modem
	 * to respond that it actually has stopped as there may be a
	 * delay until modem is disconnected from the network.
	 * Refer to https://infocenter.nordicsemi.com/topic/ps_nrf9160/
	 * pmu.html?cp=2_0_0_4_0_0_1#system_off_mode
	 */
	lte_lc_power_off();
	bsd_shutdown();
	nrf_regulators_system_off(NRF_REGULATORS_NS);
}

void start_execute(void)
{
	int err;

	LOG_INF(&amp;quot;Serial LTE Modem&amp;quot;);

+	while (lte_lc_init_and_connect() != 0) {
+		LOG_WRN(&amp;quot;Failed to establish LTE connection.&amp;quot;);
+		LOG_WRN(&amp;quot;Will retry in %d seconds.&amp;quot;, 10);
+		k_sleep(K_SECONDS(10));
+	}

	err = modem_info_init();
	if (err) {
		LOG_ERR(&amp;quot;Modem info could not be established: %d&amp;quot;, err);
		return;
	}

	modem_info_params_init(&amp;amp;modem_param);

	/* Initialize AT Parser */
	err = at_params_list_init(&amp;amp;at_param_list, CONFIG_SLM_AT_MAX_PARAM);
	if (err) {
		LOG_ERR(&amp;quot;Failed to init AT Parser: %d&amp;quot;, err);
		return;
	}

	err = slm_at_host_init();
	if (err) {
		LOG_ERR(&amp;quot;Failed to init at_host: %d&amp;quot;, err);
		return;
	}

	k_work_q_start(&amp;amp;slm_work_q, slm_wq_stack_area,
		K_THREAD_STACK_SIZEOF(slm_wq_stack_area), SLM_WQ_PRIORITY);
	k_work_init(&amp;amp;exit_idle_work, exit_idle);
}

#if defined(CONFIG_SLM_GPIO_WAKEUP)
void main(void)
{
	u32_t rr = nrf_power_resetreas_get(NRF_POWER_NS);

	LOG_DBG(&amp;quot;RR: 0x%08x&amp;quot;, rr);
	if (rr &amp;amp; NRF_POWER_RESETREAS_OFF_MASK) {
		nrf_power_resetreas_clear(NRF_POWER_NS, 0x70017);
		start_execute();
	} else {
		LOG_INF(&amp;quot;Sleep&amp;quot;);
		enter_sleep();
	}
}
#else
void main(void)
{
	start_execute();
}
#endif	/* CONFIG_SLM_GPIO_WAKEUP */
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is pri.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
#
# General config
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_STACK_SENTINEL=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

# Segger RTT
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n

# Network
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_NATIVE=n

# BSD library
CONFIG_BSD_LIBRARY=y
# Enable below for modem trace
#CONFIG_BSD_LIBRARY_TRACE_ENABLED=y

# Use GPIO
CONFIG_GPIO=y
CONFIG_GPIO_NRFX=y
CONFIG_GPIO_NRF_P0=y

# UART interface
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_TIMER2=y

# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_LTE_NETWORK_MODE_NBIOT=y      #+
CONFIG_LTE_LEGACY_PCO_MODE=y        #+      

# Stacks and heaps
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192

# AT_CMD
# Enable AT_CMD debug for details
#CONFIG_AT_CMD_LOG_LEVEL_DBG=y

# Device power management
CONFIG_DEVICE_POWER_MANAGEMENT=y

# Enable SUPL client support
#CONFIG_SUPL_CLIENT_LIB=y

# Application-specific
CONFIG_SLM_LOG_LEVEL_INF=y
# Enable GPIO wakeup if sleep is expected
#CONFIG_SLM_GPIO_WAKEUP=y
# Use UART_0 (when working with PC terminal)
CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
# Use UART_2 (when working with external MCU)
#CONFIG_SLM_CONNECT_UART_2=y
#CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2
# Use optional TCP/TLS Proxy
#CONFIG_SLM_TCP_PROXY=y
# Use optional UDP/DTLS Proxy
#CONFIG_SLM_UDP_PROXY=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The program you gave me didn&amp;#39;t use &lt;span style="color:#ff6600;"&gt;lte_lc_init_and_connect()&amp;nbsp;&lt;/span&gt;at the beginning.&lt;/p&gt;
&lt;p&gt;&lt;span class="transSent"&gt;I tried again, and the problem remained the same.&amp;nbsp;&lt;/span&gt;&lt;span class="transSent"&gt;Here is my log:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="transSent"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1602490393892v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="transSent"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274199?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 07:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996dd937-296b-401e-9228-7fab122e6858</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I am not able to reproduce your issue with the SLM application in v1.3.2.&lt;br /&gt;I get &amp;quot;OK&amp;quot; response after the AT-commands you mentioned.&lt;/p&gt;
&lt;p&gt;Did you do &amp;#39;west update&amp;#39; after you checked out the v1.3.2 tag?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please verify with this precompiled .hex file that it works.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1373.slm_5F00_1_5F00_3_5F00_2.hex"&gt;devzone.nordicsemi.com/.../1373.slm_5F00_1_5F00_3_5F00_2.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Share the serial output log if you have any issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274134?ContentTypeID=1</link><pubDate>Sat, 10 Oct 2020 08:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e68709d-78e0-409c-8f15-65e8864b497d</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;I ported the program to &lt;span&gt;version in NCS v1.3.1 and v1.3.2&lt;/span&gt;&amp;nbsp;.&amp;nbsp;The&amp;nbsp;issue was not resolved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=0/AT+CFUN=4 is not confirned with "OK".(NCS1.3.0)</title><link>https://devzone.nordicsemi.com/thread/274030?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 12:10:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:585dcfd8-0c83-4bce-8bd2-8dbec6c6eef1</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Please try the SLM version in NCS v1.3.1 I think this was fixed in that version.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>