<?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>nRF9160, the response to any &amp;quot;CFUN&amp;quot; command is always ERROR.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85233/nrf9160-the-response-to-any-cfun-command-is-always-error</link><description>We use nRF9160 on our own board. The firmware &amp;quot;Serial lte modem&amp;quot; is installed on the chip with connection to an external MCU. A port is connected to the board to communicate with the nRF9160 via the terminal. The nRF9160 responds to &amp;quot;AT&amp;quot; or &amp;quot;AT%XSYSTEMMODE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Mar 2022 13:29:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85233/nrf9160-the-response-to-any-cfun-command-is-always-error" /><item><title>RE: nRF9160, the response to any "CFUN" command is always ERROR.</title><link>https://devzone.nordicsemi.com/thread/355566?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 13:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cba7041-da1d-450d-8c58-0cdadfcb468f</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/charlie-shao"&gt;Charlie&lt;/a&gt;,&lt;br /&gt;The problem was in the nRF9160 firmware version.&lt;br /&gt;Everything is working now, thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160, the response to any "CFUN" command is always ERROR.</title><link>https://devzone.nordicsemi.com/thread/355467?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 09:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed0a54eb-d5a2-48c0-96c7-15a0c10a4866</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Stas,&lt;/p&gt;
&lt;p&gt;There is one former case very close to your issue, can you try the solution mentioned on &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/82885/most-at-commands-return-error/344237#344237"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/82885/most-at-commands-return-error/344237#344237&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160, the response to any "CFUN" command is always ERROR.</title><link>https://devzone.nordicsemi.com/thread/355350?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 16:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fcfb983-46c5-488c-89b3-691fc41ba039</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/charlie-shao"&gt;Charlie&lt;/a&gt;,&amp;nbsp;&lt;br /&gt;I am attaching the log from J Link RTT Viewer:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:00:00.156,127] &amp;lt;inf&amp;gt; slm: Serial LTE Modem
00&amp;gt; [00:00:00.182,464] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       52 65 61 64 79 0d 0a                             |Ready..          
00&amp;gt; [00:00:00.182,495] &amp;lt;dbg&amp;gt; slm_fota.slm_fota_post_process: FOTA result 0,0,0
00&amp;gt; [00:00:00.185,882] &amp;lt;inf&amp;gt; slm_at_host: at_host init done
00&amp;gt; [00:00:43.211,883] &amp;lt;dbg&amp;gt; slm_at_host: RX
00&amp;gt;                                       41 54                                            |AT               
00&amp;gt; [00:00:43.219,299] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       0d 0a                                            |..               
00&amp;gt; [00:00:43.219,329] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       4f 4b 0d 0a                                      |OK..             
00&amp;gt; [00:00:46.803,833] &amp;lt;dbg&amp;gt; slm_at_host: RX
00&amp;gt;                                       41 54 2b 43 46 55 4e 3d  30                      |AT+CFUN= 0       
00&amp;gt; [00:00:46.804,351] &amp;lt;dbg&amp;gt; slm_at_host.uart_callback: RX_DISABLED
00&amp;gt; [00:00:46.810,699] &amp;lt;err&amp;gt; slm_at_host: AT command error, type: 1
00&amp;gt; [00:00:46.810,729] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       0d 0a                                            |..               
00&amp;gt; [00:00:46.810,760] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       45 52 52 4f 52 0d 0a                             |ERROR..          
00&amp;gt; [00:01:01.644,348] &amp;lt;dbg&amp;gt; slm_at_host: RX
00&amp;gt;                                       41 54 2b 43 46 55 4e 3d  30                      |AT+CFUN= 0       
00&amp;gt; [00:01:01.644,836] &amp;lt;dbg&amp;gt; slm_at_host.uart_callback: RX_DISABLED
00&amp;gt; [00:01:01.651,214] &amp;lt;err&amp;gt; slm_at_host: AT command error, type: 1
00&amp;gt; [00:01:01.651,245] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       0d 0a                                            |..               
00&amp;gt; [00:01:01.651,275] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       45 52 52 4f 52 0d 0a                             |ERROR..          
00&amp;gt; [00:01:08.068,695] &amp;lt;dbg&amp;gt; slm_at_host: RX
00&amp;gt;                                       41 54 2b 43 46 55 4e 3f                          |AT+CFUN?         
00&amp;gt; [00:01:08.069,183] &amp;lt;dbg&amp;gt; slm_at_host.uart_callback: RX_DISABLED
00&amp;gt; [00:01:08.075,531] &amp;lt;err&amp;gt; slm_at_host: AT command error, type: 1
00&amp;gt; [00:01:08.075,561] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       0d 0a                                            |..               
00&amp;gt; [00:01:08.075,592] &amp;lt;dbg&amp;gt; slm_at_host: TX
00&amp;gt;                                       45 52 52 4f 52 0d 0a                             |ERROR..&lt;/pre&gt;&lt;br /&gt;Just in case, here&amp;#39;s the config:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
#\nCopyright\n(c)\n2020\nNordic\nSemiconductor\nASA
#
#\nSPDX-License-Identifier:\nLicenseRef-Nordic-5-Clause
#
#\nGeneral\nconfig
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

