<?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>How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56836/how-to-disable-cereg-notifications</link><description>Hi, 
 I&amp;#39;ve got an application based off the asset tracker firmware that needs a UART. From the many threads on the topic, I&amp;#39;ve found a way to shut down the UARTs to save power but I cannot shut down the console UART since the +CEREG notifications are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jan 2020 15:57:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56836/how-to-disable-cereg-notifications" /><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/231958?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 15:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba10d4d-bcd8-4fe5-ac29-d02a580ffba3</guid><dc:creator>Tim_AFD</dc:creator><description>&lt;p&gt;Thanks Heidi -- that did it!&lt;/p&gt;
&lt;p&gt;We wrapped the &amp;quot;write_uart_string():&amp;quot; function with #ifdefs to enable it only if logging or printk are enabled and it supresses the +CEREG notifications properly now.&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/231911?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 13:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a812a31a-592e-43b4-818d-483aed1baeb6</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi again, Tim.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After some digging, we found it. It is coming from the at_host library. In at_host.c, in response_handler there is the line&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;write_uart_string(response);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which is writing these +CEREG updates.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But in the asset_tracker sample, to disable the AT Host library, you need to use the USE_AT_HOST config, which is found in the Kconfig file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/231770?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 23:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9055b3d-a5ea-4940-b86a-103559d6d970</guid><dc:creator>Tim_AFD</dc:creator><description>&lt;p&gt;In further testing today, I observed two additional +CEREG notifications after the two that occur at startup. It appears they were triggered by the Cell ID changing. I&amp;#39;m testing in a static setting, on a bench. If this is triggered by every tower change, it could really cause an issue if UART_0 is disabled. Here&amp;#39;s the log with the timestamp data:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2020-01-29T22:52:12.161Z DEBUG modem &amp;lt;&amp;lt; ***** Booting Zephyr OS build v2.0.99-ncs1 *****\x0D\x0A
2020-01-29T22:52:12.168Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.005,035] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Starting bootloader\x1B[0m\x0D\x0A
2020-01-29T22:52:12.176Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.013,427] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x1\x1B[0m\x0D\x0A
2020-01-29T22:52:12.186Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.026,580] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3\x1B[0m\x0D\x0A
2020-01-29T22:52:12.192Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.039,062] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Boot source: primary slot\x1B[0m\x0D\x0A
2020-01-29T22:52:12.199Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.050,384] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Swap type: none\x1B[0m\x0D
2020-01-29T22:52:12.543Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.500,915] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000\x1B[0m\x0D\x0A
2020-01-29T22:52:12.549Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.510,955] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot\x1B[0m\x0D
2020-01-29T22:52:14.662Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 2,&amp;quot;C00C&amp;quot;,&amp;quot;02F00103&amp;quot;,7,0,0,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;\x0D\x0A
2020-01-29T22:52:15.733Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 1,&amp;quot;C00C&amp;quot;,&amp;quot;02F00103&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;00100110&amp;quot;\x0D\x0A
2020-01-29T22:53:32.758Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 1,&amp;quot;C00C&amp;quot;,&amp;quot;02EE9002&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;00100110&amp;quot;\x0D\x0A
2020-01-29T22:54:43.141Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 1,&amp;quot;C00C&amp;quot;,&amp;quot;02F00103&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;00100110&amp;quot;\x0D
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And, here&amp;#39;s the current state of my logging/serial related prj.conf settings:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=y
CONFIG_UART_NRFX=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_2_NRF_UARTE=y

# Console
CONFIG_STDOUT_CONSOLE=n
CONFIG_BOOT_BANNER=n
CONFIG_PRINTK=n
#CONFIG_CONSOLE_SUBSYS=y
#CONFIG_CONSOLE_HANDLER=y
#CONFIG_CONSOLE_GETCHAR=y

# LOG config:
CONFIG_LOG=n
CONFIG_LOG_IMMEDIATE=n
CONFIG_AWS_FOTA_LOG_LEVEL_DBG=n		
CONFIG_AWS_JOBS_LOG_LEVEL_DBG=n		
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=n		
CONFIG_AT_NOTIF_LOG_LEVEL_DBG=n		
CONFIG_NRF_CLOUD_LOG_LEVEL_DBG=n	
CONFIG_NRF9160_GPS_LOG_LEVEL_DBG=n	
CONFIG_MODEM_INFO=n
CONFIG_NET_LOG=n
CONFIG_MQTT_LOG_LEVEL_DBG=n
CONFIG_AT_HOST_LIBRARY=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/231760?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 20:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db41bfd5-122c-4f50-839f-7aff553da8a1</guid><dc:creator>Tim_AFD</dc:creator><description>&lt;p&gt;Something compressed the screenshot in my above reply. Here&amp;#39;s a repost that will hopefully be more legible.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1580329632564v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/231759?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 20:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c02bf9-7496-40ad-bc2e-e8f64ac1a7c5</guid><dc:creator>Tim_AFD</dc:creator><description>&lt;p&gt;Hello Heidi,&lt;/p&gt;
&lt;p&gt;I added &amp;quot;&lt;strong&gt;CONFIG_AT_HOST_LIBRARY=n&lt;/strong&gt;&amp;quot; to prj.config, reloaded/rebuilt the project, and still get the +CEREG notifications at start up:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1580329341474v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This seems to confirm that they&amp;#39;re not coming from the AT_HOST library, in addition to the printk or console/log routes. Is there something in the modem firmware that is sending these?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/231326?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 09:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14be28c1-7a3e-428d-869f-c35a6bda5703</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;I understand. Try disabling the whole at_host library with AT_HOST_LIBRARY = n.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/231256?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 17:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05bfa7c1-4eb8-44d8-ad05-36d14f12ca1b</guid><dc:creator>Tim_AFD</dc:creator><description>&lt;p&gt;Hello Heidi,&lt;/p&gt;
&lt;p&gt;Yes, I tried setting AT+CEREG=0, but that does break the link layer.&lt;/p&gt;
&lt;p&gt;Setting &amp;#39;Config_Serial=n&amp;#39; globally disables all UARTs. This is not acceptable, our application requires a UART interface to an external device. We control both ends of this UART_2 link and I can gurantee that the external device will not send data to the nRF9160 when UART_2 is disabled.&lt;/p&gt;
&lt;p&gt;Power consumption with UART_0 enabled is very high.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/231068?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 10:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a968108a-e510-4ae8-98a9-f7f79dc90783</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;You could always set AT+CEREG=0 to disable these messages, but I imagine you might get a host of other problems, as the lte_link_control layer uses the notifications to check the connection status. If you just want to disable the debugging messages, you could disable the serial output like this:&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL=n&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Turning of UART_0 is not the right way to do it, as it will most likely crash other parts of your application.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/230913?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 15:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6620572b-4398-452e-b62b-68acba1cd615</guid><dc:creator>Tim_AFD</dc:creator><description>&lt;p&gt;Hello Heidi,&lt;/p&gt;
&lt;p&gt;My loging/printk settings seem to supress notifications except for those first two +CEREG ones. But shouldn&amp;#39;t those first two be supressed also? Since they are still present every time the application starts, there appears to be an active mechanism for console notifications.&lt;/p&gt;
&lt;p&gt;Is it safe to turn off UART_0, or is there a risk of another notification that will crash my application?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/230901?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 14:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:955b4084-2a53-426a-86d0-19c659699177</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi, are you saying you fixed the problem?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have asked the NCS team what the easiest way to suppress the +CEREG requests is.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable +CEREG notifications</title><link>https://devzone.nordicsemi.com/thread/230441?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 20:19:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a9c238a-11dd-43c6-bacd-31ace42fe4f5</guid><dc:creator>Tim_AFD</dc:creator><description>&lt;p&gt;Here&amp;#39;s the Link Monitor output showing two +CEREG notifications at start up:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579723980787v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;My log config changes do seem to supress the follow on notifications now. I&amp;#39;ve not had it crash thus far today even though I&amp;#39;m still getting the two notifications at start up.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>