<?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 set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113344/how-to-set-mode-of-serial-lte-modem</link><description>Im currently using a nRF9160 with SLM application as a modem on a nRF52840. 
 How can I configure the modem for NB-IOT or LTE by using the nrf52840? 
 My project is working, I just need a way to set it to NB-IOT only for example. 
 I found CONFIG_LTE_NETWORK_MODE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Aug 2024 13:42:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113344/how-to-set-mode-of-serial-lte-modem" /><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/498875?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 13:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b32e52cc-62a0-49c6-be26-fd03703c2a79</guid><dc:creator>jonas.woerner</dc:creator><description>&lt;p&gt;thanks, but I guess this is not an option, as handling MQTT and sockets with only AT commands seems very tedious. I will ask at Zephyr discord for further help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/498763?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 08:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fea44665-d698-4cc6-abb4-a279c55ac4aa</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Yes, you can use&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/slm_shell/README.html#slm-shell-sample"&gt;Cellular: SLM Shell (nordicsemi.com)&lt;/a&gt;&amp;nbsp;as I mentioned.&lt;/p&gt;
&lt;p&gt;Send command and&amp;nbsp;data with the following functions respectivly, regirster the expect response with SLM_MONITOR.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;modem_slm_send_cmd&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;modem_slm_send_data&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/498438?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 11:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87d3ef89-e2d3-4949-9d2c-3d3a760c5908</guid><dc:creator>jonas.woerner</dc:creator><description>&lt;p&gt;ok. Is there any other driver by Nordic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/498396?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 07:58:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75c728e7-290b-4295-9165-adb7d274b969</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Jonas,&lt;/p&gt;
&lt;p&gt;Thanks for letting me know. If you are using cellular modem driver, this&lt;span&gt;&amp;nbsp;is maintained by Zephyr open-source project, so discord is a good channel, you can also report the issue to&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues"&gt;Issues · zephyrproject-rtos/zephyr (github.com)&lt;/a&gt;, remember to check before raising a new issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/498282?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 12:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b62c11f-9115-409f-be9d-56e371553afc</guid><dc:creator>jonas.woerner</dc:creator><description>&lt;p&gt;the nRF52 uses the cellular modem driver to communicate with the nRF91. This driver already uses the uart that connects the nRF52 to the nRF91. It is not possible to use the uart to send AT commands directly, the driver would need to expose some API / pipe that accepts AT commands and sends them to the nRF91. I asked the same question on discord and was told that this feature is talked about about the current status is unknown.&lt;/p&gt;
&lt;p&gt;I tried using the cellular API and it kinda works (only tried the get_signal yet) but seems to crash when called from any thread but the main thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/498276?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 12:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad7d1021-b95a-45a5-9994-53b81c084b6f</guid><dc:creator>Charlie</dc:creator><description>[quote user="jonas.woerner"]How would I send AT commands? Is there any special function for this?[/quote]
&lt;p&gt;Just send AT commands as you send a string through UART, for example &amp;#39;AT+CFUN=1&amp;#39;, it should be terminated with CRLF every time in order to let modem know the AT command is done. Try to learn how to send print string through nRF52 UART port first.&lt;/p&gt;
[quote user="jonas.woerner"]the uart is already used by the network interface to communicate with the modem I guess?[/quote]
&lt;p&gt;I am not sure what you mean here. nRF52 and nRF91 has to communicate though UART connection, as you can see from the samples I refereed before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/498020?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 12:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8029310c-ed13-4e3f-98c3-e3744d5300da</guid><dc:creator>jonas.woerner</dc:creator><description>&lt;p&gt;the nRF52 runs my own application and I want a way to configure the modem from the software running on the nRF52. How would I send AT commands? Is there any special function for this? the uart is already used by the network interface to communicate with the modem I guess?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/495568?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 08:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5f2e739-31c6-4685-b5dc-9aa8753facf9</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Jonas,&lt;/p&gt;
&lt;p&gt;Sorry for misunderstanding. Do you mean by which application? I thought your nRF52840 as modem controlling chip already run applications like following, so you can send the commands from nRF52840 to nRF9160 through UART.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/slm_shell/README.html#slm-shell-sample"&gt;Cellular: SLM Shell (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/serial_lte_modem/doc/nRF91_as_Zephyr_modem.html"&gt;nRF91 Series as a Zephyr-compatible modem (nordicsemi.com)&lt;/a&gt;(Using Zephyr Cellular modem sample)&lt;/p&gt;
&lt;p&gt;If the application means nRF9160 SLM, you can add an overlay-linkcontrol.conf with following configurations:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_NETWORK_MODE_NBIOT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then add&amp;nbsp;lte_lc_connect function after&amp;nbsp;nrf_modem_lib_init.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	const int ret = nrf_modem_lib_init();

	if (ret) {
		LOG_ERR(&amp;quot;Modem library init failed, err: %d&amp;quot;, ret);
		if (ret != -EAGAIN &amp;amp;&amp;amp; ret != -EIO) {
			return ret;
		} else if (ret == -EIO) {
			LOG_ERR(&amp;quot;Please program full modem firmware with the bootloader or &amp;quot;
				&amp;quot;external tools&amp;quot;);
		}
	}

        lte_lc_connect();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The SLM will connect with NB-IoT network automatically after reboot. The connection may take some time&amp;nbsp;according to my test:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Ready
&amp;gt; AT%XSYSTEMMODE?

%XSYSTEMMODE: 0,1,0,0

OK
&amp;gt; AT+CFUN?

+CFUN: 1

OK
&amp;gt; AT+CEREG?

+CEREG: 5,1,&amp;quot;A8B3&amp;quot;,&amp;quot;03238D6E&amp;quot;,9,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;

OK

+CSCON: 0

+CEREG: 1,&amp;quot;A8B3&amp;quot;,&amp;quot;03238D69&amp;quot;,9,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;&lt;/pre&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: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/495463?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 14:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cb08a36-8e74-47c1-8228-651928d552a6</guid><dc:creator>jonas.woerner</dc:creator><description>&lt;p&gt;thanks, but is there any way of doing this by application? I want my app to configure the modem on start, so I dont have to change this manually.. The uart is already used by the modem driver I guess.. but does the driver have any way of letting me set this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mode of Serial LTE Modem</title><link>https://devzone.nordicsemi.com/thread/495419?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 12:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02c8bc37-29c2-44d9-95a7-5216743ae6b6</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Jonas,&lt;/p&gt;
&lt;p&gt;The following commands should work if you only want to use NB-IoT network.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CFUN=4
AT%XSYSTEMMODE=0,1,0,0
AT%XSYSTEMMODE?&lt;/pre&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/xsystemmode_set.html"&gt;https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/xsystemmode_set.html&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></channel></rss>