#\nSegger\nRTT
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n

#\nNetwork
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_NATIVE=n

#\nModem\nlibrary
CONFIG_NRF_MODEM_LIB=y
#\nAlign\nthe\nmax\nFD\nentry\nto\nNRF_MODEM_MAX_SOCKET_COUNT(8)
CONFIG_POSIX_MAX_FDS=8
#\nEnable\nbelow\nfor\nmodem\ntrace
CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y

#\nUse\nGPIO
CONFIG_GPIO=y
CONFIG_GPIO_NRFX=y
CONFIG_GPIO_NRF_P0=y

#\nUART\ninterface
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_TIMER2=y

#\nStacks\nand\nheaps
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

#\nDevice\npower\nmanagement
CONFIG_PM_DEVICE=y

#\nFOTA
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

#\nFLASH
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

#\nSettings
CONFIG_SETTINGS=y
CONFIG_SETTINGS_FCB=y
CONFIG_FCB=y

#\nnRF\nCloud
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
#\nUse\n&amp;quot;nrf-&amp;lt;IMEI&amp;gt;&amp;quot;\nas\nthe\ndefault\ndevice_id\nformat
#\nUse\n&amp;quot;&amp;lt;device_uuid&amp;gt;&amp;quot;\nas\nthe\ndevice_id\nformat\nby\nbelow
#CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID=y

#
#\nSLM-specific\nconfigurations
#
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&lt;/pre&gt;&lt;br /&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/charlie-shao"&gt;Charlie&lt;/a&gt;&lt;span&gt;,&amp;nbsp;settings from dts files, can help?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160, the response to any "CFUN" command is always ERROR.</title><link>https://devzone.nordicsemi.com/thread/355335?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 15:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2e38a99-29bd-480c-8c7d-94ad8b95398c</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Stas,&lt;/p&gt;
&lt;p&gt;Set&amp;nbsp;CONFIG_SLM_LOG_LEVEL_DBG=y and observe log from Jlink RTT viewer should be able to see the UART RX content.&lt;/p&gt;
&lt;p&gt;Can you try this method to debug your issue?&amp;nbsp; nRF9160DK+ LInk monitor can be used as a comparation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160, the response to any "CFUN" command is always ERROR.</title><link>https://devzone.nordicsemi.com/thread/355242?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 11:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e11016-505f-48ff-92c7-0da76790cf82</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/charlie-shao"&gt;Charlie&lt;/a&gt;,&lt;br /&gt;Yes, there are no extra characters in the commands.&lt;br /&gt;Full commands format: &amp;quot;AT\r\n&amp;quot;, &amp;quot;AT+CFUN=0\r\n&amp;quot;.&lt;br /&gt;Parameter CONFIG_SLM_CR_LF_TERMINATION is not defined in the configuration file.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160, the response to any "CFUN" command is always ERROR.</title><link>https://devzone.nordicsemi.com/thread/355231?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 10:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b79c2a9c-a209-41b3-a88a-e5e906c4a58c</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Stas,&lt;/p&gt;
&lt;p&gt;Can you confirm the command sent has the correct formate? I assume you do not have &amp;quot;&lt;span&gt;-&amp;nbsp;&lt;/span&gt;&amp;quot;and &amp;quot;&lt;span&gt;;&lt;/span&gt;&amp;quot;in your commands.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;default&amp;nbsp;&lt;span&gt;termination character&amp;nbsp;&lt;/span&gt;is CR LF following configuration: CONFIG_SLM_CR_LF_TERMINATION=y&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>